|
@ -10,6 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="receivablesClosingStatus" column="receivables_closing_status" /> |
|
|
<result property="receivablesClosingStatus" column="receivables_closing_status" /> |
|
|
<result property="salesOrderCode" column="sales_order_code" /> |
|
|
<result property="salesOrderCode" column="sales_order_code" /> |
|
|
<result property="debitAccount" column="debit_account" /> |
|
|
<result property="debitAccount" column="debit_account" /> |
|
|
|
|
|
<result property="debitBank" column="debit_bank" /> |
|
|
<result property="creditAccount" column="credit_account" /> |
|
|
<result property="creditAccount" column="credit_account" /> |
|
|
<result property="creditDetail" column="credit_detail" /> |
|
|
<result property="creditDetail" column="credit_detail" /> |
|
|
<result property="openBank" column="open_bank" /> |
|
|
<result property="openBank" column="open_bank" /> |
|
@ -37,7 +38,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectFinancialReceivablesVo"> |
|
|
<sql id="selectFinancialReceivablesVo"> |
|
|
select financial_receivables_id, financial_receivables_code, receivables_closing_status, sales_order_code, credit_account, credit_detail, open_bank, open_account, customer_id, customer_name, contract_number, currency_type, price_excluding_tax, price_includes_tax, payment_condition, received_includes_tax, not_received_includes_tax, business_members, financial_deliver_status, receivables_date, receivables_price, receivables_abstract, operating_time, receivables_remark, create_time, create_by, update_by, update_time from financial_receivables |
|
|
select financial_receivables_id, financial_receivables_code, receivables_closing_status, |
|
|
|
|
|
sales_order_code,debit_account, debit_bank, credit_account, credit_detail, open_bank, |
|
|
|
|
|
open_account,customer_id, customer_name, contract_number, currency_type,price_excluding_tax, |
|
|
|
|
|
price_includes_tax, payment_condition,received_includes_tax, not_received_includes_tax, |
|
|
|
|
|
business_members,financial_deliver_status, receivables_date, receivables_price,receivables_abstract, |
|
|
|
|
|
operating_time, receivables_remark,create_time, create_by, update_by, update_time |
|
|
|
|
|
from financial_receivables |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="selectFinancialReceivablesList" parameterType="FinancialReceivables" resultMap="FinancialReceivablesResult"> |
|
|
<select id="selectFinancialReceivablesList" parameterType="FinancialReceivables" resultMap="FinancialReceivablesResult"> |
|
@ -46,6 +53,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="financialReceivablesCode != null and financialReceivablesCode != ''"> and financial_receivables_code = #{financialReceivablesCode}</if> |
|
|
<if test="financialReceivablesCode != null and financialReceivablesCode != ''"> and financial_receivables_code = #{financialReceivablesCode}</if> |
|
|
<if test="receivablesClosingStatus != null and receivablesClosingStatus != ''"> and receivables_closing_status = #{receivablesClosingStatus}</if> |
|
|
<if test="receivablesClosingStatus != null and receivablesClosingStatus != ''"> and receivables_closing_status = #{receivablesClosingStatus}</if> |
|
|
<if test="salesOrderCode != null and salesOrderCode != ''"> and sales_order_code = #{salesOrderCode}</if> |
|
|
<if test="salesOrderCode != null and salesOrderCode != ''"> and sales_order_code = #{salesOrderCode}</if> |
|
|
|
|
|
<if test="debitAccount != null and debitAccount != ''"> and debit_account = #{debitAccount}</if> |
|
|
|
|
|
<if test="debitBank != null and debitBank != ''"> and debit_bank = #{debitBank}</if> |
|
|
<if test="creditAccount != null and creditAccount != ''"> and credit_account = #{creditAccount}</if> |
|
|
<if test="creditAccount != null and creditAccount != ''"> and credit_account = #{creditAccount}</if> |
|
|
<if test="creditDetail != null and creditDetail != ''"> and credit_detail = #{creditDetail}</if> |
|
|
<if test="creditDetail != null and creditDetail != ''"> and credit_detail = #{creditDetail}</if> |
|
|
<if test="openBank != null and openBank != ''"> and open_bank = #{openBank}</if> |
|
|
<if test="openBank != null and openBank != ''"> and open_bank = #{openBank}</if> |
|
@ -71,7 +80,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="financialReceivablesCode != null">financial_receivables_code,</if> |
|
|
<if test="financialReceivablesCode != null">financial_receivables_code,</if> |
|
|
<if test="receivablesClosingStatus != null">receivables_closing_status,</if> |
|
|
<if test="receivablesClosingStatus != null">receivables_closing_status,</if> |
|
|
<if test="salesOrderCode != null">sales_order_code,</if> |
|
|
<if test="salesOrderCode != null">sales_order_code,</if> |
|
|
<if test="creditAccount != null">debit_account,</if> |
|
|
<if test="debitAccount != null">debit_account,</if> |
|
|
|
|
|
<if test="debitBank != null">debit_bank,</if> |
|
|
<if test="creditAccount != null">credit_account,</if> |
|
|
<if test="creditAccount != null">credit_account,</if> |
|
|
<if test="creditDetail != null">credit_detail,</if> |
|
|
<if test="creditDetail != null">credit_detail,</if> |
|
|
<if test="openBank != null">open_bank,</if> |
|
|
<if test="openBank != null">open_bank,</if> |
|
@ -101,7 +111,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="financialReceivablesCode != null">#{financialReceivablesCode},</if> |
|
|
<if test="financialReceivablesCode != null">#{financialReceivablesCode},</if> |
|
|
<if test="receivablesClosingStatus != null">#{receivablesClosingStatus},</if> |
|
|
<if test="receivablesClosingStatus != null">#{receivablesClosingStatus},</if> |
|
|
<if test="salesOrderCode != null">#{salesOrderCode},</if> |
|
|
<if test="salesOrderCode != null">#{salesOrderCode},</if> |
|
|
<if test="creditAccount != null">#{debitAccount},</if> |
|
|
<if test="debitAccount != null">#{debitAccount},</if> |
|
|
|
|
|
<if test="debitBank != null">#{debitBank},</if> |
|
|
<if test="creditAccount != null">#{creditAccount},</if> |
|
|
<if test="creditAccount != null">#{creditAccount},</if> |
|
|
<if test="creditDetail != null">#{creditDetail},</if> |
|
|
<if test="creditDetail != null">#{creditDetail},</if> |
|
|
<if test="openBank != null">#{openBank},</if> |
|
|
<if test="openBank != null">#{openBank},</if> |
|
@ -135,7 +146,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="financialReceivablesCode != null">financial_receivables_code = #{financialReceivablesCode},</if> |
|
|
<if test="financialReceivablesCode != null">financial_receivables_code = #{financialReceivablesCode},</if> |
|
|
<if test="receivablesClosingStatus != null">receivables_closing_status = #{receivablesClosingStatus},</if> |
|
|
<if test="receivablesClosingStatus != null">receivables_closing_status = #{receivablesClosingStatus},</if> |
|
|
<if test="salesOrderCode != null">sales_order_code = #{salesOrderCode},</if> |
|
|
<if test="salesOrderCode != null">sales_order_code = #{salesOrderCode},</if> |
|
|
<if test="creditAccount != null">debit_account = #{debitAccount},</if> |
|
|
<if test="debitAccount != null">debit_account = #{debitAccount},</if> |
|
|
|
|
|
<if test="debitBank != null">debit_bank = #{debitBank},</if> |
|
|
<if test="creditAccount != null">credit_account = #{creditAccount},</if> |
|
|
<if test="creditAccount != null">credit_account = #{creditAccount},</if> |
|
|
<if test="creditDetail != null">credit_detail = #{creditDetail},</if> |
|
|
<if test="creditDetail != null">credit_detail = #{creditDetail},</if> |
|
|
<if test="openBank != null">open_bank = #{openBank},</if> |
|
|
<if test="openBank != null">open_bank = #{openBank},</if> |
|
@ -190,5 +202,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<select id="findMaxRoundCode" resultType="String"> |
|
|
<select id="findMaxRoundCode" resultType="String"> |
|
|
SELECT MAX(SUBSTRING(financial_receivables_code, 7)) FROM financial_receivables WHERE financial_receivables_code LIKE CONCAT(#{prefix}, '%') |
|
|
SELECT MAX(SUBSTRING(financial_receivables_code, 7)) FROM financial_receivables WHERE financial_receivables_code LIKE CONCAT(#{prefix}, '%') |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
</mapper> |
|
|
</mapper> |