id,
name,
creation_time,
update_time,
commodity_value,
integral,
state,
cover_url,
content,
good_type,
merchant_id,
good_num,
good_imgs,
community_id
insert into volunteer_integral_merchant
id,
name,
community_id,
commodity_value,
integral,
state,
cover_url,
content,
good_type,
merchant_id,
good_num,
good_imgs,
creation_time
values
#{vimVO.id},
#{vimVO.name},
#{vimVO.communityId},
#{vimVO.commodityValue},
#{vimVO.integral},
#{vimVO.state},
#{vimVO.coverUrl},
#{vimVO.content},
#{vimVO.goodType},
#{vimVO.merchantId},
#{vimVO.goodNum},
#{vimVO.goodImgs},
sysdate()
update volunteer_integral_merchant
id=#{vimVO.id},
name=#{vimVO.name},
community_id=#{vimVO.communityId},
commodity_value=#{vimVO.commodityValue},
integral=#{vimVO.integral},
state=#{vimVO.state},
cover_url=#{vimVO.coverUrl},
content=#{vimVO.content},
good_type=#{vimVO.goodType},
merchant_id=#{vimVO.merchantId},
good_num=#{vimVO.goodNum},
good_imgs=#{vimVO.goodImgs},
update_time=sysdate()
where id = #{vimVO.id}
delete from volunteer_integral_merchant where id=#{id}