yhluo 2 giorni fa
parent
commit
c43161b551

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

@@ -168,6 +168,13 @@ public class MESHelperServiceImpl implements MESHelperService {
 				Time = Time.substring(0, 19).replaceAll("T", " ");
 			}
 
+			if(Lotsn == null || Lotsn.isEmpty()){
+				rmap.put("code", "-1");
+				rmap.put("result","NG");
+				rmap.put("message", "NG,序列号为空,SPI设备未读取到序列号");
+				return rmap;
+			}
+
 			SqlRowList rs=baseDao.queryForRowSet("SELECT devicetestinfo_seq.NEXTVAL seq FROM dual");
 			Map<Object, Object> paramsMap = new HashMap<Object, Object>();
 			if(rs.next()){