|
|
@ -3,6 +3,7 @@ |
|
|
|
<mapper namespace="com.ccsens.tcm.persist.mapper.BiologicalSamplesMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.BiologicalSamples"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="code" jdbcType="VARCHAR" property="code" /> |
|
|
|
<result column="sample_type" jdbcType="TINYINT" property="sampleType" /> |
|
|
|
<result column="patient_information_id" jdbcType="BIGINT" property="patientInformationId" /> |
|
|
|
<result column="collect_time" jdbcType="INTEGER" property="collectTime" /> |
|
|
@ -70,8 +71,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, sample_type, patient_information_id, collect_time, user_id, created_at, update_at, |
|
|
|
rec_status |
|
|
|
id, code, sample_type, patient_information_id, collect_time, user_id, created_at, |
|
|
|
update_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.BiologicalSamplesExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -104,12 +105,14 @@ |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples"> |
|
|
|
insert into t_biological_samples (id, sample_type, patient_information_id, |
|
|
|
collect_time, user_id, created_at, |
|
|
|
update_at, rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{sampleType,jdbcType=TINYINT}, #{patientInformationId,jdbcType=BIGINT}, |
|
|
|
#{collectTime,jdbcType=INTEGER}, #{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
#{updateAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
|
insert into t_biological_samples (id, code, sample_type, |
|
|
|
patient_information_id, collect_time, user_id, |
|
|
|
created_at, update_at, rec_status |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{sampleType,jdbcType=TINYINT}, |
|
|
|
#{patientInformationId,jdbcType=BIGINT}, #{collectTime,jdbcType=INTEGER}, #{userId,jdbcType=BIGINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updateAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples"> |
|
|
|
insert into t_biological_samples |
|
|
@ -117,6 +120,9 @@ |
|
|
|
<if test="id != null"> |
|
|
|
id, |
|
|
|
</if> |
|
|
|
<if test="code != null"> |
|
|
|
code, |
|
|
|
</if> |
|
|
|
<if test="sampleType != null"> |
|
|
|
sample_type, |
|
|
|
</if> |
|
|
@ -143,6 +149,9 @@ |
|
|
|
<if test="id != null"> |
|
|
|
#{id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="code != null"> |
|
|
|
#{code,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="sampleType != null"> |
|
|
|
#{sampleType,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
@ -178,6 +187,9 @@ |
|
|
|
<if test="record.id != null"> |
|
|
|
id = #{record.id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.code != null"> |
|
|
|
code = #{record.code,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.sampleType != null"> |
|
|
|
sample_type = #{record.sampleType,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
@ -207,6 +219,7 @@ |
|
|
|
<update id="updateByExample" parameterType="map"> |
|
|
|
update t_biological_samples |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
code = #{record.code,jdbcType=VARCHAR}, |
|
|
|
sample_type = #{record.sampleType,jdbcType=TINYINT}, |
|
|
|
patient_information_id = #{record.patientInformationId,jdbcType=BIGINT}, |
|
|
|
collect_time = #{record.collectTime,jdbcType=INTEGER}, |
|
|
@ -221,6 +234,9 @@ |
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples"> |
|
|
|
update t_biological_samples |
|
|
|
<set> |
|
|
|
<if test="code != null"> |
|
|
|
code = #{code,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="sampleType != null"> |
|
|
|
sample_type = #{sampleType,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
@ -247,7 +263,8 @@ |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples"> |
|
|
|
update t_biological_samples |
|
|
|
set sample_type = #{sampleType,jdbcType=TINYINT}, |
|
|
|
set code = #{code,jdbcType=VARCHAR}, |
|
|
|
sample_type = #{sampleType,jdbcType=TINYINT}, |
|
|
|
patient_information_id = #{patientInformationId,jdbcType=BIGINT}, |
|
|
|
collect_time = #{collectTime,jdbcType=INTEGER}, |
|
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
|