Authored by qinchao

入驻接口和芝麻认证接口

... ... @@ -31,7 +31,7 @@
insert into stored_seller (uid, valid_status,cert_no,cert_name,operator_uid,operator_name,enter_time,quit_time, create_time, update_time)
values (#{uid},#{validStatus},
#{certNo},#{certName},#{operatorUid},#{operatorName},
#{enterTime},#{quitTime}
#{enterTime},#{quitTime},
#{createTime},#{updateTime})
</insert>
... ...
... ... @@ -175,7 +175,7 @@ public class RealNameAuthorizeController {
}
//bizNO
if(StringUtils.isBlank(reqVO.getBizNO())){
if(StringUtils.isBlank(reqVO.getZhiMaBizNo())){
throw new GatewayException(400, "参数错误,芝麻请求业务编号不能为空!");
}
... ...
... ... @@ -18,6 +18,6 @@ public class RealNameAuthorizeReqVO extends BaseBO {
//证件号码:身份证号码
private String certNo;
//芝麻调用的bizNO
private String bizNO;
private String zhiMaBizNo;
}
... ...
... ... @@ -187,18 +187,18 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService {
//根据uid,获取biz_no
ZhiMaCert zhiMaCert=zhiMaCertDao.selectByPrimaryKey(reqVO.getZhiMaCertId());
if(zhiMaCert==null){
logger.error("zhiMaCertResultQuery get cert by biz no is null ",reqVO.getBizNO());
logger.error("zhiMaCertResultQuery get cert by biz no is null ",reqVO.getZhiMaBizNo());
throw new ServiceException(400, "错误:未找到芝麻认证信息!");
}
logger.info("zhiMaCertResultQuery get zhiMaCert by biz no from db is {} ",zhiMaCert);
if(zhiMaCert.getUid().equals(reqVO.getUid())){
if(!zhiMaCert.getUid().equals(reqVO.getUid())){
logger.error("zhiMaCertResultQuery get cert by biz no is not same req uid {} ,db uid {}",reqVO.getUid(),zhiMaCert.getUid());
throw new ServiceException(400, "错误:未找到用户芝麻认证信息!");
}
ZhimaCustomerCertificationQueryResponse zhiMaResp=ZhiMaCallUtil.zhiMaResult(reqVO.getBizNO());
ZhimaCustomerCertificationQueryResponse zhiMaResp=ZhiMaCallUtil.zhiMaResult(reqVO.getZhiMaBizNo());
if(zhiMaResp==null){
logger.error("zhiMaCertResultQuery result is null,reqVO {}",reqVO);
throw new ServiceException(400, "错误:获取用户芝麻认证信息错误!");
... ...