From ac6081ba75a3044e9f62a15ea3ec64b59d5e94de Mon Sep 17 00:00:00 2001 From: e Date: Wed, 26 Sep 2018 15:28:31 +0800 Subject: [PATCH] =?UTF-8?q?1,=E5=A2=9E=E5=8A=A0=E6=A3=80=E6=9F=A5=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wm/controller/WmOmNoticeHController.java | 23 +++++++++++-------- src/main/resources/sysConfig.properties | 5 +++- src/main/resources/sysConfigxkn.properties | 3 ++- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java b/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java index a92329d9..e99ed440 100644 --- a/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java +++ b/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java @@ -1841,17 +1841,20 @@ public class WmOmNoticeHController extends BaseController { String flag = "Y"; String message=""; - for(WmNoticeImpPage wmt:list){ - MvGoodsEntity mvgoods = systemService.findUniqueByProperty( - MvGoodsEntity.class, "goodsCode", wmt.getGoodsId()); - if(mvgoods==null){ - flag = "N"; - message=message+wmt.getGoodsName(); + if("yes".equals(ResourceUtil.getConfigByName("nocheck"))){ + for(WmNoticeImpPage wmt:list){ + MvGoodsEntity mvgoods = systemService.findUniqueByProperty( + MvGoodsEntity.class, "goodsCode", wmt.getGoodsId()); + if(mvgoods==null){ + flag = "N"; + message=message+wmt.getGoodsName(); + } } - } - if("N".equals(flag)){ - j.setMsg(message+"不存在"); - return j; + if("N".equals(flag)){ + j.setMsg(message+"不存在"); + return j; + } + } for(int i=0;i