|
|
|
@ -425,8 +425,11 @@ public class BsOrderServiceImpl implements BsOrderService { |
|
|
|
|
BsOrderExample example = new BsOrderExample(); |
|
|
|
|
BsOrderExample.Criteria criteria = example.createCriteria(); |
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(MapUtils.getString(param, "order"))) { |
|
|
|
|
criteria.andOrderNoLike("%"+MapUtils.getString(param, "order")+"%"); |
|
|
|
|
if (MapUtils.getLong(param, "userId") != null) { |
|
|
|
|
criteria.andUserIdEqualTo(MapUtils.getLong(param, "userId")); |
|
|
|
|
} |
|
|
|
|
if (StringUtils.isNotBlank(MapUtils.getString(param, "orderNo"))) { |
|
|
|
|
criteria.andOrderNoLike("%"+MapUtils.getString(param, "orderNo")+"%"); |
|
|
|
|
} |
|
|
|
|
if (StringUtils.isNotBlank(MapUtils.getString(param, "userPhone"))) { |
|
|
|
|
criteria.andUserPhoneLike("%"+MapUtils.getString(param, "userPhone")+"%"); |
|
|
|
@ -469,21 +472,4 @@ public class BsOrderServiceImpl implements BsOrderService { |
|
|
|
|
return orderMapper.selectByExample(example); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<OrderModel> getUserOrderList(Map<String, Object> param) { |
|
|
|
|
BsOrderExample example = new BsOrderExample(); |
|
|
|
|
BsOrderExample.Criteria criteria = example.createCriteria(); |
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(MapUtils.getString(param, "order"))) { |
|
|
|
|
criteria.andOrderNoLike("%"+MapUtils.getString(param, "order")+"%"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
example.setOrderByClause("create_time desc"); |
|
|
|
|
List<OrderModel> orderModelList = new ArrayList<>(); |
|
|
|
|
List<BsOrder> orderList = orderMapper.selectByExample(example); |
|
|
|
|
for (BsOrder order : orderList) { |
|
|
|
|
orderModelList.add(getDetail(order.getOrderNo())); |
|
|
|
|
} |
|
|
|
|
return orderModelList; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|