|
|
@ -5,6 +5,7 @@ |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" /> |
|
|
|
<result column="patient_id" jdbcType="BIGINT" property="patientId" /> |
|
|
|
<result column="times" jdbcType="TINYINT" property="times" /> |
|
|
|
<result column="patient_idcard" jdbcType="VARCHAR" property="patientIdcard" /> |
|
|
|
<result column="patient_age" jdbcType="TINYINT" property="patientAge" /> |
|
|
|
<result column="doctor_id" jdbcType="BIGINT" property="doctorId" /> |
|
|
@ -87,10 +88,10 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<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, show_status, hospital, |
|
|
|
complete_status, user_id |
|
|
|
id, name, patient_id, times, 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, show_status, hospital, complete_status, user_id |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.question.bean.po.HtPatientReportExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -124,23 +125,23 @@ |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.question.bean.po.HtPatientReport"> |
|
|
|
insert into t_ht_patient_report (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, |
|
|
|
show_status, hospital, complete_status, |
|
|
|
user_id) |
|
|
|
times, 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, show_status, hospital, |
|
|
|
complete_status, user_id) |
|
|
|
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}, |
|
|
|
#{showStatus,jdbcType=TINYINT}, #{hospital,jdbcType=VARCHAR}, #{completeStatus,jdbcType=TINYINT}, |
|
|
|
#{userId,jdbcType=BIGINT}) |
|
|
|
#{times,jdbcType=TINYINT}, #{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}, #{showStatus,jdbcType=TINYINT}, #{hospital,jdbcType=VARCHAR}, |
|
|
|
#{completeStatus,jdbcType=TINYINT}, #{userId,jdbcType=BIGINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.question.bean.po.HtPatientReport"> |
|
|
|
insert into t_ht_patient_report |
|
|
@ -154,6 +155,9 @@ |
|
|
|
<if test="patientId != null"> |
|
|
|
patient_id, |
|
|
|
</if> |
|
|
|
<if test="times != null"> |
|
|
|
times, |
|
|
|
</if> |
|
|
|
<if test="patientIdcard != null"> |
|
|
|
patient_idcard, |
|
|
|
</if> |
|
|
@ -231,6 +235,9 @@ |
|
|
|
<if test="patientId != null"> |
|
|
|
#{patientId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="times != null"> |
|
|
|
#{times,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="patientIdcard != null"> |
|
|
|
#{patientIdcard,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
@ -317,6 +324,9 @@ |
|
|
|
<if test="record.patientId != null"> |
|
|
|
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.times != null"> |
|
|
|
times = #{record.times,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.patientIdcard != null"> |
|
|
|
patient_idcard = #{record.patientIdcard,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
@ -393,6 +403,7 @@ |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
name = #{record.name,jdbcType=VARCHAR}, |
|
|
|
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|
|
|
times = #{record.times,jdbcType=TINYINT}, |
|
|
|
patient_idcard = #{record.patientIdcard,jdbcType=VARCHAR}, |
|
|
|
patient_age = #{record.patientAge,jdbcType=TINYINT}, |
|
|
|
doctor_id = #{record.doctorId,jdbcType=BIGINT}, |
|
|
@ -428,6 +439,9 @@ |
|
|
|
<if test="patientId != null"> |
|
|
|
patient_id = #{patientId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="times != null"> |
|
|
|
times = #{times,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="patientIdcard != null"> |
|
|
|
patient_idcard = #{patientIdcard,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
@ -501,6 +515,7 @@ |
|
|
|
update t_ht_patient_report |
|
|
|
set name = #{name,jdbcType=VARCHAR}, |
|
|
|
patient_id = #{patientId,jdbcType=BIGINT}, |
|
|
|
times = #{times,jdbcType=TINYINT}, |
|
|
|
patient_idcard = #{patientIdcard,jdbcType=VARCHAR}, |
|
|
|
patient_age = #{patientAge,jdbcType=TINYINT}, |
|
|
|
doctor_id = #{doctorId,jdbcType=BIGINT}, |
|
|
|