INSERT INTO bi_manager.export(
export_id
, export_ttl
, export_kor_nm
, export_eng_nm
, export_explain
, category_id
, public_potal_is_use
, data_is_use
, keyword
, api_type
, data_format_type
, is_use
, export_creat_id
, export_creat_dt
, hit
, use_cnt
, file_manager_id
) VALUES (
#{export_id}
, #{export_ttl}
, #{export_kor_nm}
, #{export_eng_nm}
, #{export_explain}
, #{category_id}
, #{public_potal_is_use}
, #{data_is_use}
, #{keyword}
, #{api_type}
, #{data_format_type}
, true
, #{export_creat_id}
, now()
, 0
, 0
, #{file_manager_id}
)
INSERT INTO bi_manager.api_export(
api_id
, export_id
, url
, api_detail_kor_nm
, api_detail_eng_nm
, api_detail_explain
, dataset_id
, dataset_post_id
, "index"
) VALUES (
#{api_id}
, #{export_id}
, #{url}
, #{api_detail_kor_nm}
, #{api_detail_eng_nm}
, #{api_detail_explain}
, #{dataset.datasetId}
, #{datasetPost.dataset_post_id}
, #{index}
)
DELETE
FROM bi_manager.api_export
WHERE export_id = #{export_id}
DELETE
FROM bi_manager.export
WHERE export_id = #{export_id}
UPDATE bi_manager.export
SET
hit = #{hit}
WHERE export_id=#{export_id};
INSERT INTO api_key_info( api_key
, creat_id
, creat_dt
, bgnde
, endde
)VALUES( #{api_key}
, #{creat_id}
, now()
, #{bgnde}::date
, #{endde}::date
)
DELETE
FROM api_key_info
WHERE key_sn = #{key_sn}
INSERT INTO bi_manager.gis_info(
gis_title
, dataset_id
, category_id
, memo
, use_at
, gis_creat_id
, gis_creat_dt
) VALUES (
#{gis_title}
, #{dataset_id}
, #{category_id}
, #{memo}
, #{use_at}
, #{gis_creat_id}
, now()
)
UPDATE bi_manager.gis_info
SET
gis_title = #{gis_title}
, dataset_id = #{dataset_id}
, category_id = #{category_id}
, memo = #{memo}
, use_at = #{use_at}
, gis_mdfcn_id = #{gis_mdfcn_id}
, gis_mdfcn_dt = now()
WHERE gis_id=#{gis_id};
DELETE
FROM bi_manager.gis_info
WHERE gis_id = #{gis_id}