package cn.besteam.modules.system.mapper; import cn.besteam.modules.system.dto.SysDepartmentDTO; import cn.besteam.modules.system.vo.SysDepartmentOfficeVO; import cn.besteam.modules.system.dto.SysDepartmentOfficeQueryDTO; import cn.besteam.modules.system.entity.SysDepartment; import cn.besteam.modules.system.vo.*; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; /** * @Description: 组织架构表 * @author: besteam * @date: 2020-04-17 * @version: V1.0 */ @Repository public interface SysDepartmentMapper extends BaseMapper { /** * 根据父类id获取部门列表 * * @param page * @return */ @Select("SELECT * FROM sys_department WHERE parent_id = -1 and del_flag=0") List getSysDepartmentByParentId(IPage page); /** * 根据ID获取组织架构信息,被删除的也要查出来 * * @param id * @return */ @Select("SELECT * FROM sys_department WHERE id = #{id} ") SysDepartment getSysDepartmentById(@Param("id") Integer id); /** * 获取医院系统设置 * @return */ IPage queryDepartmentPageList(Page page, @Param("dto")SysDepartmentVO dto); /** * 获取收集小程序授权列表 * @param vo * @return */ List getCollectAppletAuthorization(@Param("page") Page page, @Param("vo") CollectAppletAuthorizationVO vo,@Param("ids") List ids); /** * 批量修改收集小程序授权 * @param status */ void batchEditCollectAppletAuthorization(@Param("ids") List ids, Integer status, @Param("userId") Integer userId); /** * 获取月报短信授权列表 * @param vo * @return */ IPage getMonthlySmsAuthorization(Page page, @Param("vo") MonthlySmsAuthorizationVO vo); /** * 批量修改月报短信授权 * @param status */ void batchEditMonthlySmsAuthorization(@Param("ids") List ids, Integer status, @Param("userId") Integer userId); /** * 获取预报发送医院数据 * @return */ List> getMonthlySMSHospitalData(); /** * 获取月报发送数量 * @param month * @return */ List> getMonthlySMSData(@Param("id") Integer id, @Param("month") String month, @Param("status") Integer status); List getDeptIdListByTreeCode(@Param("treeCode") String treeCode); /** * 科室列表分页查询 * @param page * @param queryVO * @param treeCode * @return */ IPage queryOfficePageList( Page page, @Param("queryVO") SysDepartmentOfficeQueryDTO queryVO, @Param("treeCode") String treeCode ); }