SysSwitchConfigService.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package com.ydtech.modules.admin.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.ydtech.extension.BaseIService;
  4. import com.ydtech.modules.admin.model.po.SysSwitchConfig;
  5. import com.ydtech.modules.admin.model.vo.SysSwitchConfigQueryVo;
  6. import com.ydtech.modules.admin.model.vo.SysSwitchConfigVo;
  7. import com.ydtech.modules.order.entity.BasePageResult;
  8. import com.ydtech.modules.protocol.utils.AssertionUtils;
  9. import java.math.BigDecimal;
  10. /**
  11. * @author Administrator
  12. * @description 针对表【sys_switch_config(系统开关配置表)】的数据库操作Service
  13. * @createDate 2024-08-07 18:04:47
  14. */
  15. public interface SysSwitchConfigService extends BaseIService<SysSwitchConfig> {
  16. /**
  17. * 获取 代理人、渠道 代客录单费用是否开启
  18. *
  19. * @param deptId 机构id
  20. * @return 功能是够开启
  21. */
  22. BigDecimal getEnterProportion(String deptId, Integer entryStatus);
  23. /**
  24. * 添加开关信息
  25. *
  26. * @param sysSwitchConfigVo
  27. */
  28. void add(SysSwitchConfigVo sysSwitchConfigVo);
  29. /**
  30. * 修改
  31. *
  32. * @param id 开关表 id
  33. * @param sysSwitchConfigVo 开关信息
  34. */
  35. void revise(String id, SysSwitchConfigVo sysSwitchConfigVo);
  36. /**
  37. * 分页查询开关配置
  38. *
  39. * @param sysSwitchConfigQueryVo 开关配置
  40. * @return
  41. */
  42. BasePageResult<SysSwitchConfig> queryPage(SysSwitchConfigQueryVo sysSwitchConfigQueryVo);
  43. }