| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- 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 com.ydtech.modules.order.entity.vo.OrderVo;
- 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();
- }
|