@@ -411,7 +411,7 @@ public class ProjectLibManage { | |||||
.annualAmount(projectInfo.getAnnualPlanAmount()) | .annualAmount(projectInfo.getAnnualPlanAmount()) | ||||
.build()); | .build()); | ||||
List<ProjectRenewalFundDeclaration> renewalDeclarations = renewalFundDeclarationService.list(Wrappers.lambdaQuery(ProjectRenewalFundDeclaration.class) | List<ProjectRenewalFundDeclaration> renewalDeclarations = renewalFundDeclarationService.list(Wrappers.lambdaQuery(ProjectRenewalFundDeclaration.class) | ||||
.eq(ProjectRenewalFundDeclaration::getProjectId, vo.getId()) | |||||
.eq(ProjectRenewalFundDeclaration::getProjectId, projectInfo.getId()) | |||||
.eq(ProjectRenewalFundDeclaration::getApprovalStatus, ProjectRenewalApprovalStatusEnum.PASS.name()) | .eq(ProjectRenewalFundDeclaration::getApprovalStatus, ProjectRenewalApprovalStatusEnum.PASS.name()) | ||||
.eq(ProjectRenewalFundDeclaration::getDeleted,Boolean.FALSE) | .eq(ProjectRenewalFundDeclaration::getDeleted,Boolean.FALSE) | ||||
.orderByAsc(ProjectRenewalFundDeclaration::getProjectYear)); | .orderByAsc(ProjectRenewalFundDeclaration::getProjectYear)); | ||||
@@ -112,7 +112,7 @@ public class ProjectRenewalFundManage { | |||||
.annualAmount(project.getAnnualPlanAmount()) | .annualAmount(project.getAnnualPlanAmount()) | ||||
.build()); | .build()); | ||||
List<ProjectRenewalFundDeclaration> renewalDeclarations = projectRenewalFundDeclarationService.list(Wrappers.lambdaQuery(ProjectRenewalFundDeclaration.class) | List<ProjectRenewalFundDeclaration> renewalDeclarations = projectRenewalFundDeclarationService.list(Wrappers.lambdaQuery(ProjectRenewalFundDeclaration.class) | ||||
.eq(ProjectRenewalFundDeclaration::getProjectId, vo.getId()) | |||||
.eq(ProjectRenewalFundDeclaration::getProjectId, vo.getProjectId()) | |||||
.eq(ProjectRenewalFundDeclaration::getApprovalStatus, ProjectRenewalApprovalStatusEnum.PASS.name()) | .eq(ProjectRenewalFundDeclaration::getApprovalStatus, ProjectRenewalApprovalStatusEnum.PASS.name()) | ||||
.eq(ProjectRenewalFundDeclaration::getDeleted,Boolean.FALSE) | .eq(ProjectRenewalFundDeclaration::getDeleted,Boolean.FALSE) | ||||
.orderByAsc(ProjectRenewalFundDeclaration::getProjectYear)); | .orderByAsc(ProjectRenewalFundDeclaration::getProjectYear)); | ||||
@@ -114,7 +114,7 @@ public class EarlyWarningInstanceNotStartTask { | |||||
.eq(Project::getAreaCode, areaCode) | .eq(Project::getAreaCode, areaCode) | ||||
.eq(Project::getNewest, Boolean.TRUE) | .eq(Project::getNewest, Boolean.TRUE) | ||||
.eq(Project::getStatus,projectStutas)); | .eq(Project::getStatus,projectStutas)); | ||||
log.info("needNextProjects :{}",needNextProjects.size()); | |||||
//需要发通知的项目 | //需要发通知的项目 | ||||
List<Project> needToWaringProjects = needNextProjects.stream() | List<Project> needToWaringProjects = needNextProjects.stream() | ||||
.filter(p -> { | .filter(p -> { | ||||
@@ -130,9 +130,6 @@ public class EarlyWarningInstanceNotStartTask { | |||||
} | } | ||||
} | } | ||||
log.info("projectId :{}",p.getId()); | |||||
log.info("秒数差 :{}",Duration.between(p.getUpdateOn(),LocalDateTime.now()).getSeconds()); | |||||
if(Duration.between(p.getUpdateOn(),LocalDateTime.now()).toMinutes() >= time * 60 && //time * 60 | if(Duration.between(p.getUpdateOn(),LocalDateTime.now()).toMinutes() >= time * 60 && //time * 60 | ||||
Duration.between(p.getUpdateOn(),LocalDateTime.now()).toMinutes() <= time * 60 + 1){ //time * 60 | Duration.between(p.getUpdateOn(),LocalDateTime.now()).toMinutes() <= time * 60 + 1){ //time * 60 | ||||
return Boolean.TRUE; | return Boolean.TRUE; | ||||
@@ -221,7 +218,7 @@ public class EarlyWarningInstanceNotStartTask { | |||||
.eq(Project::getAreaCode, areaCode) | .eq(Project::getAreaCode, areaCode) | ||||
.eq(Project::getNewest, Boolean.TRUE) | .eq(Project::getNewest, Boolean.TRUE) | ||||
.eq(Project::getStatus,projectStutas)); | .eq(Project::getStatus,projectStutas)); | ||||
log.info("needNextProjects :{}",needNextProjects.size()); | |||||
List<String> projectCodes = needNextProjects.stream().map(Project::getProjectCode).collect(Collectors.toList()); | List<String> projectCodes = needNextProjects.stream().map(Project::getProjectCode).collect(Collectors.toList()); | ||||
List<Operation> operations = operationService.list(Wrappers.lambdaQuery(Operation.class) | List<Operation> operations = operationService.list(Wrappers.lambdaQuery(Operation.class) | ||||