瀏覽代碼

面试简历列表

change 4 年之前
父節點
當前提交
dd38cd2afe

+ 1 - 1
zhongzheng-api/src/main/java/com/zhongzheng/controller/recruit/RecruitInterviewController.java

@@ -56,7 +56,7 @@ public class RecruitInterviewController extends BaseController {
         startPage();
         ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
         bo.setUserId(loginUser.getUser().getUserId());
-        List<RecruitInterviewVo> list = iRecruitInterviewService.queryListAll(bo);
+        List<RecruitInterviewVo> list = iRecruitInterviewService.queryListAppAll(bo);
         return getDataTable(list);
     }
 

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/recruit/mapper/RecruitInterviewMapper.java

@@ -30,4 +30,6 @@ public interface RecruitInterviewMapper extends BaseMapper<RecruitInterview> {
     String selectSysUserName(Long sysUserId);
 
     String selectUserName(Long userId);
+
+    List<RecruitInterviewVo> queryListAppAll(RecruitInterviewQueryBo bo);
 }

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/recruit/service/IRecruitInterviewService.java

@@ -70,4 +70,6 @@ public interface IRecruitInterviewService extends IService<RecruitInterview> {
 	List<RecruitInterviewVo> queryListAll(RecruitInterviewQueryBo bo);
 
 	RecruitInterviewUserVo interviewUserId(Long interviewUserId, LoginUser loginUser);
+
+	List<RecruitInterviewVo> queryListAppAll(RecruitInterviewQueryBo bo);
 }

+ 11 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/recruit/service/impl/RecruitInterviewServiceImpl.java

@@ -268,6 +268,17 @@ public class RecruitInterviewServiceImpl extends ServiceImpl<RecruitInterviewMap
         return recruitInterviewUserVo;
     }
 
+    @Override
+    public List<RecruitInterviewVo> queryListAppAll(RecruitInterviewQueryBo bo) {
+        List<RecruitInterviewVo> recruitInterviewVos = baseMapper.queryListAppAll(bo);
+        for (RecruitInterviewVo recruitInterviewVo : recruitInterviewVos) {
+            RecruitResumeVo recruitResumeVo = JSON.parseObject(recruitInterviewVo.getResumeJson(), new TypeReference<RecruitResumeVo>() {
+            });
+            recruitInterviewVo.setRecruitResumeVo(recruitResumeVo);
+        }
+        return recruitInterviewVos;
+    }
+
 
     private static List<DayInterviewVo> getDays(int year, int month,int day) throws ParseException {
         SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");

+ 12 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/recruit/vo/RecruitInterviewVo.java

@@ -2,6 +2,8 @@ package com.zhongzheng.modules.recruit.vo;
 
 import com.zhongzheng.common.annotation.Excel;
 import com.fasterxml.jackson.annotation.JsonFormat;
+
+import java.math.BigDecimal;
 import java.util.Date;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import io.swagger.annotations.ApiModel;
@@ -162,4 +164,14 @@ public class RecruitInterviewVo {
 	@ApiModelProperty("公司详细地址")
 	private String companyAddress;
 
+	/** 薪资起点 */
+	@Excel(name = "薪资起点")
+	@ApiModelProperty("薪资起点")
+	private BigDecimal incomeStart;
+
+	/** 薪资结点 */
+	@Excel(name = "薪资结点")
+	@ApiModelProperty("薪资结点")
+	private BigDecimal incomeEnd;
+
 }

+ 71 - 0
zhongzheng-system/src/main/resources/mapper/modules/recruit/RecruitInterviewMapper.xml

@@ -284,6 +284,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="userId !=null and userId !=''">
             and r.user_id = #{userId}
         </if>
+        <if test="status !=null">
+            and r.status = #{status}
+        </if>
     </select>
 
     <select id="interviewUserId" parameterType="map" resultMap="RecruitInterviewUserVoResult">
@@ -313,4 +316,72 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         WHERE
             user_id =#{userId}
     </select>
+
+    <select id="queryListAppAll" parameterType="com.zhongzheng.modules.recruit.bo.RecruitInterviewQueryBo" resultMap="RecruitInterviewVoResult">
+        SELECT
+        u.realname,
+        n.job,
+        n.income_start,
+        n.income_end,
+        u.sex,
+        u.email as userEMall,
+        u.city,
+        u.district,
+        r.*,
+        n.city as company_city,
+        n.district as company_district,
+        n.province as company_province,
+        n.address as company_address
+        FROM
+        recruit_interview r
+        LEFT JOIN recruit_needs n ON r.needs_id = n.id
+        LEFT JOIN USER u ON u.user_id = r.user_id
+        LEFT JOIN v_tenant_company c ON c.company_id = n.company_id
+        where 1=1
+        <if test="job !=null">
+            and n.job = #{job}
+        </if>
+        <if test="status !=null">
+            and r.status = #{status}
+        </if>
+        <if test="workStart !=null and workEnd !=null and workEnd != '' and workStart!=''">
+            and (SELECT DATE_FORMAT(NOW(), '%Y') as `year`)-r.start_year BETWEEN #{workStart} and #{workEnd}
+        </if>
+        <if test="ageStart !=null and ageEnd !=null and ageEnd != '' and ageStart!=''">
+            and TIMESTAMPDIFF(YEAR,r.user_birth,CURDATE())  BETWEEN #{ageStart} and #{ageEnd}
+        </if>
+        <if test="eduLevel !=null and eduLevel!=''">
+            and r.edu_level = #{eduLevel}
+        </if>
+        <if test="completeness !=null and completeness!=''">
+            and r.completeness > #{completeness}
+        </if>
+        <if test="district !=null and district!=''">
+            and u.district = #{district}
+        </if>
+        <if test="province !=null and completeness!=''">
+            and u.province = #{province}
+        </if>
+        <if test="city !=null and city!=''">
+            and u.city = #{city}
+        </if>
+        <if test="houseProvince !=null and houseProvince!=''">
+            and u.house_province = #{houseProvince}
+        </if>
+        <if test="houseCity !=null and houseCity!=''">
+            and u.house_city = #{houseCity}
+        </if>
+        <if test="sex !=null and sex != ''">
+            and u.sex = #{sex}
+        </if>
+        <if test="marry !=null and marry !=''">
+            and u.marry = #{marry}
+        </if>
+        <if test="politic !=null and politic !=''">
+            and u.politic = #{politic}
+        </if>
+        <if test="userId !=null and userId !=''">
+            and r.user_id = #{userId}
+        </if>
+    </select>
 </mapper>