SysOrgMapper.java 6.4 KB

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