update mall_money_flow
set is_return=#{isReturn}
where member_id=#{memberId} and type in (1, 2)
insert into mall_money_flow(
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME,
member_id,
amount,
type,
order_no,
rt_member_id,
status,
remark,
flow_type) VALUES
(
#{revision},
#{createdBy},
#{createdTime},
#{updatedBy},
#{updatedTime},
#{memberId},
#{amount},
#{type},
#{orderNo},
#{rtMemberId},
#{status},
#{remark},
#{flowType}
)
update mall_money_flow
remark = #{remark},
is_return = 1
WHERE id = #{id}