From a106ddc2b1b25c8891cb0a15a775bd39b5bda2ff Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期五, 26 七月 2024 11:22:59 +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