ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
@@ -155,7 +155,7 @@ <select id="calculate" resultType="java.util.Map"> SELECT dept_name AS deptName, area AS deptName, ROUND(AVG(score)) AS score FROM t_check_score tcs ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml
@@ -113,7 +113,7 @@ <if test="civilCode != null and civilCode != ''">and civil_code = #{civilCode}</if> <if test="integratedDevice != null ">and integrated_device = #{integratedDevice}</if> <if test="cameraBrand != null ">and camera_brand = #{cameraBrand}</if> <if test="address != null and address != ''">and address like concat('%',#{address},'%')</if> <if test="address != null and address != ''">and d.dept_id = #{address}</if> <if test="netWorking != null ">and net_working = #{netWorking}</if> <if test="publicSecurity != null and publicSecurity != ''">and public_security = #{publicSecurity}</if> <if test="installedTime != null ">and installed_time = #{installedTime}</if> @@ -354,7 +354,7 @@ LEFT JOIN t_work_order w ON w.serial_number = p.serial_number WHERE u.id = #{unitId} AND MONTH(w.create_time) IS NOT NULL <if test="dateRange != null and dateRange.size > 0"> AND DATE_FORMAT(w.create_time, '%Y-%m') BETWEEN #{dateRange[0]} AND #{dateRange[1]} AND DATE_FORMAT(w.create_time, '%Y-%m') BETWEEN DATE_FORMAT(#{dateRange[0]}, '%Y-%m') AND DATE_FORMAT(#{dateRange[1]}, '%Y-%m') </if> GROUP BY months ORDER BY months ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
@@ -166,7 +166,7 @@ LEFT JOIN t_work_order w ON w.serial_number = p.serial_number AND w.deleted = 0 WHERE d.del_flag = 0 AND d.area IS NOT NULL <if test="dataScope == 1"> AND p.province_tag = 'province' </if> <if test="deptId != null"> AND p.dept_id = #{deptId} </if> <if test="deptId != null"> /*AND p.dept_id = #{deptId}*/ </if> GROUP BY d.area, d.dept_id ORDER BY d.dept_id </select>