通用校验
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package com.czg.account.service;
|
||||
|
||||
import cn.hutool.core.exceptions.ValidateException;
|
||||
import com.czg.account.dto.PageDTO;
|
||||
import com.czg.account.dto.shopinfo.*;
|
||||
import com.czg.account.entity.ShopInfo;
|
||||
import com.czg.exception.CzgException;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.mybatisflex.core.util.LambdaGetter;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
@@ -18,6 +20,15 @@ public interface ShopInfoService extends IService<ShopInfo> {
|
||||
|
||||
@Override
|
||||
ShopInfo getById(Serializable id) throws CzgException;
|
||||
|
||||
/**
|
||||
* 检测开关
|
||||
* @param shopId 店铺id
|
||||
* @param column ShopInfo的某列 开关
|
||||
* @return true:开启 false:关闭
|
||||
*/
|
||||
<T> boolean checkSwitch(Long shopId, LambdaGetter<T> column) throws ValidateException;
|
||||
|
||||
Page<ShopInfo> get(PageDTO pageDTO, String shopName, Integer status, Integer isHeadShop);
|
||||
|
||||
Page<ShopInfo> getShopByMainId(PageDTO pageDTO, String shopName, Integer status);
|
||||
|
||||
Reference in New Issue
Block a user