Authored by qinchao

入驻接口2

@@ -43,6 +43,11 @@ public class StoredSellerServiceImpl implements IStoredSellerService { @@ -43,6 +43,11 @@ public class StoredSellerServiceImpl implements IStoredSellerService {
43 throw new ServiceException(400,"商户入驻状态变化,不允许申请退出!"); 43 throw new ServiceException(400,"商户入驻状态变化,不允许申请退出!");
44 } 44 }
45 45
  46 + //只能操作自己的uid
  47 + if(!uid.equals(storedSeller.getUid())){
  48 + throw new ServiceException(400,"商户入驻操作错误,不允许申请退出!");
  49 + }
  50 +
46 int num = storedSellerDao.updateStatusByPrimaryKey(storedSeller.getId(),StoredSellerStatusEnum.apply_quit.getId()); 51 int num = storedSellerDao.updateStatusByPrimaryKey(storedSeller.getId(),StoredSellerStatusEnum.apply_quit.getId());
47 //清掉缓存 52 //清掉缓存
48 cacheService.removeStoredSeller(uid); 53 cacheService.removeStoredSeller(uid);