| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | return Result.success(finishedGoodsInventoryService.getSelectFinishedOperateLogReport(type,pageNum,pageSize,selectDate,finishedOperateLog)); |
| | | } |
| | | |
| | | @ApiOperation("成品库存记录查询接口日期时间查询") |
| | | @SaCheckPermission("warehouseReport.search") |
| | | @PostMapping("/getSelectFinishedOperateLogReport/{type}/{pageNum}/{pageSize}/{selectDate}/{reportTime}") |
| | | public Result getSelectFinishedOperateLogReportByDatetime(@PathVariable String type,@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate,@PathVariable String reportTime, @RequestBody FinishedOperateLog finishedOperateLog){ |
| | | return Result.success(finishedGoodsInventoryService.getSelectFinishedOperateLogReportByDateTime(type,pageNum,pageSize,selectDate,reportTime,finishedOperateLog)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("成品报表导出") |
| | | @PostMapping("/exportFinishedOperateLogReport/{type}") |
| | | public void exportFinishedOperateLogReport(@PathVariable String type,HttpServletResponse response, @RequestBody List<LocalDate> dates) throws IOException, IllegalAccessException, InstantiationException { |
| | |
| | | DownExcel.download(response, FinishedOperateLogDTO.class, finishedGoodsInventoryService.exportFinishedOperateLogReport(dates,type),"orderReport"); |
| | | } |
| | | |
| | | @ApiOperation("成品报表导出日期时间") |
| | | @PostMapping("/exportFinishedOperateLogReportByDatetime/{type}") |
| | | public void exportFinishedOperateLogReportByDatetime( |
| | | @PathVariable String type,HttpServletResponse response, |
| | | @RequestBody List<String> dates) throws IOException, IllegalAccessException, InstantiationException { |
| | | //参数:相应的数据,实体类信息,相应的方法(数据获取),生成的excel名字 |
| | | DownExcel.download(response, FinishedOperateLogDTO.class, finishedGoodsInventoryService.exportFinishedOperateLogReportByDatetime(dates,type),"orderReport"); |
| | | } |
| | | |
| | | |
| | | /*订单一键入库*/ |
| | | @ApiOperation("订单一键入库") |