| | |
| | | package com.mes.largenscreen.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.mes.largenscreen.entity.DailyProductionData; |
| | | import com.mes.largenscreen.entity.DailyProductionVO; |
| | | import com.mes.largenscreen.entity.DateRequest; |
| | | import com.mes.largenscreen.service.LargenScreenService; |
| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author : zhoush |
| | |
| | | return Result.build(200, "查询成功", largenScreenService.queryDailyProduction(query)); |
| | | } |
| | | |
| | | @ApiOperation("按照条件统计每日生产情况导出") |
| | | @PostMapping("/exportDailyProduction") |
| | | public void exportDailyProduction(@RequestBody @Validated DateRequest query) { |
| | | largenScreenService.exportDailyProduction(query); |
| | | } |
| | | |
| | | @ApiOperation("按照条件统计生产情况") |
| | | @PostMapping("/queryProduction") |
| | | public Result<List<DailyProductionData>> queryProduction(@RequestBody @Validated DateRequest query) { |
| | | return Result.build(200, "查询成功", largenScreenService.queryProduction(query)); |
| | | } |
| | | |
| | | |
| | | } |