Ver código fonte

web-求职人员导入功能调整

liao-sea 11 meses atrás
pai
commit
5317aa4a1b

+ 9 - 4
src/main/java/com/hz/employmentsite/services/impl/jobUserManager/JobUserServiceImpl.java

@@ -604,7 +604,7 @@ public class JobUserServiceImpl implements JobUserService {
         siteUserExp.or().andUserIDEqualTo(userID);
         siteUserExp.or().andUserIDEqualTo(userID);
         PcSiteUser curLoginSiteUser = pcSiteUserMapper.selectByExample(siteUserExp).stream().findFirst().orElse(null);
         PcSiteUser curLoginSiteUser = pcSiteUserMapper.selectByExample(siteUserExp).stream().findFirst().orElse(null);
         if(curLoginSiteUser==null){
         if(curLoginSiteUser==null){
-            throw new BaseException("", "未能查询到当前登录人的驿站信息!");
+            throw new BaseException("", "未能查询到当前登录人的驿站人员信息!");
         }else{
         }else{
             PcSiteExample siteExp = new PcSiteExample();
             PcSiteExample siteExp = new PcSiteExample();
             siteExp.or().andSiteIDEqualTo(curLoginSiteUser.getSiteID());
             siteExp.or().andSiteIDEqualTo(curLoginSiteUser.getSiteID());
@@ -709,7 +709,7 @@ public class JobUserServiceImpl implements JobUserService {
                         item.setBirthDay(birthDay);
                         item.setBirthDay(birthDay);
                     }
                     }
                     if(!stringUtils.IsNullOrEmpty(item.getSexName())){
                     if(!stringUtils.IsNullOrEmpty(item.getSexName())){
-                        if((sexStr%2==0&&item.getSexName()=="男")||(sexStr%2!=0&&item.getSexName()=="女")){
+                        if((sexStr%2==0&&item.getSexName().equals("男"))||(sexStr%2!=0&&item.getSexName().equals("女"))){
                             errorInfo += "性别与身份证号不匹配!";
                             errorInfo += "性别与身份证号不匹配!";
                         }
                         }
                     }
                     }
@@ -749,7 +749,7 @@ public class JobUserServiceImpl implements JobUserService {
                 errorInfo += "请填写所属驿站!";
                 errorInfo += "请填写所属驿站!";
             else {
             else {
                 if (finalCurLoginUserSiteInfo!=null){
                 if (finalCurLoginUserSiteInfo!=null){
-                    if(item.getSiteName()!= finalCurLoginUserSiteInfo.getSiteName()){
+                    if(!item.getSiteName().equals(finalCurLoginUserSiteInfo.getSiteName())){
                         errorInfo += "请填写您所在的驿站名称!";
                         errorInfo += "请填写您所在的驿站名称!";
                     }else{
                     }else{
                         item.setSiteID(finalCurLoginUserSiteInfo.getSiteID());
                         item.setSiteID(finalCurLoginUserSiteInfo.getSiteID());
@@ -849,6 +849,11 @@ public class JobUserServiceImpl implements JobUserService {
                         .findFirst().orElse(new SysDictionaryItem()).getCode());
                         .findFirst().orElse(new SysDictionaryItem()).getCode());
                 if (item.getRegionCode() == null)
                 if (item.getRegionCode() == null)
                     errorInfo += "市/县不存在!";
                     errorInfo += "市/县不存在!";
+                else{
+                    if(!item.getRegionCode().equals(finalCurLoginUserSiteInfo.getRegionCode())){
+                        errorInfo += "请选择您所在驿站的市/县!";
+                    }
+                }
             }
             }
 
 
             if (!stringUtils.IsNullOrEmpty(item.getStreetName())) {
             if (!stringUtils.IsNullOrEmpty(item.getStreetName())) {
@@ -863,7 +868,7 @@ public class JobUserServiceImpl implements JobUserService {
                         AreaCodeExample curStreetExp = new AreaCodeExample();
                         AreaCodeExample curStreetExp = new AreaCodeExample();
                         streetExp.or().andCodeEqualTo(item.getStreetCode());
                         streetExp.or().andCodeEqualTo(item.getStreetCode());
                         var curStreetReginCode = areaCodeMapper.selectByExample(curStreetExp).get(0).getFid();
                         var curStreetReginCode = areaCodeMapper.selectByExample(curStreetExp).get(0).getFid();
-                        if(item.getRegionCode()!= null&&curStreetReginCode!=item.getRegionCode()){
+                        if(item.getRegionCode()!= null&&!curStreetReginCode.equals(item.getRegionCode())){
                             errorInfo += "镇街不属于当前市/县!";
                             errorInfo += "镇街不属于当前市/县!";
                         }
                         }
                     }
                     }

BIN
src/main/resources/static/doc/template/求职人员导入模板.xlsx


+ 4 - 4
vue/src/views/jobUserManager/jobuser/index.vue

@@ -130,10 +130,10 @@
           </div>
           </div>
           <div>
           <div>
             <a-button type="primary" html-type="submit" @click='onAdd' functioncode="T01030102">新增</a-button>
             <a-button type="primary" html-type="submit" @click='onAdd' functioncode="T01030102">新增</a-button>
-            <BImportExcel functioncode="T01030105"
-                          :options="importOptions"
-                          @success="loadData"
-            ></BImportExcel>
+<!--            <BImportExcel functioncode="T01030105"
+<!--                          :options="importOptions"-->
+<!--                          @success="loadData"-->
+<!--            ></BImportExcel>-->
             <BExportExcel :title="'导出'" :filename="'求职人员信息'" v-show="false"
             <BExportExcel :title="'导出'" :filename="'求职人员信息'" v-show="false"
                           :url="'jobUserService/jobUser/export'"
                           :url="'jobUserService/jobUser/export'"
                           :params="{...exportSearchParams, isExport: true, rows:10000,jobUserIDList:formState.selectedRowKeys.join(',')}"></BExportExcel>
                           :params="{...exportSearchParams, isExport: true, rows:10000,jobUserIDList:formState.selectedRowKeys.join(',')}"></BExportExcel>