31 lines
1.3 KiB
XML
31 lines
1.3 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.PatientEvaluatorMapper">
|
|
<insert id="insertPatientEvaluator">
|
|
insert into patient_evaluator(
|
|
<if test="null!=patientId and ''!=patientId">patient_id,</if>
|
|
<if test="null!=registrationInformationId and ''!=registrationInformationId">registration_information_id,</if>
|
|
<if test="null!=commentContent and ''!=commentContent"> comment_content,</if>
|
|
comment_time
|
|
)
|
|
values (
|
|
<if test="null!=patientId and ''!=patientId">#{patientId},</if>
|
|
<if test="null!=registrationInformationId and ''!=registrationInformationId">${registrationInformationId},</if>
|
|
<if test="null!=commentContent and ''!=commentContent">${commentContent},</if>
|
|
#{commentTime}
|
|
)
|
|
</insert>
|
|
|
|
|
|
<select id="ShowPatientEvaluatorAll" resultType="com.four.common.duck.interrogation.PatientEvaluator">
|
|
select patient_evaluator_id,
|
|
patient_id,
|
|
registration_information_id,
|
|
comment_content,
|
|
comment_time
|
|
from patient_evaluator
|
|
</select>
|
|
</mapper>
|