mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 01:59:20 +08:00
feat(order): 订单管理搜索表单添加商品选择器,支持按商品名称搜索并按商品ID过滤
This commit is contained in:
+6
@@ -69,4 +69,10 @@ public class OrderFilterDTO {
|
||||
*/
|
||||
@Schema(description = "确认", example = "1")
|
||||
private Integer confirm;
|
||||
|
||||
/**
|
||||
* 商品ID
|
||||
*/
|
||||
@Schema(description = "商品ID", example = "1")
|
||||
private Long productId;
|
||||
}
|
||||
|
||||
+3
@@ -312,6 +312,9 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, OrderPO> implemen
|
||||
if (filter.getConfirm() != null) {
|
||||
wrapper.eq(OrderPO::getConfirm, filter.getConfirm());
|
||||
}
|
||||
if (filter.getProductId() != null) {
|
||||
wrapper.eq(OrderPO::getProductId, filter.getProductId());
|
||||
}
|
||||
}
|
||||
|
||||
// 排序(支持多字段自定义排序,默认按下单时间降序 + 创建时间降序)
|
||||
|
||||
Reference in New Issue
Block a user