package com.zcloud.mapper.datasource.system; import java.util.List; import com.zcloud.entity.Page; import com.zcloud.entity.PageData; import com.zcloud.entity.system.Department; /** * 说明: 组织机构接Mapper * 创建人:luoxiaobao * 官网: */ public interface DepartmentMapper{ /**新增 * @param pd * @throws Exception */ public void save(PageData pd)throws Exception; /**删除 * @param pd * @throws Exception */ public void delete(PageData pd)throws Exception; /** * 向下递归查询企业部门(只查企业端部门表) * @param pd * @return * @throws Exception */ List listTreeManageAndCorp2(PageData pd); /**修改 * @param pd * @throws Exception */ public void edit(PageData pd)throws Exception; /**列表 * @param page * @throws Exception */ public List datalistPage(Page page)throws Exception; /**通过id获取数据 * @param pd * @throws Exception */ public PageData findById(PageData pd)throws Exception; /**通过名称获取数据 * @param pd * @throws Exception */ public List findByName(PageData pd)throws Exception; /**通过编码获取数据 * @param pd * @throws Exception */ public PageData findByBianma(PageData pd)throws Exception; /** * 通过ID获取其子级列表 * @param parentId * @return * @throws Exception */ public List listSubDepartmentByParentId(String parentId) throws Exception; /** * 获取所有数据并填充每条数据的子级列表(递归处理) * @param MENU_ID * @return * @throws Exception */ public List listAllDepartment(String parentId) throws Exception; /** * 获取所有数据并填充每条数据的子级列表(递归处理)下拉ztree用 * @param MENU_ID * @return * @throws Exception */ public List listAllDepartmentToSelect(String parentId, List zdepartmentPdList) throws Exception; /**获取某个部门所有下级部门ID(返回拼接字符串 in的形式) * @param DEPARTMENT_ID * @return * @throws Exception */ public String getDEPARTMENT_IDS(String DEPARTMENT_ID) throws Exception; /**通过条件获取全部 * @param pd * @throws Exception */ public List listAll(PageData pd)throws Exception; public PageData findByCorpId(PageData pd); /**列表 关联 部门级别名称 * @param page * @throws Exception */ public List forLevelNamedatalistPage(Page page)throws Exception; /** * 查询公司部门总数 * @param pd * @return */ public int getDepCount(PageData pd); /** * 查询公司检查过清单的部门总数 * @param pd * @return */ public int getWorkedDepCount(PageData pd); /** * 首页隐患排查数据 部门数(总数、已参加排查部门数) * @param pd * @return */ List statisticsByCorp(PageData pd); List saftmanagelist(PageData pd); /** * 向下递归查询企业部门 * @param pd * @return */ List listTreeCorpDept(PageData pd); List listDept(PageData pd); List Dept(Page pd); public void editByLeaderOrCharge(PageData pd)throws Exception; List saftpersonlist(PageData pd); List listForDoor(PageData pd); /**通过部门名称、分公司ID查数据 * @param pd * @throws Exception */ public List isrepeat(PageData pd); List listTreeManageAndCorpNum(PageData pd); List islistAll(PageData pd); public List listDepartAllByCorpinfoId(String CORPINFO_ID) throws Exception; List getSonIdsByParid(PageData pd); /** * 向下递归查询企业部门(只查监管端部门表) * @param pd * @return * @throws Exception */ List listTreeManageAndCorp1(PageData pd); /** * pc新增需求,重点工程中添加处罚人功能所用的 根据企业ID查询部门的sql * @param pd * @return */ List listTreeManageAndCorpForPcPunishThePerson(PageData pd); PageData getInfo(PageData pd) throws Exception; List listTreeManageAndCorpHasOrder(PageData pd); List listSubCorpDepartmentByParentId(String parentId); PageData findByCorpDepartmentId(PageData condition); }