INSERT INTO mini_stray_animal
uuid,
mini_user_id,
animal_type,
color,
size,
status,
adopted_by,
adopted_at,
audit_status,
province,
city,
district,
address,
gd_location_point,
wgs84_location_point,
wgs84_geohash,
create_time,
create_timestamp,
create_by,
update_time,
update_timestamp,
update_by,
is_deleted,
#{uuid},
#{miniUserId},
#{animalType},
#{color},
#{size},
#{status},
#{adoptedBy},
#{adoptedAt},
#{auditStatus},
#{province},
#{city},
#{district},
#{address},
ST_GeomFromWKB(#{gdLocationPoint, typeHandler=com.youlai.boot.common.handler.PointTypeHandler}, 4326, 'axis-order=long-lat'),
ST_GeomFromWKB(#{wgs84LocationPoint, typeHandler=com.youlai.boot.common.handler.PointTypeHandler}, 4326, 'axis-order=long-lat'),
#{wgs84Geohash},
#{createTime},
#{createTimestamp},
#{createBy},
#{updateTime},
#{updateTimestamp},
#{updateBy},
#{deleted},
UPDATE mini_stray_animal
uuid = #{uuid},
mini_user_id = #{miniUserId},
animal_type = #{animalType},
color = #{color},
size = #{size},
status = #{status},
adopted_by = #{adoptedBy},
adopted_at = #{adoptedAt},
audit_status = #{auditStatus},
province = #{province},
city = #{city},
district = #{district},
address = #{address},
gd_location_point =
ST_GeomFromWKB(#{gdLocationPoint, typeHandler=com.youlai.boot.common.handler.PointTypeHandler}, 4326, 'axis-order=long-lat'),
wgs84_location_point =
ST_GeomFromWKB(#{wgs84LocationPoint, typeHandler=com.youlai.boot.common.handler.PointTypeHandler}, 4326, 'axis-order=long-lat'),
wgs84_geohash = #{wgs84Geohash},
update_time = #{updateTime},
update_timestamp = #{updateTimestamp},
update_by = #{updateBy},
WHERE id = #{id}