| | |
| | | p.yw_person_name |
| | | ORDER BY wo.work_order_no DESC |
| | | </select> |
| | | |
| | | <!-- TODO --> |
| | | <select id="distributePage" resultType="com.ycl.platform.domain.vo.WorkOrderVO"> |
| | | SELECT |
| | | wo.id,wo.status, wo.work_order_no,wo.create_time, wo.unit_id, wo.yw_people_id, wo.yw_handle_time, wo.yw_result, |
| | |
| | | ORDER BY wo.create_time DESC |
| | | </select> |
| | | |
| | | <!-- TODO --> |
| | | <select id="handlingWorkOrderList" resultType="com.ycl.platform.domain.vo.YwPointJobVO"> |
| | | SELECT |
| | | wo.id, |
| | |
| | | FROM t_work_order w |
| | | 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 == 1"> AND (p.province_tag_video = 1 or p.province_tag_car = 1 or p.province_tag_face = 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_yw_point p ON p.dept_id = d.dept_id AND p.deleted = 0 |
| | | 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 == 1"> AND (p.province_tag_video = 1 or p.province_tag_car = 1 or p.province_tag_face = 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 |