Browse Source

调整工单信息判断启用记数

yhluo 2 weeks ago
parent
commit
66257e8f27
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/main/java/com/uas/eis/serviceImpl/MESHelperServiceImpl.java

+ 4 - 2
src/main/java/com/uas/eis/serviceImpl/MESHelperServiceImpl.java

@@ -313,8 +313,10 @@ public class MESHelperServiceImpl implements MESHelperService {
 			if (Time.contains("T")) {
 				Time = Time.substring(0, 19).replaceAll("T", " ");
 			}
-			if((Lotsn == null || Lotsn.isEmpty())){
-				if( Defect != null || !Defect.isEmpty()){
+
+			Object isHaveCode = String.valueOf(baseDao.getFieldDataByCondition("make","ma_ishavecode","ma_code = '"+Moname+"'"));
+			if(Integer.parseInt(isHaveCode.toString()) == -1){
+				if(Defect != null || !Defect.isEmpty()){
 					rmap.put("code", "-1");
 					rmap.put("result", "NG");
 					rmap.put("message", "NG,空序列号,不良品不计入产出");