소스 검색

模板状态查询

he2802 4 년 전
부모
커밋
99408b9fa6
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      zhongzheng-system/src/main/resources/mapper/modules/recruit/RecruitTemplateMapper.xml

+ 6 - 0
zhongzheng-system/src/main/resources/mapper/modules/recruit/RecruitTemplateMapper.xml

@@ -47,6 +47,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="companyName != null and companyName != ''">
             AND vtc.company_name like concat('%', #{companyName}, '%')
         </if>
+        <if test="status != null and status.size()!=0 ">
+            AND rt.status in
+            <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
         ORDER BY
         rt.id DESC
     </select>