diff --git a/lxservice/com/noblelift/imp/products/mes/service/md/me/MaterialServiceImpl.java b/lxservice/com/noblelift/imp/products/mes/service/md/me/MaterialServiceImpl.java index 3d73375..9bf4c1b 100644 --- a/lxservice/com/noblelift/imp/products/mes/service/md/me/MaterialServiceImpl.java +++ b/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+"'"); - } + + 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("删除成功!"); - } + srb.setSuccess(); + srb.setDesc("删除成功!"); return srb; }