forked from kidgrow-microservices-platform

zhaoxiaohao
2021-02-06 01d42cce4abdbd5d232d241b1b6b662314cf3999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.kidgrow.usercenter.mapper;
 
import com.kidgrow.usercenter.model.SysDepartment;
import com.kidgrow.db.mapper.SuperMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
 * @Description: 科室表<br>
 * @Project: 用户中心<br>
 * @CreateDate: Created in 2020-04-02 14:02:50 <br>
 * @Author: <a href="4345453@kidgrow.com">liuke</a>
 * @version 1.0
 */
public interface SysDepartmentMapper extends SuperMapper<SysDepartment> {
    /**
     * 分页查询科室表列表
     * @param page
     * @param params
     * @return
     */
    List<SysDepartment> findList(Page<SysDepartment> page, @Param("p") Map<String, Object> params);
 
    /**
     * 根据SysDepartment对象当做查询条件进行查询
     * @param
     * @return SysDepartment对象
     */
    SysDepartment findByObject(@Param("p") SysDepartment sysDepartment);
 
    /**
     *检查指定医院下是否已经存在该名称的科室
     * @param hosId
     * @param departmentName
     * @return  如果返回空则视为不存在
     */
    String checkDepartmentName(@Param("hosId") Long hosId,@Param("departmentName") String departmentName);
    /**
     * 更新支付功能的开通状态
     * @param
     * @return boolean
     */
    boolean updatePay(@Param("departmentId") Long departmentId,@Param("isPay") boolean isPay);
}