New file |
| | |
| | | package com.kidgrow.usercenter.mapper; |
| | | |
| | | import com.kidgrow.usercenter.model.SysDoctor; |
| | | 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 SysDoctorMapper extends SuperMapper<SysDoctor> { |
| | | /** |
| | | * 分页查询列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<SysDoctor> findList(Page<SysDoctor> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据SysDoctor对象当做查询条件进行查询 |
| | | * @param |
| | | * @return SysDoctor对象 |
| | | */ |
| | | SysDoctor findByObject(@Param("p") SysDoctor sysDoctor); |
| | | /** |
| | | * 查询账户名是否管理员 |
| | | * @param userName |
| | | * @return SysDoctor |
| | | */ |
| | | SysDoctor userIsAdmin(@Param("userName") String userName); |
| | | |
| | | /** |
| | | * 统计医生数量 |
| | | * @param datatype |
| | | * @return |
| | | */ |
| | | int chartDoctor(@Param("datatype") int datatype); |
| | | } |