主开关

This commit is contained in:
2025-12-17 11:17:36 +08:00
parent bf2eb85233
commit 8a7d63911e
8 changed files with 39 additions and 15 deletions

View File

@@ -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, "操作失败,请下架后,重试");
}
}