处理查询bug
This commit is contained in:
@ -800,7 +800,7 @@ public class ProjectSectionServiceImpl extends BaseServiceImpl<ProjectSectionMap
|
||||
//只增涨,不回退
|
||||
private void updateProjectBusinessMode(List<String> sectionIds, int businessMode) {
|
||||
if (!sectionIds.isEmpty()) {
|
||||
ProjectRecord project = recordService.getById(sectionIds.stream().findFirst().get());
|
||||
ProjectRecord project = recordService.getById(this.getById(sectionIds.stream().findFirst().get()).getProjectId());
|
||||
if (Objects.isNull(project.getBusinessModule()) || project.getBusinessModule() < businessMode) {
|
||||
boolean b = recordService.updateById(new ProjectRecord().setId(project.getId()).setBusinessModule(businessMode));
|
||||
ProjectExceptionEnum.FRAME_EXCEPTION_NOTIFICATION_MESSAGE.customValidName("项目阶段更新失败", !b);
|
||||
|
Reference in New Issue
Block a user