Authored by mali

Merge branch 'dev_seller_soft_delete' into test6.8.9

... ... @@ -156,10 +156,17 @@ public class StoreSellerServiceImpl implements IStoredSellerService {
@Override
public int removeStoredSeller(Integer uid) {
storedSellerMapper.insertBak(storedSellerMapper.selectByUid(uid));
StoredSeller storedSeller = storedSellerMapper.selectByUid(uid);
int rows = storedSellerMapper.clearUserData(uid);
int rows = storedSellerMapper.clearUserData(uid);
storedSellerCacheService.removeStoredSeller(uid);
try {
storedSellerMapper.insertBak(storedSeller);
} catch (Exception e) {
logger.error("storedSellerMapper.insertBak find error storedSeller : " + storedSeller, e);
}
return rows;
}
... ...
... ... @@ -300,9 +300,13 @@ 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);
zhiMaCerts.stream().forEach(item -> zhiMaCertDao.insertbak(item));
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);
... ...