|
|
@@ -24,12 +24,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="reason" column="reason" />
|
|
|
<result property="checkStatus" column="check_status" />
|
|
|
<result property="checkTime" column="check_time" />
|
|
|
+ <result property="projectCateId" column="project_cate_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsPatientBaseInfoVo">
|
|
|
select id, name, sex, age, base_info, diagnosis_result, treatment_target, doctor_id, project_id, create_time
|
|
|
, update_time, user_id, status, doctor_status,company_user_id,diagnosis_time,reason,
|
|
|
- check_status,check_time
|
|
|
+ check_status,check_time,project_cate_id
|
|
|
from fs_patient_base_info
|
|
|
</sql>
|
|
|
|
|
|
@@ -80,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="reason != null">reason,</if>
|
|
|
<if test="checkStatus != null">check_status,</if>
|
|
|
<if test="checkTime != null">check_time,</if>
|
|
|
+ <if test="projectCateId != null">project_cate_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="name != null">#{name},</if>
|
|
|
@@ -100,6 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="reason != null">#{reason},</if>
|
|
|
<if test="checkStatus != null">#{checkStatus},</if>
|
|
|
<if test="checkTime != null">#{checkTime},</if>
|
|
|
+ <if test="projectCateId != null">#{projectCateId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -124,6 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="reason != null">reason = #{reason},</if>
|
|
|
<if test="checkStatus != null">check_status = #{checkStatus},</if>
|
|
|
<if test="checkTime != null">check_time = #{checkTime},</if>
|
|
|
+ <if test="projectCateId != null">project_cate_id = #{projectCateId},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|