Bläddra i källkod

添加支持IMEI3

callm 1 år sedan
förälder
incheckning
d53853a5b0
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/main/java/com/uas/eis/serviceImpl/MESHelperServiceImpl.java

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

@@ -692,11 +692,11 @@ public class MESHelperServiceImpl implements MESHelperService {
 			return rmap;
 		}
 		lotSN=map.get("lotSN").toString();
-		SqlRowList rs=baseDao.queryForRowSet("select ms_sncode from  makeserial where ms_imei1='"+lotSN+"' or ms_imei2='"+lotSN+"'");
+		SqlRowList rs=baseDao.queryForRowSet("select ms_sncode from  makeserial where ms_imei1='"+lotSN+"' or ms_imei2='"+lotSN+"' or ms_imei3='"+lotSN+"'");
 		if(rs.next()){
 			lotSN=rs.getString("ms_sncode");
 		}else{
-			 rs=baseDao.queryForRowSet("select mil_sncode from  makeimeilist where mil_imei1='"+lotSN+"' or mil_imei2='"+lotSN+"'");
+			 rs=baseDao.queryForRowSet("select mil_sncode from  makeimeilist where mil_imei1='"+lotSN+"' or mil_imei2='"+lotSN+"' or mil_imei3='"+lotSN+"'");
 			if(rs.next()){
 				lotSN=rs.getString("mil_sncode");
 			}