|
|
@ -62,9 +62,10 @@ public class ItemHandler extends BaseHandler {
|
|
|
|
jsonObject.put("site", site);
|
|
|
|
jsonObject.put("site", site);
|
|
|
|
ItemFullConfiguration itemFull = ItemWSClient.find(jsonObject);
|
|
|
|
ItemFullConfiguration itemFull = ItemWSClient.find(jsonObject);
|
|
|
|
if (itemFull == null) {
|
|
|
|
if (itemFull == null) {
|
|
|
|
resultMessage = ItemWSClient.insert(jsonObject);
|
|
|
|
resultMessage = "物料主数据不存在";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ItemWSClient.update(jsonObject, itemFull);
|
|
|
|
ItemWSClient.update(jsonObject, itemFull);
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (resultMessage != null) {
|
|
|
|
if (resultMessage != null) {
|
|
|
@ -73,8 +74,6 @@ public class ItemHandler extends BaseHandler {
|
|
|
|
buffer.append("第" + index + "行:" + I18nUtil.getI18nText("MaterData.import.update.fail", params) + "\n");
|
|
|
|
buffer.append("第" + index + "行:" + I18nUtil.getI18nText("MaterData.import.update.fail", params) + "\n");
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|