insert into resource_store_times(price, apply_order_id, store_id, stock, res_code, times_id, sh_id,
community_id)
values (#{price}, #{applyOrderId}, #{storeId}, #{stock}, #{resCode}, #{timesId}, #{shId}, #{communityId})
update resource_store_times t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.price= #{price}
, t.apply_order_id= #{applyOrderId}
, t.stock= #{stock}
, t.res_code= #{resCode}
where 1=1
and t.times_id= #{timesId}
and t.store_id= #{storeId}
and t.community_id= #{communityId}