|
|
|
@ -886,6 +886,97 @@
|
|
|
|
|
</if>
|
|
|
|
|
ORDER BY m.discharge_date_time desc
|
|
|
|
|
</select>
|
|
|
|
|
<insert id="insertCommonlyUsed" parameterType="com.emr.vo.CommomVo">
|
|
|
|
|
insert into commomtable
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="patientId != null">
|
|
|
|
|
patient_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="admissTimes != null">
|
|
|
|
|
admiss_times,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="inpatientNo != null">
|
|
|
|
|
inpatient_no,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="name != null">
|
|
|
|
|
name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sex != null">
|
|
|
|
|
sex,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="age != null">
|
|
|
|
|
age,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="admissDate != null">
|
|
|
|
|
admiss_date,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="disDate != null">
|
|
|
|
|
dis_date,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="disDept != null">
|
|
|
|
|
dis_dept,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="checkedDatetime != null">
|
|
|
|
|
checked_datetime,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="admissId != null">
|
|
|
|
|
admiss_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ageMonth != null">
|
|
|
|
|
age_month,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="attending != null">
|
|
|
|
|
attending,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="admissDays != null">
|
|
|
|
|
admiss_days,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="patientId != null">
|
|
|
|
|
#{patientId,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="admissTimes != null">
|
|
|
|
|
#{admissTimes,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="inpatientNo != null">
|
|
|
|
|
#{inpatientNo,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="name != null">
|
|
|
|
|
#{name,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sex != null">
|
|
|
|
|
#{sex,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="age != null">
|
|
|
|
|
#{age,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="admissDate != null">
|
|
|
|
|
#{admissDate},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="disDate != null">
|
|
|
|
|
#{disDate},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="disDept != null">
|
|
|
|
|
#{disDept,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="checkedDatetime != null">
|
|
|
|
|
#{checkedDatetime,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="admissId != null">
|
|
|
|
|
#{admissId,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ageMonth != null">
|
|
|
|
|
#{ageMonth,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="attending != null">
|
|
|
|
|
#{attending,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="admissDays != null">
|
|
|
|
|
#{admissDays,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<!--查询已归档记录-->
|
|
|
|
|
<select id="selectFiled" resultMap="BaseResultMap2">
|
|
|
|
|
SELECT
|
|
|
|
|