| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- 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.util.ConstructionDetailExport;
- import com.xunmei.system.util.OrgPhysicalDefenseConstructionExport;
- import org.apache.ibatis.annotations.Param;
- import org.springframework.stereotype.Component;
- import java.util.List;
- /**
- * 【请填写功能名称】Mapper接口
- *
- * @author xunmei
- * @date 2023-08-10
- */
- @Component
- public interface SysOrgMapper extends BaseMapper<SysOrg> {
- List<SysOrg> selectByShortName(String name);
- /**
- * 查询【请填写功能名称】
- *
- * @param id 【请填写功能名称】主键
- * @return 【请填写功能名称】
- */
- SysOrg selectSysOrgById(Long id);
- List<Long> selectOrgTypeByIdList(@Param("orgIdList") List<Long> execOrgIdList);
- Long getOrgIdByTaskId(Long taskId);
- /**
- * 查询【请填写功能名称】列表
- *
- * @param sysOrg 【请填写功能名称】
- * @return 【请填写功能名称】集合
- */
- List<SysOrg> selectSysOrgList(SysOrg sysOrg);
- /**
- * 新增【请填写功能名称】
- *
- * @param sysOrg 【请填写功能名称】
- * @return 结果
- */
- int insertSysOrg(SysOrg sysOrg);
- List<Long> selectCheckSubOrgIdList(@Param("orgId") Long orgId);
- Page<SysOrg> selectOrgList(Page<SysOrg> 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<Long> findListByOrgType(@Param("execOrgType") Integer execOrgType);
- SysOrg selectSysOrgByUserId(@Param("userId") Long userId);
- SysOrgVO selectSysOrgVoByUserId(@Param("userId") Long userId);
- List<SysOrgVO> selectSysOrgVOList();
- /**
- * 获取机构及父级机构的名称
- *
- * @param ids
- * @return
- */
- List<IdNameVo> getParentName(@Param("ids") List<Long> ids);
- List<SysOrg> findByOrgTypeAndParent(@Param("orgType") Integer orgType, @Param("path") String path);
- List<SysOrg> findByOrgTypesAndParent(@Param("types") List<Integer> types, @Param("path") String path);
- Integer selectNetworkNumberByPath(String orgPath);
- /**
- * 物防达标情况
- *
- * @param orgPath
- * @return
- */
- OrgPhysicalDefenseConstructionExport complianceStatus(@Param("orgPath") String orgPath);
- List<ConstructionDetailExport> selectConstructionDetail(@Param("orgPath") String orgPath);
- /**
- * @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);
- }
|