insert into owner_car(
car_brand,car_num,ps_id,remark,owner_id,car_type_cd,user_id,car_id,car_color,car_type,start_time,end_time,state,community_id,member_id
) values (
#{carBrand},#{carNum},#{psId},#{remark},#{ownerId},#{carTypeCd},#{userId},#{carId},#{carColor},#{carType},#{startTime},#{endTime},#{state},#{communityId},#{memberId}
)
update owner_car t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.car_brand= #{carBrand}
, t.car_num= #{carNum}
, t.ps_id= #{psId}
, t.remark= #{remark}
, t.owner_id= #{ownerId}
, t.car_type_cd= #{carTypeCd}
, t.user_id= #{userId}
, t.car_color= #{carColor}
, t.car_type= #{carType}
, t.start_time= #{startTime}
, t.end_time= #{endTime}
, t.state= #{state}
, t.community_id= #{communityId}
, t.member_id= #{memberId}
where 1=1
and t.car_id= #{carId}