|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.Query;
|
6
|
6
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
7
|
7
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
8
|
8
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
9
|
+import com.fadada.sdk.client.authForfadada.FindCertInfo;
|
9
|
10
|
import com.huiju.estateagents.base.BaseController;
|
10
|
11
|
import com.huiju.estateagents.base.ResponseBean;
|
11
|
12
|
import com.huiju.estateagents.common.CommConstant;
|
|
@@ -434,6 +435,7 @@ public class TaCompanyController extends BaseController {
|
434
|
435
|
@RequestParam(value = "authenticationType",required = false) String authenticationType,
|
435
|
436
|
@RequestParam(value = "status",required = false) String status,
|
436
|
437
|
HttpServletRequest request) {
|
|
438
|
+ Map<String, String[]> parameterMap = request.getParameterMap();
|
437
|
439
|
logger.info("企业认证回调函数参数:交易号{},认证类型{},状态,{}, 人员名称{}",serialNo,authenticationType,status);
|
438
|
440
|
//企业认证
|
439
|
441
|
if ("2".equals(authenticationType)){
|
|
@@ -452,6 +454,29 @@ public class TaCompanyController extends BaseController {
|
452
|
454
|
taContractUserQueryWrapper.eq("certified_serial_number",serialNo);
|
453
|
455
|
TaContractUser taContractUser = iTaContractUserService.getOne(taContractUserQueryWrapper);
|
454
|
456
|
taContractUser.setStatus(Integer.valueOf(status));
|
|
457
|
+ //如果状态是失败的情况下就发送短信
|
|
458
|
+ if (status.equals("1")){
|
|
459
|
+ logger.info("发送短信");
|
|
460
|
+ //获取个人信息
|
|
461
|
+ logger.info("个人正在从法大大获取最新数据,企业编号是 {}", taContractUser.getFadadaCode());
|
|
462
|
+ FindCertInfo personCertInfo = new FindCertInfo(fadadaProperties.getAppId(),fadadaProperties.getAppSecret(),fadadaProperties.getVersion(),fadadaProperties.getServeHost());
|
|
463
|
+ String verified_serialno = taContractUser.getCertifiedSerialNumber();
|
|
464
|
+ String result = personCertInfo.invokeFindPersonCert(verified_serialno,
|
|
465
|
+ "1");
|
|
466
|
+ logger.info("个人最新数据结果 {}",result);
|
|
467
|
+ JSONObject jsonObject = JSONObject.parseObject(result);
|
|
468
|
+ //更新数据
|
|
469
|
+ String data = jsonObject.getString("data");
|
|
470
|
+ if (null !=data){
|
|
471
|
+ JSONObject dataJson = JSONObject.parseObject(data);
|
|
472
|
+ //个人信息
|
|
473
|
+ JSONObject personJson = dataJson.getJSONObject("person");
|
|
474
|
+ if (null != personJson){
|
|
475
|
+ taCompanySealUtil.sendFddSms(taContractUser.getCertifiedAddress(),personJson.getString("mobile"));
|
|
476
|
+ }
|
|
477
|
+ }
|
|
478
|
+
|
|
479
|
+ }
|
455
|
480
|
taContractUser.setAuthStatus("autoSign");
|
456
|
481
|
iTaContractUserService.updateById(taContractUser);
|
457
|
482
|
}
|