baibx 1 month ago
parent
commit
06954d25ce

+ 1 - 1
com.sharemao.web.manager/src/main/java/com/sharemao/manager/service/impl/SmdServiceImpl.java

@@ -408,7 +408,7 @@ public class SmdServiceImpl extends DevBaseService implements SmdService
408
                 continue;
408
                 continue;
409
             }
409
             }
410
 
410
 
411
-            String checkSql = "SELECT id FROM smd WHERE sn='" + sn + "'";
411
+            String checkSql = "SELECT id FROM smd WHERE sn='" + sn + "' and iccid='"+iccid+"'";
412
             List<Map<String, Object>> checkList = baseDao.getMapList(checkSql);
412
             List<Map<String, Object>> checkList = baseDao.getMapList(checkSql);
413
 
413
 
414
             if(checkList != null && checkList.size() > 0) {
414
             if(checkList != null && checkList.size() > 0) {