f8f33bb6 by xu

可信空间连接器入住接口

1 parent e8b1b7a5
......@@ -155,7 +155,9 @@ public class TdsConnectorIdentityServiceImpl extends FlowAbstractImpl implements
beforeSave(rqVO);
MfTdsConnectorIdentity entity = convertToEntity(rqVO);
rqVO.setGuid(entity.getGuid());
if(StringUtils.isBlank(rqVO.getSourceBizGuid()) && flowBaseVO.getImmediateApprove()) {
if(StringUtils.isBlank(rqVO.getSourceBizGuid())
&& StringUtils.isBlank(rqVO.getConnectorIdentity())
&& flowBaseVO.getImmediateApprove()) {
entity.setConnectorIdentity(IdentificationCodeUtil.genConnectorCode(entity.getLegalSocialCreditCode(), IdentificationCodeUtil.medIndustry));
}
mfTdsConnectorIdentityService.csbrAddEntity(entity);
......@@ -214,6 +216,7 @@ public class TdsConnectorIdentityServiceImpl extends FlowAbstractImpl implements
beforeUpdate(rqVO);
MfTdsConnectorIdentity oldEntity = mfTdsConnectorIdentityService.getById(rqVO.getGuid());
MfTdsConnectorIdentity entity = convertToEntity(rqVO);
rqVO.setConnectorIdentity(oldEntity.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!