SysOrgMapper.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. package com.xunmei.system.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  4. import com.xunmei.common.core.vo.IdNameVo;
  5. import com.xunmei.system.api.domain.SysOrg;
  6. import com.xunmei.system.api.vo.FindOrgTypes;
  7. import com.xunmei.system.api.vo.SysOrgVO;
  8. import com.xunmei.system.util.ConstructionDetailExport;
  9. import com.xunmei.system.util.OrgPhysicalDefenseConstructionExport;
  10. import org.apache.ibatis.annotations.Param;
  11. import org.springframework.stereotype.Component;
  12. import java.util.List;
  13. /**
  14. * 【请填写功能名称】Mapper接口
  15. *
  16. * @author xunmei
  17. * @date 2023-08-10
  18. */
  19. @Component
  20. public interface SysOrgMapper extends BaseMapper<SysOrg> {
  21. List<SysOrg> selectByShortName(String name);
  22. /**
  23. * 查询【请填写功能名称】
  24. *
  25. * @param id 【请填写功能名称】主键
  26. * @return 【请填写功能名称】
  27. */
  28. SysOrg selectSysOrgById(Long id);
  29. List<Long> selectOrgTypeByIdList(@Param("orgIdList") List<Long> execOrgIdList);
  30. Long getOrgIdByTaskId(Long taskId);
  31. /**
  32. * 查询【请填写功能名称】列表
  33. *
  34. * @param sysOrg 【请填写功能名称】
  35. * @return 【请填写功能名称】集合
  36. */
  37. List<SysOrg> selectSysOrgList(SysOrg sysOrg);
  38. /**
  39. * 新增【请填写功能名称】
  40. *
  41. * @param sysOrg 【请填写功能名称】
  42. * @return 结果
  43. */
  44. int insertSysOrg(SysOrg sysOrg);
  45. List<Long> selectCheckSubOrgIdList(@Param("orgId") Long orgId);
  46. Page<SysOrg> selectOrgList(Page<SysOrg> page, @Param("org") SysOrg org);
  47. /**
  48. * 修改【请填写功能名称】
  49. *
  50. * @param sysOrg 【请填写功能名称】
  51. * @return 结果
  52. */
  53. int updateSysOrg(SysOrg sysOrg);
  54. /**
  55. * 删除【请填写功能名称】
  56. *
  57. * @param id 【请填写功能名称】主键
  58. * @return 结果
  59. */
  60. int deleteSysOrgById(Long id);
  61. /**
  62. * 批量删除【请填写功能名称】
  63. *
  64. * @param ids 需要删除的数据主键集合
  65. * @return 结果
  66. */
  67. int deleteSysOrgByIds(Long[] ids);
  68. List<Long> findListByOrgType(@Param("execOrgType") Integer execOrgType);
  69. SysOrg selectSysOrgByUserId(@Param("userId") Long userId);
  70. SysOrgVO selectSysOrgVoByUserId(@Param("userId") Long userId);
  71. List<SysOrgVO> selectSysOrgVOList();
  72. /**
  73. * 获取机构及父级机构的名称
  74. *
  75. * @param ids
  76. * @return
  77. */
  78. List<IdNameVo> getParentName(@Param("ids") List<Long> ids);
  79. List<SysOrg> findByOrgTypeAndParent(@Param("orgType") Integer orgType, @Param("path") String path);
  80. List<SysOrg> findByOrgTypesAndParent(@Param("types") List<Integer> types, @Param("path") String path);
  81. Integer selectNetworkNumberByPath(String orgPath);
  82. /**
  83. * 物防达标情况
  84. *
  85. * @param orgPath
  86. * @return
  87. */
  88. OrgPhysicalDefenseConstructionExport complianceStatus(@Param("orgPath") String orgPath);
  89. List<ConstructionDetailExport> selectConstructionDetail(@Param("orgPath") String orgPath);
  90. /**
  91. * @param orgPath
  92. * @param year
  93. * @return
  94. */
  95. Integer rectificationStatus(@Param("orgPath") String orgPath, @Param("year") String year);
  96. Integer oldRectificationStatus(@Param("orgPath") String orgPath, @Param("year") String year);
  97. Integer noRectificationStatus(@Param("orgPath") String orgPath, @Param("year") String year);
  98. }