| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- 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<SysSwitchConfig> {
- /**
- * 获取 代理人、渠道 代客录单费用是否开启
- *
- * @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<SysSwitchConfig> 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();
- }
|