|
@@ -151,6 +151,7 @@ public class ExcelServiceImpl implements IExcelService {
|
|
|
|
|
|
List<Integer> errorIndex = new ArrayList<>();
|
|
|
List<AuthModelingParam> params = new ArrayList();
|
|
|
+ HashSet<String> authSet = new HashSet<>();
|
|
|
Integer index = 0;
|
|
|
for (HashMap<Integer, String> map : excelRowList) {
|
|
|
index ++;
|
|
@@ -174,6 +175,7 @@ public class ExcelServiceImpl implements IExcelService {
|
|
|
String expirationDay = map.get(10);
|
|
|
if(StringUtils.isBlank(authSn) ){
|
|
|
log.info("数据错误:{}",map);
|
|
|
+ errorIndex.add(index);
|
|
|
continue;
|
|
|
}
|
|
|
AuthModelingParam param = new AuthModelingParam();
|
|
@@ -184,10 +186,16 @@ public class ExcelServiceImpl implements IExcelService {
|
|
|
param.setStartTime(parse);
|
|
|
param.setEndTime(dateTime);
|
|
|
}catch (Exception e){
|
|
|
+ errorIndex.add(index);
|
|
|
log.info("解析激活时间错误:{},{}",activateDate,expirationDay);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ if(authSet.contains(authSn)){
|
|
|
+ errorIndex.add(index);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ authSet.add(authSn);
|
|
|
param.setAuthCode(authSn);
|
|
|
param.setAgentId(agentId);
|
|
|
params.add(param);
|