|
|
@@ -298,23 +298,23 @@
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<trim prefix="present_illness = CASE" suffix="END,">
|
|
|
<foreach collection="companyCustomers" item="item">
|
|
|
- WHEN id = #{item.id} THEN #{item.presentIllness}
|
|
|
+ WHEN import_member_id = #{item.importMemberId} THEN #{item.presentIllness}
|
|
|
</foreach>
|
|
|
</trim>
|
|
|
<trim prefix="current_medication = CASE" suffix="END,">
|
|
|
<foreach collection="companyCustomers" item="item">
|
|
|
- WHEN id = #{item.id} THEN #{item.currentMedication}
|
|
|
+ WHEN import_member_id = #{item.importMemberId} THEN #{item.currentMedication}
|
|
|
</foreach>
|
|
|
</trim>
|
|
|
<trim prefix="allergy_history = CASE" suffix="END,">
|
|
|
<foreach collection="companyCustomers" item="item">
|
|
|
- WHEN id = #{item.id} THEN #{item.allergyHistory}
|
|
|
+ WHEN import_member_id = #{item.importMemberId} THEN #{item.allergyHistory}
|
|
|
</foreach>
|
|
|
</trim>
|
|
|
</trim>
|
|
|
- WHERE id IN
|
|
|
+ WHERE import_member_id IN
|
|
|
<foreach collection="companyCustomers" item="item" open="(" separator="," close=")">
|
|
|
- #{item.id}
|
|
|
+ #{item.importMemberId}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
|