提供自动认领的功能

master
杨海航 4 days ago
parent 4acb10b72d
commit 24127de396
  1. 4
      src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustmentIdentificationMaterialServiceImpl.java
  2. 6
      src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustmentServiceImpl.java

@ -527,8 +527,8 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl<En
// throw new RuntimeException(String.format("委托的审核任务是由其他人认领的。认领用户是: %s", uName));
// }
if (!dlpUser.getId().equals(entrustment.getCheckCandidateUser())) {
throw new RuntimeException(String.format("你不在可以审核的用户列表中!"));
if (!entrustment.getCheckCandidateUser().contains(dlpUser.getId())) {
throw new RuntimeException("你不在可以审核的用户列表中!");
}
//-------------------

@ -1471,7 +1471,7 @@ public class EntrustmentServiceImpl extends ServiceImpl<EntrustmentMapper, Entru
}
// 这里修改一下,我们要去掉委托认领的功能,所以只要用户是在审核列表中的,就可以进行审核操作
if (!dlpUser.getId().equals(entrustment.getCheckCandidateUser())) {
if (!entrustment.getCheckCandidateUser().contains(dlpUser.getId())) {
throw new RuntimeException("你不在可以审核的用户列表当中!");
}
// if (!dlpUser.getId().equals(entrustment.getCheckClaimUser())) {
@ -1721,8 +1721,8 @@ public class EntrustmentServiceImpl extends ServiceImpl<EntrustmentMapper, Entru
throw new RuntimeException(String.format("没有找到 id 为 %s 的委托", entrust.getId()));
}
if (!dlpUser.getId().equals(entrustment.getCheckCandidateUser())) {
throw new RuntimeException("你不在可以进行审批的用户列表中!");
if (!entrustment.getCheckCandidateUser().contains(dlpUser.getId())) {
throw new RuntimeException("你不在可以审批的用户列表中!");
}
// if (!dlpUser.getId().equals(entrustment.getApproveClaimUser())) {
// throw new RuntimeException(String.format("委托的审批任务是由其他人认领的。认领用户是: %s", entrustment.getCheckClaimUser()));

Loading…
Cancel
Save