From 2f234ca904d560e7c61da9d5645cb90f0161a46b Mon Sep 17 00:00:00 2001
From: liyj <1003249715@qq.com>
Date: Fri, 13 Sep 2024 22:41:03 +0800
Subject: [PATCH] 1、修复办理结果看不到协议文书问题

---
 dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseInfoMapper.xml |   39 ++++++++++++++++++++++++++++++++++++---
 1 files changed, 36 insertions(+), 3 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 c222a72..1b530d0 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>
     <!-- 条件 -->
@@ -514,6 +531,21 @@
         </if>
     </sql>
     <!-- 更新对象 -->
+    <update id="updateCaseInfoList">
+        update
+        <include refid="table-name"/>
+        <set>
+            <include refid="set-part"/>
+        </set>
+        <where>
+            id IN
+            <foreach item="id" collection="caseIdList" open="(" separator="," close=")">
+                #{id}
+            </foreach>
+        </where>
+    </update>
+
+    <!-- 批量更新对象 -->
     <update id="updateCaseInfo">
         update
         <include refid="table-name"/>
@@ -524,6 +556,7 @@
             id = #{entity.id}
         </where>
     </update>
+
     <!-- 条件更新对象 -->
     <update id="updateCaseInfoTerms">
         update
@@ -579,7 +612,7 @@
         select
         COUNT(1)
         from
-        dyh_case_info a LEFT JOIN dyh_case_info_unfold b on a.id = b.case_id
+        dyh_case_info a LEFT JOIN dyh_case_info_unfold b on a.id = b.id
         <include refid="where-part-all"/>
     </select>
     <!--  根据条件分页查询  -->
@@ -587,7 +620,7 @@
         SELECT
         <include refid="column-part-all"/>
         FROM
-        dyh_case_info a LEFT JOIN dyh_case_info_unfold b on a.id = b.case_id
+        dyh_case_info a LEFT JOIN dyh_case_info_unfold b on a.id = b.id
         <include refid="where-part-all"/>
         <if test="page.sort != null">
             <foreach collection="page.sort" item="s" index="index" separator="," open="order by ">

--
Gitblit v1.8.0