|
|
|
@ -13,8 +13,8 @@
|
|
|
|
|
<select id="selectOrderInvoice" parameterType="com.glxp.api.req.inout.IoOrderInvoiceRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.inout.IoOrderInvoiceEntity">
|
|
|
|
|
SELECT ic.*,
|
|
|
|
|
(select cpmctymc from basic_products where basic_products.uuid = bu.uuid) cpmctymc,
|
|
|
|
|
(select ggxh from basic_products where basic_products.uuid = bu.uuid) ggxh
|
|
|
|
|
(select cpmctymc from basic_products where basic_products.uuid = bu.uuid GROUP BY basic_products.uuid) cpmctymc,
|
|
|
|
|
(select ggxh from basic_products where basic_products.uuid = bu.uuid GROUP BY basic_products.uuid) ggxh
|
|
|
|
|
FROM io_order_invoice ic
|
|
|
|
|
LEFT JOIN basic_udirel bu ON bu.id = ic.bindRlFk
|
|
|
|
|
LEFT JOIN basic_products bp ON bu.uuid = bp.uuid
|
|
|
|
|