|
|
|
@ -23,12 +23,14 @@
|
|
|
|
|
group by io_order_detail_biz.id
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectByinvoiceId" parameterType="java.lang.Long" resultType="com.glxp.api.res.inout.IoOrderInvoiceResponse">
|
|
|
|
|
select * from io_order_invoice where id= #{id}
|
|
|
|
|
<select id="selectByinvoiceId" parameterType="java.lang.Long"
|
|
|
|
|
resultType="com.glxp.api.res.inout.IoOrderInvoiceResponse">
|
|
|
|
|
select *
|
|
|
|
|
from io_order_invoice
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getfilterList" resultType="com.glxp.api.res.inout.IoOrderDetailCodeResponse">
|
|
|
|
|
select io_order_detail_code.*,
|
|
|
|
|
(select count(*)
|
|
|
|
@ -56,8 +58,8 @@
|
|
|
|
|
|
|
|
|
|
<select id="filterListInv" resultType="com.glxp.api.res.inout.IoOrderInvoiceResponse">
|
|
|
|
|
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
|
|
|
|
|
bp.cpmctymc,
|
|
|
|
|
bp.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
|
|
|
|
@ -77,13 +79,13 @@
|
|
|
|
|
<if test="batchNo == null || batchNo == ''">
|
|
|
|
|
AND (ic.batchNo is null or ic.batchNo = '')
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
GROUP BY ic.id
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectOrderDetailBiz" resultType="com.glxp.api.entity.inout.IoOrderDetailBizEntity">
|
|
|
|
|
select * from io_order_detail_biz
|
|
|
|
|
select *
|
|
|
|
|
from io_order_detail_biz
|
|
|
|
|
<where>
|
|
|
|
|
<if test="orderId != null and orderId != ''">
|
|
|
|
|
AND orderIdFk = #{orderId}
|
|
|
|
|