From f52b7ad44aff62a97a7658035782820cace41a09 Mon Sep 17 00:00:00 2001 From: xuhaihui <2098865055@qq.com> Date: Tue, 16 Sep 2025 11:16:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AE=BE=E5=A4=87=E5=8D=95?= =?UTF-8?q?=E6=8D=AE=E5=88=97=E8=A1=A8=E6=8F=92=E4=BB=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=82=B9=E5=87=BB=E6=8F=90=E7=A4=BA=E6=97=B6?= =?UTF-8?q?=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pr/plugin/form/EquipmentCardListPlugin.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/EquipmentCardListPlugin.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/EquipmentCardListPlugin.java index 9fcd519..ff29153 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/EquipmentCardListPlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/EquipmentCardListPlugin.java @@ -67,9 +67,11 @@ public class EquipmentCardListPlugin extends AbstractListPlugin implements Plugi } Object[] save = SaveServiceHelper.save(equipments); System.out.println(); - this.getView().showMessage("闲置成功!"); - IFormView view = this.getView(); - view.invokeOperation("refresh"); + if (equipments.length > 0) { + this.getView().showMessage("闲置成功!"); + IFormView view = this.getView(); + view.invokeOperation("refresh"); + } }else if (itemKey.equals("zcgj_used")){//在用 Set setIds = getSelectOrderIds(this.getSelectedRows()); DynamicObject[] equipments = BusinessDataServiceHelper.load("eceq_equipment_card", @@ -78,9 +80,11 @@ public class EquipmentCardListPlugin extends AbstractListPlugin implements Plugi equipment.set("equipstatus","USED"); } SaveServiceHelper.save(equipments); - this.getView().showMessage("成功转为在用!"); - IFormView view = this.getView(); - view.invokeOperation("refresh"); + if (equipments.length > 0) { + this.getView().showMessage("成功转为在用!"); + IFormView view = this.getView(); + view.invokeOperation("refresh"); + } }else if(itemKey.equals("zcgj_assetorg")){//同步使用组织 Set setIds = getSelectOrderIds(this.getSelectedRows()); DynamicObject[] equipments = BusinessDataServiceHelper.load("eceq_equipment_card", "billno,billname,equipstatus,org,zcgj_headusedepts,useorg", new QFilter[]{new QFilter("id", "in", setIds)});