通用校验
This commit is contained in:
@@ -2,7 +2,6 @@ package com.czg.account.service;
|
||||
|
||||
import com.czg.account.entity.ShopConfig;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.mybatisflex.core.util.LambdaGetter;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ 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.util.function.Function;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
@@ -24,10 +24,10 @@ public interface ShopInfoService extends IService<ShopInfo> {
|
||||
/**
|
||||
* 检测开关
|
||||
* @param shopId 店铺id
|
||||
* @param column ShopInfo的某列 开关
|
||||
* @param switchGetter ShopInfo的某列 开关
|
||||
* @return true:开启 false:关闭
|
||||
*/
|
||||
<T> boolean checkSwitch(Long shopId, LambdaGetter<T> column) throws ValidateException;
|
||||
<T> boolean checkSwitch(Long shopId, Function<ShopInfo, T> switchGetter) throws ValidateException;
|
||||
|
||||
Page<ShopInfo> get(PageDTO pageDTO, String shopName, Integer status, Integer isHeadShop);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user