| | |
| | | LEFT JOIN t_yw_point p ON w.serial_number = p.serial_number AND p.deleted = 0 |
| | | WHERE w.deleted = 0 |
| | | <if test="dataScope == 1"> AND p.province_tag = 1 </if> |
| | | <if test="dataScope == 3"> AND p.important_tag = 1 </if> |
| | | <if test="dataScope == 3"> AND p.dept_tag = 1 </if> |
| | | <if test="deptId != null"> AND p.dept_id = #{deptId} </if> |
| | | </select> |
| | | |
| | |
| | | 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 = 1 </if> |
| | | <if test="dataScope == 3"> AND p.important_tag = 1 </if> |
| | | <if test="dataScope == 3"> AND p.dept_tag = 1 </if> |
| | | <!-- <if test="deptId != null"> AND p.dept_id = #{deptId} </if> --> |
| | | GROUP BY d.area, d.dept_id |
| | | ORDER BY d.dept_id |
| | | ORDER BY d.area_code |
| | | </select> |
| | | |
| | | <select id="hasErrorWorkOrderList" resultType="com.ycl.platform.domain.vo.DeviceInfoVO"> |