Browse Source

perf: 修复警务评议涉及单位导致的选不到人的问题

master
wxc 3 months ago
parent
commit
4878e54e7a
  1. 7
      src/main/java/com/biutag/supervision/service/NegativeService.java

7
src/main/java/com/biutag/supervision/service/NegativeService.java

@ -276,10 +276,6 @@ public class NegativeService extends ServiceImpl<NegativeMapper, Negative> {
throw new RuntimeException("样本源头编号已存在请核实");
}
String businessTypeCode = NegativeApiDto.BusinessType.getCode(item.getBusinessTypeName());
// if (!NegativeApiDto.BusinessType.JCJ_110.getCode().equals(businessTypeCode) && !NegativeApiDto.BusinessType.JCJ_122.getCode().equals(businessTypeCode)) {
// // 只针对110、122数据进行下发
// continue;
// }
SupDepart dept = departService.getByJwpyCode(item.getDepartCode());
Negative negative = new Negative();
BeanUtil.copyProperties(item, negative);
@ -315,11 +311,14 @@ public class NegativeService extends ServiceImpl<NegativeMapper, Negative> {
.setHandleThreeDepartName(dept.getShortName())
.setHandleSecondDepartId(parentDepart.getId())
.setHandleSecondDepartName(parentDepart.getShortName())
.setSecondInvolveDepartId(parentDepart.getId())
.setThreeInvolveDepartId(dept.getId())
.setFlowKey(FlowNodeEnum.THREE_SIGN.getKey())
.setCurrentProcessingObject(String.format("%s专班", dept.getShortName()));
} else if (DepartLevelEnum.SECOND.getValue().equals(dept.getLevel())) {
negative.setHandleSecondDepartId(dept.getId())
.setHandleSecondDepartName(dept.getShortName())
.setSecondInvolveDepartId(dept.getId())
.setFlowKey(FlowNodeEnum.SECOND_SIGN.getKey())
.setCurrentProcessingObject(String.format("%s专班", dept.getShortName()));
}

Loading…
Cancel
Save