Authored by qinchao

入驻接口和芝麻认证接口

@@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
31 insert into stored_seller (uid, valid_status,cert_no,cert_name,operator_uid,operator_name,enter_time,quit_time, create_time, update_time) 31 insert into stored_seller (uid, valid_status,cert_no,cert_name,operator_uid,operator_name,enter_time,quit_time, create_time, update_time)
32 values (#{uid},#{validStatus}, 32 values (#{uid},#{validStatus},
33 #{certNo},#{certName},#{operatorUid},#{operatorName}, 33 #{certNo},#{certName},#{operatorUid},#{operatorName},
34 - #{enterTime},#{quitTime} 34 + #{enterTime},#{quitTime},
35 #{createTime},#{updateTime}) 35 #{createTime},#{updateTime})
36 </insert> 36 </insert>
37 37
@@ -175,7 +175,7 @@ public class RealNameAuthorizeController { @@ -175,7 +175,7 @@ public class RealNameAuthorizeController {
175 } 175 }
176 176
177 //bizNO 177 //bizNO
178 - if(StringUtils.isBlank(reqVO.getBizNO())){ 178 + if(StringUtils.isBlank(reqVO.getZhiMaBizNo())){
179 throw new GatewayException(400, "参数错误,芝麻请求业务编号不能为空!"); 179 throw new GatewayException(400, "参数错误,芝麻请求业务编号不能为空!");
180 } 180 }
181 181
@@ -18,6 +18,6 @@ public class RealNameAuthorizeReqVO extends BaseBO { @@ -18,6 +18,6 @@ public class RealNameAuthorizeReqVO extends BaseBO {
18 //证件号码:身份证号码 18 //证件号码:身份证号码
19 private String certNo; 19 private String certNo;
20 //芝麻调用的bizNO 20 //芝麻调用的bizNO
21 - private String bizNO; 21 + private String zhiMaBizNo;
22 22
23 } 23 }
@@ -187,18 +187,18 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService { @@ -187,18 +187,18 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService {
187 //根据uid,获取biz_no 187 //根据uid,获取biz_no
188 ZhiMaCert zhiMaCert=zhiMaCertDao.selectByPrimaryKey(reqVO.getZhiMaCertId()); 188 ZhiMaCert zhiMaCert=zhiMaCertDao.selectByPrimaryKey(reqVO.getZhiMaCertId());
189 if(zhiMaCert==null){ 189 if(zhiMaCert==null){
190 - logger.error("zhiMaCertResultQuery get cert by biz no is null ",reqVO.getBizNO()); 190 + logger.error("zhiMaCertResultQuery get cert by biz no is null ",reqVO.getZhiMaBizNo());
191 throw new ServiceException(400, "错误:未找到芝麻认证信息!"); 191 throw new ServiceException(400, "错误:未找到芝麻认证信息!");
192 } 192 }
193 193
194 logger.info("zhiMaCertResultQuery get zhiMaCert by biz no from db is {} ",zhiMaCert); 194 logger.info("zhiMaCertResultQuery get zhiMaCert by biz no from db is {} ",zhiMaCert);
195 195
196 - if(zhiMaCert.getUid().equals(reqVO.getUid())){ 196 + if(!zhiMaCert.getUid().equals(reqVO.getUid())){
197 logger.error("zhiMaCertResultQuery get cert by biz no is not same req uid {} ,db uid {}",reqVO.getUid(),zhiMaCert.getUid()); 197 logger.error("zhiMaCertResultQuery get cert by biz no is not same req uid {} ,db uid {}",reqVO.getUid(),zhiMaCert.getUid());
198 throw new ServiceException(400, "错误:未找到用户芝麻认证信息!"); 198 throw new ServiceException(400, "错误:未找到用户芝麻认证信息!");
199 } 199 }
200 200
201 - ZhimaCustomerCertificationQueryResponse zhiMaResp=ZhiMaCallUtil.zhiMaResult(reqVO.getBizNO()); 201 + ZhimaCustomerCertificationQueryResponse zhiMaResp=ZhiMaCallUtil.zhiMaResult(reqVO.getZhiMaBizNo());
202 if(zhiMaResp==null){ 202 if(zhiMaResp==null){
203 logger.error("zhiMaCertResultQuery result is null,reqVO {}",reqVO); 203 logger.error("zhiMaCertResultQuery result is null,reqVO {}",reqVO);
204 throw new ServiceException(400, "错误:获取用户芝麻认证信息错误!"); 204 throw new ServiceException(400, "错误:获取用户芝麻认证信息错误!");