|
|
@@ -53,19 +53,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN recruit_needs n on n.id = r.needs_id
|
|
|
where 1=1
|
|
|
<if test="year!=null">
|
|
|
- and year=#{year}
|
|
|
+ and r.year=#{year}
|
|
|
</if>
|
|
|
<if test="month!=null">
|
|
|
- and month=#{month}
|
|
|
+ and r.month=#{month}
|
|
|
</if>
|
|
|
<if test="day!=null">
|
|
|
- and day=#{day}
|
|
|
+ and r.day=#{day}
|
|
|
</if>
|
|
|
<if test="timingStart !=null">
|
|
|
- and timing_start=#{timingStart}
|
|
|
+ and r.timing_start=#{timingStart}
|
|
|
</if>
|
|
|
<if test="timingEnd !=null">
|
|
|
- and timing_End=#{timingEnd}
|
|
|
+ and r.timing_End=#{timingEnd}
|
|
|
+ </if>
|
|
|
+ <if test="status != null and status.size()!=0 ">
|
|
|
+ AND r.status in
|
|
|
+ <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
@@ -111,5 +117,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN recruit_needs n ON n.id = r.needs_id
|
|
|
WHERE
|
|
|
1 =1
|
|
|
+ <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>
|
|
|
</mapper>
|