|
@ -274,17 +274,17 @@ public class MaterialServiceImpl implements MaterialService { |
|
|
ResultBean rb2 = WQLObject.getWQLObject("MD_PB_BaseData_ClassInfo").update(map, "base_data_uuid = ?", |
|
|
ResultBean rb2 = WQLObject.getWQLObject("MD_PB_BaseData_ClassInfo").update(map, "base_data_uuid = ?", |
|
|
new String[] { material_uuid }); |
|
|
new String[] { material_uuid }); |
|
|
WQLObject obj= WQLObject.getWQLObject("ST_BS_WMSMaterial"); |
|
|
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(); |
|
|
ServiceResultBean srb = new ServiceResultBean(); |
|
|
if (!rb1.isSuccess() || !rb2.isSuccess()) { |
|
|
|
|
|
srb.setDesc("删除失败!"); |
|
|
|
|
|
} else { |
|
|
|
|
|
srb.setSuccess(); |
|
|
srb.setSuccess(); |
|
|
srb.setDesc("删除成功!"); |
|
|
srb.setDesc("删除成功!"); |
|
|
} |
|
|
|
|
|
return srb; |
|
|
return srb; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|