Authored by qinchao

Merge branch 'test6.9.1' of http://git.yoho.cn/ufo/yohoufo-fore into test6.9.1

... ... @@ -28,7 +28,7 @@ public interface IZhiMaCertDao {
int deleteByUid(int uid);
int insertbak(ZhiMaCert zhiMaCert);
/*int insertbak(ZhiMaCert zhiMaCert);*/
List<ZhiMaCert> selectByUid(int uid);
}
... ...
... ... @@ -80,12 +80,7 @@
where uid = #{uid}
</delete>
<insert id="insertbak" parameterType="com.yohoufo.dal.user.model.ZhiMaCert" >
insert into zhima_cert_bak (uid, valid_status, cert_no, cert_name, biz_no,create_time, update_time)
values (#{uid},#{validStatus},
#{certNo},#{certName},#{bizNo},
#{createTime},#{updateTime})
</insert>
<select id="selectByUid" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
... ...
... ... @@ -300,13 +300,12 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService {
logger.info("RealNameAuthorizeServiceImpl clearCacheZhiMaCertInfo uid is {} ", uid);
int result = 0;
if (uid!=null && uid > 0 ){
List<ZhiMaCert> zhiMaCerts = zhiMaCertDao.selectByUid(uid);
/*List<ZhiMaCert> zhiMaCerts = zhiMaCertDao.selectByUid(uid);
try {
zhiMaCerts.stream().forEach(item -> zhiMaCertDao.insertbak(item));
} catch (Exception e) {
logger.info("zhiMaCertDao.insertbak find error zhiMaCerts is : " + zhiMaCerts, e);
}
}*/
result = zhiMaCertDao.deleteByUid(uid);
logger.info("RealNameAuthorizeServiceImpl clearCacheZhiMaCertInfo delete uid{} ,delete result is {}", uid, result);
... ...