物料主数据导入增加新建功能

master
Leon 3 years ago
parent ae8fbf695d
commit c01dbf7eff

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

Loading…
Cancel
Save