|
|
@ -23,6 +23,8 @@ |
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|
|
|
<result column="is_del" jdbcType="TINYINT" property="isDel" /> |
|
|
|
<result column="show_status" jdbcType="TINYINT" property="showStatus" /> |
|
|
|
<result column="hospital" jdbcType="VARCHAR" property="hospital" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -85,7 +87,7 @@ |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, name, patient_id, patient_idcard, patient_age, doctor_id, serial_number, initial_impression, |
|
|
|
clinical_diagnosis, pasi, department, bed_number, report_time, check_time, evaluation_code, |
|
|
|
url, qr_code_url, remark, create_time, update_time, is_del |
|
|
|
url, qr_code_url, remark, create_time, update_time, is_del, show_status, hospital |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtPatientReportExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -124,16 +126,16 @@ |
|
|
|
pasi, department, bed_number, |
|
|
|
report_time, check_time, evaluation_code, |
|
|
|
url, qr_code_url, remark, |
|
|
|
create_time, update_time, is_del |
|
|
|
) |
|
|
|
create_time, update_time, is_del, |
|
|
|
show_status, hospital) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{patientId,jdbcType=BIGINT}, |
|
|
|
#{patientIdcard,jdbcType=VARCHAR}, #{patientAge,jdbcType=TINYINT}, #{doctorId,jdbcType=BIGINT}, |
|
|
|
#{serialNumber,jdbcType=VARCHAR}, #{initialImpression,jdbcType=VARCHAR}, #{clinicalDiagnosis,jdbcType=VARCHAR}, |
|
|
|
#{pasi,jdbcType=TINYINT}, #{department,jdbcType=VARCHAR}, #{bedNumber,jdbcType=VARCHAR}, |
|
|
|
#{reportTime,jdbcType=BIGINT}, #{checkTime,jdbcType=BIGINT}, #{evaluationCode,jdbcType=VARCHAR}, |
|
|
|
#{url,jdbcType=VARCHAR}, #{qrCodeUrl,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, |
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT}, |
|
|
|
#{showStatus,jdbcType=TINYINT}, #{hospital,jdbcType=VARCHAR}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtPatientReport"> |
|
|
|
insert into t_ht_patient_report |
|
|
@ -201,6 +203,12 @@ |
|
|
|
<if test="isDel != null"> |
|
|
|
is_del, |
|
|
|
</if> |
|
|
|
<if test="showStatus != null"> |
|
|
|
show_status, |
|
|
|
</if> |
|
|
|
<if test="hospital != null"> |
|
|
|
hospital, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -266,6 +274,12 @@ |
|
|
|
<if test="isDel != null"> |
|
|
|
#{isDel,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="showStatus != null"> |
|
|
|
#{showStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="hospital != null"> |
|
|
|
#{hospital,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.ht.bean.po.HtPatientReportExample" resultType="java.lang.Long"> |
|
|
@ -340,6 +354,12 @@ |
|
|
|
<if test="record.isDel != null"> |
|
|
|
is_del = #{record.isDel,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.showStatus != null"> |
|
|
|
show_status = #{record.showStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.hospital != null"> |
|
|
|
hospital = #{record.hospital,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -367,7 +387,9 @@ |
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|
|
|
is_del = #{record.isDel,jdbcType=TINYINT} |
|
|
|
is_del = #{record.isDel,jdbcType=TINYINT}, |
|
|
|
show_status = #{record.showStatus,jdbcType=TINYINT}, |
|
|
|
hospital = #{record.hospital,jdbcType=VARCHAR} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -435,6 +457,12 @@ |
|
|
|
<if test="isDel != null"> |
|
|
|
is_del = #{isDel,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="showStatus != null"> |
|
|
|
show_status = #{showStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="hospital != null"> |
|
|
|
hospital = #{hospital,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -459,7 +487,9 @@ |
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
is_del = #{isDel,jdbcType=TINYINT} |
|
|
|
is_del = #{isDel,jdbcType=TINYINT}, |
|
|
|
show_status = #{showStatus,jdbcType=TINYINT}, |
|
|
|
hospital = #{hospital,jdbcType=VARCHAR} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |