wanglang 1 månad sedan
förälder
incheckning
0e209ce58e

+ 5 - 1
trade-service/src/main/resources/mapper/trade/purchaseorder/PurchaseOrderInvoiceMapper.xml

@@ -104,6 +104,8 @@
         <id column="bz" property="bz"/>
         <id column="tax_no" property="taxNo"/>
         <id column="order_id" property="orderId"/>
+        <id column="enterprise_name" property="enterpriseName"/>
+        <id column="customer_identifier_no" property="customerIdentifierNo"/>
     </resultMap>
     <select id="selectByInvoiceId" resultMap="VoDetailResultMap">
         select t.amount,
@@ -119,7 +121,9 @@
                t.bz,
                t.certification_date,
                e.tax_no,
-               p.platform_name
+               p.platform_name,
+               e.name AS enterprise_name,
+               e.customer_identifier_no
         from purchase_order_invoice t
                  left join purchase_order po on t.order_id = po.id
                  left join enterprise e on po.customer_user_id = e.customer_id