update ax_beidou_ship_archives
ship_id = #{shipId},
ship_type = #{shipType},
job_type = #{jobType},
job_way = #{jobWay},
owner_name = #{ownerName},
owner_tel_no = #{ownerTelNo},
ship_length = #{shipLength},
ship_width = #{shipWidth},
ship_material = #{shipMaterial},
police_station_id = #{policeStationId},
owner_company = #{ownerCompany},
create_time = #{createTime},
modify_time = #{modifyTime},
location_time = now(),
owner_type = #{ownerType}
where devide_no = #{devideNo}
insert into ax_beidou_ship_archives (
ship_id,
devide_no,
ship_type,
job_type,
job_way,
owner_name,
owner_tel_no,
ship_length,
ship_width,
ship_material,
police_station_id,
owner_company,
create_time,
modify_time,
location_time,
owner_type
)values(
#{shipId},
#{devideNo},
#{shipType},
#{jobType},
#{jobWay},
#{ownerName},
#{ownerTelNo},
#{shipLength},
#{shipWidth},
#{shipMaterial},
#{policeStationId},
#{ownerCompany},
#{createTime},
#{modifyTime},
now(),
#{ownerType}
)