From d2cc01f393336a31ce382488cc1fd2b1d7d9be50 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 17 九月 2024 16:26:33 +0800 Subject: [PATCH] 工单详情页优化 --- ycl-server/src/main/resources/mapper/zgyw/WorkOrderYwConditionRecordMapper.xml | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderYwConditionRecordMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderYwConditionRecordMapper.xml index 43dce5d..b484ef5 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderYwConditionRecordMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderYwConditionRecordMapper.xml @@ -7,16 +7,17 @@ <result column="id" property="id"/> <result column="create_time" property="createTime"/> <result column="yw_condition" property="ywCondition"/> - <result column="commit_user" property="commitUser"/> - <result column="nick_name" property="commitUserName"/> + <result column="unitId" property="unitId"/> + <result column="unit_name" property="unitName"/> <result column="sys_msg" property="sysMsg"/> <result column="yw_proofMaterials" property="ywProofMaterials"/> </resultMap> <select id="selectYwConditionByYwId" resultMap="BaseResultMap"> - SELECT yw.id, yw.commit_user, yw.yw_condition, yw.yw_proofMaterials, yw.create_time, yw.sys_msg, su.nick_name + SELECT yw.id, yu.id as unit_id, yu.unit_name, yw.yw_proofMaterials, yw.create_time, yw.sys_msg, su.nick_name FROM t_work_order_yw_condition_record yw - INNER JOIN sys_user su ON yw.commit_user = su.user_id AND yw.deleted = 0 AND yw.work_order_no = #{workOrderNo} + LEFT JOIN sys_user su ON yw.commit_user = su.user_id AND yw.deleted = 0 AND yw.work_order_no = #{workOrderNo} + LEFT JOIN t_yw_unit yu ON su.unit_id = yu.id ORDER BY yw.create_time DESC </select> -- Gitblit v1.8.0