UPDATE s_map
dict_type=#{maData.dictType},
address=#{maData.address},
content=#{maData.content},
dep=#{maData.dep},
img=#{maData.img},
gzh=#{maData.gzh},
sptype=#{maData.sptype},
tel=#{maData.tel},
time=#{maData.time},
where id=#{maData.id}
delete
from s_map
where id = #{id}
id
, dict_type, address, content, dep, img, gzh, sptype, tel,
time, url, type, tag, tag2, tag3, specialtype, create_time,
update_time
INSERT INTO s_map (
)
VALUES
(NULL,
#{map.dictType}, #{map.address}, #{map.content}, #{map.dep},
#{map.img}, #{map.gzh}, #{map.sptype}, #{map.tel}, #{map.time}, #{map.url},
#{map.type}, #{map.tag}, #{map.tag2}, #{map.tag3},
#{map.specialtype}, NOW(), NOW())
TRUNCATE TABLE s_map
delete
from s_map_errorlog
where id = #{id}
INSERT INTO s_map_errorlog
(s_map_id, address_name, original_address,
original_longitude, original_latitude, original_phone, original_office_hours,
new_phone, new_office_hours, new_address,
new_longitude, new_latitude, error_state, create_time)
VALUE
(#{sMapId},#{addressName},#{originalAddress},
#{originalLongitude},#{originalLatitude},#{originalPhone},#{originalOfficeHours},#{newPhone},#{newOfficeHours},
#{newAddress},#{newLongitude},#{newLatitude},#{errorState},#{createTime})
UPDATE s_map
SET longitude = #{longitude},
latitude = #{latitude}
WHERE id = #{id};
UPDATE s_map_errorlog
SET new_address = #{newAddress},
new_longitude = #{newLongitude},
new_latitude = #{newLatitude},
error_state = #{errorState},
update_time = #{updateTime}
WHERE id = #{id};