| | |
| | | |
| | | @ApiOperation("成品库存记录查询接口") |
| | | @SaCheckPermission("warehouseReport.search") |
| | | @PostMapping("/getSelectFinishedOperateLogReport/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectFinishedOperateLogReport(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate, @RequestBody FinishedOperateLog finishedOperateLog){ |
| | | return Result.seccess(finishedGoodsInventoryService.getSelectFinishedOperateLogReport(pageNum,pageSize,selectDate,finishedOperateLog)); |
| | | @PostMapping("/getSelectFinishedOperateLogReport/{type}/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectFinishedOperateLogReport(@PathVariable String type,@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate, @RequestBody FinishedOperateLog finishedOperateLog){ |
| | | return Result.seccess(finishedGoodsInventoryService.getSelectFinishedOperateLogReport(type,pageNum,pageSize,selectDate,finishedOperateLog)); |
| | | } |
| | | |
| | | @ApiOperation("成品报表导出") |
| | | @PostMapping("/exportFinishedOperateLogReport") |
| | | public void exportFinishedOperateLogReport(HttpServletResponse response, @RequestBody List<LocalDate> dates) throws IOException, IllegalAccessException, InstantiationException { |
| | | @PostMapping("/exportFinishedOperateLogReport/{type}") |
| | | public void exportFinishedOperateLogReport(@PathVariable String type,HttpServletResponse response, @RequestBody List<LocalDate> dates) throws IOException, IllegalAccessException, InstantiationException { |
| | | //参数:相应的数据,实体类信息,相应的方法(数据获取),生成的excel名字 |
| | | DownExcel.download(response, FinishedOperateLogDTO.class, finishedGoodsInventoryService.exportFinishedOperateLogReport(dates),"orderReport"); |
| | | DownExcel.download(response, FinishedOperateLogDTO.class, finishedGoodsInventoryService.exportFinishedOperateLogReport(dates,type),"orderReport"); |
| | | } |
| | | |
| | | |
| | |
| | | return Result.seccess(finishedGoodsInventoryService.oneClickStorage(orderId,userName)); |
| | | |
| | | } |
| | | |
| | | /*装箱打印查询*/ |
| | | @ApiOperation("装箱打印查询接口") |
| | | @SaCheckPermission("storageRecordPint.search") |
| | | @PostMapping("/getSelectStorageRecordPint/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectStorageRecordPint(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate, @RequestBody FinishedOperateLog finishedOperateLog){ |
| | | return Result.seccess(finishedGoodsInventoryService.getSelectStorageRecordPint(pageNum,pageSize,selectDate,finishedOperateLog)); |
| | | } |
| | | |
| | | /*装箱打印查询*/ |
| | | @ApiOperation("装箱打印内容查询接口") |
| | | @SaCheckPermission("storageRecordPint.search") |
| | | @PostMapping("/getSelectPrint") |
| | | public Result getSelectPrint( @RequestBody Map<String, Object> object){ |
| | | return Result.seccess(finishedGoodsInventoryService.getSelectPrintSv(object)); |
| | | } |
| | | |
| | | /*装箱打印查询*/ |
| | | @ApiOperation("装箱打印内容查询接口") |
| | | @SaCheckPermission("storageRecordPint.search") |
| | | @PostMapping("/getSelectPrints") |
| | | public Result getSelectPrints( @RequestBody Map<String, Object> object){ |
| | | return Result.seccess(finishedGoodsInventoryService.getSelectPrintSvs(object)); |
| | | } |
| | | /*装箱打印查询*/ |
| | | @ApiOperation("库存装箱打印内容查询接口") |
| | | @SaCheckPermission("createProductStock.search") |
| | | @PostMapping("/getInventoryPrints") |
| | | public Result getInventoryPrints( @RequestBody List<FinishedGoodsInventory> finishedGoodsInventories){ |
| | | return Result.seccess(finishedGoodsInventoryService.getInventoryPrints(finishedGoodsInventories)); |
| | | } |
| | | |
| | | @ApiOperation("成品装箱调架") |
| | | @SaCheckPermission("createProductStock.add") |
| | | @PostMapping("/changeRack/{user}") |
| | | public Result changeRack( @RequestBody FinishedGoodsInventory finishedGoodsInventory,@PathVariable String user){ |
| | | return Result.seccess(finishedGoodsInventoryService.changeRack(finishedGoodsInventory,user)); |
| | | |
| | | } |
| | | } |