1、增加异常通知查询公告是否发送接口

This commit is contained in:
dxc
2021-09-02 10:02:03 +08:00
parent f78724db51
commit fa41e6226b
3 changed files with 27 additions and 0 deletions

View File

@ -443,4 +443,12 @@ public class ProjectSectionController{
return BaseResponse.success(projectSectionService.calibrationToArchiveByIds(sectionIds));
}
@ApiOperation("根据方案ID查询标段是否发布公告")
@PostMapping("/getSectionIsAnnounce")
public BaseResponse<Boolean> getSectionIsAnnounce(@ApiParam(value = "标段方案ID", required = true) @RequestParam(name = "planId") String planId){
return BaseResponse.success(projectSectionService.getSectionIsAnnounce(planId));
}
}

View File

@ -229,4 +229,12 @@ public interface IProjectSectionService extends IBaseService<ProjectSection>{
* @return 返回结果
*/
boolean calibrationToArchiveByIds(List<String> sectionIds);
/**
* 根据方案ID查询标段是否发布公告
* @param planId 方案ID
* @return 返回结果
*/
boolean getSectionIsAnnounce(String planId);
}

View File

@ -642,6 +642,17 @@ public class ProjectSectionServiceImpl extends BaseServiceImpl<ProjectSectionMap
return result;
}
@Override
public boolean getSectionIsAnnounce(String planId) {
ProjectSectionVO vo = this.selectByPlanId(planId);
ProjectExceptionEnum.FRAME_EXCEPTION_PROJECT_SECTION_FLOW_INIT_NOT_FIND.customValid(null == vo || StringUtils.isEmpty(vo.getId()));
ProjectRecord record = recordService.getById(vo.getProjectId());
return recordService.isReviewMethod(record)? vo.getBusinessModule() > ProjectCommonUtil.BUSINESS_MODULE_2 :
vo.getBusinessModule() > ProjectCommonUtil.BUSINESS_MODULE_7;
}
/**
* 拼装标段模块修改流程实体并插入数据
* @param sectionId 标段ID