Commit 214352f2 authored by neo's avatar neo

[DEV] add xxfp formula for xxkp

parent d91ce874
...@@ -196,7 +196,6 @@ ...@@ -196,7 +196,6 @@
<select id="getOutputInvoiceWithDetail" resultMap="outputInvoiceDto"> <select id="getOutputInvoiceWithDetail" resultMap="outputInvoiceDto">
SELECT SELECT
-- INVOICE.ID AS INVOICE_ID,
INVOICE.ID AS INVOICEID, INVOICE.ID AS INVOICEID,
INVOICE.FPQQLSH, INVOICE.FPQQLSH,
INVOICE.FPDM, INVOICE.FPDM,
...@@ -218,42 +217,13 @@ ...@@ -218,42 +217,13 @@
INVOICE.SKR, INVOICE.SKR,
INVOICE.FHR, INVOICE.FHR,
INVOICE.KPR, INVOICE.KPR,
INVOICE.KDDH,
INVOICE.KDUUID,
INVOICE.FPLX, INVOICE.FPLX,
INVOICE.KPZT,
INVOICE.FPZT, INVOICE.FPZT,
INVOICE.YFPDM,
INVOICE.YFPHM,
INVOICE.GFGSBM,
INVOICE.XFGSBM,
INVOICE.SPBH, INVOICE.SPBH,
INVOICE.XTLY, INVOICE.XTLY,
INVOICE.CJSJ, INVOICE.CJSJ,
INVOICE.HJJE AS INVOICE_HJJE, INVOICE.HJJE AS INVOICE_HJJE,
INVOICE.HJSE, INVOICE.HJSE,
INVOICE.JSHJ,
INVOICE.XXBBH,
INVOICE.DYZT,
INVOICE.GDJLH,
INVOICE.ZKJE AS INVOICE_ZKJE,
INVOICE.ZKSE AS INVOICE_ZKSE,
INVOICE.ZKJSHJ,
INVOICE.SLV AS INVOICE_SLV,
INVOICE.QY,
INVOICE.JSZT,
INVOICE.KDGS,
INVOICE.SHZT,
INVOICE.THKPSQ,
INVOICE.JSFJ,
INVOICE.SQR,
INVOICE.BSCDM,
INVOICE.BSC,
INVOICE.QYDM,
INVOICE.SQBH,
INVOICE.HTBH,
INVOICE.SQRQ,
INVOICE.YZRQ,
INVOICEDETAIL.ID AS DETAIL_ID, INVOICEDETAIL.ID AS DETAIL_ID,
INVOICEDETAIL.FPQQLSH AS INVOICE_FPQQLSH, INVOICEDETAIL.FPQQLSH AS INVOICE_FPQQLSH,
INVOICEDETAIL.SPMC, INVOICEDETAIL.SPMC,
...@@ -280,14 +250,70 @@ ...@@ -280,14 +250,70 @@
INVOICEDETAIL.XSDD, INVOICEDETAIL.XSDD,
INVOICEDETAIL.HSJUUID INVOICEDETAIL.HSJUUID
FROM FROM
OUTPUT_INVOICE INVOICE OUTPUT_INVOICE INVOICE
JOIN JOIN OUTPUT_INVOICE_DETAIL INVOICEDETAIL ON INVOICE.FPQQLSH = INVOICEDETAIL.FPQQLSH
OUTPUT_INVOICE_DETAIL INVOICEDETAIL WHERE
ON INVOICE.FPZT != '1'
INVOICE.FPQQLSH = INVOICEDETAIL.FPQQLSH AND 1 = 1 UNION ALL
where INVOICE.FPZT != '1' and 1=1 SELECT
INVOICE.ID AS INVOICEID,
INVOICE.FPQQLSH,
INVOICE.FPDM,
INVOICE.FPHM,
INVOICE.KPRQ,
INVOICE.FPLXDM,
INVOICE.EWM,
INVOICE.JQBH,
INVOICE.JYM,
INVOICE.GFMC,
INVOICE.GFSH,
INVOICE.GFDZDH,
INVOICE.GFYHZH,
INVOICE.XFSH,
INVOICE.XFMC,
INVOICE.XFDZDH,
INVOICE.XFYHZH,
INVOICE.BZ,
INVOICE.SKR,
INVOICE.FHR,
INVOICE.KPR,
INVOICE.FPLX,
INVOICE.FPZT,
INVOICE.SPBH,
INVOICE.XTLY,
INVOICE.CJSJ,
INVOICE.HJJE AS INVOICE_HJJE,
INVOICE.HJSE,
INVOICEDETAIL.ID AS DETAIL_ID,
INVOICEDETAIL.FPQQLSH AS INVOICE_FPQQLSH,
INVOICEDETAIL.SPMC,
INVOICEDETAIL.GGXH,
INVOICEDETAIL.DW,
INVOICEDETAIL.DJ,
INVOICEDETAIL.SL,
INVOICEDETAIL.JE,
INVOICEDETAIL.SLV AS ITEM_SLV,
INVOICEDETAIL.SE,
INVOICEDETAIL.HSBZ,
INVOICEDETAIL.LSLBS,
INVOICEDETAIL.YHZCBS,
INVOICEDETAIL.YHZCMC,
INVOICEDETAIL.MXXH,
INVOICEDETAIL.FPHXZ,
INVOICEDETAIL.SSFLDM,
INVOICEDETAIL.ZXBM,
INVOICEDETAIL.ZKHJJE,
INVOICEDETAIL.ZKSE,
INVOICEDETAIL.ZKJE,
INVOICEDETAIL.HJJE,
INVOICEDETAIL.JHH,
INVOICEDETAIL.XSDD,
INVOICEDETAIL.HSJUUID
FROM
OUTPUT_FPXXTB INVOICE
JOIN OUTPUT_INVOICE_DETAIL INVOICEDETAIL ON INVOICE.FPQQLSH = INVOICEDETAIL.FPQQLSH
ORDER BY ORDER BY
INVOICE.FPHM FPHM
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment