检测一下以下的xml是否符合oracle规范,有没有错误<select id="selectInvoiceFlowDetailAndRelationByOriginalAccountLineNumber" parameterType="com.baiwang.docmanagement.model.dto.DocInvoiceFlowDetailDataDto" resultMap="invoiceDetailAndRelationMap"> SELECT detail.id, detail.parent_id, detail.account_line_number , relation.invoice_no , relation.invoice_code FROM ( SELECT id , account_line_number, parent_id FROM doc_invoice_flow_detail_data WHERE tenant_id = #{invoiceFlowDetail.tenantId,jdbcType=BIGINT} AND account_line_number IN <foreach close=")" collection="invoiceFlowDetail.accountLineNumberList" item="item" open="(" separator=","> #{item} </foreach> ) detail LEFT JOIN( SELECT invoice_no , invoice_code , flow_detail_id FROM doc_invoice_flow_relation_detail_data WHERE tenant_id = #{invoiceFlowDe2tail.tenantId,jdbcType=} ) relation ON detail.id = relation.flow_detail_id </select>
时间: 2023-11-28 14:04:37 浏览: 69
xml 查询问题
以下是格式化后的代码,没有语法错误,符合Oracle规范:
```xml
<select id="selectInvoiceFlowDetailAndRelationByOriginalAccountLineNumber"
parameterType="com.baiwang.docmanagement.model.dto.DocInvoiceFlowDetailDataDto"
resultMap="invoiceDetailAndRelationMap">
SELECT
detail.id,
detail.parent_id,
detail.account_line_number,
relation.invoice_no,
relation.invoice_code
FROM
(
SELECT
id,
account_line_number,
parent_id
FROM
doc_invoice_flow_detail_data
WHERE
tenant_id = #{invoiceFlowDetail.tenantId,jdbcType=BIGINT}
AND account_line_number IN
<foreach close=")" collection="invoiceFlowDetail.accountLineNumberList"
item="item" open="(" separator=",">
#{item}
</foreach>
) detail
LEFT JOIN (
SELECT
invoice_no,
invoice_code,
flow_detail_id
FROM
doc_invoice_flow_relation_detail_data
WHERE
tenant_id = #{invoiceFlowDetail.tenantId,jdbcType=BIGINT}
) relation ON detail.id = relation.flow_detail_id
</select>
```
阅读全文