lyhzzz преди 3 месеца
родител
ревизия
0267b9c41b
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      src/main/java/com/fdkankan/fusion/service/impl/CaseServiceImpl.java
  2. 1 1
      src/main/resources/application.yaml

+ 1 - 1
src/main/java/com/fdkankan/fusion/service/impl/CaseServiceImpl.java

@@ -212,7 +212,7 @@ public class CaseServiceImpl extends ServiceImpl<ICaseMapper, CaseEntity> implem
         HashMap<String, TmDepartment> mapBySnCodes = tmCameraService.getMapBySnCodes(snList);
         for (SceneVo sceneVo : listAll) {
             if(StringUtils.isNotBlank(sceneVo.getSnCode())){
-                TmDepartment tmDepartment = mapBySnCodes.get(sceneVo.getSnCode());
+                TmDepartment tmDepartment = mapBySnCodes.get(sceneVo.getSnCode().toUpperCase());
                 if(tmDepartment != null){
                     sceneVo.setDeptId(tmDepartment.getId());
                     sceneVo.setDeptName(tmDepartment.getName());

+ 1 - 1
src/main/resources/application.yaml

@@ -1,6 +1,6 @@
 spring:
   profiles:
-    active: ${activeProfile:localprod}
+    active: ${activeProfile:local}
   servlet:
     multipart:
       max-file-size: 1000MB