【DAOP-1.0】企业认证
【功能点】测试问题处理
Showing
1 changed file
with
20 additions
and
1 deletions
| ... | @@ -170,6 +170,20 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -170,6 +170,20 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | 
| 170 | afterSave(entity, rqVO); | 170 | afterSave(entity, rqVO); | 
| 171 | } | 171 | } | 
| 172 | 172 | ||
| 173 | private void checkProductGuid(String dataProductGuid){ | ||
| 174 | if (StringUtils.isBlank(dataProductGuid)) { | ||
| 175 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, "产品不能为空"); | ||
| 176 | } | ||
| 177 | //此产品审批中的需求只能有1个 | ||
| 178 | LambdaQueryWrapper<MfDemand> wrapper = new LambdaQueryWrapper<>(); | ||
| 179 | wrapper.eq(MfDemand::getDataProductGuid,dataProductGuid); | ||
| 180 | wrapper.eq(MfDemand::getBizApproveState,"A"); | ||
| 181 | List<MfDemand> list = mfDemandService.list(wrapper); | ||
| 182 | if(CollectionUtils.isNotEmpty(list)){ | ||
| 183 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, "该数据产品已在审批中,请勿重复提交!"); | ||
| 184 | } | ||
| 185 | } | ||
| 186 | |||
| 173 | /** | 187 | /** | 
| 174 | * 数据需求数据修改 | 188 | * 数据需求数据修改 | 
| 175 | * @author xcq | 189 | * @author xcq | 
| ... | @@ -396,6 +410,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -396,6 +410,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | 
| 396 | //endregion 2.1.业务合规性验证 | 410 | //endregion 2.1.业务合规性验证 | 
| 397 | 411 | ||
| 398 | //region 2.2.业务数据验证 | 412 | //region 2.2.业务数据验证 | 
| 413 | if(rqVO.getImmediateApprove()){ | ||
| 414 | checkProductGuid(rqVO.getDataProductGuid()); | ||
| 415 | } | ||
| 399 | //endregion 2.2.业务数据验证 | 416 | //endregion 2.2.业务数据验证 | 
| 400 | 417 | ||
| 401 | //endregion 2.数据验证特殊处理 | 418 | //endregion 2.数据验证特殊处理 | 
| ... | @@ -467,7 +484,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -467,7 +484,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | 
| 467 | throw new CsbrSystemException(SystemError.DATA_NOT_EXISTS, messageSourceUtil.notExistsToUpdateMessage(FUNCTION_NAME)); | 484 | throw new CsbrSystemException(SystemError.DATA_NOT_EXISTS, messageSourceUtil.notExistsToUpdateMessage(FUNCTION_NAME)); | 
| 468 | } | 485 | } | 
| 469 | //endregion 2.2.业务数据验证 | 486 | //endregion 2.2.业务数据验证 | 
| 470 | 487 | if(rqVO.getImmediateApprove()){ | |
| 488 | checkProductGuid(rqVO.getDataProductGuid()); | ||
| 489 | } | ||
| 471 | //endregion 2.数据验证特殊处理 | 490 | //endregion 2.数据验证特殊处理 | 
| 472 | 491 | ||
| 473 | //region 3.数据转换处理 | 492 | //region 3.数据转换处理 | ... | ... | 
- 
Please register or sign in to post a comment
