...
|
...
|
@@ -20,34 +20,34 @@ public class StorageDepositController { |
|
|
|
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(StorageDepositController.class);
|
|
|
|
|
|
@Autowired
|
|
|
private IStorageDepositService storageDepositService;
|
|
|
|
|
|
@RequestMapping(value = "/getCountByStatus")
|
|
|
public ApiResponse getCountByStatus(StorageDepositReq req) {
|
|
|
LOGGER.info("getCountByStatus in");
|
|
|
Map<String, Integer> map = storageDepositService.getCountByStatus(req);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("查询成功").data(map).build();
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/queryDepositListByStatus")
|
|
|
public ApiResponse queryDepositListByStatus(StorageDepositReq req) {
|
|
|
LOGGER.info("queryDepositListByStatus in. param is {}", req);
|
|
|
if(null == req.getStatus()) {
|
|
|
return new ApiResponse.ApiResponseBuilder().data("").code(400).message("参数status不能为空").build();
|
|
|
}
|
|
|
PageResponseBO<StorageDepositRsp> result = storageDepositService.queryDepositListByStatus(req);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(result).message("查询成功").build();
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/queryDepositPickList")
|
|
|
public ApiResponse queryDepositPickList(StorageDepositReq req) {
|
|
|
LOGGER.info("queryDepositPickList in. param is {}", req);
|
|
|
if(null == req.getStatus()) {
|
|
|
return new ApiResponse.ApiResponseBuilder().data("").code(400).message("参数status不能为空").build();
|
|
|
}
|
|
|
PageResponseBO<StorageDepositRsp> result = storageDepositService.queryDepositListByStatus(req);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(result).message("查询成功").build();
|
|
|
}
|
|
|
// @Autowired
|
|
|
// private IStorageDepositService storageDepositService;
|
|
|
//
|
|
|
// @RequestMapping(value = "/getCountByStatus")
|
|
|
// public ApiResponse getCountByStatus(StorageDepositReq req) {
|
|
|
// LOGGER.info("getCountByStatus in");
|
|
|
// Map<String, Integer> map = storageDepositService.getCountByStatus(req);
|
|
|
// return new ApiResponse.ApiResponseBuilder().code(200).message("查询成功").data(map).build();
|
|
|
// }
|
|
|
//
|
|
|
// @RequestMapping(value = "/queryDepositListByStatus")
|
|
|
// public ApiResponse queryDepositListByStatus(StorageDepositReq req) {
|
|
|
// LOGGER.info("queryDepositListByStatus in. param is {}", req);
|
|
|
// if(null == req.getStatus()) {
|
|
|
// return new ApiResponse.ApiResponseBuilder().data("").code(400).message("参数status不能为空").build();
|
|
|
// }
|
|
|
// PageResponseBO<StorageDepositRsp> result = storageDepositService.queryDepositListByStatus(req);
|
|
|
// return new ApiResponse.ApiResponseBuilder().code(200).data(result).message("查询成功").build();
|
|
|
// }
|
|
|
//
|
|
|
// @RequestMapping(value = "/queryDepositPickList")
|
|
|
// public ApiResponse queryDepositPickList(StorageDepositReq req) {
|
|
|
// LOGGER.info("queryDepositPickList in. param is {}", req);
|
|
|
// if(null == req.getStatus()) {
|
|
|
// return new ApiResponse.ApiResponseBuilder().data("").code(400).message("参数status不能为空").build();
|
|
|
// }
|
|
|
// PageResponseBO<StorageDepositRsp> result = storageDepositService.queryDepositListByStatus(req);
|
|
|
// return new ApiResponse.ApiResponseBuilder().code(200).data(result).message("查询成功").build();
|
|
|
// }
|
|
|
|
|
|
} |
...
|
...
|
|