<?xml version="1.0" encoding="UTF-8" ?>
|
|
<sqls>
|
<dataSpace name="interface-io-account">
|
<sql name="importUpdateTaskId">
|
<![CDATA[
|
update ocr_apply
|
set baidu_task_id = (
|
select distinct baidu_task_id from temp_ocr_apply
|
where temp_ocr_apply.data_id = ocr_apply.id order by update_time desc limit 1
|
)
|
where id = '@{docId}'
|
]]>
|
</sql>
|
|
<sql name="importUpdateBaiduResult">
|
<![CDATA[
|
update ocr_apply
|
set baidu_file_url = (
|
select baidu_file_url from temp_ocr_apply
|
where temp_ocr_apply.data_id = ocr_apply.id and temp_ocr_apply.baidu_file_url is not null order by update_time desc limit 1
|
)
|
where id = '@{docId}'
|
]]>
|
</sql>
|
</dataSpace>
|
</sqls>
|