|
|
|
|
@ -594,4 +594,59 @@
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
</select>
|
|
|
|
|
<!--批量更新-->
|
|
|
|
|
<update id="SimpleUpdate">
|
|
|
|
|
update emr_apply_approve
|
|
|
|
|
<set >
|
|
|
|
|
<if test="record.applyer != null" >
|
|
|
|
|
applyer = #{record.applyer,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.applyTime != null" >
|
|
|
|
|
apply_time = #{record.applyTime,jdbcType=NCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.effeTime != null" >
|
|
|
|
|
effe_time = #{record.effeTime,jdbcType=NCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.effeDays != null" >
|
|
|
|
|
effe_days = #{record.effeDays,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.applyType != null" >
|
|
|
|
|
apply_type = #{record.applyType,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.applyReason != null" >
|
|
|
|
|
apply_reason = #{record.applyReason,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.applyState != null" >
|
|
|
|
|
apply_state = #{record.applyState,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.approver != null" >
|
|
|
|
|
approver = #{record.approver,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.approveTime != null" >
|
|
|
|
|
approve_time = #{record.approveTime,jdbcType=NCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.approveState != null" >
|
|
|
|
|
approve_state = #{record.approveState,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.approveNotes != null" >
|
|
|
|
|
approve_notes = #{record.approveNotes,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.patientId != null" >
|
|
|
|
|
patient_id = #{record.patientId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.admissId != null" >
|
|
|
|
|
admiss_id = #{record.admissId,jdbcType=CHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.inpatientNo != null" >
|
|
|
|
|
inpatient_no = #{record.inpatientNo,jdbcType=CHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.admissTimes != null" >
|
|
|
|
|
admiss_times = #{record.admissTimes,jdbcType=SMALLINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.disDate != null" >
|
|
|
|
|
dis_date = #{record.disDate,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id in (${idsStr})
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|