From 56e8ccde7c982bc2a5b9746edb2e596c895f63e6 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期三, 13 十二月 2023 15:20:07 +0800 Subject: [PATCH] 利用率页面添加平均值和合计值 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PrecisionInspectionMapper.xml | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PrecisionInspectionMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PrecisionInspectionMapper.xml index 05f68b5..9d5059c 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PrecisionInspectionMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PrecisionInspectionMapper.xml @@ -2,4 +2,37 @@ <!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.PrecisionInspectionMapper"> + <select id="getPrecisionInspectionList" parameterType="Map" resultType="Map"> + SELECT + t1.id, + t1.maintenance_order_id AS maintenanceOrderId, + t2.depart_name AS maintenanceUnitName, + t3.realname AS precisionInspectionUserName, + t4.realname AS repairDirectorUserName, + t5.realname AS equipmentInspectorUserName, + t6.realname AS useUnitDirectorUserName, + t7.realname AS equipmentInspectorSignUserName, + t1.spare_part as sparePart, + ISNULL(t1.each_tolerance,'0') AS eachTolerance, + ISNULL(t1.part_tolerance,'0') AS partTolerance, + ISNULL(t1.process_pass,'0') AS processPass, + ISNULL(t1.meet_process_require,'0') AS meetProcessRequire, + ISNULL(t1.judgment_result,'qualified') AS judgmentResult, + t1.remark, + t8.name AS equipmentName, + t8.model AS equipmentModel, + t8.num AS equipmentNum, + t9.depart_name AS useUnitName + FROM + mom_eam_precision_inspection t1 + LEFT JOIN sys_depart t2 ON t1.maintenance_unit = t2.id + LEFT JOIN sys_user t3 ON t1.precision_inspection_user = t3.id + LEFT JOIN sys_user t4 ON t1.repair_director_user = t4.id + LEFT JOIN sys_user t5 ON t1.equipment_inspector_user = t5.id + LEFT JOIN sys_user t6 ON t1.use_unit_director_user = t6.id + LEFT JOIN sys_user t7 ON t1.equipment_inspector_sign_user = t7.id + LEFT JOIN mom_eam_equipment t8 ON t1.equipment_id = t8.id + LEFT JOIN sys_depart t9 ON t1.use_unit = t9.id + where t1.del_flag = '0' and t1.maintenance_order_id = #{maintenanceOrderId} + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3