insert into haikong_member_order_sync_resend ( `open_id`, `phone`, `consume_date`, `order_amount`, `order_no`, `order_score`, `member_sys_order_id`, `resend_status`, `last_resend_time`, `create_time` ) values ( #{openId}, #{phone}, #{consumeDate}, #{orderAmount}, #{orderNo}, #{orderScore}, #{memberSysOrderId}, #{resendStatus}, #{lastResendTime}, #{createTime} ) update haikong_member_order_sync_resend `open_id` = #{openId}, `phone` = #{phone}, `consume_date` = #{consumeDate}, `order_amount` = #{orderAmount}, `order_no` = #{orderNo}, `order_score` = #{orderScore}, `resend_status` = #{resendStatus}, `last_resend_time` = #{lastResendTime} `create_time` = #{createTime} where id = #{id} update haikong_member_order_sync_resend resend_status = when id = #{item.id} then #{item.resendStatus} where id = #{item.id} update haikong_member_order_sync_resend resend_status = when id = #{item.id} then #{item.resendStatus} member_sys_order_id = when id = #{item.id} then #{item.memberSysOrderId} where id in #{item.id} delete from haikong_member_order_sync_resend where id = #{id} delete from haikong_member_order_sync_resend where id in #{item}