id, name, upload_user, upload_time, file_path, proxy_path, unzip_path, file_type, storage, status, read_status, read_message, file_storage_time, update_time, file_size
INSERT INTO t_cadastre_file (
id, name, upload_user, upload_time, file_path, proxy_path, unzip_path, file_type, storage, status, read_status, read_message, file_storage_time, update_time, file_size
) VALUES (
#{id}, #{name}, #{uploadUser}, #{uploadTime}, #{filePath}, #{proxyPath}, #{unzipPath}, #{fileType}, #{storage}, #{status}, #{readStatus}, #{readMessage}, #{fileStorageTime}, #{updateTime}, #{fileSize}
)
UPDATE t_cadastre_file
name = #{name},
upload_user = #{uploadUser},
upload_time = #{uploadTime},
file_path = #{filePath},
proxy_path = #{proxyPath},
unzip_path = #{unzipPath},
file_type = #{fileType},
storage = #{storage},
status = #{status},
read_status = #{readStatus},
read_message = #{readMessage},
file_storage_time = #{fileStorageTime},
update_time = #{updateTime},
file_size = #{fileSize},
WHERE id = #{id}
DELETE FROM t_cadastre_file WHERE id = #{id}
DELETE FROM t_cadastre_file
WHERE id IN
#{id}
INSERT INTO ${tableName} (
${key}
)
VALUES (
#{value}
)
INSERT INTO vector.${tableName} (
${key}
)
VALUES (
public.st_transform(public.st_geomfromewkt(#{value}), #{shpDbSRID})
#{value}
)
INSERT INTO vector.${tableName} (
${key}
)
VALUES
(
public.st_transform(public.st_geomfromewkt(#{data[${key}]}), #{shpDbSRID})
#{data[${key}]}
)
COMMENT ON COLUMN vector.${tableName}."valid_flag" IS '有效标识:0-当前版本,1-历史版本';
ALTER TABLE vector.${tableName} ADD COLUMN IF NOT EXISTS valid_flag int2
UPDATE vector.${tableName} SET valid_flag = #{validFlag} WHERE 1=1
and valid_flag= #{oldValidFlag}
DELETE FROM vector.${tableName} WHERE valid_flag = #{validFlag}
UPDATE vector.${tableName}
${key} = #{value},
${key} = #{value},
AND bsm = #{data.bsm}
AND ywh = #{data.ywh}
DELETE FROM vector.${tableName}
AND bsm = #{data.bsm}
AND ywh = #{data.ywh}