From 4545af9041b432cbe79214d52be599e4ce8659aa Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期四, 14 八月 2025 15:55:39 +0800 Subject: [PATCH] 二保结构树代码 维修工单添加 领取按钮 领取后 生成维修开始时间 提交后 生成维修结束时间 计算 维修时长 故障时长 添加导出 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamThirdMaintenanceOrderDetailMapper.xml | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamThirdMaintenanceOrderDetailMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamThirdMaintenanceOrderDetailMapper.xml index c47774d..e2eee36 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamThirdMaintenanceOrderDetailMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamThirdMaintenanceOrderDetailMapper.xml @@ -2,4 +2,25 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="org.jeecg.modules.eam.mapper.EamThirdMaintenanceOrderDetailMapper"> + <select id="selectCreatByAndTimeByOrderId" resultType="org.jeecg.modules.eam.vo.EamThirdMaintenanceBaseVo"> + SELECT DISTINCT + CASE + + WHEN + update_by IS NOT NULL + AND update_time IS NOT NULL THEN + update_by ELSE create_by + END AS operate_by, + CASE + + WHEN update_by IS NOT NULL + AND update_time IS NOT NULL THEN + FORMAT ( update_time, 'yyyy骞碝M鏈坉d鏃�' ) ELSE FORMAT ( create_time, 'yyyy骞碝M鏈坉d鏃�' ) + END AS operate_time + FROM + eam_third_maintenance_order_detail + WHERE + order_id = #{id} + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.3