From aa43a92c7ec9053dbaef92fe5ccb3011b670442c Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期三, 12 七月 2023 11:46:21 +0800
Subject: [PATCH] 更新线上视频奖励模块接口

---
 cloud-server-competition/src/main/resources/mapper/CompetitionMapper.xml |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/cloud-server-competition/src/main/resources/mapper/CompetitionMapper.xml b/cloud-server-competition/src/main/resources/mapper/CompetitionMapper.xml
index df40070..dad9994 100644
--- a/cloud-server-competition/src/main/resources/mapper/CompetitionMapper.xml
+++ b/cloud-server-competition/src/main/resources/mapper/CompetitionMapper.xml
@@ -35,4 +35,14 @@
             order by aa.heat desc
         </if>
     </select>
+
+
+    <update id="taskSetStatusStart">
+        update t_competition set status = 2 where status = 1 and state = 1 and auditStatus = 2 and now() between startTime and endTime
+    </update>
+
+
+    <update id="taskSetStatusEnd">
+        update t_competition set status = 3 where status = 2 and state = 1 and auditStatus = 2 and now() >= endTime
+    </update>
 </mapper>

--
Gitblit v1.7.1