e8b1b7a5 by xu

可信空间连接器入住接口

1 parent ce50f5a6
......@@ -155,7 +155,7 @@ public class TdsConnectorIdentityServiceImpl extends FlowAbstractImpl implements
beforeSave(rqVO);
MfTdsConnectorIdentity entity = convertToEntity(rqVO);
rqVO.setGuid(entity.getGuid());
if("N".equals(entity.getIsChangeData()) && flowBaseVO.getImmediateApprove()) {
if(StringUtils.isBlank(rqVO.getSourceBizGuid()) && flowBaseVO.getImmediateApprove()) {
entity.setConnectorIdentity(IdentificationCodeUtil.genConnectorCode(entity.getLegalSocialCreditCode(), IdentificationCodeUtil.medIndustry));
}
mfTdsConnectorIdentityService.csbrAddEntity(entity);
......@@ -214,7 +214,7 @@ public class TdsConnectorIdentityServiceImpl extends FlowAbstractImpl implements
beforeUpdate(rqVO);
MfTdsConnectorIdentity oldEntity = mfTdsConnectorIdentityService.getById(rqVO.getGuid());
MfTdsConnectorIdentity entity = convertToEntity(rqVO);
if("N".equals(entity.getIsChangeData()) && StringUtils.isBlank(entity.getConnectorIdentity())
if("N".equals(oldEntity.getIsChangeData()) && StringUtils.isBlank(oldEntity.getConnectorIdentity())
&& flowBaseVO.getImmediateApprove()) {
entity.setConnectorIdentity(IdentificationCodeUtil.genConnectorCode(entity.getLegalSocialCreditCode(), IdentificationCodeUtil.medIndustry));
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!