Browse Source

Merge remote-tracking branch 'origin/master'

master
WendyYang 1 year ago
parent
commit
abfd76c0ff
2 changed files with 13 additions and 9 deletions
  1. +2
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java
  2. +11
    -9
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/handle/WithDrawHandle.java

+ 2
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java View File

@@ -99,6 +99,8 @@ public class PrequalificationDeclaredProjectManage {
VUtils.isTrue(Objects.isNull(projectInfo)).throwMessage("提交失败 此项目不存在!");

//要判断 当前操作人 是不是项目主管单位的人
VUtils.isTrue(Objects.isNull(user.getOrganizationCode()))
.throwMessage(String.format("当前登录人没有单位 【%s】",user.getRealName()));
VUtils.isTrue(!user.getOrganizationCode().equals(projectInfo.getSuperOrgCode()))
.throwMessage(String.format("只有主管单位 【%s】的人 才能够提交",projectInfo.getSuperOrg()));



+ 11
- 9
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/handle/WithDrawHandle.java View File

@@ -89,10 +89,11 @@ public class WithDrawHandle {

Boolean isAndOr = Boolean.FALSE;

//如果上个会签没取到 还有种情况是 会签 或签 并且在上个节点
if(CollUtil.isNotEmpty(beforeAndOr)) {
for (ProgressNode n : beforeAndOr) {
if (n.getUserId().equals(user.getEmployeeCode())) {
//还有种情况是 会签 或签 并且在当前节点 并且已经通过
if(CollUtil.isNotEmpty(thisAndOr)){
for(ProgressNode n : thisAndOr){
if(n.getUserId().equals(user.getEmployeeCode()) &&
Objects.nonNull(n.getFinishTime())){
beforeProgressNode = n;
//说明当前操作人 在上个会签或者或签节点
isAndOr = Boolean.TRUE;
@@ -101,11 +102,10 @@ public class WithDrawHandle {
}
}

//还有种情况是 会签 或签 并且在当前节点 并且已经通过
if(!isAndOr && CollUtil.isNotEmpty(thisAndOr)){
for(ProgressNode n : thisAndOr){
if(n.getUserId().equals(user.getEmployeeCode()) &&
Objects.nonNull(n.getFinishTime())){
//如果上个会签没取到 还有种情况是 会签 或签 并且在上个节点
if(!isAndOr && CollUtil.isNotEmpty(beforeAndOr)) {
for (ProgressNode n : beforeAndOr) {
if (n.getUserId().equals(user.getEmployeeCode())) {
beforeProgressNode = n;
//说明当前操作人 在上个会签或者或签节点
isAndOr = Boolean.TRUE;
@@ -114,6 +114,8 @@ public class WithDrawHandle {
}
}



if(!isAndOr && (Objects.isNull(beforeProgressNode)
|| !user.getEmployeeCode().equals(beforeProgressNode.getUserId()))){
return Boolean.FALSE;


Loading…
Cancel
Save