Browse Source

涉访涉诉--只能选择二级机构

master
buaixuexideshitongxue 1 month ago
parent
commit
1517739691
  1. 14
      src/main/java/com/biutag/supervision/service/complaintCollection/ComplaintCollectionServiceImpl.java

14
src/main/java/com/biutag/supervision/service/complaintCollection/ComplaintCollectionServiceImpl.java

@ -122,6 +122,12 @@ public class ComplaintCollectionServiceImpl implements ComplaintCollectionServic
throw new IllegalStateException("存在相同编号+来源"); throw new IllegalStateException("存在相同编号+来源");
} }
} }
SupDepartQueryParam supDepartQueryParam = new SupDepartQueryParam();
supDepartQueryParam.setId(request.getSecondDepartId());
List<SupDepart> supDepartList = supDepartResourceService.query(supDepartQueryParam);
if (CollectionUtil.isEmpty(supDepartList) || supDepartList.get(0).getLevel()!=2){
throw new IllegalStateException("请选择正确的二级机构");
}
ComplaintCollection complaintCollection = ComplaintCollectionTransfer.INSTANCE.addRequestToEntity(request); ComplaintCollection complaintCollection = ComplaintCollectionTransfer.INSTANCE.addRequestToEntity(request);
// 生成编号 // 生成编号
if (StrUtil.isBlank(complaintCollection.getOriginId())) { if (StrUtil.isBlank(complaintCollection.getOriginId())) {
@ -169,6 +175,12 @@ public class ComplaintCollectionServiceImpl implements ComplaintCollectionServic
if (!exists) { if (!exists) {
throw new NoSuchElementException("未找到可修改信息"); throw new NoSuchElementException("未找到可修改信息");
} }
SupDepartQueryParam supDepartQueryParam = new SupDepartQueryParam();
supDepartQueryParam.setId(request.getSecondDepartId());
List<SupDepart> supDepartList = supDepartResourceService.query(supDepartQueryParam);
if (CollectionUtil.isEmpty(supDepartList) || supDepartList.get(0).getLevel()!=2){
throw new IllegalStateException("请选择正确的二级机构");
}
ComplaintCollectionUpdateParam updateParam = ComplaintCollectionTransfer.INSTANCE.updateRequestToParam(request); ComplaintCollectionUpdateParam updateParam = ComplaintCollectionTransfer.INSTANCE.updateRequestToParam(request);
// 处理 involve_problem + tag // 处理 involve_problem + tag
String involveProblem = CodeTranslateUtil.joinDistinct(request.getInvolveProblemIdList()); String involveProblem = CodeTranslateUtil.joinDistinct(request.getInvolveProblemIdList());
@ -238,7 +250,7 @@ public class ComplaintCollectionServiceImpl implements ComplaintCollectionServic
}).toList(); }).toList();
one.setThingFiles(fileVos); one.setThingFiles(fileVos);
// 超时情况 // 超时情况
fillCheckTimeoutInfo(one); // fillCheckTimeoutInfo(one);
}); });
} }
ComplaintCollectionPageVo complaintCollectionPageVo = new ComplaintCollectionPageVo(); ComplaintCollectionPageVo complaintCollectionPageVo = new ComplaintCollectionPageVo();

Loading…
Cancel
Save