From c6908e1d2efd4f3a1fcfdb1af7f1b78156d07d91 Mon Sep 17 00:00:00 2001 From: Cui Zhi Feng <7426394+wuxixiaocui@user.noreply.gitee.com> Date: 星期三, 23 十月 2024 09:15:58 +0800 Subject: [PATCH] 统计 待发货 在售商品 待审核商品 待售后处理 --- 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