Ver Fonte

[华研EIS]SN不良判定插入不良记录逻辑调整3

caosy há 1 ano atrás
pai
commit
b33977e431

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

@@ -922,7 +922,7 @@ public class MESHelperServiceImpl implements MESHelperService {
 				String.valueOf(iUserCode),
 				String.valueOf(iResult),
 		}, new Integer[]{1, 2, 3, 4, 5}, new Integer[]{6});
-		if(iResult=="NG") {
+		if(iResult.equals("NG")) {
 			String CurrentStep = GetStepCodeBySource(iSourceCode);
 			baseDao.updateByCondition("makeserial", "ms_status=1,ms_nextstepcode='" + CurrentStep + "'", "ms_sncode='" + iSN + "' and ms_makecode='" + iMakeCode + "'");
 			baseDao.updateByCondition("makebad", "mb_status=-1", "mb_sncode='" + iSN + "' and mb_makecode='" + iMakeCode + "'");