傅行帆 5 лет назад
Родитель
Сommit
32bca1785c

+ 2
- 1
src/main/java/com/huiju/estateagents/eContract/controller/TaCompanyController.java Просмотреть файл

@@ -70,6 +70,7 @@ public class TaCompanyController extends BaseController {
70 70
     @Autowired
71 71
     private ITaContractService iTaContractService;
72 72
 
73
+    @Autowired
73 74
     public ITaContractUserService iTaContractUserService;
74 75
 
75 76
     @Autowired
@@ -514,7 +515,7 @@ public class TaCompanyController extends BaseController {
514 515
      * 手动签署回调函数
515 516
      *
516 517
      */
517
-    @RequestMapping(value = "/fadd/sign", method = RequestMethod.POST)
518
+    @RequestMapping(value = "/fadd/sign", method = {RequestMethod.GET,RequestMethod.POST})
518 519
     public void faddSignNotify(@RequestParam(value = "transaction_id ",required = false) String transaction_id,
519 520
                                   @RequestParam(value = "contract_id ",required = false) String contract_id,
520 521
                                   @RequestParam(value = "result_code",required = false) String result_code,

+ 1
- 1
src/main/java/com/huiju/estateagents/eContract/controller/TaContractController.java Просмотреть файл

@@ -287,7 +287,7 @@ public class TaContractController extends BaseController {
287 287
             }
288 288
             TaPerson person = taPersons.get(0);
289 289
             String signUrl = iTaContractService.manualContract(taContract, person);
290
-            responseBean.addSuccess(signUrl);
290
+            return ResponseBean.success(signUrl);
291 291
         } catch (Exception e) {
292 292
             e.printStackTrace();
293 293
             logger.error("taCompanyList -=- {}", e.toString());

+ 2
- 2
src/main/java/com/huiju/estateagents/eContract/service/impl/TaContractServiceImpl.java Просмотреть файл

@@ -124,7 +124,7 @@ public class TaContractServiceImpl extends ServiceImpl<TaContractMapper, TaContr
124 124
         FddClientBase base = new FddClientBase(fadadaProperties.getAppId(),fadadaProperties.getAppSecret(),fadadaProperties.getVersion(),getFddServerHost(person.getMiniappId(),fadadaProperties.getServeHost()));
125 125
         String result = base.invokeUploadDocs(taContract.getContractId().toString(), taContractBusiness.getContractTemplateName(), null, taContractBusiness.getContractTemplateAddress(), ".pdf");
126 126
         JSONObject jsonObject = JSONObject.parseObject(result);
127
-        if (!jsonObject.getInteger("code").equals("1000")){
127
+        if (!jsonObject.getString("code").equals("1000")){
128 128
             throw new Exception(jsonObject.getString("msg"));
129 129
         }
130 130
 
@@ -141,7 +141,7 @@ public class TaContractServiceImpl extends ServiceImpl<TaContractMapper, TaContr
141 141
         req.setDoc_title(taContractBusiness.getContractTemplateName());
142 142
         String autoSignResult = base.invokeExtSignAuto(req);
143 143
         JSONObject autoSignResultJson = JSONObject.parseObject(autoSignResult);
144
-        if (!autoSignResultJson.getInteger("code").equals("1000")){
144
+        if (!autoSignResultJson.getString("code").equals("1000")){
145 145
             throw new Exception(jsonObject.getString("msg"));
146 146
         }
147 147