| | |
| | | yu.unit_name, |
| | | yp.start_time, |
| | | yp.end_time, |
| | | d.area, |
| | | CASE WHEN yp.province_tag = 0 THEN '否' ELSE '是' END AS provinceTagString, |
| | | CASE WHEN yp.important_tag = 0 THEN '否' ELSE '是' END AS importantTagString, |
| | | CASE WHEN yp.important_command_image_tag = 0 THEN '否' ELSE '是' END AS importantCommandImageTagString, |
| | |
| | | t_yw_point yp |
| | | INNER JOIN t_monitor m ON yp.serial_number = m.serial_number |
| | | LEFT JOIN t_yw_unit yu ON yu.id = yp.unit_id |
| | | LEFT JOIN sys_dept d ON yp.dept_id = d.dept_id |
| | | <where> |
| | | yp.examine_status = 1 |
| | | <if test="query.pointName != null and query.pointName != ''"> |
| | |
| | | serial_number, province_tag, important_tag, important_command_image_tag, dept_tag |
| | | </select> |
| | | |
| | | |
| | | <select id="selectToCount" resultType="com.ycl.platform.domain.vo.YwPointVO"> |
| | | select p.* from t_yw_point p |
| | | left join t_monitor m on p.serial_number = m.serial_number |
| | | <where> |
| | | p.examine_status = 1 and m.camera_fun_type like concat('%',#{examineCategory},'%') |
| | | <if test="examineTag == 0"> |
| | | and p.province_tag = 1 |
| | | </if> |
| | | <if test="examineTag == 2"> |
| | | and p.dept_tag = 1 |
| | | </if> |
| | | </where> |
| | | </select> |
| | | </mapper> |