|
|
@@ -177,6 +177,8 @@ public class MesProductRecordController extends BaseController {
|
|
|
private MesProductSampleRecordService mesProductSampleRecordService;
|
|
|
@Autowired
|
|
|
private OcrService ocrService;
|
|
|
+ @Autowired
|
|
|
+ private MesProductProgressService mesProductProgressService;
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -1927,6 +1929,19 @@ public class MesProductRecordController extends BaseController {
|
|
|
// return bs+"PZ";
|
|
|
// }
|
|
|
// }
|
|
|
+ MesProductProgress mesProductProgress = new MesProductProgress();
|
|
|
+ mesProductProgress.setSn(sn);
|
|
|
+ mesProductProgress.setLineSn(lineSn);
|
|
|
+ MesProductProgress mesProductProgressc1 = mesProductProgressService.getBySnAndLineSn(mesProductProgress);
|
|
|
+ if (!ObjectUtils.isEmpty(mesProductProgressc1)){
|
|
|
+ if ("1".equals(mesProductProgressc1.getState())){
|
|
|
+ ret = bs+"UD";
|
|
|
+ return ret;
|
|
|
+ }else if("0".equals(mesProductProgressc1.getState())){
|
|
|
+ ret = bs+"RK";
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
return ret;
|
|
|
}
|
|
|
@@ -4528,11 +4543,14 @@ public class MesProductRecordController extends BaseController {
|
|
|
if ("true".equals(resp.getResult())){
|
|
|
try {
|
|
|
// 将二维码放置在工位
|
|
|
- MesProductRecord mesProductRecord = new MesProductRecord();
|
|
|
- mesProductRecord.setSn(sn);
|
|
|
- mesProductRecord.setOprno(oprno);
|
|
|
- mesProductRecord.setLineSn(lineSn);
|
|
|
- mesProductRecordService.update(mesProductRecord);
|
|
|
+// MesProductRecord mesProductRecord = new MesProductRecord();
|
|
|
+// mesProductRecord.setSn(sn);
|
|
|
+// mesProductRecord.setOprno(oprno);
|
|
|
+// mesProductRecord.setLineSn(lineSn);
|
|
|
+// mesProductRecordService.update(mesProductRecord);
|
|
|
+ MesProcessProduct mesProcessProduct = mesProcessProductService.findByCateAndOprno(lineSn, oprno);
|
|
|
+ mesProcessProduct.setSn(sn);
|
|
|
+ mesProcessProductService.update(mesProcessProduct);
|
|
|
resp.setResult(Global.TRUE);
|
|
|
resp.setMessage("扫码成功");
|
|
|
return resp;
|