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<SysDepartment> {
|
|
/**
|
* 根据父类id获取部门列表
|
*
|
* @param page
|
* @return
|
*/
|
@Select("SELECT * FROM sys_department WHERE parent_id = -1 and del_flag=0")
|
List<SysDepartment> getSysDepartmentByParentId(IPage<SysDepartmentDTO> page);
|
|
/**
|
* 根据ID获取组织架构信息,被删除的也要查出来
|
*
|
* @param id
|
* @return
|
*/
|
@Select("SELECT * FROM sys_department WHERE id = #{id} ")
|
SysDepartment getSysDepartmentById(@Param("id") Integer id);
|
|
/**
|
* 获取医院系统设置
|
* @return
|
*/
|
IPage<SysDepartmentVO> queryDepartmentPageList(Page<SysDepartmentVO> page, @Param("dto")SysDepartmentVO dto);
|
|
|
/**
|
* 获取收集小程序授权列表
|
* @param vo
|
* @return
|
*/
|
List<CollectAppletAuthorizationListVO> getCollectAppletAuthorization(@Param("page") Page<CollectAppletAuthorizationListVO> page, @Param("vo") CollectAppletAuthorizationVO vo,@Param("ids") List<Integer> ids);
|
|
|
/**
|
* 批量修改收集小程序授权
|
* @param status
|
*/
|
void batchEditCollectAppletAuthorization(@Param("ids") List<String> ids, Integer status, @Param("userId") Integer userId);
|
|
|
|
/**
|
* 获取月报短信授权列表
|
* @param vo
|
* @return
|
*/
|
IPage<MonthlySmsAuthorizationListVO> getMonthlySmsAuthorization(Page<MonthlySmsAuthorizationListVO> page, @Param("vo") MonthlySmsAuthorizationVO vo);
|
|
|
/**
|
* 批量修改月报短信授权
|
* @param status
|
*/
|
void batchEditMonthlySmsAuthorization(@Param("ids") List<String> ids, Integer status, @Param("userId") Integer userId);
|
|
|
/**
|
* 获取预报发送医院数据
|
* @return
|
*/
|
List<Map<String, Object>> getMonthlySMSHospitalData();
|
|
/**
|
* 获取月报发送数量
|
* @param month
|
* @return
|
*/
|
List<Map<String, Object>> getMonthlySMSData(@Param("id") Integer id, @Param("month") String month, @Param("status") Integer status);
|
|
List<Integer> getDeptIdListByTreeCode(@Param("treeCode") String treeCode);
|
|
/**
|
* 科室列表分页查询
|
* @param page
|
* @param queryVO
|
* @param treeCode
|
* @return
|
*/
|
IPage<SysDepartmentOfficeVO> queryOfficePageList(
|
Page<SysDepartmentOfficeVO> page,
|
@Param("queryVO") SysDepartmentOfficeQueryDTO queryVO,
|
@Param("treeCode") String treeCode
|
);
|
}
|