Browse Source

feat: 问题导出新增是否追责

master
wxc 3 weeks ago
parent
commit
7b3a35cd3f
  1. 3
      src/main/java/com/biutag/supervision/pojo/vo/ExportNegativeVo.java
  2. 9
      src/main/java/com/biutag/supervision/service/NegativeTaskService.java

3
src/main/java/com/biutag/supervision/pojo/vo/ExportNegativeVo.java

@ -112,6 +112,9 @@ public class ExportNegativeVo {
@ExcelProperty({"核办情况","涉及人员"})
private String blames;
@ExcelProperty({"核办情况","是否追责"})
private String isHoldAccountable;
@ExcelProperty({"核办情况","责任追责"})
private String handleResultName;

9
src/main/java/com/biutag/supervision/service/NegativeTaskService.java

@ -143,6 +143,15 @@ public class NegativeTaskService extends ServiceImpl<NegativeTaskMapper, Negativ
vo.setBlames(blameStr);
vo.setBlameNumber(blameList.size());
vo.setHandleResultName(blameList.stream().map(NegativeBlame::getHandleResultName).filter(StrUtil::isNotBlank).collect(Collectors.joining("、")));
// 是否属实
if (InspectCaseEnum.isItTure(item.getCheckStatus())) {
// 是否追责
if (blameList.stream().allMatch(blame -> StrUtil.isBlank(blame.getHandleResultName()) || blame.getHandleResultName().contains("不予追责"))) {
vo.setIsHoldAccountable("否");
} else {
vo.setIsHoldAccountable("是");
}
}
for (NegativeBlame negativeBlame : blameList.stream().filter(blame -> StrUtil.isNotBlank(blame.getBlameName())).toList()) {
ExportNegativeBlameVo blameVo = new ExportNegativeBlameVo();
BeanUtils.copyProperties(vo, blameVo);

Loading…
Cancel
Save