处理查询bug

This commit is contained in:
fuqingji
2022-05-20 15:24:51 +08:00
parent f63b7f901c
commit 0ffc747203

View File

@ -800,7 +800,7 @@ public class ProjectSectionServiceImpl extends BaseServiceImpl<ProjectSectionMap
//只增涨,不回退 //只增涨,不回退
private void updateProjectBusinessMode(List<String> sectionIds, int businessMode) { private void updateProjectBusinessMode(List<String> sectionIds, int businessMode) {
if (!sectionIds.isEmpty()) { 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) { if (Objects.isNull(project.getBusinessModule()) || project.getBusinessModule() < businessMode) {
boolean b = recordService.updateById(new ProjectRecord().setId(project.getId()).setBusinessModule(businessMode)); boolean b = recordService.updateById(new ProjectRecord().setId(project.getId()).setBusinessModule(businessMode));
ProjectExceptionEnum.FRAME_EXCEPTION_NOTIFICATION_MESSAGE.customValidName("项目阶段更新失败", !b); ProjectExceptionEnum.FRAME_EXCEPTION_NOTIFICATION_MESSAGE.customValidName("项目阶段更新失败", !b);