4ee13b49 by xiaojie

【数据资产】

1、判断是否审核自动上架
1 parent 551cbe60
...@@ -223,7 +223,7 @@ public class DemandRQVO extends FlowRQBaseVO { ...@@ -223,7 +223,7 @@ public class DemandRQVO extends FlowRQBaseVO {
223 private String processCompanyName; 223 private String processCompanyName;
224 224
225 @Schema(title = "上架状态(Y 上架 N 下架)") 225 @Schema(title = "上架状态(Y 上架 N 下架)")
226 private String listingStatus = "N"; 226 private String listingStatus;
227 227
228 /******** 子对象 *****/ 228 /******** 子对象 *****/
229 229
......
...@@ -67,6 +67,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService ...@@ -67,6 +67,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
67 */ 67 */
68 private static final String FLOW_TYPE = WorkFlowBizEnum.DATA_DEMAND.getValue(); 68 private static final String FLOW_TYPE = WorkFlowBizEnum.DATA_DEMAND.getValue();
69 69
70 @Value("${isTenantAndHospital:false}")
71 private Boolean isTenantAndHospital;
72
70 @Autowired 73 @Autowired
71 private ZQConfig zqConfig; 74 private ZQConfig zqConfig;
72 75
...@@ -344,8 +347,10 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService ...@@ -344,8 +347,10 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
344 } 347 }
345 348
346 // 判断是否审核自动上架 349 // 判断是否审核自动上架
350 if (!isTenantAndHospital) {
347 updateWrapper.set(MfDemand::getListingStatus, "Y"); 351 updateWrapper.set(MfDemand::getListingStatus, "Y");
348 } 352 }
353 }
349 // 同步更新审批状态 354 // 同步更新审批状态
350 updateWrapper.set(MfDemand::getBizApproveState, dto.getApprovalState()); 355 updateWrapper.set(MfDemand::getBizApproveState, dto.getApprovalState());
351 updateWrapper.set(StringUtils.isNotBlank(orderNo),MfDemand::getProcessOrderNo, orderNo); 356 updateWrapper.set(StringUtils.isNotBlank(orderNo),MfDemand::getProcessOrderNo, orderNo);
...@@ -369,8 +374,10 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService ...@@ -369,8 +374,10 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
369 //生成加工单 374 //生成加工单
370 orderNo = addOrder(mfDemandService.getById(dto.getBizGuid()),dto); 375 orderNo = addOrder(mfDemandService.getById(dto.getBizGuid()),dto);
371 // 判断是否审核自动上架 376 // 判断是否审核自动上架
377 if (!isTenantAndHospital) {
372 updateWrapper.set(MfDemand::getListingStatus, "Y"); 378 updateWrapper.set(MfDemand::getListingStatus, "Y");
373 } 379 }
380 }
374 // 同步更新审批状态 381 // 同步更新审批状态
375 updateWrapper.set(MfDemand::getBizApproveState, dto.getApprovalState()); 382 updateWrapper.set(MfDemand::getBizApproveState, dto.getApprovalState());
376 updateWrapper.set(MfDemand::getCrossPlatformApproveState, dto.getApprovalState()); 383 updateWrapper.set(MfDemand::getCrossPlatformApproveState, dto.getApprovalState());
...@@ -518,6 +525,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService ...@@ -518,6 +525,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
518 checkProductGuid(rqVO.getDataProductGuid()); 525 checkProductGuid(rqVO.getDataProductGuid());
519 } 526 }
520 //endregion 2.2.业务数据验证 527 //endregion 2.2.业务数据验证
528 if (!isTenantAndHospital) {
529 rqVO.setListingStatus("N");
530 }
521 531
522 //endregion 2.数据验证特殊处理 532 //endregion 2.数据验证特殊处理
523 533
...@@ -602,6 +612,10 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService ...@@ -602,6 +612,10 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
602 mfDemandService.update(updateWrapper); 612 mfDemandService.update(updateWrapper);
603 } 613 }
604 614
615 if (!isTenantAndHospital) {
616 rqVO.setListingStatus("N");
617 }
618
605 //region 3.数据转换处理 619 //region 3.数据转换处理
606 620
607 //region 3.1.数据过程转换 621 //region 3.1.数据过程转换
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!