3
0

6 Commitit e462e4866c ... ce7d15067e

Tekijä SHA1 Viesti Päivämäärä
  andy.wu ce7d15067e Merge remote-tracking branch 'origin/platform_recruit' into platform_recruit 10 kuukautta sitten
  andy.wu 967af13d6d Merge branch 'develop' into platform_recruit 10 kuukautta sitten
  andy.wu cc694bfe6d 修复机构的bug 10 kuukautta sitten
  andy.wu 455376f3ec Merge remote-tracking branch 'origin/develop' into develop 10 kuukautta sitten
  wengchengjian ec9e9ea14d 查询统计事业单位点击数据修改 10 kuukautta sitten
  andy.wu 0a016dae4c 增加外部导入人员的空格去除 10 kuukautta sitten

+ 8 - 8
ruoyi-system/src/main/java/com/ruoyi/ahrs/personnel/service/impl/PersonnelServiceImpl.java

@@ -1426,15 +1426,15 @@ public class PersonnelServiceImpl implements IPersonnelService {
 //            throw new RuntimeException("没有符合导入条件的人员");
         } else {
 //            对瘦身的列表进行分组处理
-            Map<String, List<Personnel>> collectSydw = personnelList.stream().collect(Collectors.groupingBy(Personnel::getPublicInstitutionName));
-            Map<String, List<Personnel>> collectZgbm = personnelList.stream().collect(Collectors.groupingBy(Personnel::getCompetentDept));
+            Map<String, List<Personnel>> collectSydw = personnelList.stream().collect(Collectors.groupingBy(personnel -> personnel.getPublicInstitutionName().trim()));
+            Map<String, List<Personnel>> collectZgbm = personnelList.stream().collect(Collectors.groupingBy(personnel -> personnel.getCompetentDept().trim()));
             Map<String, Set<String>> collectDept = new HashMap<>();
 //            根据键来遍历map,得到人员列表,也就是根据事业单位名称得到该事业单位需要导入的人员,去除对于必填项的校验
             for (String key : collectZgbm.keySet()) {
                 List<Personnel> personnels = collectZgbm.get(key);
                 Set<String> deptsSydw = new HashSet<>();
                 personnels.forEach(personnel -> {
-                    deptsSydw.add(personnel.getPublicInstitutionName());
+                    deptsSydw.add(personnel.getPublicInstitutionName().trim());
                 });
                 collectDept.put(key, deptsSydw);
             }
@@ -1546,11 +1546,11 @@ public class PersonnelServiceImpl implements IPersonnelService {
             if ("无".equals(key)){
 //                无主管部门情况
                 for (String sydwName : list) {
-                    SysDept sydw = deptMapper.selectDeptByDeptNameAndDeptCategory(sydwName, "3");
+                    SysDept sydw = deptMapper.selectDeptByDeptNameAndDeptCategory(sydwName.trim(), "3");
                     if (sydw == null){
 //                            在当前已存在的主管部门下新增事业单位
                         SysDept sysDeptSydw=new SysDept();
-                        sysDeptSydw.setDeptName(sydwName);//设置事业单位名称
+                        sysDeptSydw.setDeptName(sydwName.trim());//设置事业单位名称
                         sysDeptSydw.setParentId(sysDept.getDeptId());//设置事业单位的父id,建立父子机构关系
                         sysDeptSydw.setInitializedPermissions("0"); //设置当前事业单位的初始化权限
                         sysDeptSydw.setVersion(1L);//设置当前事业单位的默认版本号
@@ -1570,7 +1570,7 @@ public class PersonnelServiceImpl implements IPersonnelService {
                         if (sydw == null){
 //                            在当前已存在的主管部门下新增事业单位
                             SysDept sysDeptSydw=new SysDept();
-                            sysDeptSydw.setDeptName(sydwName);//设置事业单位名称
+                            sysDeptSydw.setDeptName(sydwName.trim());//设置事业单位名称
                             sysDeptSydw.setParentId(zgbm.getDeptId());//设置事业单位的父id,建立父子机构关系
                             sysDeptSydw.setInitializedPermissions("0"); //设置当前事业单位的初始化权限
                             sysDeptSydw.setVersion(1L);//设置当前事业单位的默认版本号
@@ -1582,7 +1582,7 @@ public class PersonnelServiceImpl implements IPersonnelService {
                 }else {
 //                    如果主管部门不存在
                     SysDept sysDeptZgbmNew = new SysDept();
-                    sysDeptZgbmNew.setDeptName(key);
+                    sysDeptZgbmNew.setDeptName(key.trim());
                     sysDeptZgbmNew.setParentId(sysDept.getDeptId());
                     sysDeptZgbmNew.setInitializedPermissions("0");
                     sysDeptZgbmNew.setVersion(1L);
@@ -1593,7 +1593,7 @@ public class PersonnelServiceImpl implements IPersonnelService {
                     for (String sydwName : list) {
 //                            在当前刚创建的主管部门下新增事业单位
                         SysDept sysDeptSydw = new SysDept();
-                        sysDeptSydw.setDeptName(sydwName);//设置事业单位名称
+                        sysDeptSydw.setDeptName(sydwName.trim());//设置事业单位名称
                         sysDeptSydw.setParentId(sysDeptZgbmNew.getDeptId());//设置事业单位的父id,建立父子机构关系
                         sysDeptSydw.setInitializedPermissions("0"); //设置当前事业单位的初始化权限
                         sysDeptSydw.setVersion(1L);//设置当前事业单位的默认版本号

+ 1 - 1
ruoyi-system/src/main/java/com/ruoyi/ahrs/querystatistics/service/impl/PersonnelAddAndSubListServiceImpl.java

@@ -560,7 +560,7 @@ public class PersonnelAddAndSubListServiceImpl {
 
         //特岗全科医生安置
         if (Objects.equals(number, "6010")) {
-            return personnelDtos;
+            return personnelDtoZYList.stream().filter((n) -> "209".equals(n.getEnterWay())).collect(Collectors.toList());
         }
 
         //事业单位改革

+ 3 - 0
ruoyi-system/src/main/java/com/ruoyi/ahrs/querystatistics/service/impl/SelectPersonnelAddAndSubServiceImpl.java

@@ -970,6 +970,9 @@ public class SelectPersonnelAddAndSubServiceImpl {
             //农村订单定向免费医学生安置
 
             //特岗全科医生安置
+            if(Objects.equals("209",s)){
+                map.put("tgqkysaz", Integer.valueOf(map.get("tgqkysaz").toString()) + enterWayMap.get(s).size());
+            }
 
             //事业单位改革
 

+ 2 - 2
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml

@@ -515,7 +515,7 @@
 
 	<select id="selectDeptByDeptName" resultMap="SysDeptResult">
 		<include refid="selectDeptVo"/>
-		where d.del_flag = '0'
+		where d.del_flag = '0' and status='0'
 		<if test="deptName != null and deptName != ''">
 			AND d.dept_name = #{deptName}
 		</if>
@@ -525,7 +525,7 @@
 
 	<select id="selectDeptByDeptNameAndDeptCategory" resultMap="SysDeptResult">
 		<include refid="selectDeptVo"/>
-		where d.del_flag = '0'
+		where d.del_flag = '0' and d.status='0'
 		<if test="deptName != null and deptName != ''">
 			AND d.dept_name = #{deptName}
 		</if>