From e279e456850734349842edd8ce52dc16fc5cdea7 Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期四, 27 七月 2023 09:58:01 +0800
Subject: [PATCH] 增加webrt流媒体随程序启动 修复用户添加报错的bug

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

diff --git a/ard-work/src/main/resources/mapper/app/ArdAppTaskMapper.xml b/ard-work/src/main/resources/mapper/app/ArdAppTaskMapper.xml
index b5ea1d1..820511b 100644
--- a/ard-work/src/main/resources/mapper/app/ArdAppTaskMapper.xml
+++ b/ard-work/src/main/resources/mapper/app/ArdAppTaskMapper.xml
@@ -149,11 +149,11 @@
         left join ard_app_task_pic b on b.task_id = a.id
         left join ard_app_task_detail c on c.task_id = a.id
         <where>
+            <if test="id != null and id != ''">
+                and a.id = #{id}
+            </if>
             <if test="userId != null and userId != ''">
                 and c.user_id = #{userId}
-            </if>
-            <if test="id != null and id != ''">
-                and c.id = #{id}
             </if>
             <if test="params.beginTime != null and params.beginTime != ''"><!-- 寮�濮嬫椂闂存绱� -->
                 and a.create_time &gt;= to_timestamp(#{params.beginTime},'yyyy-MM-DD HH24:MI:ss')

--
Gitblit v1.9.3