From fa05b2893a53555ad7d1af24f7b5f52c6958cd25 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 24 Jun 2021 17:12:23 +0800 Subject: [PATCH] 20210624 商品分类 --- gc-shop/src/main/resources/mapper/shop/ScoreOrderMapper.xml | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/gc-shop/src/main/resources/mapper/shop/ScoreOrderMapper.xml b/gc-shop/src/main/resources/mapper/shop/ScoreOrderMapper.xml index 5b9675b..6d45814 100644 --- a/gc-shop/src/main/resources/mapper/shop/ScoreOrderMapper.xml +++ b/gc-shop/src/main/resources/mapper/shop/ScoreOrderMapper.xml @@ -11,6 +11,16 @@ <if test="orderNo != null and orderNo != ''"> and a.order_no like concat('%',#{orderNo},'%') </if> + <if test="status != null and status != ''"> + and a.status = #{status} + </if> + <if test="createdTimeStart != null"> + and a.CREATED_TIME >= #{createdTimeStart} + </if> + + <if test="createdTimeEnd != null"> + and a.CREATED_TIME >= #{createdTimeEnd} + </if> order by a.CREATED_TIME desc </select> -- Gitblit v1.9.1