New file |
| | |
| | | package com.dsh.course.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dsh.course.entity.Phone; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface PhoneMapper extends BaseMapper<Phone> { |
| | | |
| | | |
| | | /** |
| | | * 根据行政区域获取设置的电话 |
| | | * @param code |
| | | * @return |
| | | */ |
| | | List<Phone> queryPhones(@Param("province") String province, @Param("city") String city, @Param("code") String code); |
| | | |
| | | |
| | | /** |
| | | * 获取电话数据 |
| | | * @param type |
| | | * @param platform |
| | | * @param code |
| | | * @return |
| | | */ |
| | | Phone query(@Param("type") Integer type, @Param("platform") Integer platform, |
| | | @Param("province") String province, @Param("city") String city, |
| | | @Param("code") String code); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取电话 |
| | | * @param companyId |
| | | * @param type |
| | | * @return |
| | | */ |
| | | Phone queryInfo(@Param("companyId") Integer companyId, @Param("type") Integer type); |
| | | } |