SysOrgMapper.java 6.6 KB

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