|
@@ -1692,38 +1692,11 @@ public class BocomBasicInfoServiceImpl extends ServiceImpl<BocomBasicInfoMapper,
|
|
|
}
|
|
|
|
|
|
} else if (oldBocomBasicInfo.getCustomerType() == 1) {
|
|
|
- Boolean changeActualController = false;
|
|
|
- //负责人
|
|
|
- BocomShareholderActualController oldActualController = bocomShareholderActualControllerService.lambdaQuery()
|
|
|
- .eq(BocomShareholderActualController::getBocomBasicInfoId, oldBocomBasicInfo.getId())
|
|
|
- .eq(BocomShareholderActualController::getPersonType, 2)
|
|
|
- .one();
|
|
|
- if (CollectionUtil.isNotEmpty(bocomBasicInfo.getBocomShareholderActualControllers())) {
|
|
|
- List<BocomShareholderActualController> actualControllerList = bocomBasicInfo
|
|
|
- .getBocomShareholderActualControllers().stream().filter(t -> t.getPersonType() == 2)
|
|
|
- .collect(Collectors.toList());
|
|
|
- if (CollectionUtil.isNotEmpty(actualControllerList)) {
|
|
|
- BocomShareholderActualController actualController = actualControllerList.get(0);
|
|
|
- if (!oldActualController.getCertificateCode().equals(actualController.getCertificateCode())) {
|
|
|
- changeActualController = true;
|
|
|
- //负责人变更
|
|
|
- legalFlag = "1";
|
|
|
- FileStorageDO fileStorageDO = fileService.lambdaQuery().eq(FileStorageDO::getBusinessType, FileModuleDict.ChildEnum.BOCOM_REGISTER_BUSINESS_LICENSE.getCode())
|
|
|
- .eq(FileStorageDO::getBusinessId, bocomBasicInfo.getId())
|
|
|
- .orderByDesc(FileStorageDO::getGmtCreate).one();
|
|
|
- if (fileStorageDO != null && fileStorageDO.getId().equals(bocomBasicInfo.getFileId())) {
|
|
|
- throw new BusinessException(CodeUtil.FAIL, "公司法人变更必须重新上传营业执照!");
|
|
|
- }
|
|
|
- companyFlag = "1";
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
- }
|
|
|
- //如果单位名称、负责人证件号码、授权代理人证件号码与原来一致 抛异常
|
|
|
+ //如果单位名称、授权代理人证件号码与原来一致 抛异常
|
|
|
if (oldBocomBasicInfo.getCustomerName().equals(bocomBasicInfo.getCustomerName()) &&
|
|
|
- !changeActualController && oldAgent.getCertificateCode().equals(newAgent.getCertificateCode())) {
|
|
|
- throw new BusinessException(CodeUtil.FAIL, "单位名称、负责人证件号码、授权代理人证件号码“未发生变更,其他信息请走修改流程!");
|
|
|
+ oldAgent.getCertificateCode().equals(newAgent.getCertificateCode())) {
|
|
|
+ throw new BusinessException(CodeUtil.FAIL, "单位名称、授权代理人证件号码“未发生变更,其他信息请走修改流程!");
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1735,33 +1708,14 @@ public class BocomBasicInfoServiceImpl extends ServiceImpl<BocomBasicInfoMapper,
|
|
|
.one();
|
|
|
BocomLegalPersonInfo newLegalPersonInfo = bocomBasicInfo.getBocomLegalPersonInfo();
|
|
|
|
|
|
- Boolean changeActualController = false;
|
|
|
- //负责人
|
|
|
- BocomShareholderActualController oldActualController = bocomShareholderActualControllerService.lambdaQuery()
|
|
|
- .eq(BocomShareholderActualController::getBocomBasicInfoId, oldBocomBasicInfo.getId())
|
|
|
- .eq(BocomShareholderActualController::getPersonType, 2)
|
|
|
- .one();
|
|
|
- if (CollectionUtil.isNotEmpty(bocomBasicInfo.getBocomShareholderActualControllers())) {
|
|
|
- List<BocomShareholderActualController> actualControllerList = bocomBasicInfo
|
|
|
- .getBocomShareholderActualControllers().stream().filter(t -> t.getPersonType() == 2)
|
|
|
- .collect(Collectors.toList());
|
|
|
- if (CollectionUtil.isNotEmpty(actualControllerList)) {
|
|
|
- BocomShareholderActualController actualController = actualControllerList.get(0);
|
|
|
- if (!oldActualController.getCertificateCode().equals(actualController.getCertificateCode())) {
|
|
|
- changeActualController = true;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
if (!oldBocomBasicInfo.getCustomerName().equals(bocomBasicInfo.getCustomerName()) ||
|
|
|
- !oldLegalPerson.getCertificateCode().equals(newLegalPersonInfo.getCertificateCode()) ||
|
|
|
- changeActualController) {
|
|
|
- throw new BusinessException(CodeUtil.FAIL, "当前账户,单位名称和法人/责任人不可变更!");
|
|
|
+ !oldLegalPerson.getCertificateCode().equals(newLegalPersonInfo.getCertificateCode())
|
|
|
+ ) {
|
|
|
+ throw new BusinessException(CodeUtil.FAIL, "当前账户,单位名称和法人不可变更!");
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
modfCntlWord = "000" + companyFlag + "0000" + legalFlag + agentFlag;
|