From 280c1bf9b93fb57b65d2c3f88cc4924aa9d780b4 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 02 Jul 2021 10:39:56 +0800 Subject: [PATCH] Merge branch 'score-shop' of http://120.27.238.55:7000/r/xzx into score-shop --- gc-order/src/main/resources/mapper/order/JhyOrderMapper.xml | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gc-order/src/main/resources/mapper/order/JhyOrderMapper.xml b/gc-order/src/main/resources/mapper/order/JhyOrderMapper.xml index d549c8b..7e52764 100644 --- a/gc-order/src/main/resources/mapper/order/JhyOrderMapper.xml +++ b/gc-order/src/main/resources/mapper/order/JhyOrderMapper.xml @@ -13,6 +13,7 @@ ,a.weight ,a.status ,a.remark + ,date_format(a.receiving_time, '%Y-%m-%d %H:%i') receivingTime ,CONCAT(a.reserve_date, ' ', a.reserve_time) reserveTime ,GROUP_CONCAT(b.title) items ,c.username jhyName @@ -22,11 +23,11 @@ left join xzx_jhy_info c on a.jhy_id=c.user_id <where> <if test="record.type == 1"> - and user_id=#{record.userId} + and a.user_id=#{record.userId} </if> <if test="record.type == 2"> <if test="record.status != 1"> - and jhy_id=#{record.userId} + and a.jhy_id=#{record.userId} </if> </if> <if test="record.status != null and record.status != ''"> @@ -34,5 +35,6 @@ </if> </where> group by a.id + order by a.receiving_time desc, a.id desc </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1