| | |
| | | <select id="getCheckIndexCarList" resultMap="CheckIndexCarResult"> |
| | | select tcic.*,sd.dept_name |
| | | from t_check_index_car tcic left join sys_dept sd on tcic.dept_id = sd.dept_id |
| | | left join t_check_score tcs on tcic.id = tcs.index_id |
| | | <where> |
| | | <if test="examineTag != null "> and tcic.examine_tag = #{examineTag}</if> |
| | | <if test="day != null "> and date(tcic.create_time) = #{day}</if> |
| | |
| | | from t_check_index_face tcif left join sys_dept sd on tcif.dept_id = sd.dept_id |
| | | <where> |
| | | <if test="examineTag != null "> and tcif.examine_tag = #{examineTag}</if> |
| | | <if test="date != null "> and date_format(tcif.create_time,'%Y-%m') = #{date}</if> |
| | | <if test="day != null "> and date(tcif.create_time) = #{day}</if> |
| | | <if test="deptIds != null ">and tcif.dept_id in |
| | | <foreach collection="deptIds" separator="," open="(" close=")" item="deptId"> |
| | |
| | | <where> |
| | | <if test="examineTag != null "> and tciv.examine_tag = #{examineTag}</if> |
| | | <if test="day != null "> and date(tciv.create_time) = #{day}</if> |
| | | <if test="createTime != null "> and date(tciv.create_time) = #{createTime}</if> |
| | | <if test="deptIds != null ">and tciv.dept_id in |
| | | <foreach collection="deptIds" separator="," open="(" close=")" item="deptId"> |
| | | #{deptId} |