Bladeren bron

修改上料不允许接口过站

callm 3 maanden geleden
bovenliggende
commit
3e2dbddf84
1 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 6 0
      src/main/java/com/uas/eis/serviceImpl/MESHelperServiceImpl.java

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

@@ -771,6 +771,12 @@ public class MESHelperServiceImpl implements MESHelperService {
 		if(map.get("iErrCode")!=null){
 			iErrCode=map.get("iErrCode").toString();
 		}
+		Object obj=baseDao.getFieldDataByCondition("source left join step on sc_stepcode=st_code","nvl(st_ifinput,0)","sc_code='"+iResCode+"'");
+		if(obj.toString().equals("-1")){
+			oErrMessage = "上料工序必须在客户端进行过站";
+			rmap.put("oErrMessage",oErrMessage);
+			return rmap;
+		}
 		JSONObject map3=new JSONObject();
 		map3.put("iSN",iSN);
 		Map<Object, Object> map2=GetRcardMOInfo(map3);