|
|
@ -3,8 +3,8 @@ |
|
|
|
<mapper namespace="com.ccsens.tcm.persist.mapper.patientRecordMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.patientRecord"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="patient_id" jdbcType="INTEGER" property="patientId" /> |
|
|
|
<result column="test_questions_id" jdbcType="INTEGER" property="testQuestionsId" /> |
|
|
|
<result column="patient_id" jdbcType="BIGINT" property="patientId" /> |
|
|
|
<result column="test_questions_id" jdbcType="BIGINT" property="testQuestionsId" /> |
|
|
|
<result column="contents" jdbcType="VARCHAR" property="contents" /> |
|
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
|
<result column="collect_time" jdbcType="INTEGER" property="collectTime" /> |
|
|
@ -113,7 +113,7 @@ |
|
|
|
user_id, collect_time, time_slot, |
|
|
|
created_at, update_at, rec_status |
|
|
|
) |
|
|
|
values (#{patientId,jdbcType=INTEGER}, #{testQuestionsId,jdbcType=INTEGER}, #{contents,jdbcType=VARCHAR}, |
|
|
|
values (#{patientId,jdbcType=BIGINT}, #{testQuestionsId,jdbcType=BIGINT}, #{contents,jdbcType=VARCHAR}, |
|
|
|
#{userId,jdbcType=BIGINT}, #{collectTime,jdbcType=INTEGER}, #{timeSlot,jdbcType=TIMESTAMP}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updateAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
) |
|
|
@ -154,10 +154,10 @@ |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="patientId != null"> |
|
|
|
#{patientId,jdbcType=INTEGER}, |
|
|
|
#{patientId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="testQuestionsId != null"> |
|
|
|
#{testQuestionsId,jdbcType=INTEGER}, |
|
|
|
#{testQuestionsId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="contents != null"> |
|
|
|
#{contents,jdbcType=VARCHAR}, |
|
|
@ -195,10 +195,10 @@ |
|
|
|
id = #{record.id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.patientId != null"> |
|
|
|
patient_id = #{record.patientId,jdbcType=INTEGER}, |
|
|
|
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.testQuestionsId != null"> |
|
|
|
test_questions_id = #{record.testQuestionsId,jdbcType=INTEGER}, |
|
|
|
test_questions_id = #{record.testQuestionsId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.contents != null"> |
|
|
|
contents = #{record.contents,jdbcType=VARCHAR}, |
|
|
@ -229,8 +229,8 @@ |
|
|
|
<update id="updateByExample" parameterType="map"> |
|
|
|
update t_patient_record |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
patient_id = #{record.patientId,jdbcType=INTEGER}, |
|
|
|
test_questions_id = #{record.testQuestionsId,jdbcType=INTEGER}, |
|
|
|
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|
|
|
test_questions_id = #{record.testQuestionsId,jdbcType=BIGINT}, |
|
|
|
contents = #{record.contents,jdbcType=VARCHAR}, |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
collect_time = #{record.collectTime,jdbcType=INTEGER}, |
|
|
@ -246,10 +246,10 @@ |
|
|
|
update t_patient_record |
|
|
|
<set> |
|
|
|
<if test="patientId != null"> |
|
|
|
patient_id = #{patientId,jdbcType=INTEGER}, |
|
|
|
patient_id = #{patientId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="testQuestionsId != null"> |
|
|
|
test_questions_id = #{testQuestionsId,jdbcType=INTEGER}, |
|
|
|
test_questions_id = #{testQuestionsId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="contents != null"> |
|
|
|
contents = #{contents,jdbcType=VARCHAR}, |
|
|
@ -277,8 +277,8 @@ |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.tcm.bean.po.patientRecord"> |
|
|
|
update t_patient_record |
|
|
|
set patient_id = #{patientId,jdbcType=INTEGER}, |
|
|
|
test_questions_id = #{testQuestionsId,jdbcType=INTEGER}, |
|
|
|
set patient_id = #{patientId,jdbcType=BIGINT}, |
|
|
|
test_questions_id = #{testQuestionsId,jdbcType=BIGINT}, |
|
|
|
contents = #{contents,jdbcType=VARCHAR}, |
|
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
collect_time = #{collectTime,jdbcType=INTEGER}, |
|
|
|