INSERT INTO CMF_INV_BILLING_DETAIL
(
ID,
REGION_ID,
KP_RQ,
CHECK_DESK_ID,
CHECK_DESK_NAME,
COUNTY_ID,
INVOICE_ID,
FP_DM,
FP_HM,
OPEN_TYPE,
AMOUNT_NO,
TAX_FEE,
AMOUNT,
BUSI_TYPE,
INVOICE_TYPE,
BUYER_TAX_ID,
BUYER_TAX_NAME,
EXPENSE_NAME,
INVOICE_NOTES,
STAFF_NAME,
OPEN_STAFF_NAME,
INVOICE_STATE,
RED_CATEGORIES_DESC,
RED_SPECIFIC_DESC,
UPDATE_DATE,
YEAR,
MONTH
)
SELECT
CMF_INV_BILLING_DETAIL_S.NEXTVAL AS ID, A.*
FROM
(
select
#{item.regionId,jdbcType=VARCHAR},
#{item.kpRq,jdbcType=DATE},
#{item.checkDeskId,jdbcType=DECIMAL},
#{item.checkDeskName,jdbcType=VARCHAR},
#{item.countyId,jdbcType=VARCHAR},
#{item.invoiceId, jdbcType=DECIMAL},
#{item.fpDm,jdbcType=VARCHAR},
#{item.fpHm,jdbcType=VARCHAR},
#{item.openType,jdbcType=VARCHAR},
#{item.amountNo,jdbcType=VARCHAR},
#{item.taxFee,jdbcType=DECIMAL},
#{item.amount,jdbcType=DECIMAL},
#{item.busiType,jdbcType=VARCHAR},
#{item.invoiceType,jdbcType=VARCHAR},
#{item.buyerTaxId,jdbcType=VARCHAR},
#{item.buyerTaxName, jdbcType=VARCHAR},
#{item.expenseName,jdbcType=VARCHAR},
#{item.invoiceNotes, jdbcType=VARCHAR},
#{item.staffName, jdbcType=VARCHAR},
#{item.openStaffName,jdbcType=VARCHAR},
#{item.invoiceState, jdbcType=VARCHAR},
#{item.redCategoriesDesc,jdbcType=VARCHAR},
#{item.redSpecificDesc,jdbcType=VARCHAR},
#{item.updateDate,jdbcType=DATE},
#{item.year,jdbcType=VARCHAR},
#{item.month,jdbcType=VARCHAR}
from dual
)A