package com.ydtech.modules.admin.service; import com.ydtech.extension.BaseIService; import com.ydtech.modules.admin.model.dto.FeeLookSwitchesDTO; import com.ydtech.modules.admin.model.po.SysSwitchConfig; import com.ydtech.modules.admin.model.vo.SysSwitchConfigQueryVo; import com.ydtech.modules.admin.model.vo.SysSwitchConfigVo; import com.ydtech.modules.order.entity.BasePageResult; import java.math.BigDecimal; /** * @author Administrator * @description 针对表【sys_switch_config(系统开关配置表)】的数据库操作Service * @createDate 2024-08-07 18:04:47 */ public interface SysSwitchConfigService extends BaseIService { /** * 获取 代理人、渠道 代客录单费用是否开启 * * @param deptId 机构id * @return 功能是够开启 */ BigDecimal getEnterProportion(String deptId, Integer entryStatus); /** * 添加开关信息 * * @param sysSwitchConfigVo */ void add(SysSwitchConfigVo sysSwitchConfigVo); /** * 修改 * * @param id 开关表 id * @param sysSwitchConfigVo 开关信息 */ void revise(String id, SysSwitchConfigVo sysSwitchConfigVo); /** * 分页查询开关配置 * * @param sysSwitchConfigQueryVo 开关配置 * @return */ BasePageResult queryPage(SysSwitchConfigQueryVo sysSwitchConfigQueryVo); /** * 是否开启 * * @param keyWord 键值 * @return true 开启 false 关闭 */ default boolean isEnabled(String keyWord) { SysSwitchConfig one = lambdaQuery().eq(SysSwitchConfig::getKeyword, keyWord).one(); if (one == null) return false; return 1 == one.getEnabled(); } /** * 费用查看开关 * * @return 是否开启 */ FeeLookSwitchesDTO feeLookSwitches(); /** * 二维码是否显示 * * @return 是否开启 */ boolean weComQRCodeDisplay(); /** * 机构 掌柜币查看 * * @return */ boolean feeDisplaySwitches(); /** * @version * @author: hxl * @Date: 2024/9/26 15:09 * @Description: 电销组员开关 */ boolean dxtxDisplaySwitches(); /** * @version * @author: hxl * @Date: 2024/10/25 11:43 * @Description: 协议授权开关 */ boolean xysqDisplaySwitches(); /** * @version * @author: hxl * @Date: 2024/10/25 11:43 * @Description: 余额提现走线上或者线下 */ boolean getBalanceExtractStatus(); }