解决BUG:商品的sku无法修改的问题
This commit is contained in:
@@ -96,7 +96,6 @@ public class MaterialExtendService {
|
|||||||
} else if("update".equals(type)){
|
} else if("update".equals(type)){
|
||||||
for (int i = 0; i < meArr.size(); i++) {
|
for (int i = 0; i < meArr.size(); i++) {
|
||||||
JSONObject tempJson = meArr.getJSONObject(i);
|
JSONObject tempJson = meArr.getJSONObject(i);
|
||||||
String barCode = tempJson.getString("barCode");
|
|
||||||
String tempId = tempJson.getString("id");
|
String tempId = tempJson.getString("id");
|
||||||
if(tempId.length()>19){
|
if(tempId.length()>19){
|
||||||
insertedJson.add(tempJson);
|
insertedJson.add(tempJson);
|
||||||
@@ -168,6 +167,9 @@ public class MaterialExtendService {
|
|||||||
if (StringUtils.isNotEmpty(tempUpdatedJson.getString("commodityUnit"))) {
|
if (StringUtils.isNotEmpty(tempUpdatedJson.getString("commodityUnit"))) {
|
||||||
materialExtend.setCommodityUnit(tempUpdatedJson.getString("commodityUnit"));
|
materialExtend.setCommodityUnit(tempUpdatedJson.getString("commodityUnit"));
|
||||||
}
|
}
|
||||||
|
if (tempUpdatedJson.get("sku")!=null) {
|
||||||
|
materialExtend.setSku(tempUpdatedJson.getString("sku"));
|
||||||
|
}
|
||||||
if (StringUtils.isNotEmpty(tempUpdatedJson.getString("purchaseDecimal"))) {
|
if (StringUtils.isNotEmpty(tempUpdatedJson.getString("purchaseDecimal"))) {
|
||||||
materialExtend.setPurchaseDecimal(tempUpdatedJson.getBigDecimal("purchaseDecimal"));
|
materialExtend.setPurchaseDecimal(tempUpdatedJson.getBigDecimal("purchaseDecimal"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user