|
|
|
@ -22,7 +22,7 @@ import static com.aucma.common.core.domain.AjaxResult.success;
|
|
|
|
|
*/
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping(("/api"))
|
|
|
|
|
public class PdaBindingController {
|
|
|
|
|
public class PdaApiController {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private IPdaBindingService service;
|
|
|
|
@ -37,8 +37,12 @@ public class PdaBindingController {
|
|
|
|
|
}
|
|
|
|
|
return error("箱壳条码扫描错误");
|
|
|
|
|
}
|
|
|
|
|
//条码绑定
|
|
|
|
|
|
|
|
|
|
//条码绑定
|
|
|
|
|
@PostMapping("/barCodeBanding")
|
|
|
|
|
public AjaxResult barCodeBanding(String boxCode, String innerCode, String loginName) {
|
|
|
|
|
return success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private IReportQualityInspectionService qualityService;
|
|
|
|
@ -51,7 +55,7 @@ public class PdaBindingController {
|
|
|
|
|
for (int i = 0; i < size; i++) {
|
|
|
|
|
ReportQualityInspection inspection = new ReportQualityInspection();
|
|
|
|
|
inspection.setBarCode(checkInfo.getCode());
|
|
|
|
|
inspection.setProcessResult(checkInfo.getMeasure());
|
|
|
|
|
inspection.setTreatmentMeasure(checkInfo.getMeasure());
|
|
|
|
|
inspection.setIsLowerLine(checkInfo.getOffline());
|
|
|
|
|
inspection.setInspectorCode(checkInfo.getUserName());
|
|
|
|
|
inspection.setInspectorTime(new Date());
|
|
|
|
@ -67,4 +71,14 @@ public class PdaBindingController {
|
|
|
|
|
return success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//返修查询质检信息
|
|
|
|
|
@PostMapping("/findCheckInfoByCode")
|
|
|
|
|
public AjaxResult findCheckInfoByCode(String code) {
|
|
|
|
|
List<ReportQualityInspection> list= qualityService.findCheckInfoByCode(code);
|
|
|
|
|
if (list==null || list.isEmpty()){
|
|
|
|
|
return error("扫描条码不正确");
|
|
|
|
|
}
|
|
|
|
|
return success(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|