| | |
| | | private Date paymentTime; |
| | | |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "下单开始时间") |
| | | private Date startDate; |
| | | |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "下单结束时间") |
| | | private Date endDate; |
| | | |
| | |
| | | @ApiModelProperty(value = "订单促销类型") |
| | | private String orderPromotionType; |
| | | |
| | | private String couponFlag; |
| | | |
| | | private String storeSelectId; |
| | | |
| | | public <T> QueryWrapper<T> queryWrapper() { |
| | | AuthUser currentUser = UserContext.getCurrentUser(); |
| | | QueryWrapper<T> wrapper = new QueryWrapper<>(); |
| | |
| | | if (CharSequenceUtil.isNotEmpty(keywords)) { |
| | | wrapper.and(keyWrapper -> keyWrapper.like("o.sn", keywords).or().like("oi.goods_name", keywords)); |
| | | } |
| | | //更具角色查询的 |
| | | if (currentUser != null) { |
| | | //按卖家查询 |
| | | wrapper.eq(CharSequenceUtil.equals(currentUser.getRole().name(), UserEnums.STORE.name()), "o.store_id", currentUser.getStoreId()); |
| | |
| | | wrapper.eq(CharSequenceUtil.equals(currentUser.getRole().name(), UserEnums.MEMBER.name()) && memberId == null, "o.member_id", currentUser.getId()); |
| | | |
| | | } |
| | | //按下拉框选择查询 |
| | | wrapper.eq(CharSequenceUtil.isNotEmpty(storeSelectId), "o.store_id", storeSelectId); |
| | | |
| | | //按照买家查询 |
| | | wrapper.like(CharSequenceUtil.isNotEmpty(memberId), "o.member_id", memberId); |
| | | |
| | |
| | | //按评价状态 |
| | | wrapper.eq(CharSequenceUtil.isNotEmpty(commentStatus), "oi.comment_status", commentStatus); |
| | | |
| | | wrapper.eq(CharSequenceUtil.isNotEmpty(couponFlag),"o.coupon_flag", couponFlag); |
| | | |
| | | //按标签查询 |
| | | if (CharSequenceUtil.isNotEmpty(tag)) { |
| | | String orderStatusColumn = "o.order_status"; |