瀏覽代碼

专家库地区

hexiao 2 年之前
父節點
當前提交
3a304956a9
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      purchase-system/src/main/java/com/ozs/base/service/impl/BaseExpertServiceImpl.java

+ 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);
     }