返回值 排序
This commit is contained in:
@@ -72,13 +72,21 @@
|
||||
<if test="param.verifyStartTime != null and param.verifyEndTime != null ">
|
||||
and detail.verify_time BETWEEN #{param.verifyStartTime} and #{param.verifyEndTime}
|
||||
</if>
|
||||
order by detail.create_time desc
|
||||
order by
|
||||
<if test="param.status != null">
|
||||
<if test="param.status == '退款'">
|
||||
`status` desc,
|
||||
</if>
|
||||
</if>
|
||||
detail.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="getDetailByDetailId" resultType="com.czg.order.vo.GbOrderDetailVO">
|
||||
SELECT
|
||||
detail.* ,`order`.ware_json as wareJson,`order`.group_end_time as groupEndTime,`order`.group_people_num as groupPeopleNum,`order`.ware_group_price as wareGroupPrice,
|
||||
`order`.ware_original_price as wareOriginalPrice,`user`.nick_name as userName,`user`.phone as userPhone,shop.shop_name as shopName,shop.address as shopAddress
|
||||
detail.* ,`order`.ware_id as wareId,`order`.ware_json as wareJson,`order`.group_end_time as groupEndTime,
|
||||
`order`.group_people_num as groupPeopleNum,`order`.ware_group_price as wareGroupPrice,
|
||||
`order`.ware_original_price as wareOriginalPrice,`order`.status as wareGroupStatus,
|
||||
`user`.nick_name as userName,`user`.phone as userPhone,shop.shop_name as shopName,shop.address as shopAddress
|
||||
FROM
|
||||
`gb_order_detail` detail
|
||||
LEFT JOIN gb_order `order` on detail.group_order_no = `order`.group_order_no and `order`.shop_id = #{shopId}
|
||||
|
||||
Reference in New Issue
Block a user