|
@ -114,17 +114,14 @@ public class ReactionRecordMgrService { |
|
|
if (StringUtils.isBlank(ids)) { |
|
|
if (StringUtils.isBlank(ids)) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
Arrays.stream(ids.split(",")) |
|
|
|
|
|
.map(String::trim) |
|
|
|
|
|
.filter(StringUtils::isNotBlank) |
|
|
|
|
|
.forEach(idStr -> { |
|
|
|
|
|
|
|
|
String[] idArray = ids.split(","); |
|
|
|
|
|
for(String id : idArray){ |
|
|
try{ |
|
|
try{ |
|
|
int id = Integer.parseInt(idStr); |
|
|
|
|
|
deleteRecord(id); |
|
|
|
|
|
} catch (NumberFormatException ex) { |
|
|
|
|
|
logger.warn("批量删除历史记录,跳过无效ID:{}", idStr); |
|
|
|
|
|
|
|
|
deleteRecord(Integer.parseInt(id)); |
|
|
|
|
|
}catch (Exception e){ |
|
|
|
|
|
logger.warn("批量删除历史记录,跳过无效ID:{}", id); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public CommonPage<ReactionReport> getRecords(Integer pageNum, Integer pageSize) { |
|
|
public CommonPage<ReactionReport> getRecords(Integer pageNum, Integer pageSize) { |
|
|