From 390bb306643cec22a006eec325d0a55bcc5e4111 Mon Sep 17 00:00:00 2001 From: "DESKTOP-5DIJMF9\\admin" <2388969634@qq.com> Date: Thu, 9 Jan 2025 21:29:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E5=88=A0=E9=99=A4=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/md/me/MaterialServiceImpl.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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; }