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>