Browse Source

物料删除优化

master
parent
commit
390bb30664
  1. 14
      lxservice/com/noblelift/imp/products/mes/service/md/me/MaterialServiceImpl.java

14
lxservice/com/noblelift/imp/products/mes/service/md/me/MaterialServiceImpl.java

@ -274,17 +274,17 @@ public class MaterialServiceImpl implements MaterialService {
ResultBean rb2 = WQLObject.getWQLObject("MD_PB_BaseData_ClassInfo").update(map, "base_data_uuid = ?",
new String[] { material_uuid });
WQLObject obj= WQLObject.getWQLObject("ST_BS_WMSMaterial");
JSONObject jo = obj.query("material_uuid='"+material_uuid+"'").uniqueResult(0);
if(jo!=null) {
obj.delete("material_uuid='"+material_uuid+"'");
}
WQLObject ST_BS_WMSMaterialIsDull = WQLObject.getWQLObject("ST_BS_WMSMaterialIsDull");
material_uuid = material_uuid +"-1060";
ST_BS_WMSMaterialIsDull.delete("material_uuid='"+material_uuid+"'");
ServiceResultBean srb = new ServiceResultBean();
if (!rb1.isSuccess() || !rb2.isSuccess()) {
srb.setDesc("删除失败!");
} else {
srb.setSuccess();
srb.setDesc("删除成功!");
}
return srb;
}

Loading…
Cancel
Save