由于业务类别使用数字会与app以及基础协议重复早晨树层级混乱,修改了层级ID为字符串businessType+数字code

This commit is contained in:
wangxin
2018-08-22 20:16:04 +08:00
parent abca1b273c
commit 5932b68c84

View File

@@ -216,11 +216,11 @@ public class SpecificServiceCfgController extends BaseController {
List<Map<String, Object>> businessList = Lists.newArrayList();
for(SysDataDictionaryItem dict:businessTypeList) {
Map<String, Object> 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<Map<String, Object>>());
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<String, Object> 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<String, Object> 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());