id,
title,
classify_id,
claim_num,
address,
lat,
lon,
claim_start_time,
claim_end_time,
need_start_time,
need_end_time,
linkman,
phone,
sign_in_scope,
sign_out_scope,
award,
content,
imgs_url,
creation_time,
update_time,
kind,
community_id,
is_display,
user_id
insert into new_fight_need_problem_inventory
id,
title,
classify_id,
claim_num,
address,
lat,
lon,
claim_start_time,
claim_end_time,
need_start_time,
need_end_time,
linkman,
phone,
sign_in_scope,
sign_out_scope,
award,
content,
imgs_url,
kind,
user_id,
community_id,
status,
is_display,
creation_time
values
#{item.id},
#{item.title},
#{item.classifyId},
#{item.claimNum},
#{item.address},
#{item.lat},
#{item.lon},
#{item.claimStartTime},
#{item.claimEndTime},
#{item.needStartTime},
#{item.needEndTime},
#{item.linkman},
#{item.phone},
#{item.signInScope},
#{item.signOutScope},
#{item.award},
#{item.content},
#{item.imgsUrl},
#{item.kind},
#{item.userId},
#{item.communityId},
#{item.status},
#{item.isDisplay},
sysdate()
update new_fight_need_problem_inventory
id=#{item.id},
title=#{item.title},
classify_id=#{item.classifyId},
claim_num=#{item.claimNum},
address=#{item.address},
lat=#{item.lat},
lon=#{item.lon},
claim_start_time=#{item.claimStartTime},
claim_end_time=#{item.claimEndTime},
need_start_time=#{item.needStartTime},
need_end_time=#{item.needEndTime},
linkman=#{item.linkman},
phone=#{item.phone},
sign_in_scope=#{item.signInScope},
sign_out_scope=#{item.signOutScope},
award=#{item.award},
content=#{item.content},
imgs_url=#{item.imgsUrl},
kind=#{item.kind},
user_id=#{item.userId},
community_id=#{item.communityId},
status=#{item.status},
is_display=#{item.isDisplay},
update_time=sysdate()
where id = #{item.id}
delete from new_fight_need_problem_inventory where id=#{id}