1、增加异常通知查询公告是否发送接口
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user