Merge branch 'dev' into 'master'
1、修改异常处理发布才能选择的标段过滤bug See merge request eshop/biz_service_ebtp_project!23
This commit is contained in:
@ -494,7 +494,7 @@ public class ProjectCommonUtil {
|
||||
public static final int INQUIRY_NOTICE_STATUS_2 = 2;
|
||||
|
||||
/**
|
||||
* 异常处理标段是否被选中 1 否
|
||||
* 异常处理标段是否被选中 1 选中
|
||||
*/
|
||||
public static final int IS_EXCEPTION_CHECK_1 = 1;
|
||||
|
||||
|
@ -31,7 +31,7 @@ public class ProjectSectionVO extends ProjectSection implements Serializable {
|
||||
private BasePageRequest basePageRequest;
|
||||
|
||||
/**
|
||||
* 是否被选中 0 是 1 否
|
||||
* 是否被选中 0 不选中 1 选中
|
||||
*/
|
||||
@ApiModelProperty(value = "是否被选中 0 不选中 1 选中")
|
||||
private Integer isExceptionCheck;
|
||||
|
@ -488,7 +488,7 @@ public class ProjectSectionServiceImpl extends BaseServiceImpl<ProjectSectionMap
|
||||
boolean isReviewMethod = recordService.isReviewMethod(recordService.getById(projectId));
|
||||
//项目异常新增
|
||||
List<ProjectSectionVO> sectionVOList = projectSectionMapper.selectEditSectionBySave(projectId);
|
||||
sectionVOList.stream().filter(n -> (n.getBusinessModule() > (isReviewMethod ? ProjectCommonUtil.BUSINESS_MODULE_2 : ProjectCommonUtil.BUSINESS_MODULE_7)
|
||||
sectionVOList = sectionVOList.stream().filter(n -> (n.getBusinessModule() > (isReviewMethod ? ProjectCommonUtil.BUSINESS_MODULE_2 : ProjectCommonUtil.BUSINESS_MODULE_7)
|
||||
&& n.getStatus() < ProjectCommonUtil.BUSINESS_MODULE_12)).collect(Collectors.toList());
|
||||
return sectionVOList;
|
||||
}
|
||||
@ -498,9 +498,10 @@ public class ProjectSectionServiceImpl extends BaseServiceImpl<ProjectSectionMap
|
||||
boolean isReviewMethod = recordService.isReviewMethod(recordService.getById(projectId));
|
||||
//项目异常修改
|
||||
List<ProjectSectionVO> sectionVOList = projectSectionMapper.selectEditSectionByUpdate(projectId, exceptionId);
|
||||
sectionVOList.stream().filter(n -> !(n.getIsExceptionCheck() == ProjectCommonUtil.IS_EXCEPTION_CHECK_1
|
||||
&& (n.getBusinessModule() <= (isReviewMethod ? ProjectCommonUtil.BUSINESS_MODULE_2 : ProjectCommonUtil.BUSINESS_MODULE_7)
|
||||
&& n.getBusinessModule() >= ProjectCommonUtil.BUSINESS_MODULE_12))).collect(Collectors.toList());
|
||||
sectionVOList = sectionVOList.stream().filter(n -> !(
|
||||
n.getIsExceptionCheck() != ProjectCommonUtil.IS_EXCEPTION_CHECK_1 //不选中状态and(标段在发布之前的流程and归档流程)
|
||||
&& (n.getBusinessModule() <= (isReviewMethod ? ProjectCommonUtil.BUSINESS_MODULE_2 : ProjectCommonUtil.BUSINESS_MODULE_7) && n.getBusinessModule() >= ProjectCommonUtil.BUSINESS_MODULE_12)
|
||||
)).collect(Collectors.toList());
|
||||
return sectionVOList;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user