SysDeptMapper.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package com.ydtech.modules.admin.dao;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.ydtech.modules.admin.model.SysDept;
  4. import com.ydtech.modules.admin.model.vo.SysDeptVo;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.List;
  7. public interface SysDeptMapper extends BaseMapper<SysDept> {
  8. /**
  9. * 查询Id 值
  10. * @param deptId 部门
  11. * @param deptType 类型
  12. * @return
  13. */
  14. String getMaxId(@Param(value = "deptId") String deptId, @Param(value = "deptType")String deptType,@Param(value = "comlevel")String comlevel);
  15. /**
  16. * @version
  17. * @author: hxl
  18. * @Date: 2024/4/28 10:01
  19. * @Description: 通过县级code查询门店列表
  20. */
  21. List<SysDept> queryListByParentId(@Param(value = "level") String level,@Param(value = "parentId") String parentId);
  22. /**
  23. * @version
  24. * @author: hxl
  25. * @Date: 2024/6/26 19:55
  26. * @Description: 获取前线机构列表
  27. */
  28. List<SysDept> queryListByQXDept();
  29. /**
  30. * @version
  31. * @author: hxl
  32. * @Date: 2024/6/28 9:24
  33. * @Description:
  34. */
  35. List<SysDept> queryHXDeptTree();
  36. /**
  37. * 通过订单号查询业务来源
  38. * @param orderNo 订单号
  39. * @return 业务来源
  40. */
  41. String getByOrderNoQueryManagementSource(@Param(value = "orderNo") String orderNo);
  42. /**
  43. * @version
  44. * @author: hxl
  45. * @Date: 2024/9/18 11:58
  46. * @Description: 通过ids查询机构数据
  47. */
  48. List<SysDept> getListByIds(@Param(value = "ids") List<String> ids);
  49. /**
  50. *
  51. * @param sysDeptVo
  52. * @return 获取五级所有机构 除总部
  53. */
  54. List<SysDept> getFiveLevelDept(@Param("vo") SysDeptVo sysDeptVo);
  55. List<SysDept> queryFiveLevelDept(@Param("vo") SysDeptVo sysDeptVo);
  56. List<SysDept> getListByIdsByKzt(@Param("ids") List<String> deptIds);
  57. }