|
|
@@ -810,7 +810,7 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
"本次传参存在重复的si_sncode: " + String.join(", ", duplicates));
|
|
|
}
|
|
|
|
|
|
- //绑定值si_bt等必须唯一不能重复 ,也不能与历史数据重复
|
|
|
+ /*绑定值si_bt等必须唯一不能重复 ,也不能与历史数据重复
|
|
|
Set<String> set1 = new HashSet<>();
|
|
|
duplicates = detailList.stream()
|
|
|
.map(SNBindInfoRequest.DetailDTO::getSi_bt)
|
|
|
@@ -832,7 +832,7 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
if (!duplicates.isEmpty()) {
|
|
|
return ApiResponse.failRsp(ErrorMessage.BUSINESS_ILLEGAL.getCode(), requestId,
|
|
|
"本次传参存在重复的si_wifi: " + String.join(", ", duplicates));
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
// 1. sncode
|
|
|
List<String> sncodeList = detailList.stream()
|
|
|
@@ -862,7 +862,7 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
baseDao.execute(fullDeleteSql, existSncodes.toArray());
|
|
|
}
|
|
|
|
|
|
- List<String> wifiList = detailList.stream()
|
|
|
+ /*List<String> wifiList = detailList.stream()
|
|
|
.map(SNBindInfoRequest.DetailDTO::getSi_wifi)
|
|
|
.filter(s -> s != null && !s.isEmpty() && !"N/A".equals(s)) // 排除 null、空字符串、"N/A"
|
|
|
.collect(Collectors.toList());
|
|
|
@@ -889,7 +889,7 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
return ApiResponse.failRsp(ErrorMessage.BUSINESS_ILLEGAL.getCode(), requestId,
|
|
|
"si_wifi与历史已有数据表重复: " + barr);
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
// 5. 批量插入新数据
|
|
|
String insertSql = "INSERT INTO SNBIND_INFO (SI_ID,SI_SNCODE,SI_PRODCODE,SI_MACODE,SI_CPU,SI_WIFI,SI_BT," +
|