From eb2ac2a40f92359739701c6f060607a474010de0 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期一, 09 十二月 2024 18:11:23 +0800 Subject: [PATCH] 单位管理 --- medicalWaste-system/src/main/java/com/sinata/system/mapper/SysDepartmentMapper.java | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 54 insertions(+), 2 deletions(-) diff --git a/medicalWaste-system/src/main/java/com/sinata/system/mapper/SysDepartmentMapper.java b/medicalWaste-system/src/main/java/com/sinata/system/mapper/SysDepartmentMapper.java index 83c57dd..56bdac4 100644 --- a/medicalWaste-system/src/main/java/com/sinata/system/mapper/SysDepartmentMapper.java +++ b/medicalWaste-system/src/main/java/com/sinata/system/mapper/SysDepartmentMapper.java @@ -1,9 +1,14 @@ package com.sinata.system.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.sinata.system.domain.SysDepartment; +import com.sinata.system.domain.vo.DisposalUnitVO; +import com.sinata.system.domain.vo.MedicalInstitutionVO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; + +import java.util.List; /** * <p> @@ -16,10 +21,57 @@ @Mapper public interface SysDepartmentMapper extends BaseMapper<SysDepartment> { /** - * 根据类型查询用户区域列表 + * 查询用户区域列表 * @param userId - * @param type * @return */ SysDepartment getDepartmentByUserId(@Param("userId") Long userId); + + /** + * 根据类型查询机构列表 + * + * @param medicalInstitutionVOPage + * @param departmentName + * @param contactPerson + * @param contactPhone + * @param treeCode + * @return + */ + Page<MedicalInstitutionVO> pageMedicalList(Page<MedicalInstitutionVO> medicalInstitutionVOPage, @Param("departmentId") Long departmentId, @Param("departmentName") String departmentName, @Param("contactPerson") String contactPerson, @Param("contactPhone") String contactPhone, @Param("treeCode") String treeCode); + + /** + * 查询医疗机构详情 + * + * @param id + * @return + */ + MedicalInstitutionVO getMedicalDetailById(Long id); + + /** + * 根据treeCode查询处置单位列表 + * + * @param treeCode + * @return + */ + List<DisposalUnitVO> getDisposalUnitListByTreeCode(String treeCode); + + /** + * 处置单位分页列表 + * + * @param page + * @param departmentName + * @param contactPerson + * @param contactPhone + * @param treeCode + * @return + */ + Page<DisposalUnitVO> pageRegulatoryUnitList(Page<DisposalUnitVO> page, @Param("departmentId") Long departmentId, @Param("departmentName") String departmentName, @Param("contactPerson") String contactPerson, @Param("contactPhone") String contactPhone, @Param("treeCode") String treeCode); + + /** + * 处置单位详情 + * + * @param id + * @return + */ + DisposalUnitVO getDisposalUnitDetailById(@Param("id") Long id); } -- Gitblit v1.7.1