update - add质量报表
parent
72614e6264
commit
9051058a2e
@ -0,0 +1,74 @@
|
||||
package com.aucma.report.controller;
|
||||
|
||||
import com.aucma.common.core.controller.BaseController;
|
||||
import com.aucma.common.core.domain.AjaxResult;
|
||||
import com.aucma.report.service.IQualityReportService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 质量报表Controller
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/report/qualityReport")
|
||||
public class QualityReportController extends BaseController {
|
||||
@Autowired
|
||||
private IQualityReportService qualityReportService;
|
||||
|
||||
|
||||
/**
|
||||
* 质量缺陷统计分析
|
||||
* @param hashMap
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/qualityDefectsStatisticalAnalysisList")
|
||||
public AjaxResult qualityDefectsStatisticalAnalysisList(@RequestParam(required = false) Map hashMap) {
|
||||
List<HashMap<String, Object>> list = qualityReportService.qualityDefectsStatisticalAnalysisList(hashMap);
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 少错件报表
|
||||
* @param hashMap
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/fewerMistakesReportList")
|
||||
public AjaxResult fewerMistakesReportList(@RequestParam(required = false) Map hashMap) {
|
||||
List<HashMap<String, Object>> list = qualityReportService.fewerMistakesReportList(hashMap);
|
||||
return success(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 质量问题前80报表
|
||||
* @param hashMap
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/qualityIssuesReportList")
|
||||
public AjaxResult qualityIssuesReportList(@RequestParam(required = false) Map hashMap) {
|
||||
List<HashMap<String, Object>> list = qualityReportService.qualityIssuesReportList(hashMap);
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 产品追溯报表
|
||||
* @param hashMap
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/productTraceabilityReportList")
|
||||
public AjaxResult productTraceabilityReportList(@RequestParam(required = false) Map hashMap) {
|
||||
List<HashMap<String, Object>> list = qualityReportService.productTraceabilityReportList(hashMap);
|
||||
return success(list);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.aucma.report.service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* PDA管理Service接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
public interface IQualityReportService
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* 质量缺陷统计分析
|
||||
* @param hashMap
|
||||
* @return
|
||||
*/
|
||||
List<HashMap<String, Object>> qualityDefectsStatisticalAnalysisList(Map hashMap);
|
||||
|
||||
/**
|
||||
* 少错件报表
|
||||
* @param hashMap
|
||||
* @return
|
||||
*/
|
||||
List<HashMap<String, Object>> fewerMistakesReportList(Map hashMap);
|
||||
|
||||
/**
|
||||
* 质量问题前80报表
|
||||
* @param hashMap
|
||||
* @return
|
||||
*/
|
||||
List<HashMap<String, Object>> qualityIssuesReportList(Map hashMap);
|
||||
|
||||
/**
|
||||
* 产品追溯报表
|
||||
* @param hashMap
|
||||
* @return
|
||||
*/
|
||||
List<HashMap<String, Object>> productTraceabilityReportList(Map hashMap);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.aucma.report.service.impl;
|
||||
|
||||
import com.aucma.report.mapper.GeneralReportMapper;
|
||||
import com.aucma.report.service.IProductionReportService;
|
||||
import com.aucma.report.service.IQualityReportService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* PDA管理Service业务层处理
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
@Service
|
||||
public class QualityReportServiceImpl implements IQualityReportService {
|
||||
@Autowired
|
||||
private GeneralReportMapper reportMapper;
|
||||
|
||||
/**
|
||||
* 质量缺陷统计分析
|
||||
* @param hashMap
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<HashMap<String, Object>> qualityDefectsStatisticalAnalysisList(Map hashMap) {
|
||||
return reportMapper.qualityDefectsStatisticalAnalysisList(hashMap);
|
||||
}
|
||||
|
||||
/**
|
||||
* 少错件报表
|
||||
* @param hashMap
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<HashMap<String, Object>> fewerMistakesReportList(Map hashMap) {
|
||||
return reportMapper.fewerMistakesReportList(hashMap);
|
||||
}
|
||||
|
||||
/**
|
||||
* 质量问题前80报表
|
||||
* @param hashMap
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<HashMap<String, Object>> qualityIssuesReportList(Map hashMap) {
|
||||
return reportMapper.qualityIssuesReportList(hashMap);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 产品追溯报表
|
||||
* @param hashMap
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<HashMap<String, Object>> productTraceabilityReportList(Map hashMap) {
|
||||
return reportMapper.productTraceabilityReportList(hashMap);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue