|
@@ -20,10 +20,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="userId" column="user_id" />
|
|
|
<result property="doctorCertificate" column="doctor_certificate" />
|
|
|
+ <result property="doctorStatus" column="doctor_status" />
|
|
|
+ <result property="userStatus" column="user_status" />
|
|
|
+ <result property="qwUserId" column="qw_user_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsFirstDiagnosisVo">
|
|
|
- select id, patient_name, age, gender, phone, physical_condition, date_time, first_diagnosis, doctor_id, doctor_name, doctor_dep, create_time, update_time, user_id, doctor_certificate from fs_first_diagnosis
|
|
|
+ select id, patient_name, age, gender, phone, physical_condition, date_time, first_diagnosis, doctor_id, doctor_name, doctor_dep, create_time, update_time, user_id, doctor_certificate,qw_user_id,doctor_status,user_status from fs_first_diagnosis
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsFirstDiagnosisList" parameterType="FsFirstDiagnosis" resultMap="FsFirstDiagnosisResult">
|
|
@@ -67,6 +70,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
<if test="doctorCertificate != null">doctor_certificate,</if>
|
|
|
+ <if test="qwUserId != null">qw_user_id,</if>
|
|
|
+ <if test="doctorStatus != null">doctor_status,</if>
|
|
|
+ <if test="userStatus != null">user_status,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -84,6 +90,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
<if test="doctorCertificate != null">#{doctorCertificate},</if>
|
|
|
+ <if test="qwUserId != null">#{qwUserId},</if>
|
|
|
+ <if test="doctorStatus != null">#{doctorStatus},</if>
|
|
|
+ <if test="userStatus != null">#{userStatus},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -104,6 +113,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
<if test="doctorCertificate != null">doctor_certificate = #{doctorCertificate},</if>
|
|
|
+ <if test="qwUserId != null">qw_user_id = #{qwUserId},</if>
|
|
|
+ <if test="doctorStatus != null">doctor_status = #{doctorStatus},</if>
|
|
|
+ <if test="userStatus != null">user_status = #{userStatus},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|