魏超 vor 5 Jahren
Ursprung
Commit
dc84959cba

+ 1
- 1
src/main/java/com/huiju/estateagents/eContract/controller/TaCompanyController.java Datei anzeigen

@@ -500,7 +500,7 @@ public class TaCompanyController extends BaseController {
500 500
         taMiniappQueryWrapper.eq("org_id", getOrgId(request));
501 501
         TaMiniapp taMiniapp = taMiniappService.getOne(taMiniappQueryWrapper);
502 502
 
503
-        String res = iTaCompanyService.autoAuthCompanySeal(id, getOrgId(request));
503
+        String res = iTaCompanyService.autoAuthCompanySeal(id, getOrgId(request), taMiniapp.getMiniappId());
504 504
         TaCompany taCompany = new TaCompany();
505 505
         taCompany.setCompanyId(id);
506 506
         taCompany.setAuthorizeAddress(res);

+ 1
- 1
src/main/java/com/huiju/estateagents/eContract/service/ITaCompanyService.java Datei anzeigen

@@ -34,7 +34,7 @@ public interface ITaCompanyService extends IService<TaCompany> {
34 34
      */
35 35
     TaCompany updateCompanyInfoByFdd(Integer id) throws Exception;
36 36
 
37
-    String autoAuthCompanySeal(Integer companyId, Integer orgId) throws Exception;
37
+    String autoAuthCompanySeal(Integer companyId, Integer orgId, String miniAppId) throws Exception;
38 38
 
39 39
     TaCompany getCompanyAndContractInfo(Integer companyId);
40 40
 

+ 2
- 2
src/main/java/com/huiju/estateagents/eContract/service/impl/TaCompanyServiceImpl.java Datei anzeigen

@@ -204,7 +204,7 @@ public class TaCompanyServiceImpl extends ServiceImpl<TaCompanyMapper, TaCompany
204 204
     }
205 205
 
206 206
     @Override
207
-    public String autoAuthCompanySeal(Integer companyId, Integer orgId) throws Exception {
207
+    public String autoAuthCompanySeal(Integer companyId, Integer orgId, String miniAppId) throws Exception {
208 208
         TaCompany taCompany = taCompanyMapper.selectById(companyId);
209 209
         String timeStamp = HttpsUtil.getTimeStamp();
210 210
         String transactionId = "TRAN" + timeStamp;
@@ -219,7 +219,7 @@ public class TaCompanyServiceImpl extends ServiceImpl<TaCompanyMapper, TaCompany
219 219
 
220 220
         Integer contractId = taContract.getContractId();
221 221
         String customerId = taCompany.getFadadaCode();
222
-        String res = taCompanySealUtil.autoAuthCompanySeal(transactionId, CommConstant.AUTH_TYPE, String.valueOf(contractId), customerId, String.valueOf(companyId));
222
+        String res = taCompanySealUtil.autoAuthCompanySeal(transactionId, CommConstant.AUTH_TYPE, String.valueOf(contractId), customerId, String.valueOf(companyId), miniAppId);
223 223
         return res;
224 224
     }
225 225