|
@@ -36,80 +36,80 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<update id="updateBatchByKey">
|
|
|
- <foreach collection="list" item="item" separator=";">
|
|
|
- update med_doctor_advice
|
|
|
- <set>
|
|
|
- <if test="item.orderDoctorName != null">
|
|
|
- order_doctor_name = #{item.orderDoctorName},
|
|
|
- </if>
|
|
|
- <if test="item.frequency != null">
|
|
|
- frequency = #{item.frequency},
|
|
|
- </if>
|
|
|
- <if test="item.parentTypeId != null">
|
|
|
- parent_type_id = #{item.parentTypeId},
|
|
|
- </if>
|
|
|
- <if test="item.doctorAdviceType != null">
|
|
|
- doctor_advice_type = #{item.doctorAdviceType},
|
|
|
- </if>
|
|
|
- <if test="item.usageNum != null">
|
|
|
- usage_num = #{item.usageNum},
|
|
|
- </if>
|
|
|
- <if test="item.usageUnit != null">
|
|
|
- usage_unit = #{item.usageUnit},
|
|
|
- </if>
|
|
|
- <if test="item.dose != null">
|
|
|
- dose = #{item.dose},
|
|
|
- </if>
|
|
|
- <if test="item.doseUnit != null">
|
|
|
- dose_unit = #{item.doseUnit},
|
|
|
- </if>
|
|
|
- <if test="item.medModeType != null">
|
|
|
- med_mode_type = #{item.medModeType},
|
|
|
- </if>
|
|
|
- <if test="item.daFrequency != null">
|
|
|
- da_frequency = #{item.daFrequency},
|
|
|
- </if>
|
|
|
- <if test="item.daDealType != null">
|
|
|
- da_deal_type = #{item.daDealType},
|
|
|
- </if>
|
|
|
- <if test="item.daStartDate != null">
|
|
|
- da_start_date = #{item.daStartDate},
|
|
|
- </if>
|
|
|
- <if test="item.daItemName != null">
|
|
|
- da_item_name = #{item.daItemName},
|
|
|
- </if>
|
|
|
- <if test="item.daStatus != null">
|
|
|
- da_status = #{item.daStatus},
|
|
|
- </if>
|
|
|
- <if test="item.daStopDate != null">
|
|
|
- da_stop_date = #{item.daStopDate},
|
|
|
- </if>
|
|
|
- <if test="item.daGroupNo != null">
|
|
|
- da_group_no = #{item.daGroupNo},
|
|
|
- </if>
|
|
|
- <if test="item.daPrescriptionType != null">
|
|
|
- da_prescription_type = #{item.daPrescriptionType},
|
|
|
- </if>
|
|
|
- <if test="item.daMedType != null">
|
|
|
- da_med_type = #{item.daMedType},
|
|
|
- </if>
|
|
|
- <if test="item.doctorNotice != null">
|
|
|
- doctor_notice = #{item.doctorNotice},
|
|
|
- </if>
|
|
|
- <if test="item.doctorId != null">
|
|
|
- doctor_id = #{item.doctorId},
|
|
|
- </if>
|
|
|
- <if test="item.doctorName != null">
|
|
|
- doctor_name = #{item.doctorName},
|
|
|
- </if>
|
|
|
- <if test="item.gmtModified != null">
|
|
|
- gmt_modified = #{item.gmtModified},
|
|
|
- </if>
|
|
|
- <if test="item.modifier != null">
|
|
|
- modifier = #{item.modifier},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where doctor_advice_id = #{item.doctorAdviceId} and hospital_id = #{item.hospitalId} and behospital_code = #{item.behospitalCode}
|
|
|
- </foreach>
|
|
|
+ <foreach collection="list" item="item" separator=";">
|
|
|
+ update med_doctor_advice
|
|
|
+ <set>
|
|
|
+ <if test="item.orderDoctorName != null">
|
|
|
+ order_doctor_name = #{item.orderDoctorName},
|
|
|
+ </if>
|
|
|
+ <if test="item.frequency != null">
|
|
|
+ frequency = #{item.frequency},
|
|
|
+ </if>
|
|
|
+ <if test="item.parentTypeId != null">
|
|
|
+ parent_type_id = #{item.parentTypeId},
|
|
|
+ </if>
|
|
|
+ <if test="item.doctorAdviceType != null">
|
|
|
+ doctor_advice_type = #{item.doctorAdviceType},
|
|
|
+ </if>
|
|
|
+ <if test="item.usageNum != null">
|
|
|
+ usage_num = #{item.usageNum},
|
|
|
+ </if>
|
|
|
+ <if test="item.usageUnit != null">
|
|
|
+ usage_unit = #{item.usageUnit},
|
|
|
+ </if>
|
|
|
+ <if test="item.dose != null">
|
|
|
+ dose = #{item.dose},
|
|
|
+ </if>
|
|
|
+ <if test="item.doseUnit != null">
|
|
|
+ dose_unit = #{item.doseUnit},
|
|
|
+ </if>
|
|
|
+ <if test="item.medModeType != null">
|
|
|
+ med_mode_type = #{item.medModeType},
|
|
|
+ </if>
|
|
|
+ <if test="item.daFrequency != null">
|
|
|
+ da_frequency = #{item.daFrequency},
|
|
|
+ </if>
|
|
|
+ <if test="item.daDealType != null">
|
|
|
+ da_deal_type = #{item.daDealType},
|
|
|
+ </if>
|
|
|
+ <if test="item.daStartDate != null">
|
|
|
+ da_start_date = #{item.daStartDate},
|
|
|
+ </if>
|
|
|
+ <if test="item.daItemName != null">
|
|
|
+ da_item_name = #{item.daItemName},
|
|
|
+ </if>
|
|
|
+ <if test="item.daStatus != null">
|
|
|
+ da_status = #{item.daStatus},
|
|
|
+ </if>
|
|
|
+ <if test="item.daStopDate != null">
|
|
|
+ da_stop_date = #{item.daStopDate},
|
|
|
+ </if>
|
|
|
+ <if test="item.daGroupNo != null">
|
|
|
+ da_group_no = #{item.daGroupNo},
|
|
|
+ </if>
|
|
|
+ <if test="item.daPrescriptionType != null">
|
|
|
+ da_prescription_type = #{item.daPrescriptionType},
|
|
|
+ </if>
|
|
|
+ <if test="item.daMedType != null">
|
|
|
+ da_med_type = #{item.daMedType},
|
|
|
+ </if>
|
|
|
+ <if test="item.doctorNotice != null">
|
|
|
+ doctor_notice = #{item.doctorNotice},
|
|
|
+ </if>
|
|
|
+ <if test="item.doctorId != null">
|
|
|
+ doctor_id = #{item.doctorId},
|
|
|
+ </if>
|
|
|
+ <if test="item.doctorName != null">
|
|
|
+ doctor_name = #{item.doctorName},
|
|
|
+ </if>
|
|
|
+ <if test="item.gmtModified != null">
|
|
|
+ gmt_modified = #{item.gmtModified},
|
|
|
+ </if>
|
|
|
+ <if test="item.modifier != null">
|
|
|
+ modifier = #{item.modifier},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where doctor_advice_id = #{item.doctorAdviceId} and hospital_id = #{item.hospitalId} and behospital_code = #{item.behospitalCode}
|
|
|
+ </foreach>
|
|
|
</update>
|
|
|
</mapper>
|