change 4 роки тому
батько
коміт
7c6a2ba61b

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

@@ -3,6 +3,7 @@ package com.zhongzheng.controller.recruit;
 import java.util.List;
 import java.util.Arrays;
 
+import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
 import com.zhongzheng.common.utils.ServletUtils;
 import com.zhongzheng.framework.web.service.WxTokenService;
 import com.zhongzheng.modules.recruit.bo.RecruitInterviewAddBo;
@@ -50,7 +51,7 @@ public class RecruitInterviewController extends BaseController {
     /**
      * 查询招聘面试关联列表
      */
-    @ApiOperation("查询投递面试列表")
+    @ApiOperation("查询邀请面试列表")
     @GetMapping("/list")
     public TableDataInfo<RecruitInterviewVo> list(RecruitInterviewQueryBo bo) {
         startPage();
@@ -60,6 +61,17 @@ public class RecruitInterviewController extends BaseController {
         return getDataTable(list);
     }
 
+    /**
+     * 查询招聘面试简历列表
+     */
+    @ApiOperation("全部投递面试简历列表")
+    @GetMapping("/listAll")
+    public TableDataInfo<RecruitInterviewVo> listAll(RecruitInterviewQueryBo bo) {
+        startPage();
+        bo.setStatus(1);
+        List<RecruitInterviewVo> list = iRecruitInterviewService.queryListAll(bo);
+        return  getDataTable(list);
+    }
 
 
     /**

+ 7 - 4
zhongzheng-system/src/main/resources/mapper/modules/recruit/RecruitInterviewMapper.xml

@@ -287,6 +287,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="status !=null">
             and r.status = #{status}
         </if>
+        <if test="statusIds != null and statusIds.size()!=0 ">
+            AND r.status in
+            <foreach collection="statusIds" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
     </select>
 
     <select id="interviewUserId" parameterType="map" resultMap="RecruitInterviewUserVoResult">
@@ -337,13 +343,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         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
+        where 1=1  and r.status != 0
         <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>