|
@@ -385,10 +385,13 @@ public class ProjectLibManage { |
|
|
project.setId(null); |
|
|
project.setId(null); |
|
|
project.setCreateOn(LocalDateTime.now()); |
|
|
project.setCreateOn(LocalDateTime.now()); |
|
|
project.setUpdateOn(LocalDateTime.now()); |
|
|
project.setUpdateOn(LocalDateTime.now()); |
|
|
project.setIsBackReject(Boolean.TRUE); |
|
|
|
|
|
|
|
|
project.setIsBackReject(Boolean.FALSE); |
|
|
stateMachineUtils.pass(project); |
|
|
stateMachineUtils.pass(project); |
|
|
projectService.save(project); |
|
|
projectService.save(project); |
|
|
|
|
|
|
|
|
|
|
|
oldProject.setIsBackReject(Boolean.TRUE); |
|
|
|
|
|
projectService.updateById(oldProject); |
|
|
|
|
|
|
|
|
projectService.update(Wrappers.lambdaUpdate(Project.class) |
|
|
projectService.update(Wrappers.lambdaUpdate(Project.class) |
|
|
.set(Project::getNewest, Boolean.FALSE) |
|
|
.set(Project::getNewest, Boolean.FALSE) |
|
|
.ne(Project::getId, project.getId()) |
|
|
.ne(Project::getId, project.getId()) |
|
@@ -413,7 +416,7 @@ public class ProjectLibManage { |
|
|
project.setCreateOn(LocalDateTime.now()); |
|
|
project.setCreateOn(LocalDateTime.now()); |
|
|
project.setUpdateOn(LocalDateTime.now()); |
|
|
project.setUpdateOn(LocalDateTime.now()); |
|
|
//都是在驳回 重新提交时用的 |
|
|
//都是在驳回 重新提交时用的 |
|
|
project.setIsBackReject(Boolean.TRUE); |
|
|
|
|
|
|
|
|
project.setIsBackReject(Boolean.FALSE); |
|
|
if (Objects.nonNull(stageCode)) { |
|
|
if (Objects.nonNull(stageCode)) { |
|
|
project.setStage(stageCode); |
|
|
project.setStage(stageCode); |
|
|
} |
|
|
} |
|
@@ -421,6 +424,9 @@ public class ProjectLibManage { |
|
|
project.setStatus(statusCode); |
|
|
project.setStatus(statusCode); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
oldProject.setIsBackReject(Boolean.TRUE); |
|
|
|
|
|
projectService.updateById(oldProject); |
|
|
|
|
|
|
|
|
if (projectService.save(project)) { |
|
|
if (projectService.save(project)) { |
|
|
projectService.update(Wrappers.lambdaUpdate(Project.class) |
|
|
projectService.update(Wrappers.lambdaUpdate(Project.class) |
|
|
.set(Project::getNewest, Boolean.FALSE) |
|
|
.set(Project::getNewest, Boolean.FALSE) |
|
@@ -516,10 +522,13 @@ public class ProjectLibManage { |
|
|
project.setCreateOn(LocalDateTime.now()); |
|
|
project.setCreateOn(LocalDateTime.now()); |
|
|
project.setUpdateOn(LocalDateTime.now()); |
|
|
project.setUpdateOn(LocalDateTime.now()); |
|
|
// 标识保存的项目信息是否为建设方案申报项目 |
|
|
// 标识保存的项目信息是否为建设方案申报项目 |
|
|
project.setIsConstruct(Boolean.TRUE); |
|
|
|
|
|
|
|
|
project.setIsConstruct(Boolean.FALSE); |
|
|
project.setIsBackReject(isBackReject); |
|
|
project.setIsBackReject(isBackReject); |
|
|
stateMachineUtils.pass(project); |
|
|
stateMachineUtils.pass(project); |
|
|
|
|
|
|
|
|
|
|
|
oldProject.setIsBackReject(Boolean.TRUE); |
|
|
|
|
|
projectService.updateById(oldProject); |
|
|
|
|
|
|
|
|
if (projectService.save(project)) { |
|
|
if (projectService.save(project)) { |
|
|
//保存项目和实例的关系 |
|
|
//保存项目和实例的关系 |
|
|
ProjectInst projectInst = new ProjectInst(); |
|
|
ProjectInst projectInst = new ProjectInst(); |
|
@@ -554,9 +563,12 @@ public class ProjectLibManage { |
|
|
project.setCreateOn(LocalDateTime.now()); |
|
|
project.setCreateOn(LocalDateTime.now()); |
|
|
project.setUpdateOn(LocalDateTime.now()); |
|
|
project.setUpdateOn(LocalDateTime.now()); |
|
|
// 标识保存的项目信息是否为建设方案申报项目 |
|
|
// 标识保存的项目信息是否为建设方案申报项目 |
|
|
project.setIsConstruct(Boolean.TRUE); |
|
|
|
|
|
|
|
|
project.setIsConstruct(Boolean.FALSE); |
|
|
stateMachineUtils.pass(project); |
|
|
stateMachineUtils.pass(project); |
|
|
|
|
|
|
|
|
|
|
|
oldProject.setIsBackReject(Boolean.TRUE); |
|
|
|
|
|
projectService.updateById(oldProject); |
|
|
|
|
|
|
|
|
if (projectService.save(project)) { |
|
|
if (projectService.save(project)) { |
|
|
//保存项目和实例的关系 |
|
|
//保存项目和实例的关系 |
|
|
ProjectInst projectInst = new ProjectInst(); |
|
|
ProjectInst projectInst = new ProjectInst(); |
|
|