소스 검색

Merge remote-tracking branch 'origin/dev' into dev

tags/24090601
WendyYang 2 달 전
부모
커밋
ea5c92efa8
2개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. +3
    -3
      hz-pm-api/src/main/java/com/hz/pm/api/scheduler/task/EarlyWarningWithoutSubmitTask.java
  2. +4
    -3
      hz-pm-api/src/test/java/com/hz/pm/api/warning/DelayWarningTest.java

+ 3
- 3
hz-pm-api/src/main/java/com/hz/pm/api/scheduler/task/EarlyWarningWithoutSubmitTask.java 파일 보기

@@ -302,10 +302,10 @@ public class EarlyWarningWithoutSubmitTask {
switch (flowType) {
case APPROVED_PROJECT_NOT_PURCHASED:
return !isPurchase;
case MODIFIED_NOT_FINAL_INSPECTION:
return !isModified && !isFinalInspection;
case PURCHASED_UNMODIFIED:
return isPurchase && !isModified;
return !isModified;
case MODIFIED_NOT_FINAL_INSPECTION:
return !isFinalInspection;
default:
return false;
}


+ 4
- 3
hz-pm-api/src/test/java/com/hz/pm/api/warning/DelayWarningTest.java 파일 보기

@@ -118,6 +118,7 @@ public class DelayWarningTest extends AppTests {
.isNotNull(Project::getBuildOrgCode)
.eq(Project::getNewest, Boolean.TRUE);
List<Project> projects = projectService.list(queryWrapper);
projects = projects.stream().filter(project -> project.getProjectCode().equals("330100000202700003")).collect(Collectors.toList());
List<ProjectEarlyWarning> projectEarlyWarnings = Lists.newArrayList();
List<WflowEarlyWarningRecords> earlyWarningRecords = Lists.newArrayList();
List<ProjectEarlyWarning> needRemoved = Lists.newArrayList();
@@ -317,10 +318,10 @@ public class DelayWarningTest extends AppTests {
switch (flowType) {
case APPROVED_PROJECT_NOT_PURCHASED:
return !isPurchase;
case MODIFIED_NOT_FINAL_INSPECTION:
return !isModified && !isFinalInspection;
case PURCHASED_UNMODIFIED:
return isPurchase && !isModified;
return !isModified;
case MODIFIED_NOT_FINAL_INSPECTION:
return !isFinalInspection;
default:
return false;
}


불러오는 중...
취소
저장