|
|
|
@ -67,10 +67,11 @@ public class RecycleOrderController {
|
|
|
|
|
@ApiOperation("分页查询回收订单")
|
|
|
|
|
@PostMapping("/page")
|
|
|
|
|
public CommonResult<PageDTO<? extends RecycleOrderRespVO>> queryOrderByPage(@RequestBody RecycleOrderQuery recycleOrderQuery) {
|
|
|
|
|
if (ObjectUtil.isEmpty(recycleOrderQuery.getOrderType())) {
|
|
|
|
|
// throw new BizIllegalException("请确定要查询的订单类型");
|
|
|
|
|
recycleOrderQuery.setOrderType(OrderTypeEnum.SH_ORDER);
|
|
|
|
|
}
|
|
|
|
|
// if (ObjectUtil.isEmpty(recycleOrderQuery.getOrderType())) {
|
|
|
|
|
//// throw new BizIllegalException("请确定要查询的订单类型");
|
|
|
|
|
// recycleOrderQuery.setOrderType(OrderTypeEnum.SH_ORDER);
|
|
|
|
|
// }
|
|
|
|
|
recycleOrderQuery.setOrderType(OrderTypeEnum.SH_ORDER); // 先定死 todo
|
|
|
|
|
// 1.解析用户上下文
|
|
|
|
|
UserDTO userDTO = UserContext.getUser();
|
|
|
|
|
recycleOrderQuery.setUserType(userDTO.getUserType()).setUserId(userDTO.getId()).setStationId(userDTO.getStationId());
|
|
|
|
|