|
|
|
|
@ -122,6 +122,12 @@ public class ComplaintCollectionServiceImpl implements ComplaintCollectionServic
|
|
|
|
|
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); |
|
|
|
|
// 生成编号
|
|
|
|
|
if (StrUtil.isBlank(complaintCollection.getOriginId())) { |
|
|
|
|
@ -169,6 +175,12 @@ public class ComplaintCollectionServiceImpl implements ComplaintCollectionServic
|
|
|
|
|
if (!exists) { |
|
|
|
|
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); |
|
|
|
|
// 处理 involve_problem + tag
|
|
|
|
|
String involveProblem = CodeTranslateUtil.joinDistinct(request.getInvolveProblemIdList()); |
|
|
|
|
@ -238,7 +250,7 @@ public class ComplaintCollectionServiceImpl implements ComplaintCollectionServic
|
|
|
|
|
}).toList(); |
|
|
|
|
one.setThingFiles(fileVos); |
|
|
|
|
// 超时情况
|
|
|
|
|
fillCheckTimeoutInfo(one); |
|
|
|
|
// fillCheckTimeoutInfo(one);
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
ComplaintCollectionPageVo complaintCollectionPageVo = new ComplaintCollectionPageVo(); |
|
|
|
|
|