ITbLocationService.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package com.ruoyi.asset.service;
  2. import java.util.List;
  3. import cn.hutool.core.lang.tree.Tree;
  4. import com.ruoyi.asset.domain.TbLocation;
  5. import com.ruoyi.common.core.domain.TreeEntity;
  6. import com.ruoyi.common.core.domain.TreeSelect;
  7. /**
  8. * 所属位置Service接口
  9. *
  10. * @author 原动力
  11. * @date 2023-05-15
  12. */
  13. public interface ITbLocationService
  14. {
  15. /**
  16. * 查询所属位置
  17. *
  18. * @param id 所属位置主键
  19. * @return 所属位置
  20. */
  21. public TbLocation selectTbLocationById(Long id);
  22. /**
  23. * 查询所属位置列表
  24. *
  25. * @param tbLocation 所属位置
  26. * @return 所属位置集合
  27. */
  28. public List<TbLocation> selectTbLocationList(TbLocation tbLocation);
  29. public List<TbLocation> selectTree(Long id);
  30. public List<TreeSelect> selectTreeSelect(Long id);
  31. /**
  32. * 新增所属位置
  33. *
  34. * @param tbLocation 所属位置
  35. * @return 结果
  36. */
  37. public int insertTbLocation(TbLocation tbLocation);
  38. /**
  39. * 修改所属位置
  40. *
  41. * @param tbLocation 所属位置
  42. * @return 结果
  43. */
  44. public int updateTbLocation(TbLocation tbLocation);
  45. /**
  46. * 批量删除所属位置
  47. *
  48. * @param ids 需要删除的所属位置主键集合
  49. * @return 结果
  50. */
  51. public int deleteTbLocationByIds(Long[] ids);
  52. /**
  53. * 删除所属位置信息
  54. *
  55. * @param id 所属位置主键
  56. * @return 结果
  57. */
  58. public int deleteTbLocationById(Long id);
  59. }