...
|
...
|
@@ -81,18 +81,19 @@ public class CertificationServiceImpl implements ICertificationService { |
|
|
}
|
|
|
|
|
|
//(6)如果是首次认证,记录入库,否则更新认证记录
|
|
|
String imgUrl = reqVO.getFrontImageUrl()+","+reqVO.getBackImageUrl();
|
|
|
if(null == zhiMaCert){
|
|
|
zhiMaCert = new ZhiMaCert();
|
|
|
zhiMaCert.setUid(reqVO.getUid());
|
|
|
zhiMaCert.setValidStatus(9);//用户还未授权,暂时未生效 ,初始值为9
|
|
|
zhiMaCert.setCertName(reqVO.getCertName());
|
|
|
zhiMaCert.setCertNo(reqVO.getCertNo());
|
|
|
zhiMaCert.setImageUrl(imgUrl);
|
|
|
zhiMaCert.setValidPhoto((null == reqVO.getPhotoValidStatus())? 0 : reqVO.getPhotoValidStatus());
|
|
|
zhiMaCert.setCreateTime(System.currentTimeMillis()/1000);
|
|
|
zhiMaCert.setUpdateTime(System.currentTimeMillis()/1000);
|
|
|
zhiMaCertDao.insertAndGetID(zhiMaCert);
|
|
|
}else if(null != zhiMaCert && !CertPhotoEnum.isValidStatus(zhiMaCert.getValidPhoto())){
|
|
|
String imgUrl = reqVO.getFrontImageUrl()+","+reqVO.getBackImageUrl();
|
|
|
zhiMaCertDao.updatePhotoResult(zhiMaCert.getId(), imgUrl, reqVO.getPhotoValidStatus(), System.currentTimeMillis()/1000);
|
|
|
}
|
|
|
logger.info("BeginCertificate: save db success. reqVO is {}, zhiMaCert is {}", reqVO, zhiMaCert);
|
...
|
...
|
|