Ver código fonte

fix bug:空间更新时cADID,rFID更新不成功的bug

lijie 3 anos atrás
pai
commit
bb8e148181

+ 2 - 0
src/main/java/com/persagy/proxy/adm/constant/AdmDictConstant.java

@@ -40,4 +40,6 @@ public interface AdmDictConstant {
             "projRoomFuncType","ratedLightP","zoneType","tenantType","tenant","elecCap","pollutionDegree",
             "groupCode","projectId","objType","classCode","grouping","virtualCodes","createApp","updateApp",
             "creator","creationTime","modifier","modifiedTime","valid");
+    Set<String> SPECIAL_INFOS=CollUtil.newHashSet("cADID","rFID");
+
 }

+ 1 - 1
src/main/java/com/persagy/proxy/object/controller/AdmSpaceController.java

@@ -144,7 +144,7 @@ public class AdmSpaceController {
             for (String mapKey : mapKeys) {
                 if ((AdmDictConstant.TABLE_INFOS.contains(mapKey)
                         && !AdmDictConstant.HEIGHT.equals(mapKey)
-                        && objFieldMap.containsKey(mapKey))
+                        && (objFieldMap.containsKey(mapKey)) || AdmDictConstant.SPECIAL_INFOS.contains(mapKey))
                         || AdmDictConstant.PIC.equals(mapKey)){
                     // 这些信息就算在infos也不更新,
                     // 和com.persagy.proxy.dictionary.service.impl.AbstractAdmDictBaseServiceImpl.handleObjectInfoPath