|
|
@ -95,6 +95,9 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
// 获取到sourceData字段信息
|
|
|
// 获取到sourceData字段信息
|
|
|
JSONObject sdjson = (JSONObject) jsonArray.get(i); |
|
|
JSONObject sdjson = (JSONObject) jsonArray.get(i); |
|
|
String nsdstr = sdjson.getString("sourceData"); |
|
|
String nsdstr = sdjson.getString("sourceData"); |
|
|
|
|
|
if(nsdstr==null){ |
|
|
|
|
|
continue; |
|
|
|
|
|
}else { |
|
|
JSONObject nsdjson = JSONObject.parseObject(nsdstr); |
|
|
JSONObject nsdjson = JSONObject.parseObject(nsdstr); |
|
|
// 从sourcedata节点中提取商品唯一编号
|
|
|
// 从sourcedata节点中提取商品唯一编号
|
|
|
String goodsId = nsdjson.getString("identifier"); |
|
|
String goodsId = nsdjson.getString("identifier"); |
|
|
@ -166,6 +169,7 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
oplog.setType("goods"); |
|
|
oplog.setType("goods"); |
|
|
// 日志入库
|
|
|
// 日志入库
|
|
|
operationLogMapper.addLog(oplog); |
|
|
operationLogMapper.addLog(oplog); |
|
|
|
|
|
} |
|
|
// 计算器增加1
|
|
|
// 计算器增加1
|
|
|
count++; |
|
|
count++; |
|
|
} |
|
|
} |
|
|
|