From 597f5b5960b81d1ffba8ce2d3d1415e5bccc1919 Mon Sep 17 00:00:00 2001
From: xusd <hugeinfo123>
Date: Tue, 10 Sep 2024 14:15:32 +0800
Subject: [PATCH] 配置文件修正

---
 dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseInfoMapper.xml |   27 ++++++++++++++++++++++-----
 1 files changed, 22 insertions(+), 5 deletions(-)

diff --git a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseInfoMapper.xml b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseInfoMapper.xml
index c168b50..7862efc 100644
--- a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseInfoMapper.xml
+++ b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseInfoMapper.xml
@@ -70,7 +70,7 @@
             <result property="statusName" column="status_name"/>
             <result property="process" column="process"/>
             <result property="processName" column="process_name"/>
-            <result property="infoProcess" column="infoProcess"/>
+            <result property="infoProcess" column="info_process"/>
             <result property="infoProcessName" column="info_process_name"/>
             <result property="wantUnitId" column="want_unit_id"/>
             <result property="wantUnitName" column="want_unit_name"/>
@@ -274,6 +274,23 @@
             <if test="terms.inputUnitName != null and terms.inputUnitName !=''">
                 and a.input_unit_name = #{terms.inputUnitName}
             </if>
+            <if test="terms.visitTimeStart != null and terms.visitTimeStart !='' and terms.visitTimeEnd != null and terms.visitTimeEnd !=''">
+                and (DATE_FORMAT(a.visit_time,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{terms.visitTimeStart}
+                and DATE_FORMAT(a.visit_time,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{terms.visitTimeEnd})
+            </if>
+            <if test="terms.createStart != null and terms.createStart !='' and terms.createEnd != null and terms.createEnd !=''">
+                and (DATE_FORMAT(a.create_time,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{terms.createStart}
+                and DATE_FORMAT(a.create_time,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{terms.createEnd})
+            </if>
+            <if test="terms.closeStart != null and terms.closeStart !='' and terms.closeEnd != null and terms.closeEnd !=''">
+                and (DATE_FORMAT(b.close_time,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{terms.closeStart}
+                and DATE_FORMAT(b.close_time,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{terms.closeEnd})
+            </if>
+            <if test="terms.fileStart != null and terms.fileStart !='' and terms.fileEnd != null and terms.fileEnd !=''">
+                and (DATE_FORMAT(b.file_time,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{terms.fileStart}
+                and DATE_FORMAT(b.file_time,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{terms.fileEnd})
+            </if>
+
         </if>
     </sql>
     <!-- 条件 -->
@@ -282,8 +299,8 @@
             <where>
                 <if test="terms.ids != null and terms.ids.size > 0">
                     and id in
-                    <foreach collection="terms.id" item="terms.ids" index="index" open="(" separator="," close=")">
-                        #{terms.id}
+                    <foreach collection="terms.ids" item="id" index="index" open="(" separator="," close=")">
+                        #{id}
                     </foreach>
                 </if>
                 <if test="terms.id != null and terms.id !=''">
@@ -459,8 +476,8 @@
                 </if>
                 <if test="terms.processList != null and terms.processList.size > 0">
                     and process in
-                    <foreach collection="terms.process" item="terms.processList" index="index" open="(" separator="," close=")">
-                        #{terms.process}
+                    <foreach collection="terms.processList" item="process" index="index" open="(" separator="," close=")">
+                        #{process}
                     </foreach>
                 </if>
                 <if test="terms.process != null and terms.process !=''">

--
Gitblit v1.8.0