|
@@ -1,45 +1,56 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.fjhx.oa.mapper.invoice.InvoiceApplyMapper">
|
|
|
- <select id="getPage" resultType="com.fjhx.oa.entity.invoice.vo.InvoiceApplyVo">
|
|
|
- select ia.id,
|
|
|
- ia.status,
|
|
|
- ia.flow_id,
|
|
|
- ia.apply_time,
|
|
|
- ia.code,
|
|
|
- ia.dept_id,
|
|
|
- ia.company_id,
|
|
|
- ia.apply_scenario,
|
|
|
- ia.ordering_channels,
|
|
|
- ia.ask_remark,
|
|
|
- ia.jst_order_code,
|
|
|
- ia.is_cash_noted,
|
|
|
- ia.is_match_order,
|
|
|
- ia.payment_situation,
|
|
|
- ia.tax_point_settle,
|
|
|
- ia.tax_point_settle_amount,
|
|
|
- ia.customer_id,
|
|
|
- ia.billing_type,
|
|
|
- ia.seller_company_id,
|
|
|
- ia.buyer_company_name,
|
|
|
- ia.seller_taxpayer_code,
|
|
|
- ia.buyer_taxpayer_code,
|
|
|
- ia.seller_address,
|
|
|
- ia.seller_tel,
|
|
|
- ia.buyer_address,
|
|
|
- ia.buyer_tel,
|
|
|
- ia.seller_account_bank,
|
|
|
- ia.seller_account_number,
|
|
|
- ia.buyer_account_bank,
|
|
|
- ia.buyer_account_number,
|
|
|
- ia.amount_including_tax,
|
|
|
- ia.ticket_remark,
|
|
|
- ia.create_user,
|
|
|
- ia.create_time,
|
|
|
- ia.update_user,
|
|
|
- ia.update_time
|
|
|
- from invoice_apply ia
|
|
|
- ${ew.customSqlSegment}
|
|
|
- </select>
|
|
|
+ <sql id="list">
|
|
|
+ SELECT ia.id,
|
|
|
+ ia.`status`,
|
|
|
+ ia.flow_id,
|
|
|
+ ia.apply_time,
|
|
|
+ ia.`code`,
|
|
|
+ ia.dept_id,
|
|
|
+ ia.company_id,
|
|
|
+ ia.apply_scenario,
|
|
|
+ ia.ordering_channels,
|
|
|
+ ia.ask_remark,
|
|
|
+ ia.jst_order_code,
|
|
|
+ ia.is_cash_noted,
|
|
|
+ ia.is_match_order,
|
|
|
+ ia.payment_situation,
|
|
|
+ ia.tax_point_settle,
|
|
|
+ ia.tax_point_settle_amount,
|
|
|
+ ia.customer_id,
|
|
|
+ ia.billing_type,
|
|
|
+ ia.seller_company_id,
|
|
|
+ ia.seller_taxpayer_code,
|
|
|
+ ia.buyer_taxpayer_code,
|
|
|
+ ia.seller_address,
|
|
|
+ ia.seller_tel,
|
|
|
+ ia.buyer_address,
|
|
|
+ ia.buyer_tel,
|
|
|
+ ia.seller_account_bank,
|
|
|
+ ia.seller_account_number,
|
|
|
+ ia.buyer_account_bank,
|
|
|
+ ia.buyer_account_number,
|
|
|
+ ia.amount_including_tax,
|
|
|
+ ia.ticket_remark,
|
|
|
+ ia.create_user,
|
|
|
+ ia.create_time,
|
|
|
+ ia.update_user,
|
|
|
+ ia.update_time,
|
|
|
+ cu.`name` as buyerCompanyName,
|
|
|
+ am.`name` as sellerCompanyName
|
|
|
+ FROM invoice_apply ia
|
|
|
+ left join customer cu on ia.customer_id = cu.id
|
|
|
+ left join account_management am on ia.seller_company_id = am.id
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="getPage" resultType="com.fjhx.oa.entity.invoice.vo.InvoiceApplyVo">
|
|
|
+ <include refid="list"/>
|
|
|
+ ${ew.customSqlSegment}
|
|
|
+ </select>
|
|
|
+ <select id="detail" resultType="com.fjhx.oa.entity.invoice.vo.InvoiceApplyVo">
|
|
|
+ <include refid="list"/>
|
|
|
+ ${ew.customSqlSegment}
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|