| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- package com.ydtech.modules.admin.service;
- import com.baomidou.mybatisplus.extension.service.IService;
- 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.protocol.utils.AssertionUtils;
- import java.math.BigDecimal;
- /**
- * @author Administrator
- * @description 针对表【sys_switch_config(系统开关配置表)】的数据库操作Service
- * @createDate 2024-08-07 18:04:47
- */
- public interface SysSwitchConfigService extends IService<SysSwitchConfig> {
- /**
- * 判断开关是否开启的
- *
- * @param id id
- * @return 系统开关配置
- */
- default SysSwitchConfig getByIdExists(String id) {
- SysSwitchConfig sysSwitchConfig = getById(id);
- AssertionUtils.isEmpty(sysSwitchConfig, "未查询到你所配置的开关");
- return 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);
- }
|