|
|
@ -139,6 +139,14 @@ public class EnterpriseInfoServiceImpl extends BaseServiceImpl<EnterpriseInfoDao |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result completeRequisiteInfo(CompleteRequisiteInfoDTO fromDto) { |
|
|
|
// 校验统一社会信用代码是否已存在数据库
|
|
|
|
String uniformSocialCreditCode = fromDto.getUniformSocialCreditCode(); |
|
|
|
if(StringUtils.isNotBlank(uniformSocialCreditCode)){ |
|
|
|
int count = baseDao.getCountByCode(uniformSocialCreditCode); |
|
|
|
if(count > 0){ |
|
|
|
throw new RenException("您输入的统一社会信用代码已存在!"); |
|
|
|
} |
|
|
|
} |
|
|
|
//保存到企业数据库
|
|
|
|
EnterpriseInfoEntity enterpriseInfo = ConvertUtils.sourceToTarget(fromDto, EnterpriseInfoEntity.class); |
|
|
|
Result<ParentAndAllDeptDTO> parentResult = adminFeignClient.getParentAndAllDept(String.valueOf(fromDto.getDeptId())); |
|
|
|