|
|
|
@ -4,7 +4,7 @@ package com.logpm.report.controller;
|
|
|
|
|
import com.logpm.report.service.InLibraryDeliverService; |
|
|
|
|
import com.logpm.report.service.IndexCountService; |
|
|
|
|
import com.logpm.report.vo.IndexCountVO; |
|
|
|
|
import com.logpm.report.vo.indexCount.QuantityAbnormalWorkOrdersVO; |
|
|
|
|
import com.logpm.report.vo.indexCount.*; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
@ -21,30 +21,68 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@RequestMapping("/index-count") |
|
|
|
|
@Api(value = "首页统计数据", tags = "首页统计数据") |
|
|
|
|
public class IndexCountController { |
|
|
|
|
private InLibraryDeliverService inLibraryDeliverService; |
|
|
|
|
private IndexCountService indexCountService; |
|
|
|
|
|
|
|
|
|
@ApiParam(value = "warehouseId", name = "仓库ID") |
|
|
|
|
@GetMapping("/index_count") |
|
|
|
|
@ApiOperation(value = "定制品在库订单总量",tags = "定制品在库订单总量") |
|
|
|
|
public R<IndexCountVO> indexCount(@RequestParam(value = "warehouseId", required = false) Long warehouseId) { |
|
|
|
|
IndexCountVO indexCountVO = indexCountService.indexCount(warehouseId); |
|
|
|
|
|
|
|
|
|
@GetMapping("/index_count") |
|
|
|
|
@ApiOperation(value = "在库数据",tags = "在库数据") |
|
|
|
|
public R<IndexCountVO> indexCount() { |
|
|
|
|
IndexCountVO indexCountVO = indexCountService.indexCount(); |
|
|
|
|
return R.data(indexCountVO); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/index_number_in_the_library") |
|
|
|
|
@ApiOperation(value = "定制品在库订单上架总数",tags = "定制品在库订单上架总数") |
|
|
|
|
public R<Integer> getTheNumberOfShelvesInTheLibrary(@RequestParam("id") Long id){ |
|
|
|
|
Integer theNumberOfShelvesInTheLibrary= inLibraryDeliverService.theNumberOfShelvesInTheLibrary(id,2); |
|
|
|
|
return R.data(theNumberOfShelvesInTheLibrary); |
|
|
|
|
|
|
|
|
|
@GetMapping("/get_freight_data") |
|
|
|
|
@ApiOperation(value = "库位数据",tags = "库位数据") |
|
|
|
|
public R<FreightDataVo> getFreightData() { |
|
|
|
|
FreightDataVo freightData = indexCountService.getFreightData(); |
|
|
|
|
return R.data(freightData); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/get_mainLine_data") |
|
|
|
|
@ApiOperation(value = "干线数据",tags = "干线数据") |
|
|
|
|
public R<MainLineDataVo> getMainLineData() { |
|
|
|
|
MainLineDataVo mainLineData = indexCountService.getMainLineData(); |
|
|
|
|
return R.data(mainLineData); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/get_abnormal_data") |
|
|
|
|
@ApiOperation(value = "异常数据",tags = "异常数据") |
|
|
|
|
public R<AbnormalDataVo> getAbnormalData() { |
|
|
|
|
AbnormalDataVo abnormalData = indexCountService.getAbnormalData(); |
|
|
|
|
return R.data(abnormalData); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/index_number_no_the_library") |
|
|
|
|
@ApiOperation(value = "定制品在库订单未上架总数",tags = "定制品在库订单未上架总数") |
|
|
|
|
public R<Integer> getTheNumberOfShelvesNoTheLibrary(@RequestParam("id") Long id){ |
|
|
|
|
Integer theNumberOfShelvesInTheLibrary= inLibraryDeliverService.theNumberOfShelvesInTheLibrary(id,1); |
|
|
|
|
return R.data(theNumberOfShelvesInTheLibrary); |
|
|
|
|
@GetMapping("/get_Delivery_data") |
|
|
|
|
@ApiOperation(value = "配送数据",tags = "配送数据") |
|
|
|
|
public R<DeliveryDetailDataVo> getDeliveryData() { |
|
|
|
|
DeliveryDetailDataVo deliveryData = indexCountService.getDeliveryData(); |
|
|
|
|
return R.data(deliveryData); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/get_sign_data") |
|
|
|
|
@ApiOperation(value = "签收数据",tags = "签收数据") |
|
|
|
|
public R<SignDataVo> getSignData() { |
|
|
|
|
SignDataVo signData = indexCountService.getSignData(); |
|
|
|
|
return R.data(signData); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// @GetMapping("/index_number_in_the_library")
|
|
|
|
|
// @ApiOperation(value = "定制品在库订单上架总数",tags = "定制品在库订单上架总数")
|
|
|
|
|
// public R<Integer> getTheNumberOfShelvesInTheLibrary(@RequestParam("id") Long id){
|
|
|
|
|
// Integer theNumberOfShelvesInTheLibrary= inLibraryDeliverService.theNumberOfShelvesInTheLibrary(id,2);
|
|
|
|
|
// return R.data(theNumberOfShelvesInTheLibrary);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @GetMapping("/index_number_no_the_library")
|
|
|
|
|
// @ApiOperation(value = "定制品在库订单未上架总数",tags = "定制品在库订单未上架总数")
|
|
|
|
|
// public R<Integer> getTheNumberOfShelvesNoTheLibrary(@RequestParam("id") Long id){
|
|
|
|
|
// Integer theNumberOfShelvesInTheLibrary= inLibraryDeliverService.theNumberOfShelvesInTheLibrary(id,1);
|
|
|
|
|
// return R.data(theNumberOfShelvesInTheLibrary);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|