|
|
|
@ -41,6 +41,9 @@ public class PdaApiController {
|
|
|
|
|
//条码绑定
|
|
|
|
|
@PostMapping("/barCodeBanding")
|
|
|
|
|
public AjaxResult barCodeBanding(String boxCode, String innerCode, String loginName) {
|
|
|
|
|
// 查询质检缺陷有没有修复 还没做
|
|
|
|
|
// 查询插入
|
|
|
|
|
// Long objid=service.select
|
|
|
|
|
return success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -51,11 +54,17 @@ public class PdaApiController {
|
|
|
|
|
@PostMapping("/checkSubmit")
|
|
|
|
|
public AjaxResult checkSubmit(@RequestBody CheckInfoDto checkInfo) {
|
|
|
|
|
List<CheckInfoDto.DefectBeen> list = checkInfo.getList();
|
|
|
|
|
String boxName = service.selectBoxNameByCode(checkInfo.getCode());
|
|
|
|
|
if (boxName==null) {
|
|
|
|
|
return error("箱壳条码扫描错误");
|
|
|
|
|
}
|
|
|
|
|
int size = (list == null || list.isEmpty()) ? 1 : list.size();
|
|
|
|
|
for (int i = 0; i < size; i++) {
|
|
|
|
|
ReportQualityInspection inspection = new ReportQualityInspection();
|
|
|
|
|
inspection.setBarCode(checkInfo.getCode());
|
|
|
|
|
inspection.setMaterialName(boxName);
|
|
|
|
|
inspection.setTreatmentMeasure(checkInfo.getMeasure());
|
|
|
|
|
inspection.setProcessResult(checkInfo.getMeasureName());
|
|
|
|
|
inspection.setIsLowerLine(checkInfo.getOffline());
|
|
|
|
|
inspection.setInspectorCode(checkInfo.getUserName());
|
|
|
|
|
inspection.setInspectorTime(new Date());
|
|
|
|
|