SysOrgMapper.java 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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.Date;
  13. import java.util.List;
  14. import java.util.Map;
  15. /**
  16. * 【请填写功能名称】Mapper接口
  17. *
  18. * @author xunmei
  19. * @date 2023-08-10
  20. */
  21. @Component
  22. public interface SysOrgMapper extends BaseMapper<SysOrg> {
  23. List<SysOrg> selectByShortName(String name);
  24. /**
  25. * 查询【请填写功能名称】
  26. *
  27. * @param id 【请填写功能名称】主键
  28. * @return 【请填写功能名称】
  29. */
  30. SysOrg selectSysOrgById(Long id);
  31. List<Long> selectOrgTypeByIdList(@Param("orgIdList") List<Long> execOrgIdList);
  32. Long getOrgIdByTaskId(Long taskId);
  33. /**
  34. * 查询【请填写功能名称】列表
  35. *
  36. * @param sysOrg 【请填写功能名称】
  37. * @return 【请填写功能名称】集合
  38. */
  39. List<SysOrg> selectSysOrgList(SysOrg sysOrg);
  40. /**
  41. * 新增【请填写功能名称】
  42. *
  43. * @param sysOrg 【请填写功能名称】
  44. * @return 结果
  45. */
  46. int insertSysOrg(SysOrg sysOrg);
  47. List<Long> selectCheckSubOrgIdList(@Param("orgId") Long orgId);
  48. Page<SysOrg> selectOrgList(Page<SysOrg> page, @Param("org") SysOrg org);
  49. /**
  50. * 修改【请填写功能名称】
  51. *
  52. * @param sysOrg 【请填写功能名称】
  53. * @return 结果
  54. */
  55. int updateSysOrg(SysOrg sysOrg);
  56. /**
  57. * 删除【请填写功能名称】
  58. *
  59. * @param id 【请填写功能名称】主键
  60. * @return 结果
  61. */
  62. int deleteSysOrgById(Long id);
  63. /**
  64. * 批量删除【请填写功能名称】
  65. *
  66. * @param ids 需要删除的数据主键集合
  67. * @return 结果
  68. */
  69. int deleteSysOrgByIds(Long[] ids);
  70. List<Long> findListByOrgType(@Param("execOrgType") Integer execOrgType);
  71. SysOrg selectSysOrgByUserId(@Param("userId") Long userId);
  72. SysOrgVO selectSysOrgVoByUserId(@Param("userId") Long userId);
  73. List<SysOrgVO> selectSysOrgVOList();
  74. /**
  75. * 获取机构及父级机构的名称
  76. *
  77. * @param ids
  78. * @return
  79. */
  80. List<IdNameVo> getParentName(@Param("ids") List<Long> ids);
  81. List<SysOrg> findByOrgTypeAndParent(@Param("orgType") Integer orgType, @Param("path") String path);
  82. List<SysOrg> findByOrgTypesAndParent(@Param("types") List<Integer> types, @Param("path") String path);
  83. Integer selectNetworkNumberByPath(String orgPath);
  84. Integer getReachNumber(String orgPath);
  85. Integer getOwnership(String orgPath);
  86. Integer getOutside(String orgPath);
  87. Map getLibrary(String orgPath);
  88. Integer getCollectLibrary(String orgPath);
  89. Map getOnLine(String orgPath);
  90. Map getDeparture(String orgPath);
  91. Map getSelfEquipment(String orgPath);
  92. Map getCenterConstruction(Long orgId);
  93. Map getCamera(String orgPath);
  94. Map getRemote(String orgPath);
  95. Map getDuty(String orgPath);
  96. Map getCertificate(String orgPath);
  97. Integer getHaveSecurityNetworkNumber(String orgPath);
  98. Map getMonitorPeople(String orgPath);
  99. Integer getAlone(String orgPath);
  100. Integer getManagerCertificate(String orgPath);
  101. String getIsMonitor(@Param("orgPath") String orgPath, @Param("duties") String duties);
  102. Integer getManager(@Param("orgPath") String orgPath, @Param("isFull") String isFull);
  103. Integer getSafe(@Param("orgPath") String orgPath, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
  104. Integer getSafeHeadToNetwork(@Param("type") Integer type, @Param("level") Integer level, @Param("orgPath") String orgPath);
  105. Integer getJointHeadToNetwork(@Param("type") Integer type, @Param("level") Integer level, @Param("orgPath") String orgPath);
  106. Integer getEduNumber(@Param("orgPath") String orgPath, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
  107. Integer getEduUser(String orgPath);
  108. Integer getQuarterDrillNumber(@Param("orgPath") String orgPath, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
  109. Integer getQuarterDrillPeopleNumber(String orgPath);
  110. Integer getQuarterAllNetworkDrillNumber(@Param("orgPath") String orgPath, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
  111. Integer getQuarterAllNetworkDrillPeopleNumber(String orgPath);
  112. /**
  113. * 物防达标情况
  114. *
  115. * @param orgPath
  116. * @return
  117. */
  118. OrgPhysicalDefenseConstructionExport complianceStatus(@Param("orgPath") String orgPath);
  119. List<ConstructionDetailExport> selectConstructionDetail(@Param("orgPath") String orgPath);
  120. /**
  121. * @param orgPath
  122. * @param year
  123. * @return
  124. */
  125. Integer rectificationStatus(@Param("orgPath") String orgPath, @Param("year") String year);
  126. Integer oldRectificationStatus(@Param("orgPath") String orgPath, @Param("year") String year);
  127. Integer noRectificationStatus(@Param("orgPath") String orgPath, @Param("year") String year);
  128. }