From 1c8cec3f1f0a36ac709d972b65c7d30e44ebe26a Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 31 七月 2024 11:54:36 +0800 Subject: [PATCH] 数据中心,视频中的指标字段 --- ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml | 34 ++++++++++++++++++++-------------- 1 files changed, 20 insertions(+), 14 deletions(-) diff --git a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml index 1b76a6b..1fe79c6 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml @@ -44,21 +44,27 @@ <select id="distributePage" resultType="com.ycl.platform.domain.vo.WorkOrderVO"> SELECT - wo.*, - u.unit_name, - p.yw_person_name + wo.*, + u.unit_name, + p.yw_person_name, + yp.point_tag, + odr.create_time as distributeTime, + su.nick_name as realName FROM - t_work_order wo - LEFT JOIN t_yw_unit u ON wo.unit_id = u.id and u.deleted = 0 - LEFT JOIN t_yw_people p ON wo.yw_people_id = p.id and p.deleted = 0 - where - wo.deleted = 0 - <if test="query.unitId != null"> - AND wo.unit_id = #{query.unitId} - </if> - <if test="query.status != null and query.status != ''"> - AND wo.status = #{query.status} - </if> + t_work_order wo + LEFT JOIN t_yw_unit u ON wo.unit_id = u.id and u.deleted = 0 + LEFT JOIN t_yw_people p ON wo.yw_people_id = p.id and p.deleted = 0 + INNER JOIN t_yw_point yp ON yp.id = wo.point_id AND yp.deleted = 0 + LEFT JOIN t_work_order_distribute_record odr ON odr.work_order_id = wo.id AND odr.deleted = 0 + LEFT JOIN sys_user su ON su.user_id = odr.user_id + WHERE + wo.deleted = 0 + <if test="query.unitId != null"> + AND wo.unit_id = #{query.unitId} + </if> + <if test="query.status != null and query.status != ''"> + AND wo.status = #{query.status} + </if> ORDER BY wo.create_time DESC </select> -- Gitblit v1.8.0