我有两个XML: 首先是;
public class Converter<T extends Enum<T>, U> implements AttributeConverter<T, U> {
public U convertToDatabaseColumn(T value) {
...
}
public T convertToEntityAttribute(U value) {
...
}
}
第二是;
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="invoice">
<attribute name="name" />
<attribute name="customerid" />
<attribute name="totalamount" />
<attribute name="invoiceid" />
<attribute name="new_customerno" />
<order attribute="name" descending="false" />
<link-entity name="invoicedetail" from="invoiceid" to="invoiceid" link-type="inner">
<attribute name="new_styleno" />
<attribute name="new_locationcode" />
<attribute name="invoiceid"/>
<attribute name="new_finalcmt" />
</link-entity>
</entity>
</fetch>
现在我需要在 new_customerno 的基础上合并这两个XML。我试过了,但它没有用。 有人可以帮我这个吗? 感谢
答案 0 :(得分:0)
FetchXml报告中没有Union语句。为了使它工作,你将不得不寻找替代品。以下是可能的解决方案之一 - https://butenko.pro/2012/11/09/ms-crm-2011-t-sql-union-operation-and-fetchxml-based-reports/