4ee13b49 by xiaojie

【数据资产】

1、判断是否审核自动上架
1 parent 551cbe60
......@@ -223,7 +223,7 @@ public class DemandRQVO extends FlowRQBaseVO {
private String processCompanyName;
@Schema(title = "上架状态(Y 上架 N 下架)")
private String listingStatus = "N";
private String listingStatus;
/******** 子对象 *****/
......
......@@ -67,6 +67,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
*/
private static final String FLOW_TYPE = WorkFlowBizEnum.DATA_DEMAND.getValue();
@Value("${isTenantAndHospital:false}")
private Boolean isTenantAndHospital;
@Autowired
private ZQConfig zqConfig;
......@@ -344,7 +347,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
}
// 判断是否审核自动上架
updateWrapper.set(MfDemand::getListingStatus, "Y");
if (!isTenantAndHospital) {
updateWrapper.set(MfDemand::getListingStatus, "Y");
}
}
// 同步更新审批状态
updateWrapper.set(MfDemand::getBizApproveState, dto.getApprovalState());
......@@ -369,7 +374,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
//生成加工单
orderNo = addOrder(mfDemandService.getById(dto.getBizGuid()),dto);
// 判断是否审核自动上架
updateWrapper.set(MfDemand::getListingStatus, "Y");
if (!isTenantAndHospital) {
updateWrapper.set(MfDemand::getListingStatus, "Y");
}
}
// 同步更新审批状态
updateWrapper.set(MfDemand::getBizApproveState, dto.getApprovalState());
......@@ -518,6 +525,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
checkProductGuid(rqVO.getDataProductGuid());
}
//endregion 2.2.业务数据验证
if (!isTenantAndHospital) {
rqVO.setListingStatus("N");
}
//endregion 2.数据验证特殊处理
......@@ -602,6 +612,10 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
mfDemandService.update(updateWrapper);
}
if (!isTenantAndHospital) {
rqVO.setListingStatus("N");
}
//region 3.数据转换处理
//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!