Explorar o código

专家库地区

hexiao %!s(int64=2) %!d(string=hai) anos
pai
achega
3a304956a9

+ 5 - 5
purchase-system/src/main/java/com/ozs/base/service/impl/BaseExpertServiceImpl.java

@@ -62,11 +62,11 @@ public class BaseExpertServiceImpl extends ServiceImpl<BaseExpertMapper, BaseExp
                 Integer i = baseExpertMapper.insertBaseUnitInformation(baseUnitInformation);
             }
         }
-        //// 区域list转字符串
-        //if (StringUtils.isNotNull(baseExpertVo.getLocalAreaList())) {
-        //    String stringFromList = String.join(",", baseExpertVo.getLocalAreaList());
-        //    baseExpertVo.setLocalArea(stringFromList);
-        //}
+        // 区域list转字符串
+        if (StringUtils.isNotNull(baseExpertVo.getLocalAreaList())) {
+//            String stringFromList = String.join(",", baseExpertVo.getLocalAreaList());
+            baseExpertVo.setLocalArea(baseExpertVo.getLocalAreaList().get(baseExpertVo.getLocalAreaList().size() - 1));
+        }
         return baseExpertMapper.insertExpert(baseExpertVo);
     }