You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2286 lines
67 KiB
2286 lines
67 KiB
package com.heai.modules.pms.controller;
|
|
|
|
|
|
import com.heai.common.utils.PageUtils;
|
|
import com.heai.common.utils.R;
|
|
import com.heai.modules.base.entity.BuData;
|
|
import com.heai.modules.oss.entity.SysOssEntity;
|
|
import com.heai.modules.pms.data.*;
|
|
import com.heai.modules.pms.entity.vo.CheckSubDetailValueVo;
|
|
import com.heai.modules.pms.service.EamService;
|
|
import com.heai.modules.pms.service.QcService;
|
|
import com.heai.modules.pms.util.ResponseData;
|
|
import com.heai.modules.sys.entity.SysSceneDynamicControlModelEntity;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
import java.util.*;
|
|
|
|
/**
|
|
* @description: 质量管理控制层
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/20 17:02
|
|
**/
|
|
@RestController
|
|
@RequestMapping("/pms/qc")
|
|
public class QcController {
|
|
|
|
@Autowired
|
|
private QcService qcService;
|
|
|
|
@Autowired
|
|
private EamService eamService;
|
|
|
|
// ======================= 检验方法API =======================
|
|
|
|
/**
|
|
* @description: 条件查询检验方法
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/24 11:28
|
|
* @param: [data]
|
|
* @return: java.util.Map<java.lang.String,java.lang.Object>
|
|
**/
|
|
@PostMapping("/qcMethodSearch")
|
|
public R qcMethodSearch(@RequestBody QcMethodData data){
|
|
PageUtils page = qcService.qcMethodSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增检验方法
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/24 11:30
|
|
* @param: [data]
|
|
* @return: com.heai.modules.pms.util.ResponseData
|
|
**/
|
|
@PostMapping(value="/qcMethodSave")
|
|
public R qcMethodSave (@RequestBody QcMethodData data) {
|
|
qcService.qcMethodSave(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 修改检验方法
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/24 11:31
|
|
* @param: [data]
|
|
* @return: com.heai.modules.pms.util.ResponseData
|
|
**/
|
|
@PostMapping(value="/qcMethodUpdate")
|
|
public R qcMethodUpdate(@RequestBody QcMethodData data){
|
|
qcService.qcMethodUpdate(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除检验方法
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/24 11:32
|
|
* @param: [data]
|
|
* @return: com.heai.modules.pms.util.ResponseData
|
|
**/
|
|
@PostMapping(value="/qcMethodDelete")
|
|
@ResponseBody
|
|
public R qcMethodDelete(@RequestBody QcMethodData data){
|
|
qcService.qcMethodDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
// ======================= 检验项目API =======================
|
|
|
|
/**
|
|
* @description: 查询检验项目
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/20 17:03
|
|
* @param: [data]
|
|
* @return: java.lang.Object
|
|
**/
|
|
@PostMapping(value="/qcItemSearch")
|
|
public R qcItemSearch(@RequestBody QcItemData data){
|
|
PageUtils page = qcService.qcItemSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增检验项目
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/20 21:46
|
|
* @param: [data]
|
|
* @return: java.lang.Object
|
|
**/
|
|
@PostMapping(value="/qcItemSave")
|
|
public R qcItemSave(@RequestBody QcItemData data){
|
|
qcService.qcItemSave(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 修改检验项目
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/20 22:27
|
|
* @param: [data]
|
|
* @return: java.lang.Object
|
|
**/
|
|
@PostMapping(value="/qcItemUpdate")
|
|
@ResponseBody
|
|
public R qcItemUpdate(@RequestBody QcItemData data){
|
|
qcService.qcItemUpdate(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除检验项目
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/20 23:12
|
|
* @param: [data]
|
|
* @return: java.lang.Object
|
|
**/
|
|
@PostMapping(value="/qcItemDelete")
|
|
@ResponseBody
|
|
public R qcItemDelete(@RequestBody QcItemData data){
|
|
qcService.qcItemDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 检验项目导入
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/15 12:58
|
|
* @param: [file]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/uploadExcel")
|
|
public R taskUploadExcel(@RequestParam(value = "file") MultipartFile file, @ModelAttribute GetParamInData data){
|
|
qcService.taskUploadExcel(file, data);
|
|
return R.ok();
|
|
}
|
|
|
|
// ======================= 根据物料设置检验模板API =======================
|
|
|
|
/**
|
|
* @description: 快速获取模板列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/30 11:29
|
|
* @param: [inData]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getItemLists")
|
|
public R getItemLists(@RequestBody QcTemplateData data){
|
|
// 可选模板
|
|
List<QcTemplateData> row1 = qcService.getTemplateList(data);
|
|
// 已有模板
|
|
List<QcTemplateData> row2 = qcService.getPartTemplateList(data);
|
|
return R.ok().put("row1", row1).put("row2", row2);
|
|
}
|
|
|
|
/**
|
|
* @description: 物料属性设置模板新增
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/7/9 22:55
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getPartTemplateLists")
|
|
public R getPartTemplateLists(@RequestBody QcTemplateData data){
|
|
// 可选模板
|
|
List<QcTemplateData> row1 = qcService.getTemplateListAll(data);
|
|
// 已有模板
|
|
List<QcTemplateData> row2 = qcService.getPartTemplateList(data);
|
|
return R.ok().put("row1", row1).put("row2", row2);
|
|
}
|
|
|
|
// ======================= 质检员信息维护API =======================
|
|
|
|
/**
|
|
* @description: 查询质检员信息列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/31 8:48
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/inspectorSearch")
|
|
public R inspectorSearch(){
|
|
List<QcInspectorData> list = qcService.inspectorSearch();
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增质检员信息
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/31 8:59
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/inspectorSave")
|
|
public ResponseData inspectorSave(@RequestBody QcInspectorData data){
|
|
ResponseData responseData = new ResponseData();
|
|
try {
|
|
responseData = qcService.inspectorSave(data);
|
|
} catch (Exception e) {
|
|
responseData.setCode("400");
|
|
responseData.setMsg(e.getMessage());
|
|
}
|
|
return responseData;
|
|
}
|
|
|
|
/**
|
|
* @description: 修改质检员信息
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/31 9:03
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/inspectorUpdate")
|
|
public ResponseData inspectorUpdate(@RequestBody QcInspectorData data){
|
|
ResponseData responseData = new ResponseData();
|
|
try {
|
|
responseData = qcService.inspectorUpdate(data);
|
|
} catch (Exception e) {
|
|
responseData.setCode("400");
|
|
responseData.setMsg(e.getMessage());
|
|
}
|
|
return responseData;
|
|
}
|
|
|
|
/**
|
|
* @description: 删除质检员信息
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/31 9:07
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/inspectorDelete")
|
|
public ResponseData inspectorDelete(@RequestBody QcInspectorData data){
|
|
ResponseData responseData = new ResponseData();
|
|
try {
|
|
responseData = qcService.inspectorDelete(data);
|
|
} catch (Exception e) {
|
|
responseData.setCode("400");
|
|
responseData.setMsg(e.getMessage());
|
|
}
|
|
return responseData;
|
|
}
|
|
|
|
|
|
// ======================= 样本量字码矩阵维护API =======================
|
|
|
|
/**
|
|
* @description: 查询抽检方案
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/7 16:14
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/samplingInspectionPlanSearch")
|
|
public R samplingInspectionPlanSearch(@RequestBody QcSamplingInspectionPlanData data){
|
|
PageUtils page = qcService.samplingInspectionPlanSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增抽样方案
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/10 9:48
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/samplingInspectionPlanSave")
|
|
public R samplingInspectionPlanSave(@RequestBody QcSamplingInspectionPlanData data){
|
|
qcService.samplingInspectionPlanSave(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 修改抽样方案
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/10 12:58
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/samplingInspectionPlanUpdate")
|
|
public R samplingInspectionPlanUpdate(@RequestBody QcSamplingInspectionPlanData data){
|
|
qcService.samplingInspectionPlanUpdate(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除抽样方案
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/10 13:02
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/samplingInspectionPlanDelete")
|
|
public R samplingInspectionPlanDelete(@RequestBody QcSamplingInspectionPlanData data){
|
|
qcService.samplingInspectionPlanDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
// ======================= 检验模板API =======================
|
|
|
|
/**
|
|
* @description: 查询模板
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/10 15:55
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/templateSearch")
|
|
public R templateSearch(@RequestBody QcTemplateData data){
|
|
PageUtils page = qcService.templateSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增模板
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/10 17:12
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/templateSave")
|
|
public R templateSave(@RequestBody QcTemplateData data){
|
|
qcService.templateSave(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 修改模板
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/10 17:38
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/templateUpdate")
|
|
public R templateUpdate(@RequestBody QcTemplateData data){
|
|
qcService.templateUpdate(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除模板
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/12 14:27
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/templateDelete")
|
|
public R templateDelete(@RequestBody QcTemplateData data){
|
|
qcService.templateDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 搜索所有检验类型
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/18 17:09
|
|
* @param: []
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/inspectionTypeSearch")
|
|
public R inspectionTypeSearch(@RequestBody QcInspectionTypeData data){
|
|
List<QcInspectionTypeData> list = qcService.inspectionTypeSearch(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 搜索所有设备
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/19 14:35
|
|
* @param: []
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/objectSearch")
|
|
public R objectSearch (@RequestBody EamObjectData data) {
|
|
List<EamObjectData> list = qcService.objectSearch(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 查询项目列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/11 9:39
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/templateDetailsSearch")
|
|
public R templateDetailsSearch(@RequestBody QcTemplateData data){
|
|
List<QcTemplateData> list = qcService.templateDetailsSearch(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增模板的检验项目
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/11 10:04
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/addItemDetails")
|
|
public R addItemDetails(@RequestBody QcTemplateData data){
|
|
qcService.addItemDetails(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 快速新增
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/12 13:45
|
|
* @param: [inData]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getItemList")
|
|
public R getItemList(@RequestBody QcTemplateData data){
|
|
// 获取当前项目不包含的明细
|
|
List<QcTemplateData> row1 = qcService.getItemList(data);
|
|
// 获取当前项目所包含的明细
|
|
List<QcTemplateData> row2 = qcService.templateDetailsSearch(data);
|
|
return R.ok().put("row1", row1).put("row2", row2);
|
|
}
|
|
|
|
/**
|
|
* @description: 查询项目
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/11/19 13:03
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getItem")
|
|
public R getItem(@RequestBody QcTemplateData data){
|
|
List<QcTemplateData> rows = qcService.getItem(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @description: 删除模板的检验项目
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/11 10:57
|
|
* @param: [inData]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/delItemDetails")
|
|
public R delItemDetails(@RequestBody QcTemplateData data){
|
|
qcService.delItemDetails(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 新增项目明细的最大最小值
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/16 17:26
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveItemDetailed")
|
|
public R saveItemDetailed(@RequestBody QcTemplateData data){
|
|
qcService.saveItemDetailed(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 检验模板导入
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/22 16:29
|
|
* @param: [file]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/uploadTemplateExcel")
|
|
public R uploadTemplateExcel(@RequestParam(value = "file") MultipartFile file, @ModelAttribute GetParamInData data){
|
|
qcService.uploadTemplateExcel(file, data);
|
|
return R.ok();
|
|
}
|
|
|
|
|
|
// ======================= 样本量API =======================
|
|
|
|
/**
|
|
* @description: 查询样本量
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/17 10:48
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingQtySearch")
|
|
public R samplingQtySearch(@RequestBody QcSamplingInspectionQtyData data){
|
|
PageUtils page = qcService.samplingQtySearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增样本量
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/17 11:24
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingQtySave")
|
|
public R samplingQtySave(@RequestBody QcSamplingInspectionQtyData data){
|
|
qcService.samplingQtySave(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 修改样本量
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/17 13:01
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingQtyUpdate")
|
|
public R samplingQtyUpdate(@RequestBody QcSamplingInspectionQtyData data){
|
|
qcService.samplingQtyUpdate(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除样本量
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/17 13:22
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingQtyDelete")
|
|
public R samplingQtyDelete(@RequestBody QcSamplingInspectionQtyData data){
|
|
qcService.samplingQtyDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
// ======================= 批量级次API =======================
|
|
|
|
/**
|
|
* @description: 查询批量级次
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/17 13:38
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingQtyRankSearch")
|
|
public R samplingQtyRankSearch(@RequestBody QcSamplingInspectionQtyRankData data){
|
|
PageUtils page = qcService.samplingQtyRankSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增批量级次
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/17 11:24
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingQtyRankSave")
|
|
public R samplingQtyRankSave(@RequestBody QcSamplingInspectionQtyRankData data){
|
|
qcService.samplingQtyRankSave(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 修改批量级次
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/17 13:01
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingQtyRankUpdate")
|
|
public R samplingQtyRankUpdate(@RequestBody QcSamplingInspectionQtyRankData data){
|
|
qcService.samplingQtyRankUpdate(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除批量级次
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/17 13:22
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingQtyRankDelete")
|
|
public R samplingQtyRankDelete(@RequestBody QcSamplingInspectionQtyRankData data){
|
|
qcService.samplingQtyRankDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
// ======================= 检验等级API =======================
|
|
|
|
/**
|
|
* @description: 查询检验等级
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/17 13:38
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingLevelSearch")
|
|
public R samplingLevelSearch(@RequestBody QcSamplingInspectionLevelData data){
|
|
PageUtils page = qcService.samplingLevelSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增检验等级
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/17 11:24
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingLevelSave")
|
|
public R samplingLevelSave(@RequestBody QcSamplingInspectionLevelData data){
|
|
qcService.samplingLevelSave(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 修改检验等级
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/17 13:01
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingLevelUpdate")
|
|
public R samplingLevelUpdate(@RequestBody QcSamplingInspectionLevelData data){
|
|
qcService.samplingLevelUpdate(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除检验等级
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/17 13:22
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingLevelDelete")
|
|
public R samplingLevelDelete(@RequestBody QcSamplingInspectionLevelData data){
|
|
qcService.samplingLevelDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
// ======================= 物料属性设置API =======================
|
|
|
|
/**
|
|
* @description: 查询物料属性
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/19 11:42
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/qcPartAttributeSearch")
|
|
public R qcPartAttributeSearch(@RequestBody QcPartAttributeData data){
|
|
PageUtils page = qcService.qcPartAttributeSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增物料属性
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/19 17:14
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/qcPartAttributeSave")
|
|
public R qcPartAttributeSave(@RequestBody QcPartAttributeData data){
|
|
qcService.qcPartAttributeSave(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 物料属性修改
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/10/27 13:25
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/overLoadSearchPartInfo")
|
|
public R overLoadSearchPartInfo(@RequestBody QcPartAttributeData data){
|
|
PageUtils page = qcService.qcPartAttributeSearch(data);
|
|
return R.ok().put("list", page.getList());
|
|
}
|
|
/**
|
|
* @description: 物料属性修改
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/10/27 13:25
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/qcPartAttributeEdit")
|
|
public R qcPartAttributeEdit(@RequestBody QcPartAttributeData data){
|
|
qcService.qcPartAttributeEdit(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除物料属性
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/20 16:42
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/qcPartAttributeDelete")
|
|
public R qcPartAttributeDelete(@RequestBody QcPartAttributeData data){
|
|
qcService.qcPartAttributeDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 查询物料模板
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/19 17:50
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/searchPartAttributeDetails")
|
|
public R searchPartAttributeDetails(@RequestBody QcTemplateData data){
|
|
List<QcTemplateData> list = qcService.searchPartAttributeDetails(data);
|
|
return R.ok().put("rows", list).put("total", list.size());
|
|
}
|
|
|
|
/**
|
|
* @description: 新增物料属性模板
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/20 9:33
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/savePartAttributeDetails")
|
|
public R savePartAttributeDetails(@RequestBody QcTemplateData data){
|
|
qcService.savePartAttributeDetails(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除物料属性模板
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/20 13:10
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/deletePartAttributeDetails")
|
|
public R deletePartAttributeDetails(@RequestBody QcTemplateData data){
|
|
qcService.deletePartAttributeDetails(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 新增物料属性模板详情
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/20 15:32
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveAttributeDetailed")
|
|
public R saveAttributeDetailed(@RequestBody QcTemplateData data){
|
|
qcService.saveAttributeDetailed(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 物料属性-检验标准明细(qc_part_attr_detailed)
|
|
*/
|
|
@PostMapping("/partAttrDetailedSearch")
|
|
public R partAttrDetailedSearch(@RequestBody QcTemplateData data) {
|
|
List<QcTemplateData> list = qcService.partAttrDetailedSearch(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
@PostMapping("/getPartAttrItemList")
|
|
public R getPartAttrItemList(@RequestBody QcTemplateData data) {
|
|
List<QcTemplateData> row1 = qcService.getPartAttrItemList(data);
|
|
List<QcTemplateData> row2 = qcService.partAttrDetailedSearch(data);
|
|
return R.ok().put("row1", row1).put("row2", row2);
|
|
}
|
|
|
|
@PostMapping("/getPartAttrItem")
|
|
public R getPartAttrItem(@RequestBody QcTemplateData data) {
|
|
List<QcTemplateData> rows = qcService.getPartAttrItem(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
@PostMapping("/addPartAttrItemDetails")
|
|
public R addPartAttrItemDetails(@RequestBody QcTemplateData data) {
|
|
qcService.addPartAttrItemDetails(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping("/delPartAttrItemDetails")
|
|
public R delPartAttrItemDetails(@RequestBody QcTemplateData data) {
|
|
qcService.delPartAttrItemDetails(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping("/savePartAttrDetailed")
|
|
public R savePartAttrDetailed(@RequestBody QcTemplateData data) {
|
|
qcService.savePartAttrDetailed(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping("/goUpPartAttrItem")
|
|
public R goUpPartAttrItem(@RequestBody QcTemplateData data) {
|
|
qcService.goUpPartAttrItem(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping("/goDownPartAttrItem")
|
|
public R goDownPartAttrItem(@RequestBody QcTemplateData data) {
|
|
qcService.goDownPartAttrItem(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 物料属性导入
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/23 11:33
|
|
* @param: [file]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/uploadPartAttributeExcel")
|
|
public R uploadPartAttributeExcel(@RequestParam(value = "file") MultipartFile file, @ModelAttribute GetParamInData data){
|
|
qcService.uploadPartAttributeExcel(file, data);
|
|
return R.ok();
|
|
}
|
|
|
|
|
|
// ======================= 分类属性设置API =======================
|
|
|
|
/**
|
|
* @description: 查询类别属性
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/21 9:08
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/qcFamilyAttributeSearch")
|
|
public R qcFamilyAttributeSearch(@RequestBody QcPartAttributeData data){
|
|
PageUtils page = qcService.qcFamilyAttributeSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增类别属性
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/21 9:29
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/qcFamilyAttributeSave")
|
|
public R qcFamilyAttributeSave(@RequestBody QcPartAttributeData data){
|
|
qcService.qcFamilyAttributeSave(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除类别属性
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/21 9:56
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/qcFamilyAttributeDelete")
|
|
public R qcFamilyAttributeDelete(@RequestBody QcPartAttributeData data){
|
|
qcService.qcFamilyAttributeDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 类别属性导入
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/23 15:58
|
|
* @param: [file]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/uploadFamilyAttributeExcel")
|
|
public R uploadFamilyAttributeExcel(@RequestParam(value = "file") MultipartFile file, @ModelAttribute GetParamInData data){
|
|
qcService.uploadFamilyAttributeExcel(file, data);
|
|
return R.ok();
|
|
}
|
|
|
|
// ======================= 抽样方案API =======================
|
|
|
|
/**
|
|
* @description: 查询抽样方案
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/21 13:32
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/samplingProgrammeSearch")
|
|
public R samplingProgrammeSearch(@RequestBody QcSamplingInspectionProgrammeData data){
|
|
PageUtils page = qcService.samplingProgrammeSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增抽样方案
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/21 13:47
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingProgrammeSave")
|
|
public R samplingProgrammeSave(@RequestBody QcSamplingInspectionProgrammeData data){
|
|
qcService.samplingProgrammeSave(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除抽样方案
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/23 8:58
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/samplingProgrammeDelete")
|
|
public R samplingProgrammeDelete(@RequestBody QcSamplingInspectionProgrammeData data){
|
|
qcService.samplingProgrammeDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 搜索抽样方案中的矩阵
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/21 15:43
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/searchSamplingProgrammeDetails")
|
|
public R searchSamplingProgrammeDetails(@RequestBody QcSamplingInspectionProgrammeData data){
|
|
List<QcSamplingInspectionProgrammeData> list = qcService.searchSamplingProgrammeDetails(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 获取矩阵列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/21 16:38
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getPlanLists")
|
|
public R getPlanLists(@RequestBody QcSamplingInspectionProgrammeData data){
|
|
// 获取该方案不包含的矩阵
|
|
List<QcSamplingInspectionProgrammeData> row1 = qcService.getPlanList(data);
|
|
// 获取当前方案所包含的矩阵
|
|
List<QcSamplingInspectionProgrammeData> row2 = qcService.getProgrammePlanList(data);
|
|
return R.ok().put("row1", row1).put("row2", row2);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增抽样方案中的矩阵
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/21 17:41
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveSamplingProgrammeDetails")
|
|
public R saveSamplingProgrammeDetails(@RequestBody QcSamplingInspectionProgrammeData data){
|
|
qcService.saveSamplingProgrammeDetails(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除抽样方案中的矩阵
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/21 17:52
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/deleteSamplingProgrammeDetails")
|
|
public R deleteSamplingProgrammeDetails(@RequestBody QcSamplingInspectionProgrammeData data){
|
|
qcService.deleteSamplingProgrammeDetails(data);
|
|
return R.ok();
|
|
}
|
|
|
|
// ======================= FAI检验API =======================
|
|
|
|
/**
|
|
* @description: FAI记录查询
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/24 10:10
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/qcFAIInspectionSearch")
|
|
public R qcFAIInspectionSearch(@RequestBody QcFAIRecordData data){
|
|
PageUtils page = qcService.qcFAIInspectionSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: FAI明细记录查询
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/25 9:16
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/faiDetailSearch")
|
|
public R faiDetailSearch(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.faiDetailSearch(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 保存FAI检验记录
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/30 8:50
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveFAIDetailedRecord")
|
|
public R saveFAIDetailedRecord(@RequestBody QcFAIRecordData data){
|
|
qcService.saveFAIDetailedRecord(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除FAI检验记录
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/30 9:03
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/faiRecordDelete")
|
|
public R faiRecordDelete(@RequestBody QcFAIRecordData data){
|
|
qcService.faiRecordDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: FAI审核
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/31 17:17
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveFAISubmitResult")
|
|
public R saveFAISubmitResult(@RequestBody QcFAIRecordData data){
|
|
qcService.saveFAISubmitResult(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 新增FAI子明细
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/4 13:50
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveFAISubDetailed")
|
|
public R saveFAISubDetailed(@RequestBody QcSubDetailInformationData data){
|
|
Integer count = qcService.saveFAISubDetailed(data);
|
|
return R.ok().put("count", count);
|
|
}
|
|
|
|
/**
|
|
* @description: 查询FAI子明细
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/4 16:06
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/selectFAISubDetailedRecord")
|
|
public R selectFAISubDetailedRecord(@RequestBody SubDetailValues data){
|
|
List<SubDetailValues> list = qcService.selectFAISubDetailedRecord(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 检查FAI是否已提交
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/5 9:50
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/checkFAIIsSubmit")
|
|
public R checkFAIIsSubmit(@RequestBody SubDetailValues data){
|
|
Integer flag = qcService.checkFAIIsSubmit(data);
|
|
return R.ok().put("flag", flag);
|
|
}
|
|
|
|
/**
|
|
* @description: 检查FAI子明细中的实测值是否在规定范围
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/6 16:13
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/checkFAISubDetailValue")
|
|
public R checkFAISubDetailValue(@RequestBody CheckSubDetailValueVo data){
|
|
Integer flag = qcService.checkFAISubDetailValue(data);
|
|
return R.ok().put("flag", flag);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增FAI检验
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/9/18 10:03
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveFAIInspection")
|
|
public R saveFAIInspection(@RequestBody QcFAIRecordData data){
|
|
qcService.saveFAIInspection(data);
|
|
return R.ok();
|
|
}
|
|
|
|
// ======================= FQC检验API =======================
|
|
|
|
/**
|
|
* @description: FQC记录查询
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/9/18 11:32
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/qcFQCInspectionSearch")
|
|
public R qcFQCInspectionSearch(@RequestBody QcFAIRecordData data){
|
|
PageUtils page = qcService.qcFQCInspectionSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: FQC记录新增
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/9/18 11:34
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveFQCInspection")
|
|
public R saveFQCInspection(@RequestBody QcFAIRecordData data){
|
|
qcService.saveFQCInspection(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: FQC明细记录查询
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/9/18 13:04
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/fqcDetailSearch")
|
|
public R fqcDetailSearch(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.fqcDetailSearch(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 删除FQC检验记录
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/9/18 13:07
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/fqcRecordDelete")
|
|
public R fqcRecordDelete(@RequestBody QcFAIRecordData data){
|
|
qcService.fqcRecordDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 保存FQC检验记录
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/9/18 13:12
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveFQCDetailedRecord")
|
|
public R saveFQCDetailedRecord(@RequestBody QcFAIRecordData data){
|
|
qcService.saveFQCDetailedRecord(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: FQC审核
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/9/18 13:20
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveFQCSubmitResult")
|
|
public R saveFQCSubmitResult(@RequestBody QcFAIRecordData data){
|
|
qcService.saveFQCSubmitResult(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 新增FQC子明细
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/9/18 13:24
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveFQCSubDetailed")
|
|
public R saveFQCSubDetailed(@RequestBody QcSubDetailInformationData data){
|
|
Integer count = qcService.saveFQCSubDetailed(data);
|
|
return R.ok().put("count", count);
|
|
}
|
|
|
|
/**
|
|
* @description: 查询FQC子明细
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/9/18 13:28
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/selectFQCSubDetailedRecord")
|
|
public R selectFQCSubDetailedRecord(@RequestBody SubDetailValues data){
|
|
List<SubDetailValues> list = qcService.selectFQCSubDetailedRecord(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 检查是否已提交
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/9/18 13:31
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/checkFQCIsSubmit")
|
|
public R checkFQCIsSubmit(@RequestBody SubDetailValues data){
|
|
Integer flag = qcService.checkFQCIsSubmit(data);
|
|
return R.ok().put("flag", flag);
|
|
}
|
|
|
|
/**
|
|
* @description: 检查FQC子明细中的实测值是否在规定范围
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/9/18 13:35
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/checkFQCSubDetailValue")
|
|
public R checkFQCSubDetailValue(@RequestBody CheckSubDetailValueVo data){
|
|
Integer flag = qcService.checkFQCSubDetailValue(data);
|
|
return R.ok().put("flag", flag);
|
|
}
|
|
|
|
// ======================= IPQC检验API =======================
|
|
|
|
/**
|
|
* @description: IPQC记录查询
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/24 10:10
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/qcIPQCInspectionSearch")
|
|
public R qcIPQCInspectionSearch(@RequestBody QcFAIRecordData data){
|
|
PageUtils page = qcService.qcIPQCInspectionSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: IPQC明细记录查询
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/25 9:16
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/ipqcDetailSearch")
|
|
public R ipqcDetailSearch(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.ipqcDetailSearch(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 删除IPQC检验记录
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/3/30 9:03
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/ipqcRecordDelete")
|
|
public R ipqcRecordDelete(@RequestBody QcFAIRecordData data){
|
|
qcService.ipqcRecordDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 保存IPQC检验记录
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/26 17:26
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveIPQCDetailedRecord")
|
|
public R saveIPQCDetailedRecord(@RequestBody QcFAIRecordData data){
|
|
qcService.saveIPQCDetailedRecord(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: IPQC审核
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/26 17:36
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveIPQCSubmitResult")
|
|
public R saveIPQCSubmitResult(@RequestBody QcFAIRecordData data){
|
|
qcService.saveIPQCSubmitResult(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 新增IPQC子明细信息
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/26 17:46
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveIPQCSubDetailed")
|
|
public R saveIPQCSubDetailed(@RequestBody QcSubDetailInformationData data){
|
|
Integer count = qcService.saveIPQCSubDetailed(data);
|
|
return R.ok().put("count", count);
|
|
}
|
|
|
|
/**
|
|
* @description: 查询IPQC子明细
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/26 17:56
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/selectIPQCSubDetailedRecord")
|
|
public R selectIPQCSubDetailedRecord(@RequestBody SubDetailValues data){
|
|
List<SubDetailValues> list = qcService.selectIPQCSubDetailedRecord(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 检查IPQC是否已提交
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/27 8:59
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/checkIPQCIsSubmit")
|
|
public R checkIPQCIsSubmit(@RequestBody SubDetailValues data){
|
|
Integer flag = qcService.checkIPQCIsSubmit(data);
|
|
return R.ok().put("flag", flag);
|
|
}
|
|
|
|
/**
|
|
* @description: 检查IPQC子明细中的实测值是否在规定范围
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/27 9:06
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/checkIPQCSubDetailValue")
|
|
public R checkIPQCSubDetailValue(@RequestBody CheckSubDetailValueVo data){
|
|
Integer flag = qcService.checkIPQCSubDetailValue(data);
|
|
return R.ok().put("flag", flag);
|
|
}
|
|
|
|
/**
|
|
* @description: 查询工序列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/27 15:30
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getOperationList")
|
|
public R getOperationList(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.getOperationList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 查询机台列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/27 17:01
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getResourceList")
|
|
public R getResourceList(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.getResourceList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 查询物料列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/27 17:36
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getPartList")
|
|
public R getPartList(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.getPartList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增巡检记录
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/27 18:19
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveOsInspection")
|
|
public R saveOsInspection(@RequestBody QcFAIRecordData data){
|
|
qcService.saveOsInspection(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 检查动控是否开启
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/10/18 13:22
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/queryController")
|
|
public R queryController(@RequestBody SysSceneDynamicControlModelEntity data){
|
|
List<SysSceneDynamicControlModelEntity> list = qcService.queryController(data);
|
|
if (!list.isEmpty()){
|
|
return R.ok().put("rows", list.get(0));
|
|
}
|
|
return R.ok().put("rows", null);
|
|
}
|
|
|
|
/**
|
|
* @description: 获取检验模板列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/10/18 13:50
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/queryTemplateList")
|
|
public R queryTemplateList(@RequestBody QcTemplateData data){
|
|
List<QcTemplateData> list = qcService.queryTemplateList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
// ======================= IQC检验API =======================
|
|
|
|
/**
|
|
* @description: IQC检验记录查询
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/4/29 13:38
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/qcIQCInspectionSearch")
|
|
public R qcIQCInspectionSearch(@RequestBody QcFAIRecordData data){
|
|
PageUtils page = qcService.qcIQCInspectionSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @description: iqc检验记录查询
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/5/4 11:46
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/iqcDetailSearch")
|
|
public R iqcDetailSearch(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.iqcDetailSearch(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 查询IQC子明细记录
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/5/4 13:11
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/selectIQCSubDetailedRecord")
|
|
public R selectIQCSubDetailedRecord(@RequestBody SubDetailValues data){
|
|
List<SubDetailValues> list = qcService.selectIQCSubDetailedRecord(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 检查子明细中的实测值是否在规定范围
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/5/4 13:17
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/checkIQCSubDetailValue")
|
|
public R checkIQCSubDetailValue(@RequestBody CheckSubDetailValueVo data){
|
|
Integer flag = qcService.checkIQCSubDetailValue(data);
|
|
return R.ok().put("flag", flag);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增明细信息
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/5/4 13:27
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveIQCDetailedRecord")
|
|
public R saveIQCDetailedRecord(@RequestBody QcFAIRecordData data){
|
|
qcService.saveIQCDetailedRecord(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 检查是否已提交
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/5/4 13:59
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/checkIQCIsSubmit")
|
|
public R checkIQCIsSubmit(@RequestBody SubDetailValues data){
|
|
Integer flag = qcService.checkIQCIsSubmit(data);
|
|
return R.ok().put("flag", flag);
|
|
}
|
|
|
|
/**
|
|
* @description: 新增子明细信息
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/5/4 15:54
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveIQCSubDetailed")
|
|
public R saveIQCSubDetailed(@RequestBody QcSubDetailInformationData data){
|
|
Integer count = qcService.saveIQCSubDetailed(data);
|
|
return R.ok().put("count", count);
|
|
}
|
|
|
|
/**
|
|
* @description: 审核
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/5/4 17:31
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/saveIQCSubmitResult")
|
|
public R saveIQCSubmitResult(@RequestBody QcFAIRecordData data){
|
|
qcService.saveIQCSubmitResult(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 取消审核
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/cancelApproval")
|
|
public R cancelApproval(@RequestBody QcFAIRecordData data){
|
|
qcService.cancelApproval(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 取消审核
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/cancelApproval2")
|
|
public R cancelApproval2(@RequestBody QcFAIRecordData data){
|
|
qcService.cancelApproval2(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* SQC取消审核
|
|
*/
|
|
@PostMapping("/cancelSQCApproval")
|
|
public R cancelSQCApproval(@RequestBody QcFAIRecordData data){
|
|
qcService.cancelSQCApproval(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 删除检验记录
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/5/4 17:38
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/iqcRecordDelete")
|
|
public R iqcRecordDelete(@RequestBody QcFAIRecordData data){
|
|
qcService.iqcRecordDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 任务重载
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/iqcRecordOverLoad")
|
|
public R iqcRecordOverLoad(@RequestBody QcFAIRecordData data){
|
|
qcService.iqcRecordOverLoad(data);
|
|
return R.ok();
|
|
}
|
|
|
|
// ======================= SQC检验API =======================
|
|
|
|
@PostMapping(value="/qcSQCInspectionSearch")
|
|
public R qcSQCInspectionSearch(@RequestBody QcFAIRecordData data){
|
|
PageUtils page = qcService.qcSQCInspectionSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
@PostMapping("/sqcDetailSearch")
|
|
public R sqcDetailSearch(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.sqcDetailSearch(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
@PostMapping("/selectSQCSubDetailedRecord")
|
|
public R selectSQCSubDetailedRecord(@RequestBody SubDetailValues data){
|
|
List<SubDetailValues> list = qcService.selectSQCSubDetailedRecord(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
@PostMapping("/checkSQCSubDetailValue")
|
|
public R checkSQCSubDetailValue(@RequestBody CheckSubDetailValueVo data){
|
|
Integer flag = qcService.checkSQCSubDetailValue(data);
|
|
return R.ok().put("flag", flag);
|
|
}
|
|
|
|
@PostMapping("/saveSQCDetailedRecord")
|
|
public R saveSQCDetailedRecord(@RequestBody QcFAIRecordData data){
|
|
qcService.saveSQCDetailedRecord(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping("/checkSQCIsSubmit")
|
|
public R checkSQCIsSubmit(@RequestBody SubDetailValues data){
|
|
Integer flag = qcService.checkSQCIsSubmit(data);
|
|
return R.ok().put("flag", flag);
|
|
}
|
|
|
|
@PostMapping("/saveSQCSubDetailed")
|
|
public R saveSQCSubDetailed(@RequestBody QcSubDetailInformationData data){
|
|
Integer count = qcService.saveSQCSubDetailed(data);
|
|
return R.ok().put("count", count);
|
|
}
|
|
|
|
@PostMapping("/saveSQCSubmitResult")
|
|
public R saveSQCSubmitResult(@RequestBody QcFAIRecordData data){
|
|
qcService.saveSQCSubmitResult(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping("/sqcRecordDelete")
|
|
public R sqcRecordDelete(@RequestBody QcFAIRecordData data){
|
|
qcService.sqcRecordDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping("/sqcRecordOverLoad")
|
|
public R sqcRecordOverLoad(@RequestBody QcFAIRecordData data){
|
|
qcService.sqcRecordOverLoad(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 查询文件ID
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/7/5 9:18
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/queryFileId")
|
|
public R queryFileId(@RequestBody SysOssEntity data){
|
|
SysOssEntity sysOss = qcService.queryFileId(data);
|
|
return R.ok().put("data",sysOss);
|
|
}
|
|
|
|
/**
|
|
* @description: 获取工序列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/7/7 15:39
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getOperationDescList")
|
|
public R getOperationDescList(@RequestBody QcPartAttributeData data){
|
|
List<QcPartAttributeData> list = qcService.getOperationDescList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 获取供应商列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/7/9 22:32
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getManufacturerList")
|
|
public R getManufacturerList(@RequestBody QcPartAttributeData data){
|
|
List<QcPartAttributeData> list = qcService.getManufacturerList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 获取所有机台
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/9/15 11:36
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getAllResourceList")
|
|
public R getAllResourceList(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.getAllResourceList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 获取工单列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/9/15 15:59
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getOrderNoList")
|
|
public R getOrderNoList(@RequestBody QcFAIRecordData data){
|
|
// PageUtils page = qcService.getOrderNoList(data);
|
|
// return R.ok().put("page", page);
|
|
List<QcFAIRecordData> list = qcService.getOrderNoList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 获取物料其它信息
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/10/20 15:19
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getPartInformation")
|
|
public R getPartInformation(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.getPartInformation(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 获取特殊工序列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/10/20 15:30
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getSpecialOperationList")
|
|
public R getSpecialOperationList(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.getSpecialOperationList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 获取处置措施列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/10/23 13:14
|
|
* @param: []
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/disposalMeasuresSearch")
|
|
public R disposalMeasuresSearch(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.disposalMeasuresSearch(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 查询文件路径
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/11/1 16:48
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/searchItemFileUrl")
|
|
public R searchItemFileUrl(@RequestBody QcFAIRecordData data){
|
|
List<SysOssEntity> list = qcService.searchItemFileUrl(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 删除图片
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/11/1 16:53
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/imageDelete")
|
|
public R imageDelete(@RequestBody SysOssEntity data){
|
|
qcService.imageDelete(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @description: 模糊查询标签号
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/11/3 16:48
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/getRollNo")
|
|
public R getRollNo(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.getRollNo(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 标签号回车事件
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/11/7 10:22
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/rollNoEnter")
|
|
public R rollNoEnter(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.rollNoEnter(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 查询物料集合
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/11/7 14:48
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/queryPartList")
|
|
public R queryPartList(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.queryPartList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 查询单位列表
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/11/8 9:27
|
|
* @param: [data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping(value="/umSearch")
|
|
public R umSearch(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.umSearch(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @description: 检验单子明细导入
|
|
* @author: fengyuan_yang
|
|
* @date: 2023/11/12 12:13
|
|
* @param: [file, data]
|
|
* @return: com.heai.common.utils.R
|
|
**/
|
|
@PostMapping("/subDetailUpload")
|
|
public R subDetailUpload(@RequestParam(value = "file") MultipartFile file, @ModelAttribute GetParamInData data){
|
|
Map<String, Integer> countMap = qcService.subDetailUpload(file, data);
|
|
return R.ok().put("countMap", countMap);
|
|
}
|
|
|
|
/**
|
|
* 获取检验方法列表
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/queryMethodList")
|
|
public R queryMethodList(@RequestBody QcMethodData data) {
|
|
List<QcMethodData> list = qcService.queryMethodList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 文件上传
|
|
* @param list
|
|
* @param inData
|
|
* @return
|
|
*/
|
|
@PostMapping("/upload")
|
|
public R upload(@RequestParam("file") MultipartFile[] list, @ModelAttribute GetParamInData inData){
|
|
List<SysOssEntity> ossEntity = qcService.upload(list, inData);
|
|
return R.ok().put("ossEntity", ossEntity);
|
|
|
|
}
|
|
|
|
/**
|
|
* 获取用户bu
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/getSiteAndBuByUserName")
|
|
public R getSiteAndBuByUserName(@RequestBody BuData data){
|
|
List<BuData> list = eamService.getSiteAndBuByUserName(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 获取用户bu
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/getSiteAndBuByUserName2")
|
|
public R getSiteAndBuByUserName2(@RequestBody BuData data){
|
|
List<BuData> list = eamService.getSiteAndBuByUserName2(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 获取派工单号
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/searchSeqInfo")
|
|
public R searchSeqInfo(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.searchSeqInfo(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 获取物料信息
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/searchPartInfo")
|
|
public R searchPartInfo(@RequestBody QcFAIRecordData data){
|
|
List<QcFAIRecordData> list = qcService.searchPartInfo(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 获取采购类型
|
|
* @return
|
|
*/
|
|
@PostMapping("/orderTypeSearch")
|
|
public R orderTypeSearch(){
|
|
List<QcFAIRecordData> list = qcService.orderTypeSearch();
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 开始检验
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/actionIQCInspection")
|
|
public R actionIQCInspection(@RequestBody EamObjectInData data){
|
|
qcService.actionIQCInspection(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping("/actionSQCInspection")
|
|
public R actionSQCInspection(@RequestBody EamObjectInData data){
|
|
qcService.actionSQCInspection(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 开始检验
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/actionFAIInspection")
|
|
public R actionFAIInspection(@RequestBody EamObjectInData data){
|
|
qcService.actionFAIInspection(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 开始检验
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/actionIPQCInspection")
|
|
public R actionIPQCInspection(@RequestBody EamObjectInData data){
|
|
qcService.actionIPQCInspection(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 开始检验
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/actionFQCInspection")
|
|
public R actionFQCInspection(@RequestBody EamObjectInData data){
|
|
qcService.actionFQCInspection(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 数据采集
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/dataAcquisition")
|
|
public R dataAcquisition(@RequestBody QcFAIRecordData data){
|
|
Map<String, Integer> countMap = qcService.dataAcquisition(data);
|
|
return R.ok().put("rows", countMap);
|
|
}
|
|
|
|
/**
|
|
* 获取采集条件路径
|
|
* @return
|
|
*/
|
|
@PostMapping("/getEquipmentNoList")
|
|
public R getEquipmentNoList(@RequestBody EquipmentFolderLocationData data) {
|
|
List<EquipmentFolderLocationData> list = qcService.getEquipmentNoList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 获取责任人列表
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/getResponsibleOperatorList")
|
|
public R getResponsibleOperatorList(@RequestBody EamAdminData data){
|
|
List<EamAdminData> list = qcService.getResponsibleOperatorList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 获取采集数据内容
|
|
* @return
|
|
*/
|
|
@PostMapping("/getDataContentList")
|
|
public R getDataContentList(@RequestBody QcCollectionDataContentData data) {
|
|
List<QcCollectionDataContentData> list = qcService.getDataContentList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 查询设备列表
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("getObjectList")
|
|
public R getObjectList(@RequestBody EamObjectInData data) {
|
|
// 获取当前项目不包含的设备
|
|
List<EamObjectInData> row1 = qcService.getObjectList1(data);
|
|
// 获取当前项目所包含的设备
|
|
List<EamObjectInData> row2 = qcService.getObjectList2(data);
|
|
return R.ok().put("row1", row1).put("row2", row2);
|
|
}
|
|
|
|
/**
|
|
* 根据条件查询可选设备
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("getObjectListBy")
|
|
public R getObjectListBy(@RequestBody EamObjectInData data) {
|
|
List<EamObjectInData> rows = qcService.getObjectListBy(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* 新增项目设备
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/addItemObject")
|
|
public R addItemObject(@RequestBody EamObjectInData data){
|
|
qcService.addItemObject(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 删除项目设备
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/deleteItemObject")
|
|
public R deleteItemObject(@RequestBody EamObjectInData data){
|
|
qcService.deleteItemObject(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 删除项目设备
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/updateItemObject")
|
|
public R updateItemObject(@RequestBody EamObjectInData data){
|
|
qcService.updateItemObject(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 查询项目设备
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/getIQCItemObjectList")
|
|
public R getIQCItemObjectList(@RequestBody EamObjectInData data){
|
|
List<EamObjectInData> list = qcService.getIQCItemObjectList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
@PostMapping("/getSQCItemObjectList")
|
|
public R getSQCItemObjectList(@RequestBody EamObjectInData data){
|
|
List<EamObjectInData> list = qcService.getSQCItemObjectList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 查询项目设备
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/getFAIItemObjectList")
|
|
public R getFAIItemObjectList(@RequestBody EamObjectInData data){
|
|
List<EamObjectInData> list = qcService.getFAIItemObjectList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 查询项目设备
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/getFQCItemObjectList")
|
|
public R getFQCItemObjectList(@RequestBody EamObjectInData data){
|
|
List<EamObjectInData> list = qcService.getFQCItemObjectList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 查询项目设备
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/getIPQCItemObjectList")
|
|
public R getIPQCItemObjectList(@RequestBody EamObjectInData data){
|
|
List<EamObjectInData> list = qcService.getIPQCItemObjectList(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 获取检验标准
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/getInspectionStandards")
|
|
public R getInspectionStandards(@RequestBody QcInspectionStandardData data){
|
|
List<QcInspectionStandardData> list = qcService.getInspectionStandards(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* 新增检验标准
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/saveInspectionStandard")
|
|
public R saveInspectionStandard(@RequestBody QcInspectionStandardData data){
|
|
qcService.saveInspectionStandard(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 根据项目数据采集
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping("/dataAcquisitionByItem")
|
|
public R dataAcquisitionByItem(@RequestBody QcFAIRecordData data){
|
|
Map<String, Integer> countMap = qcService.dataAcquisitionByItem(data);
|
|
return R.ok().put("rows", countMap);
|
|
}
|
|
|
|
/**
|
|
* @Description 属性上移
|
|
* @Title goUpItemForBM
|
|
* @param inData
|
|
* @author rq
|
|
* @date 2023/11/28 16:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping("/goUpItemQC")
|
|
@ResponseBody
|
|
public R goUpItemQC(@RequestBody QcTemplateData inData){
|
|
qcService.goUpItem(inData);
|
|
return R.ok();
|
|
}
|
|
/**
|
|
* @Description 属性下移
|
|
* @Title goDownForBM
|
|
* @param inData
|
|
* @author rq
|
|
* @date 2023/11/28 16:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping("/goDownItemQC")
|
|
@ResponseBody
|
|
public R goDownItemQC(@RequestBody QcTemplateData inData){
|
|
qcService.goDownItem(inData);
|
|
return R.ok();
|
|
}
|
|
/**
|
|
* @Description 查询 外采设备维护 数据
|
|
* @Title queryEquipmentFolderLocationList
|
|
* @param inData
|
|
* @author zhb
|
|
* @date 2025/8/11
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping("/queryEquipmentFolderLocationList")
|
|
@ResponseBody
|
|
public R queryEquipmentFolderLocationList(@RequestBody QCEquipmentFolderLocation inData){
|
|
List<QCEquipmentFolderLocation> list = qcService.queryEquipmentFolderLocationList(inData);
|
|
return R.ok().put("rows", list).put("total", list.size());
|
|
}
|
|
/**
|
|
* @Description 删除外采设备维护 数据
|
|
* @Title queryEquipmentFolderLocationList
|
|
* @param inData
|
|
* @author zhb
|
|
* @date 2025/8/11
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping("/deleteEquipmentFolderLocationList")
|
|
@ResponseBody
|
|
public R deleteEquipmentFolderLocationList(@RequestBody List<QCEquipmentFolderLocation> inData){
|
|
qcService.deleteEquipmentFolderLocationList(inData);
|
|
return R.ok();
|
|
}
|
|
/**
|
|
* @Description 获取外采设备维护 采集方式列表
|
|
* @Title getSuffixList
|
|
* @author zhb
|
|
* @date 2025/8/12
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping("/getSuffixList")
|
|
@ResponseBody
|
|
public R getSuffixList(){
|
|
List<String> list = qcService.getSuffixList();
|
|
return R.ok().put("rows", list);
|
|
}
|
|
/**
|
|
* @Description 保存外采设备维护 数据
|
|
* @Title queryEquipmentFolderLocationList
|
|
* @param inData
|
|
* @author zhb
|
|
* @date 2025/8/11
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping("/saveEquipmentFolderLocationList")
|
|
@ResponseBody
|
|
public R saveEquipmentFolderLocationList(@RequestBody QCEquipmentFolderLocation inData){
|
|
R r = qcService.saveEquipmentFolderLocationList(inData);
|
|
return r;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|