Commit 212b17f5 authored by Smile's avatar Smile
parents 2651fee0 b03ec1ee
......@@ -143,6 +143,26 @@ public class OrderAirController {
return success(pageResult);
}
@GetMapping("/data/scope/can/shipment/count")
@ApiOperation("数据权限范围可出订单列表数量统计")
public CommonResult<Long> dataScopeCanShipmentCount() {
OrderQueryVO query = new OrderQueryVO();
LoginUser loginUser = SecurityFrameworkUtils.getLoginUser();
if (Objects.isNull(loginUser)){
return error(ErrorCodeConstants.USER_NOT_EXISTS);
}
List<RoleRespDTO> roleRespDTOS = roleApi.getRoles(loginUser.getRoleIds());
if (Objects.isNull(roleRespDTOS)){
return error(ROLE_NOT_EXISTS);
}
addDataScopeQuery(query, loginUser, roleRespDTOS);
query.setUserType(UserTypeEnum.ADMIN.getValue());
query.setAirShipment(12); // 可出
long count = orderQueryService.orderCount(query);
return success(count);
}
@GetMapping("/ready-stock-processing/shipment/page")
@ApiOperation("备货中订单列表")
public CommonResult<PageResult<OrderBackPageVO>> readyStockProcessingShipmentPage(OrderQueryVO query, PageVO page) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment