双表的增删改查-dao

package com.lzl.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lzl.pojo.Doctor;

public interface DoctorDao {
//查询所有
List<Doctor> findAll(Doctor doctor);
//查询省
List<Doctor> findProvince();
//查询科室
List<Doctor> findDepart();
//查询市
List<Doctor> findTown(Integer id);
//查询
Doctor findById(Integer id);

List<Doctor> findByShanChang();
//删除中间表
void deleteGuanXi(int adept);
//添加中间表
void addGuanXi(@Param("adept")int adept,@Param("i") int i);
//修改
int update(Doctor doctor);
//添加
int add(Doctor doctor);

void addAdept(int id);

}

原文地址:https://www.cnblogs.com/liuzhaolong/p/12874565.html