From 79b466a6b77ed62f2275f97c5812a26da27ca489 Mon Sep 17 00:00:00 2001
From: Administrator <ard@qq.com>
Date: 星期二, 01 八月 2023 13:45:01 +0800
Subject: [PATCH] 优化app历史任务列表

---
 ard-work/src/main/resources/mapper/app/ArdAppTaskMapper.xml |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/ard-work/src/main/resources/mapper/app/ArdAppTaskMapper.xml b/ard-work/src/main/resources/mapper/app/ArdAppTaskMapper.xml
index 8d800fb..106e9c4 100644
--- a/ard-work/src/main/resources/mapper/app/ArdAppTaskMapper.xml
+++ b/ard-work/src/main/resources/mapper/app/ArdAppTaskMapper.xml
@@ -61,9 +61,7 @@
                c.create_by,
                c.create_time,
                c.update_by,
-               c.update_time,
-               c.view_time,
-               c.view_position
+               c.update_time
         from ard_app_task c
                  left join sys_dept d on d.dept_id = c.dept_id
                  left join sys_user u on u.user_id = c.user_id
@@ -104,18 +102,16 @@
     <select id="selectArdAppTaskList" parameterType="ArdAppTask" resultMap="ArdAppTaskResult">
         <include refid="selectArdAppTaskVo"/>
         <where>
-            <if test="name != null  and name != ''">and name like '%'||#{name}||'%'</if>
-            <if test="text != null  and text != ''">and text = #{text}</if>
-            <if test="voice != null  and voice != ''">and voice = #{voice}</if>
+            <if test="name != null  and name != ''">and c.name like '%'||#{name}||'%'</if>
+            <if test="text != null  and text != ''">and c.text = #{text}</if>
+            <if test="voice != null  and voice != ''">and c.voice = #{voice}</if>
             <if test="params.beginTime != null and params.beginTime != ''"><!-- 寮�濮嬫椂闂存绱� -->
-                and create_time &gt;= to_timestamp(#{params.beginTime},'yyyy-MM-DD HH24:MI:ss')
+                and c.create_time &gt;= to_timestamp(#{params.beginTime},'yyyy-MM-DD HH24:MI:ss')
             </if>
             <if test="params.endTime != null and params.endTime != ''"><!-- 缁撴潫鏃堕棿妫�绱� -->
-                and create_time &lt;= to_timestamp(#{params.endTime},'yyyy-MM-DD HH24:MI:ss')
+                and c.create_time &lt;= to_timestamp(#{params.endTime},'yyyy-MM-DD HH24:MI:ss')
             </if>
-            <if test="userId != null  and userId != ''">and user_id = #{userId}</if>
-            <!-- 鏁版嵁鑼冨洿杩囨护 -->
-            ${params.dataScope}
+            <if test="userId != null  and userId != ''">and c.user_id = #{userId}</if>
         </where>
     </select>
 

--
Gitblit v1.9.3