From 0b061b77fe806959c70a27dd99b0a3b35928ec62 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期一, 29 七月 2024 10:20:09 +0800 Subject: [PATCH] feign完善,异常解码器 --- ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml | 52 +++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 37 insertions(+), 15 deletions(-) diff --git a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml index 5b6c6f0..1fe79c6 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml @@ -13,6 +13,7 @@ <result column="yw_result" property="ywResult"/> <result column="yw_condition" property="ywCondition"/> <result column="yw_check_result" property="ywCheckResult"/> + <result column="overtime" property="overtime"/> </resultMap> <select id="page" resultType="com.ycl.platform.domain.vo.WorkOrderVO"> @@ -22,10 +23,10 @@ p.yw_person_name 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' + 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' + wo.deleted = 0 <if test="query.workOrderNo != null and query.workOrderNo != ''"> AND wo.work_order_no = #{query.workOrderNo} </if> @@ -43,20 +44,41 @@ <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' - and wo.status = 'WAIT_DISTRIBUTE' - <if test="query.unitId != null"> - AND wo.unit_id = #{query.unitId} - </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> + <select id="handlingWorkOrderList" resultType="com.ycl.platform.domain.vo.YwPointJobVO"> + SELECT + wo.id, + wod.create_time, + yp.point_tag + FROM + t_work_order wo + INNER JOIN t_yw_point yp ON yp.id = wo.point_id AND yp.deleted = 0 + INNER JOIN t_work_order_distribute_record wod ON wod.work_order_id = wo.id + WHERE + wo.status = 'DISTRIBUTED' AND wo.deleted = 0 + </select> + </mapper> -- Gitblit v1.8.0