|
@@ -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;
|
|
@@ -130,7 +131,7 @@ public class WebsitContractSignLogic {
|
|
|
}
|
|
|
|
|
|
// 避免前端调用过快,法大大还没更新状态
|
|
|
- Thread.sleep(1000);
|
|
|
+ Thread.sleep(3000);
|
|
|
|
|
|
final List<WebsitContractSignItem> signItems = websitContractSignItemService.lambdaQuery()
|
|
|
.eq(WebsitContractSignItem::getWebsitContractSignRecordId, record.getId())
|
|
@@ -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::getCompanyCaAuthId, websit.getCompanyWechatId())
|
|
|
+ .eq(CompanyCaAuth::getWebsitId, followItem.getParentId())
|
|
|
+ .eq(CompanyCaAuth::getCompanyWechatId, 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认证记录");
|