insert into volunteer_community_discount
id,
community_id,
discount,
integral,
creation_time
values
#{item.id},
#{item.communityId},
#{item.discount},
#{item.integral},
sysdate()
update volunteer_community_discount
id=#{item.id},
community_id=#{item.communityId},
discount=#{item.discount},
integral=#{item.integral},
update_time=sysdate()
where id = #{item.id}
delete from volunteer_community_discount where id=#{id}