package com.xunmei.system.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.xunmei.common.core.vo.IdNameVo; import com.xunmei.system.api.domain.SysOrg; import com.xunmei.system.api.vo.FindOrgTypes; import com.xunmei.system.api.vo.SysOrgVO; import com.xunmei.system.dto.SysOrgDto; import com.xunmei.system.dto.SysSelectOrgComponentDto; import com.xunmei.system.util.ConstructionDetailExport; import com.xunmei.system.util.OrgExtendExport; import com.xunmei.system.util.OrgPhysicalDefenseConstructionDetailExport; import com.xunmei.system.util.OrgPhysicalDefenseConstructionExport; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Component; import java.util.Date; import java.util.List; import java.util.Map; /** * 【请填写功能名称】Mapper接口 * * @author xunmei * @date 2023-08-10 */ @Component public interface SysOrgMapper extends BaseMapper { List selectByOrgName(String name); /** * 查询【请填写功能名称】 * * @param id 【请填写功能名称】主键 * @return 【请填写功能名称】 */ SysOrg selectSysOrgById(Long id); List selectOrgTypeByIdList(@Param("orgIdList") List execOrgIdList); Long getOrgIdByTaskId(Long taskId); /** * 查询【请填写功能名称】列表 * * @param sysOrg 【请填写功能名称】 * @return 【请填写功能名称】集合 */ List selectSysOrgList(SysOrg sysOrg); /** * 新增【请填写功能名称】 * * @param sysOrg 【请填写功能名称】 * @return 结果 */ int insertSysOrg(SysOrg sysOrg); List selectCheckSubOrgIdList(@Param("orgId") Long orgId); Page selectOrgList(Page page, @Param("org") SysOrg org); /** * 修改【请填写功能名称】 * * @param sysOrg 【请填写功能名称】 * @return 结果 */ int updateSysOrg(SysOrg sysOrg); /** * 删除【请填写功能名称】 * * @param id 【请填写功能名称】主键 * @return 结果 */ int deleteSysOrgById(Long id); /** * 批量删除【请填写功能名称】 * * @param ids 需要删除的数据主键集合 * @return 结果 */ int deleteSysOrgByIds(Long[] ids); List findListByOrgType(@Param("execOrgType") Integer execOrgType); SysOrg selectSysOrgByUserId(@Param("userId") Long userId); SysOrgVO selectSysOrgVoByUserId(@Param("userId") Long userId); List selectSysOrgVOList(); /** * 获取机构及父级机构的名称 * * @param ids * @return */ List getParentName(@Param("ids") List ids); List findByOrgTypeAndParent(@Param("orgType") Integer orgType, @Param("path") String path); List findByOrgTypesAndParent(@Param("types") List types, @Param("path") String path); Integer selectNetworkNumberByPath(String orgPath); Integer getReachNumber(String orgPath); Integer getOwnership(String orgPath); Integer getOutside(String orgPath); Map getLibrary(String orgPath); Integer getCollectLibrary(String orgPath); Map getOnLine(String orgPath); Map getDeparture(String orgPath); Map getSelfEquipment(String orgPath); Map getCenterConstruction(String orgPath); Map getCamera(String orgPath); Map getRemote(String orgPath); Map getDuty(String orgPath); Map getCertificate(String orgPath); Integer getHaveSecurityNetworkNumber(String orgPath); Map getMonitorPeople(String orgPath); Integer getAlone(String orgPath); Integer getManagerCertificate(String orgPath); String getIsMonitor(@Param("orgPath") String orgPath, @Param("duties") String duties); Integer getManager(@Param("orgPath") String orgPath, @Param("isFull") String isFull); Integer getSafe(@Param("orgPath") String orgPath, @Param("startTime") Date startTime, @Param("endTime") Date endTime); Integer getHeadSafeCheckNumber(String orgPath); Integer getHeadSafeCheckNetworkNumber(String orgPath); Map getDangerNumber(String orgPath); Integer getSafeHeadToNetwork(@Param("type") Integer type, @Param("level") Integer level, @Param("orgPath") String orgPath); Integer getJointHeadToNetwork(@Param("type") Integer type, @Param("level") Integer level, @Param("orgPath") String orgPath); Integer getEduNumber(@Param("orgPath") String orgPath, @Param("startTime") Date startTime, @Param("endTime") Date endTime); Integer getEduUser(String orgPath); Integer getQuarterDrillNumber(@Param("orgPath") String orgPath, @Param("startTime") Date startTime, @Param("endTime") Date endTime); Integer getQuarterDrillPeopleNumber(String orgPath); Integer getQuarterAllNetworkDrillNumber(@Param("orgPath") String orgPath, @Param("startTime") Date startTime, @Param("endTime") Date endTime); Integer getQuarterAllNetworkDrillPeopleNumber(@Param("orgPath")String orgPath, @Param("startTime") Date startTime, @Param("endTime") Date endTime); /** * 物防达标情况 * * @param orgPath * @return */ OrgPhysicalDefenseConstructionExport complianceStatus(@Param("orgPath") String orgPath); List selectConstructionDetail(@Param("orgPath") String orgPath,@Param("findInSetOrder") String findInSetOrder); List selectSysOrgByPathAndType(@Param("path") String path, @Param("type") Integer type); /** * @param orgPath * @param year * @return */ Integer rectificationStatus(@Param("orgPath") String orgPath, @Param("year") String year); Integer oldRectificationStatus(@Param("orgPath") String orgPath, @Param("year") String year); Integer noRectificationStatus(@Param("orgPath") String orgPath, @Param("year") String year); /** * 根据查询条件获取机构数据 * @param org * @return */ List selectOrgs(@Param("org") SysOrgDto org); List exportOrgExtend(@Param("org") SysOrg org,@Param("typeList") List typeList,@Param("findInSetOrder") String findInSetOrder); List exportDefenseDetailExtend(@Param("org") SysOrg org, @Param("typeList") List typeList,@Param("findInSetOrder") String findInSetOrder); }