change - 质量检测:查询物料名称、前工位返修数据

master
yinq 8 months ago
parent 8cd75bbafd
commit 76a2a125bc

@ -88,6 +88,25 @@ public class PdaApiController {
}
/**
*
* @param code
* @return
*/
@PostMapping("/check/query")
public AjaxResult checkQuery(String code) {
String boxName = service.selectBoxNameByCode(code);
if (boxName == null) {
// boxName = "固定数据";
return error("箱壳条码扫描错误");
}
//检验前一工位是否已完成质检
List<ReportQualityInspection> list = service.checkSelectRepairInfo(code);
return success(boxName, list);
}
// 质检提交
@PostMapping("/checkSubmit")
public AjaxResult checkSubmit(@RequestBody CheckInfoDto checkInfo) {
@ -96,8 +115,6 @@ public class PdaApiController {
for (int i = 0; i < size; i++) {
ReportQualityInspection inspection = new ReportQualityInspection();
inspection.setBarCode(checkInfo.getCode());
//检验前一工位是否已完成质检
inspection.setMaterialName(checkInfo.getName());
String measure = checkInfo.getMeasure();

Loading…
Cancel
Save