主开关
This commit is contained in:
@@ -14,7 +14,6 @@ import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.query.QueryWrapper;
|
||||
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.springframework.cache.annotation.CacheEvict;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
@@ -29,13 +28,6 @@ public class GbWareServiceImpl extends ServiceImpl<GbWareMapper, GbWare> impleme
|
||||
private ShopInfoService shopInfoService;
|
||||
|
||||
|
||||
@CacheEvict(cacheNames = "shopInfo", key = "#shopId")
|
||||
@Override
|
||||
public boolean upShopConfig(Integer status, Long shopId) {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Page<GbWare> getGbWarePage(GbWareQueryParamDTO param, Long shopId) {
|
||||
Long mainShopId = shopInfoService.getMainIdByShopId(shopId);
|
||||
@@ -88,6 +80,6 @@ public class GbWareServiceImpl extends ServiceImpl<GbWareMapper, GbWare> impleme
|
||||
|
||||
private void checkStatus(Long id) {
|
||||
GbWare ware = getById(id);
|
||||
AssertUtil.isNotEqual(ware.getOnlineStatus(), 1, "操作失败,请下架后,重试");
|
||||
AssertUtil.isNotEqual(ware.getOnlineStatus(), 0, "操作失败,请下架后,重试");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user