订单查询筛选店铺

This commit is contained in:
gong
2025-12-22 09:50:43 +08:00
parent 5ef81090ff
commit 94baf2e587
2 changed files with 3 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ public class UPpPackageController {
*/ */
@GetMapping("/order") @GetMapping("/order")
public CzgResult<Page<PpOrderListVO>> getMyOrderList(GbOrderQueryParam reqVo) { public CzgResult<Page<PpOrderListVO>> getMyOrderList(GbOrderQueryParam reqVo) {
return CzgResult.success(ppPackageOrderService.queryOrderList(null, StpKit.USER.getLoginIdAsLong(), reqVo)); return CzgResult.success(ppPackageOrderService.queryOrderList(reqVo.getShopId(), StpKit.USER.getLoginIdAsLong(), reqVo));
} }
/** /**

View File

@@ -17,10 +17,10 @@
left join tb_user_info u on o.user_id = u.id left join tb_user_info u on o.user_id = u.id
where 1=1 where 1=1
<if test="shopId != null"> <if test="shopId != null">
and o.shop_id = #{shopId} and o.status != 'ing' and o.shop_id = #{shopId}
</if> </if>
<if test="userId != null"> <if test="userId != null">
and o.user_id = #{userId} and o.user_id = #{userId} and o.status != 'ing'
</if> </if>
<if test="param.orderNo != null"> <if test="param.orderNo != null">
and o.order_no = #{param.orderNo} and o.order_no = #{param.orderNo}