From 5932b68c84b723835fbcef20e72ae8facf8e55ff Mon Sep 17 00:00:00 2001 From: wangxin Date: Wed, 22 Aug 2018 20:16:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B1=E4=BA=8E=E4=B8=9A=E5=8A=A1=E7=B1=BB?= =?UTF-8?q?=E5=88=AB=E4=BD=BF=E7=94=A8=E6=95=B0=E5=AD=97=E4=BC=9A=E4=B8=8E?= =?UTF-8?q?app=E4=BB=A5=E5=8F=8A=E5=9F=BA=E7=A1=80=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=97=A9=E6=99=A8=E6=A0=91=E5=B1=82=E7=BA=A7?= =?UTF-8?q?=E6=B7=B7=E4=B9=B1=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=BA=86=E5=B1=82?= =?UTF-8?q?=E7=BA=A7ID=E4=B8=BA=E5=AD=97=E7=AC=A6=E4=B8=B2businessType+?= =?UTF-8?q?=E6=95=B0=E5=AD=97code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../specific/SpecificServiceCfgController.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/nis/web/controller/specific/SpecificServiceCfgController.java b/src/main/java/com/nis/web/controller/specific/SpecificServiceCfgController.java index 5c3d29c69..4ed712975 100644 --- a/src/main/java/com/nis/web/controller/specific/SpecificServiceCfgController.java +++ b/src/main/java/com/nis/web/controller/specific/SpecificServiceCfgController.java @@ -216,11 +216,11 @@ public class SpecificServiceCfgController extends BaseController { List> businessList = Lists.newArrayList(); for(SysDataDictionaryItem dict:businessTypeList) { Map map = Maps.newHashMap(); - map.put("id", dict.getItemCode()); + map.put("id", "businessType"+dict.getItemCode()); map.put("pId", 0); map.put("name",props.getProperty(dict.getItemValue(), dict.getItemValue())); map.put("serviceType",cfgType); - map.put("businessType",-1); + map.put("businessType","-1"); map.put("nodes", new ArrayList>()); businessList.add(map); } @@ -234,12 +234,12 @@ public class SpecificServiceCfgController extends BaseController { (cfgType.intValue()!=0&&specificServiceCfg.getCfgType().intValue()!=cfgType)){ continue; } - if(businessList.size()>0) { - for(Map business:businessList) { - if(String.valueOf(business.get("id")).equals(specificServiceCfg.getBusinessType())) { + if(businessTypeList.size()>0) { + for(SysDataDictionaryItem business:businessTypeList) { + if(String.valueOf(business.getItemCode()).equals(specificServiceCfg.getBusinessType())) { Map map = Maps.newHashMap(); map.put("id", specificServiceCfg.getSpecServiceId()); - map.put("pId", business.get("id")); + map.put("pId", "businessType"+business.getItemCode()); map.put("name",specificServiceCfg.getSpecServiceName()); map.put("serviceType",specificServiceCfg.getCfgType()); map.put("businessType",specificServiceCfg.getBusinessType());