insert into reserve_goods_confirm_order(
time_id,order_id,goods_id,co_id,remark,type,community_id
) values (
#{timeId},#{orderId},#{goodsId},#{coId},#{remark},#{type},#{communityId}
)
update reserve_goods_confirm_order t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.time_id= #{timeId}
, t.order_id= #{orderId}
, t.goods_id= #{goodsId}
, t.remark= #{remark}
, t.type= #{type}
, t.community_id= #{communityId}
where 1=1
and t.co_id= #{coId}