| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.production.dto.ProductionProductMainDetailExportDto; |
| | | import com.ruoyi.production.dto.ProductionProductMainDto; |
| | | import com.ruoyi.production.dto.ProductionProductMainSummaryExportDto; |
| | | import com.ruoyi.production.dto.ProductionReportDailySummaryDto; |
| | | import com.ruoyi.production.dto.ProductionReportStateDto; |
| | | import com.ruoyi.production.pojo.ProductionProductMain; |
| | |
| | | |
| | | /** |
| | | * 报工查询 |
| | | * |
| | | * @param page |
| | | * @param productionProductMainDto |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 报工新增更新 |
| | | * |
| | | * @param productionProductMainDto |
| | | * @return |
| | | */ |
| | |
| | | |
| | | |
| | | /** |
| | | * 导出 |
| | | * 报工台账汇总导出 |
| | | */ |
| | | @ApiOperation("报工台账汇总导出") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "workOrderIds", value = "工单ID列表, 可传多个", allowMultiple = true, dataType = "long", paramType = "query"), |
| | | @ApiImplicitParam(name = "workOrderNo", value = "工单编号(模糊)", dataType = "string", paramType = "query"), |
| | | @ApiImplicitParam(name = "workOrderStatus", value = "工单状态", dataType = "string", paramType = "query") |
| | | }) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ProductionProductMainDto productionProductMainDto) { |
| | | List<ProductionProductMainDto> list; |
| | | list = productionProductMainService.listPageProductionProductMainDto(new Page<>(1, -1), productionProductMainDto).getRecords(); |
| | | ExcelUtil<ProductionProductMainDto> util = new ExcelUtil<ProductionProductMainDto>(ProductionProductMainDto.class); |
| | | util.exportExcel(response, list, "生产报工数据"); |
| | | List<ProductionProductMainSummaryExportDto> list = productionProductMainService.listSummaryExportData(productionProductMainDto); |
| | | ExcelUtil<ProductionProductMainSummaryExportDto> util = new ExcelUtil<>(ProductionProductMainSummaryExportDto.class); |
| | | util.exportExcel(response, list, "生产报工汇总数据"); |
| | | } |
| | | |
| | | /** |
| | | * 报工明细导出 |
| | | */ |
| | | @ApiOperation("报工明细导出") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "workOrderIds", value = "工单ID列表, 可传多个", allowMultiple = true, dataType = "long", paramType = "query"), |
| | | @ApiImplicitParam(name = "workOrderId", value = "工单ID", dataType = "long", paramType = "query"), |
| | | @ApiImplicitParam(name = "startDate", value = "开始日期(按结束时间过滤, yyyy-MM-dd)", dataType = "string", paramType = "query"), |
| | | @ApiImplicitParam(name = "endDate", value = "结束日期(按结束时间过滤, yyyy-MM-dd)", dataType = "string", paramType = "query") |
| | | }) |
| | | @PostMapping("/exportDetail") |
| | | public void exportDetail(HttpServletResponse response, ProductionProductMainDto productionProductMainDto) { |
| | | List<ProductionProductMainDetailExportDto> list = productionProductMainService.listDetailExportData(productionProductMainDto); |
| | | ExcelUtil<ProductionProductMainDetailExportDto> util = new ExcelUtil<>(ProductionProductMainDetailExportDto.class); |
| | | util.exportExcel(response, list, "生产报工明细数据"); |
| | | } |
| | | } |