不知道
This commit is contained in:
@@ -5,7 +5,6 @@ import com.czg.account.entity.ShopInfo;
|
||||
import com.czg.exception.CzgException;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -16,7 +15,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface ShopConfigService extends IService<ShopConfig> {
|
||||
|
||||
ShopInfo getShopInfoAndConfig(Serializable id) throws CzgException;
|
||||
ShopInfo getShopInfoAndConfig(Long id) throws CzgException;
|
||||
|
||||
void editStatusByShopIdList(Long mainShopId, Integer isEnable, boolean onyUpValid, String name, String useShopType, List<Long> shopIdList);
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ import jakarta.annotation.Resource;
|
||||
import org.apache.dubbo.config.annotation.DubboService;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
@@ -37,7 +36,7 @@ public class ShopConfigServiceImpl extends ServiceImpl<ShopConfigMapper, ShopCon
|
||||
|
||||
@Override
|
||||
@Cacheable(cacheNames = "shopInfo",key = "#id")
|
||||
public ShopInfo getShopInfoAndConfig(Serializable id) throws CzgException {
|
||||
public ShopInfo getShopInfoAndConfig(Long id) throws CzgException {
|
||||
ShopInfo shopInfo = shopInfoMapper.selectOneById(id);
|
||||
if (shopInfo == null) {
|
||||
throw new CzgException("店铺不存在");
|
||||
|
||||
@@ -83,7 +83,7 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
|
||||
|
||||
@Override
|
||||
public ShopInfo getById(Serializable id) throws CzgException {
|
||||
return shopConfigService.getShopInfoAndConfig(id);
|
||||
return shopConfigService.getShopInfoAndConfig((Long) id);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user