|
|
@@ -922,6 +922,11 @@ public class MESHelperServiceImpl implements MESHelperService {
|
|
|
String.valueOf(iUserCode),
|
|
|
String.valueOf(iResult),
|
|
|
}, new Integer[]{1, 2, 3, 4, 5}, new Integer[]{6});
|
|
|
+ if(iResult=="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 + "'");
|
|
|
+ }
|
|
|
oErrMessage = list.get(0);
|
|
|
rmap.put("oErrMessage",oErrMessage);
|
|
|
return rmap;
|