| | |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.home.annotation.DefaultType; |
| | | import com.ruoyi.home.dto.*; |
| | | import com.ruoyi.home.service.HomeService; |
| | | import com.ruoyi.dto.MapDto; |
| | |
| | | return AjaxResult.success(productionTurnoverDto); |
| | | } |
| | | |
| | | @GetMapping("/processDataProductionStatistics") |
| | | @ApiOperation("工序数据生产统计数据") |
| | | public AjaxResult processDataProductionStatistics(@DefaultType Integer type,@RequestParam(required = false) List<Long> processIds) { |
| | | List<processDataProductionStatisticsDto> list = homeService.processDataProductionStatistics(type, processIds); |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | /********************************************************质量类*****************************************************/ |
| | | @GetMapping("/rawMaterialDetection") |
| | | @ApiOperation("原材料检测") |
| | |
| | | return AjaxResult.success(homeService.rawMaterialDetection(type)); |
| | | } |
| | | |
| | | @GetMapping("/qualityInspectionStatistics") |
| | | @ApiOperation("质量统计") |
| | | public AjaxResult qualityInspectionStatistics(@DefaultType Integer type) { |
| | | QualityStatisticsDto dto = homeService.qualityInspectionStatistics(type); |
| | | return AjaxResult.success(dto); |
| | | } |
| | | |
| | | @GetMapping("/processDetection") |
| | | @ApiOperation("过程检测") |
| | | public AjaxResult processDetection(@RequestParam(value = "type", defaultValue = "1") Integer type){ |