Commit 5b44b942 authored by 季圣华's avatar 季圣华
Browse files

解决BUG:商品的sku无法修改的问题

parent d08f0a15
......@@ -96,7 +96,6 @@ public class MaterialExtendService {
} else if("update".equals(type)){
for (int i = 0; i < meArr.size(); i++) {
JSONObject tempJson = meArr.getJSONObject(i);
String barCode = tempJson.getString("barCode");
String tempId = tempJson.getString("id");
if(tempId.length()>19){
insertedJson.add(tempJson);
......@@ -168,6 +167,9 @@ public class MaterialExtendService {
if (StringUtils.isNotEmpty(tempUpdatedJson.getString("commodityUnit"))) {
materialExtend.setCommodityUnit(tempUpdatedJson.getString("commodityUnit"));
}
if (tempUpdatedJson.get("sku")!=null) {
materialExtend.setSku(tempUpdatedJson.getString("sku"));
}
if (StringUtils.isNotEmpty(tempUpdatedJson.getString("purchaseDecimal"))) {
materialExtend.setPurchaseDecimal(tempUpdatedJson.getBigDecimal("purchaseDecimal"));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment