From ba11b8586b1f3a6b072d787719083a792e1d1671 Mon Sep 17 00:00:00 2001 From: Administrator <15274802129@163.com> Date: Thu, 03 Jul 2025 16:04:03 +0800 Subject: [PATCH] feat(mall): 添加衣速达订单相关功能 --- src/main/resources/mapper/modules/ClothesOrderMapper.xml | 29 ++++++++++++++++++++++++++++- 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/modules/ClothesOrderMapper.xml b/src/main/resources/mapper/modules/ClothesOrderMapper.xml index 4edd12c..7e48374 100644 --- a/src/main/resources/mapper/modules/ClothesOrderMapper.xml +++ b/src/main/resources/mapper/modules/ClothesOrderMapper.xml @@ -2,6 +2,33 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="cc.mrbird.febs.mall.mapper.ClothesOrderMapper"> - + <select id="selectPageInOrder" resultType="cc.mrbird.febs.mall.vo.clothes.ApiClothesOrderListVo"> + select + a.id as id, + a.amount as amount, + a.real_amount as realAmount, + a.status as status, + b.name as typeName, + b.image as typeImage, + a.goods_cnt as goodsCnt + from clothes_order_graft a + left join clothes_type b on a.type_id = b.id + <where> + and a.member_id = #{record.memberId} + <if test="record != null"> + <if test="record.query != null and record.query != ''"> + and ( + b.name like CONCAT('%', CONCAT(#{record.query}, '%')) or + ) + </if> + <if test="record.status != null"> + and ( + a.status = #{record.status} + ) + </if> + </if> + </where> + order by a.CREATED_TIME desc + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1