通用校验

This commit is contained in:
2025-12-18 19:53:36 +08:00
parent 3e40634e9e
commit f7c28d93ed
5 changed files with 11 additions and 23 deletions

View File

@@ -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;

View File

@@ -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);