dimensional-health-interrog.../target/classes/mapper/FollowDoctorMapper.xml

30 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.four.patient.mapper.FollowDoctorMapper">
<insert id="insertFollowDoctor">
insert into follow_doctor(
<if test="null!=userId and ''!=userId">user_id,</if>
<if test="null!=registrationInformationId and ''!=registrationInformationId">registration_information_id</if>
)
values (
<if test="null!=userId and ''!=userId">#{userId},</if>
<if test="null!=registrationInformationId and ''!=registrationInformationId">#{registrationInformationId}</if>
)
</insert>
<delete id="delFollowDoctor">
delete
from follow_doctor
where registration_informaion_id = #{registrationInformationId}
</delete>
<select id="ShowFollowDoctor" resultType="com.four.common.duck.interrogation.FollowDoctor">
select follow_doctor_id,
user_id,
registration_information_id
from follow_doctor
</select>
</mapper>