From a9564eae9f0169ca39329b2f14a8f13d13358a0a Mon Sep 17 00:00:00 2001 From: nickchange <126672920+nickchange@users.noreply.github.com> Date: 星期五, 17 十一月 2023 15:28:44 +0800 Subject: [PATCH] 11.7 --- cloud-server-competition/src/main/resources/mapper/CompetitionMapper.xml | 6 ++++++ 1 files changed, 6 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 ff7613c..0ec4bbc 100644 --- a/cloud-server-competition/src/main/resources/mapper/CompetitionMapper.xml +++ b/cloud-server-competition/src/main/resources/mapper/CompetitionMapper.xml @@ -2,6 +2,12 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.dsh.competition.mapper.CompetitionMapper"> + <delete id="deleteTenMinutes"> + delete from t_payment_competition + WHERE payStatus = 1 + AND DATE_ADD(insertTime, INTERVAL 10 MINUTE) <= NOW() + </delete> + <select id="queryCompetitionList" resultType="com.dsh.competition.model.CompetitionListVo"> select -- Gitblit v1.7.1