|
|
|
@ -8,9 +8,9 @@ import cn.chjyj.szwh.mapper.OrderGoodsDetailMapper; |
|
|
|
import cn.chjyj.szwh.mapper.OrderGoodsSourceMapper; |
|
|
|
import cn.chjyj.szwh.service.GoodsSourceService; |
|
|
|
import cn.chjyj.szwh.utils.SzFileUtils; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.alibaba.fastjson2.JSON; |
|
|
|
import com.alibaba.fastjson2.JSONArray; |
|
|
|
import com.alibaba.fastjson2.JSONObject; |
|
|
|
import com.fasterxml.jackson.databind.json.JsonMapper; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.apache.commons.logging.Log; |
|
|
|
@ -166,7 +166,7 @@ public class GoodsSourceServiceImpl implements GoodsSourceService { |
|
|
|
public int insertGoodsSource(String res, String islicode) { |
|
|
|
SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
// 抽取出现对应数据
|
|
|
|
JSONArray jarr = JSONObject.parseArray(res); |
|
|
|
JSONArray jarr = JSONArray.parseArray(res); |
|
|
|
for(int i=0;i<jarr.size();i++){ |
|
|
|
JSONObject innerJson = (JSONObject) jarr.get(i); |
|
|
|
// 转为对象
|
|
|
|
|