|
@@ -51,6 +51,7 @@ public class WebsitContractSignLogic {
|
|
|
private final FDDNotifyLogic fddNotifyLogic;
|
|
|
private final OSSUtil ossUtil;
|
|
|
private final CompanyCaAuthService companyCaAuthService;
|
|
|
+ private final WebsitFollowConfigItemService websitFollowConfigItemService;
|
|
|
|
|
|
@Value("${fadada.websit.auth.verified-way}")
|
|
|
private String fddAuthVerifiedWay;
|
|
@@ -261,14 +262,19 @@ public class WebsitContractSignLogic {
|
|
|
.eq(WebsitContractSignField::getWebsitContractSignItemId, id)
|
|
|
.list();
|
|
|
|
|
|
+ final WebsitFollowConfigItem followItem = websitFollowConfigItemService.lambdaQuery()
|
|
|
+ .eq(WebsitFollowConfigItem::getCompanyWechatId, websit.getCompanyWechatId())
|
|
|
+ .eq(WebsitFollowConfigItem::getSubWebsitId, websit.getWebsitId())
|
|
|
+ .one();
|
|
|
+
|
|
|
final CompanyCaAuth companyCaAuth = companyCaAuthService.lambdaQuery()
|
|
|
- .eq(CompanyCaAuth::getWebsitId, websit.getParentId())
|
|
|
+ .eq(CompanyCaAuth::getWebsitId, followItem.getParentId())
|
|
|
.eq(CompanyCaAuth::getCompanyCaAuthId, websit.getCompanyWechatId())
|
|
|
.eq(CompanyCaAuth::getFadadaIsAuth, IsYesNoEnum.YES.getKey())
|
|
|
.eq(CompanyCaAuth::getFadadaAuthAutoStatus, IsYesNoEnum.YES.getKey())
|
|
|
.one();
|
|
|
|
|
|
- final AdminWebsit parentWebsit = adminWebsitService.getById(websit.getParentId());
|
|
|
+ final AdminWebsit parentWebsit = adminWebsitService.getById(followItem.getParentId());
|
|
|
|
|
|
if (Objects.isNull(companyCaAuth)) {
|
|
|
throw new RemoteServiceException("未找到上级网点的CA认证记录");
|