|
|
|
@ -115,6 +115,18 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
// insertGoodsDetail
|
|
|
|
GoodsDetail goodsDetail = ApiGoodsUtils.jsonToGoodsDetail(nsdjson,sdjson); |
|
|
|
goodsDetailMapper.add(goodsDetail); |
|
|
|
|
|
|
|
//处理状态
|
|
|
|
int istatus =0; |
|
|
|
if(sdjson.getInteger("status")==1 || sdjson.getInteger("status")==4 || |
|
|
|
sdjson.getInteger("status")==5){ |
|
|
|
istatus=1; |
|
|
|
}else if(sdjson.getInteger("status")==2){ |
|
|
|
istatus=2; |
|
|
|
}else{ |
|
|
|
istatus=4; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return count; |
|
|
|
|