| | |
| | | package com.itstyle.mdm.service.impl; |
| | | |
| | | |
| | | import com.alibaba.druid.util.StringUtils; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | |
| | | continue; |
| | | } |
| | | jsonObj.put("renewstatus","update"); |
| | | //wms需求:过滤件装规格为空的数据 |
| | | if(!StringUtils.isEmpty(jsonObj.getString("specification"))){ |
| | | newJsonArray.add(jsonObj); |
| | | } |
| | | //数据存在变化 |
| | | dynamicQuery.update(mdm);//更新数据 |
| | | } |
| | | }else { |
| | | jsonObj.put("renewstatus","new"); |
| | | //wms需求:过滤件装规格为空的数据 |
| | | if(!StringUtils.isEmpty(jsonObj.getString("specification"))){ |
| | | newJsonArray.add(jsonObj); |
| | | } |
| | | //说明该数据为新数据 |
| | | mdmData.setUuid(UUID.randomUUID().toString()); |
| | | System.out.println(mdmData.toString()); |
| | | dynamicQuery.save(mdmData); |
| | | } |
| | | } |