|
@@ -69,6 +69,7 @@ public class TaCompanyController extends BaseController {
|
69
|
69
|
|
70
|
70
|
public ITaContractUserService iTaContractUserService;
|
71
|
71
|
|
|
72
|
+
|
72
|
73
|
/**
|
73
|
74
|
* 条件查询企业列表
|
74
|
75
|
*
|
|
@@ -464,6 +465,7 @@ public class TaCompanyController extends BaseController {
|
464
|
465
|
taContract.setContractId(contractId);
|
465
|
466
|
taContract.setContractDownloadUrl(downloadUrl);
|
466
|
467
|
taContract.setContractViewUrl(viewpdfUrl);
|
|
468
|
+ taContract.setStatus(CommConstant.STATUS_NORMAL);
|
467
|
469
|
iTaContractService.updateById(taContract);
|
468
|
470
|
|
469
|
471
|
TaCompany taCompany = new TaCompany();
|
|
@@ -475,13 +477,6 @@ public class TaCompanyController extends BaseController {
|
475
|
477
|
taCompany.setAuthorizeViewUrl(viewpdfUrl);
|
476
|
478
|
taCompany.setAuthorizeDescription(resultDesc);
|
477
|
479
|
taCompany.setAuthorizeType(CommConstant.ONLINEAUTH);
|
478
|
|
-// QueryWrapper<TaCompany> taCompanyQueryWrapper = new QueryWrapper<>();
|
479
|
|
-// taCompanyQueryWrapper.eq("authorize_status", resultCode.equals("3000") ? "1" : "0");
|
480
|
|
-// taCompanyQueryWrapper.eq("authorize_transaction_id", transactionId);
|
481
|
|
-// taCompanyQueryWrapper.eq("authorize_contract_id", contractId);
|
482
|
|
-// taCompanyQueryWrapper.eq("authorize_download_url", downloadUrl);
|
483
|
|
-// taCompanyQueryWrapper.eq("authorize_view_url", viewpdfUrl);
|
484
|
|
-// taCompanyQueryWrapper.eq("authorize_description", resultDesc);
|
485
|
480
|
iTaCompanyService.updateById(taCompany);
|
486
|
481
|
|
487
|
482
|
}
|
|
@@ -522,4 +517,23 @@ public class TaCompanyController extends BaseController {
|
522
|
517
|
taContract.setContractViewUrl(viewpdf_url);
|
523
|
518
|
iTaContractService.updateById(taContract);
|
524
|
519
|
}
|
|
520
|
+
|
|
521
|
+ /**
|
|
522
|
+ * 查询授权状态接口
|
|
523
|
+ * @param id
|
|
524
|
+ * @return
|
|
525
|
+ */
|
|
526
|
+ @RequestMapping(value = "/channel/company/getAuthStatus/{id}", method = RequestMethod.GET)
|
|
527
|
+ public ResponseBean getAuthStatus(@PathVariable Integer id){
|
|
528
|
+ ResponseBean responseBean = new ResponseBean();
|
|
529
|
+ String res = iTaCompanyService.getAuthStatus(id);
|
|
530
|
+ JSONObject result = JSONObject.parseObject(res);
|
|
531
|
+
|
|
532
|
+ if ((Integer) result.get("code") != 1){
|
|
533
|
+ responseBean.addError(result.getString("msg"));
|
|
534
|
+ return responseBean;
|
|
535
|
+ }
|
|
536
|
+ responseBean.addSuccess(result.get("data"));
|
|
537
|
+ return responseBean;
|
|
538
|
+ }
|
525
|
539
|
}
|