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/EquipmentMaintenancePlanMapper.xml | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentMaintenancePlanMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentMaintenancePlanMapper.xml index a3d86a5..61b1f95 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentMaintenancePlanMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentMaintenancePlanMapper.xml @@ -1,5 +1,16 @@ <?xml version="1.0" encoding="UTF-8"?> <!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.EquipmentMaintenancePlanMapper"> + <select id="getCycle" resultType="org.jeecg.modules.eam.entity.MaintenanceStandardDetail"> + select + t1.id id, + t1.maintenance_project_id maintenanceProjectId, + t2.id maintenanceCycleId + from mom_eam_maintenance_standard_detail t1 + left join mom_eam_maintenance_cycle t2 on t2.id = t1.maintenance_cycle_id + where t1.maintenance_standard_id = #{mainId} + and t2.maintenance_type = #{type} + and t1.del_flag = 0 + </select> </mapper> -- Gitblit v1.9.3