From 2ba0e4c222d707b163d97afb122d3183c99dbf7a Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期一, 02 十二月 2024 09:31:19 +0800 Subject: [PATCH] Merge branch 'master-v4' of http://47.96.225.205:8888/r/flowerbackend-v2 into master-v5 --- src/main/resources/mapper/point/PointGoodMapper.xml | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/point/PointGoodMapper.xml b/src/main/resources/mapper/point/PointGoodMapper.xml index 866bb09..3a8ee5c 100644 --- a/src/main/resources/mapper/point/PointGoodMapper.xml +++ b/src/main/resources/mapper/point/PointGoodMapper.xml @@ -1,6 +1,13 @@ <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > <mapper namespace="com.mzl.flower.mapper.point.PointGoodsRecordMapper"> + <update id="updateExpiredPointGoodsRecord"> + update t_point_goods_record p set p.`status`='E' where p.deleted = 0 and p.`status` = 'A' and + <![CDATA[ + p.expire_time < NOW() + ]]> + + </update> <select id="selectMyExchangeGoods" resultType="com.mzl.flower.dto.response.point.PointGoodsRecordDTO"> SELECT -- Gitblit v1.9.3