select ma_id, device_name, device_weight, device_count, code, type_id, ma_status, lease_scope, location, province_id, city_id, area_id, brand, model_name, production_date, working_hours, serial_number,
month_lease_price, day_lease_price, pic_url, js_month_price, js_day_price, description, gps_code, own_co, create_time,
creator, update_time, person, person_phone, update_by, specification, deposit, is_operator, is_active, update_time, update_by
from ma_dev_info
insert into ma_dev_info
device_name,
device_weight,
device_count,
code,
type_id,
ma_status,
lease_scope,
location,
province_id,
city_id,
area_id,
brand,
model_name,
production_date,
working_hours,
serial_number,
month_lease_price,
day_lease_price,
pic_url,
js_month_price,
js_day_price,
`description`,
gps_code,
own_co,
create_time,
person,
person_phone,
create_time,
creator,
update_time,
update_by,
specification,
deposit,
is_operator,
is_active,
update_time,
update_by,
#{deviceName},
#{deviceWeight},
#{deviceCount},
#{code},
#{typeId},
#{maStatus},
#{leaseScope},
#{location},
#{provinceId},
#{cityId},
#{areaId},
#{brand},
#{modelName},
#{productionDate},
#{workingHours},
#{serialNumber},
#{monthLeasePrice},
#{dayLeasePrice},
#{picUrl},
#{jsMonthPrice},
#{jsDayPrice},
#{description},
#{gpsCode},
#{companyId},
#{person},
#{personPhone},
now(),
#{creator},
now(),
#{update_by},
#{specification},
#{deposit},
#{isOperator},
#{isActive},
#{updateTime},
#{updateBy},
insert into gps_real_info
gps_code,
lon,
lat,
#{dto.gpsCode},
#{dto.lon},
#{dto.lat},
update ma_dev_info
code = #{code},
device_name = #{deviceName},
device_weight = #{deviceWeight},
device_count = #{deviceCount},
type_id = #{typeId},
ma_status = #{maStatus},
lease_scope = #{leaseScope},
location = #{location},
province_id = #{provinceId},
city_id = #{cityId},
area_id = #{areaId},
brand = #{brand},
model_name = #{modelName},
production_date = #{productionDate},
working_hours = #{workingHours},
serial_number = #{serialNumber},
month_lease_price = #{monthLeasePrice},
day_lease_price = #{dayLeasePrice},
pic_url = #{picUrl},
js_month_price = #{jsMonthPrice},
js_day_price = #{jsDayPrice},
`description` = #{description},
gps_code = #{gpsCode},
own_co = #{companyId},
person = #{person},
person_phone = #{personPhone},
specification = #{specification},
deposit = #{deposit},
is_active = #{isOperator},
update_time = now()
where ma_id = #{maId}
update ma_dev_info set is_active = '0'
where ma_id = #{maId,jdbcType=BIGINT} and is_active = '1' and ma_status != #{statusCode,jdbcType=INTEGER}
update ma_dev_info set is_active='0' where ma_id in
#{maId}
INSERT INTO ma_hot_search (ma_id, search_num)
VALUES (#{maId}, 1)
update ma_hot_search
set search_num = search_num + 1
where ma_id = #{maId}
update ma_dev_info
set ma_status = #{maStatus}
where ma_id = #{maIds[0]}
update ma_dev_info
set ma_status = #{maStatus}
where ma_id in
#{maId}
insert into ma_dev_info
device_name,
device_weight,
device_count,
code,
type_id,
ma_status,
lease_scope,
location,
province_id,
city_id,
area_id,
brand,
model_name,
production_date,
working_hours,
serial_number,
month_lease_price,
day_lease_price,
pic_url,
js_month_price,
js_day_price,
`description`,
gps_code,
own_co,
create_time,
person,
person_phone,
create_time,
creator,
update_time,
update_by,
specification,
deposit,
is_operator,
is_active,
update_time,
update_by,
#{deviceName},
#{deviceWeight},
#{deviceCount},
#{code},
#{typeId},
#{maStatus},
#{leaseScope},
#{location},
#{provinceId},
#{cityId},
#{areaId},
#{brand},
#{modelName},
#{productionDate},
#{workingHours},
#{serialNumber},
#{monthLeasePrice},
#{dayLeasePrice},
#{picUrl},
#{jsMonthPrice},
#{jsDayPrice},
#{description},
#{gpsCode},
#{companyId},
#{person},
#{personPhone},
now(),
#{creator},
now(),
#{update_by},
#{specification},
#{deposit},
#{isOperator},
1,
#{updateTime},
#{updateBy},