|
|
@@ -1470,6 +1470,7 @@ public class MesProductRecordController extends BaseController {
|
|
|
try {
|
|
|
stdate = dateFormat2.parse(mesShiftDataResp.getStart());
|
|
|
etdate = dateFormat2.parse(mesShiftDataResp.getEnd());
|
|
|
+ stdate = mesShiftService.getQmCheckStartDate(oprno1, lineSn, stdate);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
@@ -1563,6 +1564,55 @@ public class MesProductRecordController extends BaseController {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ // CCD工位 OP510 NG样件开班点检(时间窗口与气密一致,开始时间提前1小时)
|
|
|
+ if ("OP510".equals(oprno1)) {
|
|
|
+ String ccdCheck = Global.getConfig("mes.ccd.check");
|
|
|
+ if ("1".equals(ccdCheck)) {
|
|
|
+ String ngs = Global.getConfig("mes.xt.ccd.ng");
|
|
|
+ logger.info("ccdng:" + ngs);
|
|
|
+ if (!StringUtils.isEmpty(ngs)) {
|
|
|
+ Boolean ngsret = true;
|
|
|
+ DateFormat dateFormat2 = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
|
|
+ Date stdate = null;
|
|
|
+ Date etdate = null;
|
|
|
+ try {
|
|
|
+ stdate = dateFormat2.parse(mesShiftDataResp.getStart());
|
|
|
+ etdate = dateFormat2.parse(mesShiftDataResp.getEnd());
|
|
|
+ stdate = mesShiftService.getQmCheckStartDate(oprno1, lineSn, stdate);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ String[] ngsarr = ngs.split(",", -1);
|
|
|
+ for (String ng : ngsarr) {
|
|
|
+ if (StringUtils.isEmpty(ng)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ if (sn.equals(ng)) {
|
|
|
+ return "RSUD";
|
|
|
+ }
|
|
|
+ MesProductCcd mesProductCcd = new MesProductCcd();
|
|
|
+ mesProductCcd.setOprno("OP510");
|
|
|
+ mesProductCcd.setSn(ng);
|
|
|
+ mesProductCcd.setLineSn(lineSn);
|
|
|
+ mesProductCcd.setTestDate_gte(stdate);
|
|
|
+ mesProductCcd.setTestDate_lte(etdate);
|
|
|
+ mesProductCcd.setResult("NG");
|
|
|
+ mesProductCcd.getSqlMap().getOrder().setOrderBy("a.test_date desc");
|
|
|
+ MesProductCcd mesProductCcd1 = mesProductCcdService.findInfo(mesProductCcd);
|
|
|
+ if (com.jeesite.common.lang.ObjectUtils.isEmpty(mesProductCcd1)) {
|
|
|
+ ngsret = false;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!ngsret) {
|
|
|
+ return "RSDJ";
|
|
|
+ } else {
|
|
|
+ ret = "RSUD";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
return ret;
|
|
|
}
|
|
|
|