From 572466e8ebaa67f1809a97ecf912d30e8802fd98 Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期一, 28 四月 2025 14:18:39 +0800
Subject: [PATCH] update
---
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcPlanCloseMapper.xml | 43 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcPlanCloseMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcPlanCloseMapper.xml
index c1bbadc..af2f3af 100644
--- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcPlanCloseMapper.xml
+++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcPlanCloseMapper.xml
@@ -2,4 +2,47 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.mdc.mapper.MdcPlanCloseMapper">
+ <select id="pageList" resultType="org.jeecg.modules.mdc.entity.MdcPlanClose">
+ SELECT
+ *
+ FROM
+ mdc_plan_close
+ <where>
+ <if test="mdcPlanClose.equipmentId != null and mdcPlanClose.equipmentId != ''">
+ AND equipment_id = #{ mdcPlanClose.equipmentId }
+ </if>
+ <if test="mdcPlanClose.planCloseType != null and mdcPlanClose.planCloseType != ''">
+ AND plan_close_type = #{ mdcPlanClose.planCloseType }
+ </if>
+ <if test="mdcPlanClose.theDate != null and mdcPlanClose.theDate != ''">
+ AND the_date LIKE CONCAT('%',#{ mdcPlanClose.theDate },'%')
+ </if>
+ <if test="mdcPlanClose.startTime != null and mdcPlanClose.startTime != ''">
+ AND the_date >= #{ mdcPlanClose.startTime }
+ </if>
+ <if test="mdcPlanClose.endTime != null and mdcPlanClose.endTime != ''">
+ AND the_date <= #{mdcPlanClose.endTime }
+ </if>
+ <if test="mdcPlanClose.equipmentIdList != null and mdcPlanClose.equipmentIdList.size() > 0 ">
+ AND equipment_id IN
+ <foreach collection="mdcPlanClose.equipmentIdList" item="id" index="index" open="(" close=")" separator=",">
+ #{ id }
+ </foreach>
+ </if>
+ AND close_type = #{ mdcPlanClose.closeType }
+ </where>
+ ORDER BY the_date DESC, equipment_id ASC
+ </select>
+
+ <!--璁$畻 璁″垝/闈炶鍒掑仠鏈哄綋澶╂�绘椂闀�-->
+ <select id="findPlanTimeDuration" resultType="java.lang.Integer">
+ SELECT
+ sum(plan_close_time_long)
+ FROM
+ mdc_plan_close
+ WHERE
+ equipment_id = #{equipmentId}
+ AND the_date = #{validDate}
+ AND close_type = #{closeType}
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3