Merge branch 'develop' of http://git2.tenwa.com.cn/ApzlDev/apzl_leasing.git into zhouyh2
This commit is contained in:
commit
7be6a38821
@ -134,19 +134,16 @@
|
||||
v.add(p);
|
||||
/*ÉèÖÃÒ³ÃæÊôÐÔ*/
|
||||
if(CurUser.hasRole("401")){
|
||||
doTemp.setVisible("RENT_RATIO",false);
|
||||
doTemp.setVisible("CAUTION_MONEY_METHOD",false);
|
||||
}else{
|
||||
doTemp.setVisible("RENT_RATIO",false);
|
||||
}
|
||||
|
||||
|
||||
if(CurUser.hasRole("401")){
|
||||
doTemp.setVisible("DISCOUNT", false);
|
||||
// doTemp.setColumnAttribute("DISCOUNT","colvisible","0");
|
||||
}
|
||||
if(CurUser.hasRole("800R00000013")||CurUser.hasRole("800R00000014")||CurUser.hasRole("800R00000015")){
|
||||
doTemp.setVisible("YEAR_RATE", true);
|
||||
doTemp.setVisible("RENT_RATIO",true);
|
||||
}
|
||||
|
||||
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
|
||||
@ -154,7 +151,7 @@
|
||||
|
||||
dwTemp.Style = "2";//freeform
|
||||
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
||||
dwTemp.ReadOnly = "-2";//Ö»¶Áģʽ
|
||||
dwTemp.ReadOnly = "1";//Ö»¶Áģʽ
|
||||
isShowButton=false;
|
||||
}else{
|
||||
isShowButton=true;
|
||||
|
||||
@ -9,172 +9,173 @@
|
||||
<MYSQL>
|
||||
<table_sql>
|
||||
<![CDATA[
|
||||
select id,contractnumber,paymentnumber,customername,planlist,plandate,planmoney,factdate,factmoney,invoicemoney,feetype,
|
||||
invoicetype,invoiceobject,taxregcode,taxbank,taxacc,invoicephone,invoiceadd,tab.invoicestatus,leaseform,feetypecode from (
|
||||
SELECT
|
||||
lfii.id AS id,
|
||||
lci.contract_number AS contractnumber,
|
||||
lfp.payment_number as paymentnumber,
|
||||
lul.customer_name AS customername,
|
||||
lfp.plan_list AS planlist,
|
||||
lfp.plan_date AS plandate,
|
||||
format(lfp.plan_money,2) AS planmoney,
|
||||
'' AS factdate,
|
||||
'' AS factmoney,
|
||||
FORMAT(lfii.invoice_money-lfii.temporary_noinvoice-lfii.noinvoice-IFNULL(lfidi.suminvoicedmoney,0.00),2) AS invoicemoney,
|
||||
feecode.itemname AS feetype,
|
||||
invoicecode.itemname AS invoicetype,
|
||||
lfii.invoice_object AS invoiceobject,
|
||||
lfii.tax_reg_code AS taxregcode,
|
||||
lfii.tax_bank AS taxbank,
|
||||
lfii.tax_acc AS taxacc,
|
||||
lfii.invoice_phone AS invoicephone,
|
||||
lfii.invoice_add AS invoiceadd,
|
||||
CASE lfii.invoice_status WHEN '0' THEN '未申请' WHEN '1' THEN '已申请' WHEN '2' THEN '已退回' WHEN '3' THEN '部分未申请' WHEN '4' THEN '暂不开票' WHEN '5' THEN '已开票' END AS invoicestatus,
|
||||
leasecode.itemname AS leaseform,
|
||||
'fund' as feetypecode
|
||||
FROM
|
||||
LI_FUND_INVOICE_INFO lfii
|
||||
LEFT JOIN LC_FUND_PLAN lfp ON lfp.id=lfii.plan_id
|
||||
LEFT JOIN lb_contract_info lci ON lfp.contract_id=lci.id
|
||||
LEFT JOIN LB_UNION_LESSEE lul ON lul.contract_id=lci.id AND lul.is_main='Y'
|
||||
LEFT JOIN (SELECT FUND_INVOICE_ID,SUM(INVOICE_MONEY) AS suminvoicedmoney FROM LI_FUND_INVOICE_DOWNLOAD_INFO GROUP BY FUND_INVOICE_ID)lfidi ON lfidi.FUND_INVOICE_ID=lfii.id
|
||||
LEFT JOIN code_library feecode ON feecode.itemno=lfp.fee_type AND feecode.codeno='FeeType'
|
||||
LEFT JOIN code_library leasecode ON leasecode.itemno=lci.lease_form AND leasecode.codeno='leas_form'
|
||||
LEFT JOIN code_library invoicecode ON invoicecode.itemno=lfii.invoice_type AND invoicecode.codeno='invoice_type'
|
||||
WHERE lfii.income_id IS NULL AND lfii.plan_id IS NOT NULL AND lfii.bill_type='invoice'
|
||||
UNION ALL
|
||||
SELECT
|
||||
lfii.id AS id,
|
||||
lci.contract_number AS contractnumber,
|
||||
lfi.payment_number as paymentnumber,
|
||||
lul.customer_name AS customername,
|
||||
lfi.charge_list AS planlist,
|
||||
lfp.plan_date AS plandate,
|
||||
format(lfp.plan_money,2) AS planmoney,
|
||||
lfi.fact_date AS factdate,
|
||||
format(lfi.fact_money,2) AS factmoney,
|
||||
FORMAT(lfii.invoice_money-lfii.temporary_noinvoice-lfii.noinvoice-IFNULL(lfidi.suminvoicedmoney,0.00),2) AS invoicemoney,
|
||||
feecode.itemname AS feetype,
|
||||
invoicecode.itemname AS invoicetype,
|
||||
lfii.invoice_object AS invoiceobject,
|
||||
lfii.tax_reg_code AS taxregcode,
|
||||
lfii.tax_bank AS taxbank,
|
||||
lfii.tax_acc AS taxacc,
|
||||
lfii.invoice_phone AS invoicephone,
|
||||
lfii.invoice_add AS invoiceadd,
|
||||
CASE lfii.invoice_status WHEN '0' THEN '未申请' WHEN '1' THEN '已申请' WHEN '2' THEN '已退回' WHEN '3' THEN '部分未申请' WHEN '4' THEN '暂不开票' WHEN '5' THEN '已开票' END AS invoicestatus,
|
||||
leasecode.itemname AS leaseform,
|
||||
'fund' as feetypecode
|
||||
FROM
|
||||
LI_FUND_INVOICE_INFO lfii
|
||||
LEFT JOIN LC_FUND_INCOME lfi ON lfii.income_id=lfi.id
|
||||
LEFT JOIN LC_FUND_PLAN lfp ON lfp.id=lfi.plan_id
|
||||
LEFT JOIN lb_contract_info lci ON lfi.contract_id=lci.id
|
||||
LEFT JOIN LB_UNION_LESSEE lul ON lul.contract_id=lci.id AND lul.is_main='Y'
|
||||
LEFT JOIN (SELECT FUND_INVOICE_ID,SUM(INVOICE_MONEY) AS suminvoicedmoney FROM LI_FUND_INVOICE_DOWNLOAD_INFO GROUP BY FUND_INVOICE_ID)lfidi ON lfidi.FUND_INVOICE_ID=lfii.id
|
||||
LEFT JOIN code_library feecode ON feecode.itemno=lfi.fee_type AND feecode.codeno='FeeType'
|
||||
LEFT JOIN code_library leasecode ON leasecode.itemno=lci.lease_form AND leasecode.codeno='leas_form'
|
||||
LEFT JOIN code_library invoicecode ON invoicecode.itemno=lfii.invoice_type AND invoicecode.codeno='invoice_type'
|
||||
WHERE lfii.income_id IS NOT NULL AND lfii.plan_id IS NULL AND lfii.bill_type='invoice'
|
||||
UNION ALL
|
||||
SELECT
|
||||
lrii.id AS id,
|
||||
lci.contract_number AS contractnumber,
|
||||
lrp.payment_number as paymentnumber,
|
||||
lul.customer_name AS customername,
|
||||
lrp.plan_list AS planlist,
|
||||
lrp.plan_date AS plandate,
|
||||
format(CASE lrii.tax_type WHEN 'rent' THEN lrp.rent WHEN 'corpus' THEN lrp.corpus WHEN 'interest' THEN lrp.interest END,2) AS planmoney,
|
||||
'' AS factdate,
|
||||
'' AS factmoney,
|
||||
FORMAT(lrii.invoice_money-lrii.temporary_noinvoice-lrii.noinvoice-IFNULL(lridi.suminvoicedmoney,0.00),2) AS invoicemoney,
|
||||
CASE lrii.tax_type WHEN 'rent' THEN '租金' WHEN 'corpus' THEN '本金' WHEN 'interest' THEN '利息' END AS feetype,
|
||||
invoicecode.itemname AS invoicetype,
|
||||
lrii.invoice_object AS invoiceobject,
|
||||
lrii.tax_reg_code AS taxregcode,
|
||||
lrii.tax_bank AS taxbank,
|
||||
lrii.tax_acc AS taxacc,
|
||||
lrii.invoice_phone AS invoicephone,
|
||||
lrii.invoice_add AS invoiceadd,
|
||||
CASE lrii.invoice_status WHEN '0' THEN '未申请' WHEN '1' THEN '已申请' WHEN '2' THEN '已退回' WHEN '3' THEN '部分未申请' WHEN '4' THEN '暂不开票' WHEN '5' THEN '已开票' END AS invoicestatus,
|
||||
leasecode.itemname AS leaseform,
|
||||
lrii.tax_type as feetypecode
|
||||
FROM
|
||||
LI_RENT_INVOICE_INFO lrii
|
||||
LEFT JOIN LC_RENT_PLAN lrp ON lrp.id=lrii.plan_id
|
||||
LEFT JOIN lb_contract_info lci ON lrp.contract_id=lci.id
|
||||
LEFT JOIN LB_UNION_LESSEE lul ON lul.contract_id=lci.id AND lul.is_main='Y'
|
||||
LEFT JOIN (SELECT RENT_INVOICE_ID,SUM(INVOICE_MONEY) AS suminvoicedmoney FROM LI_RENT_INVOICE_DOWNLOAD_INFO GROUP BY RENT_INVOICE_ID)lridi ON lridi.RENT_INVOICE_ID=lrii.id
|
||||
LEFT JOIN code_library leasecode ON leasecode.itemno=lci.lease_form AND leasecode.codeno='leas_form'
|
||||
LEFT JOIN code_library invoicecode ON invoicecode.itemno=lrii.invoice_type AND invoicecode.codeno='invoice_type'
|
||||
WHERE lrii.income_id IS NULL AND lrii.plan_id IS NOT NULL AND lrii.bill_type='invoice'
|
||||
UNION ALL
|
||||
SELECT
|
||||
lrii.id AS id,
|
||||
lci.contract_number AS contractnumber,
|
||||
lri.payment_number as paymentnumber,
|
||||
lul.customer_name AS customername,
|
||||
lri.hire_list AS planlist,
|
||||
vlrp.plan_date AS plandate,
|
||||
format(CASE lrii.tax_type WHEN 'rent' THEN vlrp.rent WHEN 'corpus' THEN vlrp.corpus WHEN 'interest' THEN vlrp.interest WHEN 'penalty' THEN vlrp.penalty END,2) AS planmoney,
|
||||
lri.hire_date AS factdate,
|
||||
format(CASE lrii.tax_type WHEN 'rent' THEN lri.rent WHEN 'corpus' THEN lri.corpus WHEN 'interest' THEN lri.interest WHEN 'penalty' THEN lri.penalty END,2) AS factmoney,
|
||||
FORMAT(lrii.invoice_money-lrii.temporary_noinvoice-lrii.noinvoice-IFNULL(lridi.suminvoicedmoney,0.00),2) AS invoicemoney,
|
||||
CASE lrii.tax_type WHEN 'rent' THEN '租金' WHEN 'corpus' THEN '本金' WHEN 'interest' THEN '利息' WHEN 'penalty' THEN '罚息' END AS feetype,
|
||||
invoicecode.itemname AS invoicetype,
|
||||
lrii.invoice_object AS invoiceobject,
|
||||
lrii.tax_reg_code AS taxregcode,
|
||||
lrii.tax_bank AS taxbank,
|
||||
lrii.tax_acc AS taxacc,
|
||||
lrii.invoice_phone AS invoicephone,
|
||||
lrii.invoice_add AS invoiceadd,
|
||||
CASE lrii.invoice_status WHEN '0' THEN '未申请' WHEN '1' THEN '已申请' WHEN '2' THEN '已退回' WHEN '3' THEN '部分未申请' WHEN '4' THEN '暂不开票' WHEN '5' THEN '已开票' END AS invoicestatus,
|
||||
leasecode.itemname AS leaseform,
|
||||
lrii.tax_type as feetypecode
|
||||
FROM
|
||||
LI_RENT_INVOICE_INFO lrii
|
||||
LEFT JOIN LC_RENT_INCOME lri ON lri.id=lrii.income_id
|
||||
LEFT JOIN VI_LC_RENT_PLAN vlrp ON vlrp.id=lri.plan_id
|
||||
LEFT JOIN lb_contract_info lci ON lri.contract_id=lci.id
|
||||
LEFT JOIN LB_UNION_LESSEE lul ON lul.contract_id=lci.id AND lul.is_main='Y'
|
||||
LEFT JOIN (SELECT RENT_INVOICE_ID,SUM(INVOICE_MONEY) AS suminvoicedmoney FROM LI_RENT_INVOICE_DOWNLOAD_INFO GROUP BY RENT_INVOICE_ID)lridi ON lridi.RENT_INVOICE_ID=lrii.id
|
||||
LEFT JOIN code_library leasecode ON leasecode.itemno=lci.lease_form AND leasecode.codeno='leas_form'
|
||||
LEFT JOIN code_library invoicecode ON invoicecode.itemno=lrii.invoice_type AND invoicecode.codeno='invoice_type'
|
||||
WHERE lrii.income_id IS NOT NULL AND lrii.plan_id IS NULL AND lrii.bill_type='invoice'
|
||||
UNION ALL
|
||||
SELECT
|
||||
lrii.id AS id,
|
||||
lci.contract_number AS contractnumber,
|
||||
lcc.payment_number as paymentnumber,
|
||||
lul.customer_name AS customername,
|
||||
'' AS planlist,
|
||||
'' AS plandate,
|
||||
format(lcc.equip_amt-IFNULL(lcc.first_payment,0),2) AS planmoney,
|
||||
'' AS factdate,
|
||||
'' AS factmoney,
|
||||
FORMAT(lrii.invoice_money-lrii.temporary_noinvoice-lrii.noinvoice-IFNULL(lridi.suminvoicedmoney,0.00),2) AS invoicemoney,
|
||||
'本金一次性' AS feetype,
|
||||
invoicecode.itemname AS invoicetype,
|
||||
lrii.invoice_object AS invoiceobject,
|
||||
lrii.tax_reg_code AS taxregcode,
|
||||
lrii.tax_bank AS taxbank,
|
||||
lrii.tax_acc AS taxacc,
|
||||
lrii.invoice_phone AS invoicephone,
|
||||
lrii.invoice_add AS invoiceadd,
|
||||
CASE lrii.invoice_status WHEN '0' THEN '未申请' WHEN '1' THEN '已申请' WHEN '2' THEN '已退回' WHEN '3' THEN '部分未申请' WHEN '4' THEN '暂不开票' WHEN '5' THEN '已开票' END AS invoicestatus,
|
||||
leasecode.itemname AS leaseform,
|
||||
'corpusone' as feetypecode
|
||||
FROM
|
||||
LI_RENT_INVOICE_INFO lrii
|
||||
LEFT JOIN LC_CONTRACT_CONDITION lcc ON lrii.payment_number=lcc.payment_number
|
||||
LEFT JOIN lb_contract_info lci ON lcc.contract_id=lci.id
|
||||
LEFT JOIN LB_UNION_LESSEE lul ON lul.contract_id=lci.id AND lul.is_main='Y'
|
||||
LEFT JOIN (SELECT RENT_INVOICE_ID,SUM(INVOICE_MONEY) AS suminvoicedmoney FROM LI_RENT_INVOICE_DOWNLOAD_INFO GROUP BY RENT_INVOICE_ID)lridi ON lridi.RENT_INVOICE_ID=lrii.id
|
||||
LEFT JOIN code_library leasecode ON leasecode.itemno=lci.lease_form AND leasecode.codeno='leas_form'
|
||||
LEFT JOIN code_library invoicecode ON invoicecode.itemno=lrii.invoice_type AND invoicecode.codeno='invoice_type'
|
||||
WHERE lrii.income_id IS NULL AND lrii.plan_id IS NULL AND lrii.payment_number IS NOT NULL AND lrii.bill_type='invoice'
|
||||
) tab where 1=1 and tab.invoicestatus in ('已申请') order by paymentnumber
|
||||
SELECT fr.id,fr.contractnumber,fr.paymentnumber,fr.customername,fr.planlist,fr.plandate,fr.planmoney,fr.factdate,fr.factmoney,fr.invoicemoney,fr.feetype,fr.invoiceobject,fr.taxregcode,fr.taxbank,fr.taxacc,fr.invoicephone,fr.invoiceadd,fr.invoicestatus,fr.leaseform,fr.feetypecode,ii.appid,ii.sid,ii.yylxdm,ii.fplxdm,ii.kplx,ii.tspz,ii.xhdwdzdh,ii.xhdwyhzh,ii.ghdwsbh,ii.ghdwmc,ii.ghdwdzdh,ii.ghdwyhzh,ii.hsslbs,ii.fyxm,ii.fphxz,ii.spmc,ii.spsm,ii.ggxh,ii.dw,ii.spsl,ii.dj,ii.je,ii.sl,ii.se,ii.hsbz,ii.spbm,ii.zxbm,ii.yhzcbs,ii.slbs,ii.zzstsgl,ii.zhsl,ii.hjje,ii.hjse,ii.jshj,ii.bz,ii.skr,ii.fhr,ii.kpr,ii.zyspmc,ii.ssyf,ii.tzdbh,ii.yfphm,ii.yfpdm,ii.GMF_DZYX,ii.GMF_SJHM,ii.GMF_SJOPENID FROM
|
||||
(SELECT id,contractnumber,paymentnumber,customername,planlist,plandate,planmoney,factdate,factmoney,invoicemoney,feetype,invoiceobject,taxregcode,taxbank,taxacc,invoicephone,invoiceadd,invoicestatus,leaseform,feetypecode FROM (
|
||||
SELECT
|
||||
lfii.id AS id,
|
||||
lci.contract_number AS contractnumber,
|
||||
lfp.payment_number AS paymentnumber,
|
||||
lul.customer_name AS customername,
|
||||
lfp.plan_list AS planlist,
|
||||
lfp.plan_date AS plandate,
|
||||
FORMAT(lfp.plan_money,2) AS planmoney,
|
||||
'' AS factdate,
|
||||
'' AS factmoney,
|
||||
FORMAT(lfii.invoice_money-lfii.temporary_noinvoice-lfii.noinvoice-IFNULL(lfidi.suminvoicedmoney,0.00),2) AS invoicemoney,
|
||||
feecode.itemname AS feetype,
|
||||
invoicecode.itemname AS invoicetype,
|
||||
lfii.invoice_object AS invoiceobject,
|
||||
lfii.tax_reg_code AS taxregcode,
|
||||
lfii.tax_bank AS taxbank,
|
||||
lfii.tax_acc AS taxacc,
|
||||
lfii.invoice_phone AS invoicephone,
|
||||
lfii.invoice_add AS invoiceadd,
|
||||
CASE lfii.invoice_status WHEN '0' THEN '未申请' WHEN '1' THEN '已申请' WHEN '2' THEN '已退回' WHEN '3' THEN '部分未申请' WHEN '4' THEN '暂不开票' WHEN '5' THEN '已开票' END AS invoicestatus,
|
||||
leasecode.itemname AS leaseform,
|
||||
'fund' AS feetypecode
|
||||
FROM
|
||||
LI_FUND_INVOICE_INFO lfii
|
||||
LEFT JOIN LC_FUND_PLAN lfp ON lfp.id=lfii.plan_id
|
||||
LEFT JOIN lb_contract_info lci ON lfp.contract_id=lci.id
|
||||
LEFT JOIN LB_UNION_LESSEE lul ON lul.contract_id=lci.id AND lul.is_main='Y'
|
||||
LEFT JOIN (SELECT FUND_INVOICE_ID,SUM(INVOICE_MONEY) AS suminvoicedmoney FROM LI_FUND_INVOICE_DOWNLOAD_INFO GROUP BY FUND_INVOICE_ID)lfidi ON lfidi.FUND_INVOICE_ID=lfii.id
|
||||
LEFT JOIN code_library feecode ON feecode.itemno=lfp.fee_type AND feecode.codeno='FeeType'
|
||||
LEFT JOIN code_library leasecode ON leasecode.itemno=lci.lease_form AND leasecode.codeno='leas_form'
|
||||
LEFT JOIN code_library invoicecode ON invoicecode.itemno=lfii.invoice_type AND invoicecode.codeno='invoice_type'
|
||||
WHERE lfii.income_id IS NULL AND lfii.plan_id IS NOT NULL AND lfii.bill_type='invoice'
|
||||
UNION ALL
|
||||
SELECT
|
||||
lfii.id AS id,
|
||||
lci.contract_number AS contractnumber,
|
||||
lfi.payment_number AS paymentnumber,
|
||||
lul.customer_name AS customername,
|
||||
lfi.charge_list AS planlist,
|
||||
lfp.plan_date AS plandate,
|
||||
FORMAT(lfp.plan_money,2) AS planmoney,
|
||||
lfi.fact_date AS factdate,
|
||||
FORMAT(lfi.fact_money,2) AS factmoney,
|
||||
FORMAT(lfii.invoice_money-lfii.temporary_noinvoice-lfii.noinvoice-IFNULL(lfidi.suminvoicedmoney,0.00),2) AS invoicemoney,
|
||||
feecode.itemname AS feetype,
|
||||
invoicecode.itemname AS invoicetype,
|
||||
lfii.invoice_object AS invoiceobject,
|
||||
lfii.tax_reg_code AS taxregcode,
|
||||
lfii.tax_bank AS taxbank,
|
||||
lfii.tax_acc AS taxacc,
|
||||
lfii.invoice_phone AS invoicephone,
|
||||
lfii.invoice_add AS invoiceadd,
|
||||
CASE lfii.invoice_status WHEN '0' THEN '未申请' WHEN '1' THEN '已申请' WHEN '2' THEN '已退回' WHEN '3' THEN '部分未申请' WHEN '4' THEN '暂不开票' WHEN '5' THEN '已开票' END AS invoicestatus,
|
||||
leasecode.itemname AS leaseform,
|
||||
'fund' AS feetypecode
|
||||
FROM
|
||||
LI_FUND_INVOICE_INFO lfii
|
||||
LEFT JOIN LC_FUND_INCOME lfi ON lfii.income_id=lfi.id
|
||||
LEFT JOIN LC_FUND_PLAN lfp ON lfp.id=lfi.plan_id
|
||||
LEFT JOIN lb_contract_info lci ON lfi.contract_id=lci.id
|
||||
LEFT JOIN LB_UNION_LESSEE lul ON lul.contract_id=lci.id AND lul.is_main='Y'
|
||||
LEFT JOIN (SELECT FUND_INVOICE_ID,SUM(INVOICE_MONEY) AS suminvoicedmoney FROM LI_FUND_INVOICE_DOWNLOAD_INFO GROUP BY FUND_INVOICE_ID)lfidi ON lfidi.FUND_INVOICE_ID=lfii.id
|
||||
LEFT JOIN code_library feecode ON feecode.itemno=lfi.fee_type AND feecode.codeno='FeeType'
|
||||
LEFT JOIN code_library leasecode ON leasecode.itemno=lci.lease_form AND leasecode.codeno='leas_form'
|
||||
LEFT JOIN code_library invoicecode ON invoicecode.itemno=lfii.invoice_type AND invoicecode.codeno='invoice_type'
|
||||
WHERE lfii.income_id IS NOT NULL AND lfii.plan_id IS NULL AND lfii.bill_type='invoice'
|
||||
UNION ALL
|
||||
SELECT
|
||||
lrii.id AS id,
|
||||
lci.contract_number AS contractnumber,
|
||||
lrp.payment_number AS paymentnumber,
|
||||
lul.customer_name AS customername,
|
||||
lrp.plan_list AS planlist,
|
||||
lrp.plan_date AS plandate,
|
||||
FORMAT(CASE lrii.tax_type WHEN 'rent' THEN lrp.rent WHEN 'corpus' THEN lrp.corpus WHEN 'interest' THEN lrp.interest END,2) AS planmoney,
|
||||
'' AS factdate,
|
||||
'' AS factmoney,
|
||||
FORMAT(lrii.invoice_money-lrii.temporary_noinvoice-lrii.noinvoice-IFNULL(lridi.suminvoicedmoney,0.00),2) AS invoicemoney,
|
||||
CASE lrii.tax_type WHEN 'rent' THEN '租金' WHEN 'corpus' THEN '本金' WHEN 'interest' THEN '利息' END AS feetype,
|
||||
invoicecode.itemname AS invoicetype,
|
||||
lrii.invoice_object AS invoiceobject,
|
||||
lrii.tax_reg_code AS taxregcode,
|
||||
lrii.tax_bank AS taxbank,
|
||||
lrii.tax_acc AS taxacc,
|
||||
lrii.invoice_phone AS invoicephone,
|
||||
lrii.invoice_add AS invoiceadd,
|
||||
CASE lrii.invoice_status WHEN '0' THEN '未申请' WHEN '1' THEN '已申请' WHEN '2' THEN '已退回' WHEN '3' THEN '部分未申请' WHEN '4' THEN '暂不开票' WHEN '5' THEN '已开票' END AS invoicestatus,
|
||||
leasecode.itemname AS leaseform,
|
||||
lrii.tax_type AS feetypecode
|
||||
FROM
|
||||
LI_RENT_INVOICE_INFO lrii
|
||||
LEFT JOIN LC_RENT_PLAN lrp ON lrp.id=lrii.plan_id
|
||||
LEFT JOIN lb_contract_info lci ON lrp.contract_id=lci.id
|
||||
LEFT JOIN LB_UNION_LESSEE lul ON lul.contract_id=lci.id AND lul.is_main='Y'
|
||||
LEFT JOIN (SELECT RENT_INVOICE_ID,SUM(INVOICE_MONEY) AS suminvoicedmoney FROM LI_RENT_INVOICE_DOWNLOAD_INFO GROUP BY RENT_INVOICE_ID)lridi ON lridi.RENT_INVOICE_ID=lrii.id
|
||||
LEFT JOIN code_library leasecode ON leasecode.itemno=lci.lease_form AND leasecode.codeno='leas_form'
|
||||
LEFT JOIN code_library invoicecode ON invoicecode.itemno=lrii.invoice_type AND invoicecode.codeno='invoice_type'
|
||||
WHERE lrii.income_id IS NULL AND lrii.plan_id IS NOT NULL AND lrii.bill_type='invoice'
|
||||
UNION ALL
|
||||
SELECT
|
||||
lrii.id AS id,
|
||||
lci.contract_number AS contractnumber,
|
||||
lri.payment_number AS paymentnumber,
|
||||
lul.customer_name AS customername,
|
||||
lri.hire_list AS planlist,
|
||||
vlrp.plan_date AS plandate,
|
||||
FORMAT(CASE lrii.tax_type WHEN 'rent' THEN vlrp.rent WHEN 'corpus' THEN vlrp.corpus WHEN 'interest' THEN vlrp.interest WHEN 'penalty' THEN vlrp.penalty END,2) AS planmoney,
|
||||
lri.hire_date AS factdate,
|
||||
FORMAT(CASE lrii.tax_type WHEN 'rent' THEN lri.rent WHEN 'corpus' THEN lri.corpus WHEN 'interest' THEN lri.interest WHEN 'penalty' THEN lri.penalty END,2) AS factmoney,
|
||||
FORMAT(lrii.invoice_money-lrii.temporary_noinvoice-lrii.noinvoice-IFNULL(lridi.suminvoicedmoney,0.00),2) AS invoicemoney,
|
||||
CASE lrii.tax_type WHEN 'rent' THEN '租金' WHEN 'corpus' THEN '本金' WHEN 'interest' THEN '利息' WHEN 'penalty' THEN '罚息' END AS feetype,
|
||||
invoicecode.itemname AS invoicetype,
|
||||
lrii.invoice_object AS invoiceobject,
|
||||
lrii.tax_reg_code AS taxregcode,
|
||||
lrii.tax_bank AS taxbank,
|
||||
lrii.tax_acc AS taxacc,
|
||||
lrii.invoice_phone AS invoicephone,
|
||||
lrii.invoice_add AS invoiceadd,
|
||||
CASE lrii.invoice_status WHEN '0' THEN '未申请' WHEN '1' THEN '已申请' WHEN '2' THEN '已退回' WHEN '3' THEN '部分未申请' WHEN '4' THEN '暂不开票' WHEN '5' THEN '已开票' END AS invoicestatus,
|
||||
leasecode.itemname AS leaseform,
|
||||
lrii.tax_type AS feetypecode
|
||||
FROM
|
||||
LI_RENT_INVOICE_INFO lrii
|
||||
LEFT JOIN LC_RENT_INCOME lri ON lri.id=lrii.income_id
|
||||
LEFT JOIN VI_LC_RENT_PLAN vlrp ON vlrp.id=lri.plan_id
|
||||
LEFT JOIN lb_contract_info lci ON lri.contract_id=lci.id
|
||||
LEFT JOIN LB_UNION_LESSEE lul ON lul.contract_id=lci.id AND lul.is_main='Y'
|
||||
LEFT JOIN (SELECT RENT_INVOICE_ID,SUM(INVOICE_MONEY) AS suminvoicedmoney FROM LI_RENT_INVOICE_DOWNLOAD_INFO GROUP BY RENT_INVOICE_ID)lridi ON lridi.RENT_INVOICE_ID=lrii.id
|
||||
LEFT JOIN code_library leasecode ON leasecode.itemno=lci.lease_form AND leasecode.codeno='leas_form'
|
||||
LEFT JOIN code_library invoicecode ON invoicecode.itemno=lrii.invoice_type AND invoicecode.codeno='invoice_type'
|
||||
WHERE lrii.income_id IS NOT NULL AND lrii.plan_id IS NULL AND lrii.bill_type='invoice'
|
||||
UNION ALL
|
||||
SELECT
|
||||
lrii.id AS id,
|
||||
lci.contract_number AS contractnumber,
|
||||
lcc.payment_number AS paymentnumber,
|
||||
lul.customer_name AS customername,
|
||||
'' AS planlist,
|
||||
'' AS plandate,
|
||||
FORMAT(lcc.equip_amt-IFNULL(lcc.first_payment,0),2) AS planmoney,
|
||||
'' AS factdate,
|
||||
'' AS factmoney,
|
||||
FORMAT(lrii.invoice_money-lrii.temporary_noinvoice-lrii.noinvoice-IFNULL(lridi.suminvoicedmoney,0.00),2) AS invoicemoney,
|
||||
'本金一次性' AS feetype,
|
||||
invoicecode.itemname AS invoicetype,
|
||||
lrii.invoice_object AS invoiceobject,
|
||||
lrii.tax_reg_code AS taxregcode,
|
||||
lrii.tax_bank AS taxbank,
|
||||
lrii.tax_acc AS taxacc,
|
||||
lrii.invoice_phone AS invoicephone,
|
||||
lrii.invoice_add AS invoiceadd,
|
||||
CASE lrii.invoice_status WHEN '0' THEN '未申请' WHEN '1' THEN '已申请' WHEN '2' THEN '已退回' WHEN '3' THEN '部分未申请' WHEN '4' THEN '暂不开票' WHEN '5' THEN '已开票' END AS invoicestatus,
|
||||
leasecode.itemname AS leaseform,
|
||||
'corpusone' AS feetypecode
|
||||
FROM
|
||||
LI_RENT_INVOICE_INFO lrii
|
||||
LEFT JOIN LC_CONTRACT_CONDITION lcc ON lrii.payment_number=lcc.payment_number
|
||||
LEFT JOIN lb_contract_info lci ON lcc.contract_id=lci.id
|
||||
LEFT JOIN LB_UNION_LESSEE lul ON lul.contract_id=lci.id AND lul.is_main='Y'
|
||||
LEFT JOIN (SELECT RENT_INVOICE_ID,SUM(INVOICE_MONEY) AS suminvoicedmoney FROM LI_RENT_INVOICE_DOWNLOAD_INFO GROUP BY RENT_INVOICE_ID)lridi ON lridi.RENT_INVOICE_ID=lrii.id
|
||||
LEFT JOIN code_library leasecode ON leasecode.itemno=lci.lease_form AND leasecode.codeno='leas_form'
|
||||
LEFT JOIN code_library invoicecode ON invoicecode.itemno=lrii.invoice_type AND invoicecode.codeno='invoice_type'
|
||||
WHERE lrii.income_id IS NULL AND lrii.plan_id IS NULL AND lrii.payment_number IS NOT NULL AND lrii.bill_type='invoice'
|
||||
) tab WHERE 1=1 AND tab.invoicestatus IN ('已申请') ORDER BY paymentnumber) fr
|
||||
LEFT JOIN invoice_interface ii ON fr.id=ii.invoice_id
|
||||
]]>
|
||||
</table_sql>
|
||||
</MYSQL>
|
||||
@ -182,7 +183,7 @@ UNION ALL
|
||||
<table_sql>
|
||||
<![CDATA[
|
||||
select id,contractnumber,paymentnumber,customername,planlist,plandate,planmoney,factdate,factmoney,invoicemoney,feetype,
|
||||
invoicetype,invoiceobject,taxregcode,taxbank,taxacc,invoicephone,invoiceadd,tab.invoicestatus,leaseform,feetypecode from (
|
||||
invoicetype,invoiceobject,taxregcode,taxbank,taxacc,invoicephone,invoiceadd,tab.invoicestatus,leaseform,feetypecode from (
|
||||
SELECT
|
||||
lfii.id AS id,
|
||||
lci.contract_number AS contractnumber,
|
||||
|
||||
@ -9,11 +9,12 @@
|
||||
|
||||
String plan_date = DateAssistant.getToday();
|
||||
ASObjectModel doTemp = new ASObjectModel("ViLcReviewAuditRentPlanList");
|
||||
doTemp.setJboWhere(" O.AUDIT_STATE = 'N'");
|
||||
// doTemp.setJboWhere(" O.AUDIT_STATE = 'N'");
|
||||
//默认预查询
|
||||
//只有计划日期未收款的都可以收款
|
||||
doTemp.setJboWhereWhenNoFilter(" and O.PLAN_DATE <= '"+plan_date+"' and O.COLLECT_STATUS in ('未收款','部分收款') ");
|
||||
// doTemp.setJboWhereWhenNoFilter(" and O.PLAN_DATE <= '"+plan_date+"' and O.COLLECT_STATUS in ('未收款','部分收款') ");
|
||||
doTemp.setJboWhereWhenNoFilter(" and O.COLLECT_STATUS in ('未收款','部分收款') ");
|
||||
doTemp.setJboWhere("O.PLAN_DATE <= '"+plan_date+"'");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.MultiSelect = true; //多选
|
||||
|
||||
@ -109,7 +109,6 @@
|
||||
/*~[Describe=±£´æ;InputParam=ÎÞ;OutPutParam=ÎÞ;]~*/
|
||||
function saveRecord()
|
||||
{
|
||||
debugger;
|
||||
var param={};
|
||||
var tempParam={};
|
||||
var sparam="";
|
||||
|
||||
@ -110,7 +110,6 @@
|
||||
/*~[Describe=±£´æ;InputParam=ÎÞ;OutPutParam=ÎÞ;]~*/
|
||||
function saveRecord()
|
||||
{
|
||||
debugger;
|
||||
var param={};
|
||||
var tempParam={};
|
||||
var sparam="";
|
||||
|
||||
@ -13,12 +13,17 @@
|
||||
*/
|
||||
|
||||
String userId = CurUser.getUserID();
|
||||
String orgId =CurUser.getOrgID();
|
||||
System.out.print(orgId);
|
||||
String falg = "true";
|
||||
if(userId.indexOf("8006")>-1){
|
||||
falg = "false";
|
||||
}
|
||||
String compClientID = request.getParameter("CompClientID");
|
||||
ASObjectModel doTemp = new ASObjectModel("RentNotify");
|
||||
if(userId.indexOf("8006")>-1){
|
||||
doTemp.appendJboWhere(" O.orgid="+CurUser.getOrgID()+"");
|
||||
}
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--ÉèÖÃΪGrid·ç¸ñ--
|
||||
dwTemp.ReadOnly = "1";
|
||||
|
||||
@ -1079,7 +1079,7 @@
|
||||
<Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="方案信息" PARAMETERID="planinformation" PARAMETERNAME="方案信息" PRIGHTTYPE="Required"/></Parameters></Component>
|
||||
<Component FORMAT="1" ID="EQUIP_AMT" NAME="设备款" STATUS="2" TYPE="PRD0315"><Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收取方向" PARAMETERID="CostType01" PARAMETERNAME="收取方向" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付节点" PARAMETERID="CostType02" PARAMETERNAME="收付节点" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付对象" PARAMETERID="CostType03" PARAMETERNAME="收付对象" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="科目编码" PARAMETERID="CostType04" PARAMETERNAME="科目编码" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否显示比例" PARAMETERID="CostType05" PARAMETERNAME="是否显示比例" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="输入方式" PARAMETERID="CostType06" PARAMETERNAME="输入方式" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="比例参照费用" PARAMETERID="CostType07" PARAMETERNAME="比例参照费用" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="金额限定" PARAMETERID="CostType08" PARAMETERNAME="金额限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="比例限定" PARAMETERID="CostType09" PARAMETERNAME="比例限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否参与IRR/XIRR核算" PARAMETERID="CostType10" PARAMETERNAME="是否参与IRR/XIRR核算" PRIGHTTYPE="Required"/></Parameters></Component>
|
||||
<Component FORMAT="1" ID="FIRST_PAYMENT" NAME="首付款" STATUS="1" TYPE="PRD0315"><Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收取方向" PARAMETERID="CostType01" PARAMETERNAME="收取方向" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="收付节点" PARAMETERID="CostType02" PARAMETERNAME="收付节点" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付对象" PARAMETERID="CostType03" PARAMETERNAME="收付对象" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="科目编码" PARAMETERID="CostType04" PARAMETERNAME="科目编码" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否显示比例" PARAMETERID="CostType05" PARAMETERNAME="是否显示比例" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="输入方式" PARAMETERID="CostType06" PARAMETERNAME="输入方式" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="比例参照费用" PARAMETERID="CostType07" PARAMETERNAME="比例参照费用" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="金额限定" PARAMETERID="CostType08" PARAMETERNAME="金额限定" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="比例限定" PARAMETERID="CostType09" PARAMETERNAME="比例限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否参与IRR/XIRR核算" PARAMETERID="CostType10" PARAMETERNAME="是否参与IRR/XIRR核算" PRIGHTTYPE="Hide"/></Parameters></Component>
|
||||
<Component FORMAT="1" ID="HANDLING_CHARGE_MONEY" NAME="手续费" STATUS="1" TYPE="PRD0315"><Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收取方向" PARAMETERID="CostType01" PARAMETERNAME="收取方向" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付节点" PARAMETERID="CostType02" PARAMETERNAME="收付节点" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付对象" PARAMETERID="CostType03" PARAMETERNAME="收付对象" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="科目编码" PARAMETERID="CostType04" PARAMETERNAME="科目编码" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否显示比例" PARAMETERID="CostType05" PARAMETERNAME="是否显示比例" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="输入方式" PARAMETERID="CostType06" PARAMETERNAME="输入方式" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="比例参照费用" PARAMETERID="CostType07" PARAMETERNAME="比例参照费用" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="金额限定" PARAMETERID="CostType08" PARAMETERNAME="金额限定" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="比例限定" PARAMETERID="CostType09" PARAMETERNAME="比例限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="是否参与IRR/XIRR核算" PARAMETERID="CostType10" PARAMETERNAME="是否参与IRR/XIRR核算" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="收取方式" PARAMETERID="PoundageStyle" PARAMETERNAME="手续费计算方式" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否参与融资" PARAMETERID="FINAN" PARAMETERNAME="是否参与融资" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否差额放款" PARAMETERID="isBalance" PARAMETERNAME="是否差额放款" PRIGHTTYPE="Required"/></Parameters></Component>
|
||||
<Component FORMAT="1" ID="HANDLING_CHARGE_MONEY" NAME="手续费" STATUS="1" TYPE="PRD0315"><Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收取方向" PARAMETERID="CostType01" PARAMETERNAME="收取方向" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付节点" PARAMETERID="CostType02" PARAMETERNAME="收付节点" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付对象" PARAMETERID="CostType03" PARAMETERNAME="收付对象" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="科目编码" PARAMETERID="CostType04" PARAMETERNAME="科目编码" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否显示比例" PARAMETERID="CostType05" PARAMETERNAME="是否显示比例" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="输入方式" PARAMETERID="CostType06" PARAMETERNAME="输入方式" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="比例参照费用" PARAMETERID="CostType07" PARAMETERNAME="比例参照费用" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="金额限定" PARAMETERID="CostType08" PARAMETERNAME="金额限定" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="比例限定" PARAMETERID="CostType09" PARAMETERNAME="比例限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="是否参与IRR/XIRR核算" PARAMETERID="CostType10" PARAMETERNAME="是否参与IRR/XIRR核算" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="收取方式" PARAMETERID="PoundageStyle" PARAMETERNAME="手续费计算方式" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否参与融资" PARAMETERID="FINAN" PARAMETERNAME="是否参与融资" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否差额放款" PARAMETERID="isBalance" PARAMETERNAME="是否差额放款" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="分摊方式" PARAMETERID="oneOrMore" PARAMETERNAME="分摊方式" PRIGHTTYPE="Required"/></Parameters></Component>
|
||||
<Component FORMAT="1" ID="CAUTION_MONEY" NAME="保证金" STATUS="1" TYPE="PRD0315"><Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收取方向" PARAMETERID="CostType01" PARAMETERNAME="收取方向" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付节点" PARAMETERID="CostType02" PARAMETERNAME="收付节点" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付对象" PARAMETERID="CostType03" PARAMETERNAME="收付对象" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="科目编码" PARAMETERID="CostType04" PARAMETERNAME="科目编码" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否显示比例" PARAMETERID="CostType05" PARAMETERNAME="是否显示比例" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="输入方式" PARAMETERID="CostType06" PARAMETERNAME="输入方式" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="比例参照费用" PARAMETERID="CostType07" PARAMETERNAME="比例参照费用" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="金额限定" PARAMETERID="CostType08" PARAMETERNAME="金额限定" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="比例限定" PARAMETERID="CostType09" PARAMETERNAME="比例限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否参与IRR/XIRR核算" PARAMETERID="CostType10" PARAMETERNAME="是否参与IRR/XIRR核算" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="显示次序" PARAMETERID="DISPLAY_ORDER" PARAMETERNAME="显示次序" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="保证金计算方式" PARAMETERID="DepositStyle" PARAMETERNAME="保证金计算方式" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否差额放款" PARAMETERID="isBalance" PARAMETERNAME="是否差额放款" PRIGHTTYPE="Required"/></Parameters></Component>
|
||||
<Component FORMAT="1" ID="MANAGEMENT_MONEY" NAME="咨询顾问费" STATUS="2" TYPE="PRD0315"><Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收取方向" PARAMETERID="CostType01" PARAMETERNAME="收取方向" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付节点" PARAMETERID="CostType02" PARAMETERNAME="收付节点" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付对象" PARAMETERID="CostType03" PARAMETERNAME="收付对象" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="科目编码" PARAMETERID="CostType04" PARAMETERNAME="科目编码" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否显示比例" PARAMETERID="CostType05" PARAMETERNAME="是否显示比例" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="输入方式" PARAMETERID="CostType06" PARAMETERNAME="输入方式" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="比例参照费用" PARAMETERID="CostType07" PARAMETERNAME="比例参照费用" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="金额限定" PARAMETERID="CostType08" PARAMETERNAME="金额限定" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="比例限定" PARAMETERID="CostType09" PARAMETERNAME="比例限定" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="是否参与IRR/XIRR核算" PARAMETERID="CostType10" PARAMETERNAME="是否参与IRR/XIRR核算" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="显示次序" PARAMETERID="DISPLAY_ORDER" PARAMETERNAME="显示次序" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否参与融资" PARAMETERID="FINAN" PARAMETERNAME="是否参与融资" PRIGHTTYPE="Required"/></Parameters></Component>
|
||||
|
||||
|
||||
@ -196,4 +196,4 @@
|
||||
<Parameter CODESCRIPT="caution_money_method" CODESOURCE="Code" COMPONENTTYPE="PRD0315" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="DepositStyle" PARAMETERNAME="保证金计算方式" SELECTTYPE="05" STATUS="1"/>
|
||||
<Parameter COMPONENTTYPE="PRD0315" DATATYPE="6" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="FINAL_PAYMENT_RATIO" PARAMETERNAME="尾款比例" STATUS="1"/>
|
||||
<Parameter COMPONENTTYPE="PRD0315" DATATYPE="6" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="FIRST_PAYMENT_RATIO" PARAMETERNAME="首付款比例" STATUS="1"/>
|
||||
<Parameter COMPONENTTYPE="PRD0315" DATATYPE="2" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="DISCOUNT_ALL" PARAMETERNAME="悧季口쏜띨" STATUS="1" UNIT="<font>禱</font>"/><Parameter CODESCRIPT="period_type" CODESOURCE="Code" COMPONENTTYPE="PRD0350" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="begin_end" PARAMETERNAME="邱마/빈마" SELECTTYPE="05" STATUS="1"/></Parameters>
|
||||
<Parameter COMPONENTTYPE="PRD0315" DATATYPE="2" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="DISCOUNT_ALL" PARAMETERNAME="总贴息金额" STATUS="1" UNIT="<font>元</font>"/><Parameter CODESCRIPT="period_type" CODESOURCE="Code" COMPONENTTYPE="PRD0350" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="begin_end" PARAMETERNAME="先付/后付" SELECTTYPE="05" STATUS="1"/><Parameter CODESCRIPT="oneOrMore" CODESOURCE="Code" COMPONENTTYPE="PRD0315" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="oneOrMore" PARAMETERNAME="分摊方式" SELECTTYPE="04" STATUS="1"/></Parameters>
|
||||
@ -3100,5 +3100,42 @@
|
||||
</manager>
|
||||
</class>
|
||||
|
||||
<class name="VI_LC_RENT_COLLECTION" label="租金通知书" keyAttributes="">
|
||||
<attributes>
|
||||
<attribute name="id" label="id" type="STRING"/>
|
||||
<attribute name="orgid" label="orgid" type="STRING"/>
|
||||
<attribute name="userid" label="userid" type="STRING"/>
|
||||
<attribute name="project_id" label="project_id" type="STRING"/>
|
||||
<attribute name="contract_id" label="contract_id" type="STRING"/>
|
||||
<attribute name="contract_status" label="contract_status" type="STRING"/>
|
||||
<attribute name="contract_number" label="contract_number" type="STRING"/>
|
||||
<attribute name="payment_number" label="payment_number" type="STRING"/>
|
||||
<attribute name="customername" label="customername" type="STRING"/>
|
||||
<attribute name="project_name" label="project_name" type="STRING"/>
|
||||
<attribute name="plan_list" label="plan_list" type="STRING"/>
|
||||
<attribute name="plan_date" label="plan_date" type="STRING"/>
|
||||
<attribute name="rent" label="rent" type="STRING"/>
|
||||
<attribute name="corpus" label="corpus" type="STRING"/>
|
||||
<attribute name="interest" label="interest" type="STRING"/>
|
||||
<attribute name="penalty" label="penalty" type="STRING"/>
|
||||
<attribute name="fact_rent" label="fact_rent" type="STRING"/>
|
||||
<attribute name="fact_corpus" label="fact_corpus" type="STRING"/>
|
||||
<attribute name="fact_interest" label="fact_interest" type="STRING"/>
|
||||
<attribute name="fact_penalty" label="fact_penalty" type="STRING"/>
|
||||
<attribute name="corpus_adjust" label="corpus_adjust" type="STRING"/>
|
||||
<attribute name="interest_adjust" label="interest_adjust" type="STRING"/>
|
||||
<attribute name="penalty_adjust" label="penalty_adjust" type="STRING"/>
|
||||
<attribute name="rent_over" label="rent_over" type="STRING"/>
|
||||
<attribute name="corpus_over" label="corpus_over" type="STRING"/>
|
||||
<attribute name="interest_over" label="interest_over" type="STRING"/>
|
||||
<attribute name="penalty_over" label="penalty_over" type="STRING"/>
|
||||
<attribute name="planstatus" label="planstatus" type="STRING"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="vi_lc_rent_collection" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
</package>
|
||||
</jbo>
|
||||
|
||||
@ -776,7 +776,7 @@ public class ProductCondition {
|
||||
}
|
||||
ProductBaseLoanTools.addAppList(appList, "SETTLE_METHOD", "colreadonly", "1");
|
||||
ProductBaseLoanTools.addAppList(appList, "SETTLE_METHOD", "coleditsource", "jbo.sys.CODE_LIBRARY,itemno,itemname,codeno='settle_method' and itemno in ("+s+") order by sortno");
|
||||
ProductBaseLoanTools.addAppList(appList, "coldefaultvalue", "colreadonly", s.replaceAll("'", ""));
|
||||
ProductBaseLoanTools.addAppList(appList, "SETTLE_METHOD", "coldefaultvalue", s.replaceAll("'", ""));
|
||||
|
||||
return "{"+sJson+"}";
|
||||
}
|
||||
|
||||
@ -1384,9 +1384,15 @@ public void wordToPdfJar(JBOTransaction tx){
|
||||
BizObjectManager customer = JBOFactory.getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME);
|
||||
BizObject lults = lult.createQuery("flowunid=:flowUnid").setParameter("flowUnid", FlowUnid).getSingleResult(false);
|
||||
BizObject cust = customer.createQuery("flowunid=:flowUnid and customerid=:customerid").setParameter("flowUnid", FlowUnid).setParameter("customerid", lults.getAttribute("customer_id").toString()).getSingleResult(false);
|
||||
String customername = cust.getAttribute("FULLNAME").toString();
|
||||
String telephone = cust.getAttribute("mobile").toString();
|
||||
String ids = cust.getAttribute("CUSTOMERID").toString();
|
||||
String customername = null;
|
||||
String telephone = null;
|
||||
String ids =null;
|
||||
|
||||
if(cust!=null){
|
||||
customername = cust.getAttribute("FULLNAME").toString();
|
||||
telephone = cust.getAttribute("mobile").toString();
|
||||
ids = cust.getAttribute("CUSTOMERID").toString();
|
||||
}
|
||||
|
||||
BizObjectManager contBom = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME, tx);
|
||||
BizObjectManager attrBom = JBOFactory.getBizObjectManager(LB_DOCATTRIBUTE.CLASS_NAME, tx);
|
||||
|
||||
@ -14,6 +14,7 @@ import jbo.app.tenwa.doc.LB_DOCRELATIVE;
|
||||
import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT;
|
||||
import net.sf.json.JSONObject;
|
||||
import apx.com.amarsoft.als.apzl.apply.business.doc.detail.service.BusinessDocDetailService;
|
||||
import apx.com.amarsoft.als.apzl.apply.business.start.init.InitDocListTools;
|
||||
|
||||
import com.amarsoft.are.ARE;
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
@ -85,7 +86,31 @@ public class BusinessDocDetailServiceImpl implements BusinessDocDetailService {
|
||||
if (StringX.isSpace(flowUnid)) { // »ñÈ¡ËùÓÐÅäÖÃdocName
|
||||
return docDetail(ReturnMapUtil);
|
||||
}
|
||||
|
||||
BizObjectManager fboM = JBOFactory
|
||||
.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME);
|
||||
BizObject fbo = fboM.createQuery("flow_unid=:flow_unid")
|
||||
.setParameter("flow_unid", flowUnid).getSingleResult(false);
|
||||
if (null == fbo) {
|
||||
ReturnMapUtil.setReturnMap(null, RestfullConstant.baseProperty.get("fail").toString(), "未找到流程实例!");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
}
|
||||
String carAttributes = "";
|
||||
try {
|
||||
String flowPara = fbo.getAttribute("FixedFlowParam") == null ? ""
|
||||
: fbo.getAttribute("FixedFlowParam").toString();
|
||||
JSONObject jo = JsonUtil.str2JSONObject(flowPara.trim());
|
||||
carAttributes = jo.get("carAttributes") == null ? "" : jo
|
||||
.getString("carAttributes");
|
||||
} catch (Exception e) {
|
||||
ARE.getLog().error(e);
|
||||
ReturnMapUtil.setReturnMap(null, RestfullConstant.baseProperty.get("fail").toString(), "获取车辆属性信息失败!");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
}
|
||||
// 加载附件
|
||||
|
||||
// carAttributes
|
||||
boolean flag = InitDocListTools.initDocList(flowUnid, fieldMap.get("userid").toString(), carAttributes);
|
||||
|
||||
BizObjectManager businessManage = JBOFactory
|
||||
.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME);
|
||||
BizObject business = businessManage.createQuery("flow_unid=:flow_unid")
|
||||
|
||||
@ -53,6 +53,23 @@ public class LoanSimulationBasicInfoController {
|
||||
}
|
||||
}
|
||||
|
||||
@Path("/rent")
|
||||
@POST
|
||||
public Map<String, Object> rent(@Context HttpServletRequest request, @Context HttpServletResponse response,
|
||||
@Context JBOTransaction tx, @Context Transaction sqlca) throws Exception {
|
||||
ReturnMapUtil ReturnMapUtil = new ReturnMapUtil(tx, sqlca);
|
||||
ARE.getLog().info(
|
||||
"[CONTROLLER] LoanSimulationBasicInfo run .................");
|
||||
ARE.getLog().info("[Path] /loan/simulation/basic/rent" + " run .................");
|
||||
|
||||
LoanSimulationBasicService service = new LoanSimulationBasicServiceImpl();
|
||||
try {
|
||||
return service.rent(request, response, tx, sqlca, ReturnMapUtil);
|
||||
} catch (Exception e) {
|
||||
return ReturnMapUtil.rollback(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Path("/save")
|
||||
@POST
|
||||
public Map<String, Object> saveInfo(@Context HttpServletRequest request, @Context HttpServletResponse response,
|
||||
|
||||
@ -0,0 +1,46 @@
|
||||
package apx.com.amarsoft.als.apzl.apply.business.loan.manage;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import apx.com.amarsoft.als.base.awe.AbstractAweDoQueryManage;
|
||||
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.are.lang.StringX;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.base.util.ReturnMapUtil;
|
||||
|
||||
public class LCRentPlanTempDoQueryManage extends AbstractAweDoQueryManage {
|
||||
private String sAddWhere;
|
||||
private String dono;
|
||||
private Map<String, Object> fieldMap;
|
||||
|
||||
public void setFieldMap(Map<String, Object> fieldMap) {
|
||||
this.fieldMap = fieldMap;
|
||||
}
|
||||
|
||||
public void setDono(String dono) {
|
||||
this.dono = dono;
|
||||
}
|
||||
|
||||
public void getGroupId() {
|
||||
sGroupId = this.dono;
|
||||
}
|
||||
|
||||
public void getOtherWhere() {
|
||||
super.sOtherWhere = StringX.isSpace(sAddWhere) ? ""
|
||||
: this.sAddWhere;
|
||||
}
|
||||
|
||||
public void setsAddWhere(String sAddWhere) {
|
||||
this.sAddWhere = sAddWhere;
|
||||
}
|
||||
|
||||
public Map<String, Object> queryDefaultDo(HttpServletRequest request,
|
||||
Transaction sqlca, JBOTransaction tx, ReturnMapUtil ReturnMapUtil)
|
||||
throws Exception {
|
||||
setParamMap(fieldMap);
|
||||
return getData(request, sqlca, tx, ReturnMapUtil);
|
||||
}
|
||||
}
|
||||
@ -6,6 +6,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Vector;
|
||||
|
||||
import jbo.prd.BUSINESS_TYPE;
|
||||
import jbo.sys.CODE_LIBRARY;
|
||||
import apx.com.amarsoft.als.base.cache.instance.AppAweDoCache;
|
||||
|
||||
@ -28,11 +29,6 @@ public class ProductBaseLoanTools {
|
||||
@SuppressWarnings("unchecked")
|
||||
public static Map<String, Object> checkSource(Map<String, Object> app,
|
||||
String colName, String operation, Object value) {
|
||||
|
||||
if ("finatype01".equals(value)) {
|
||||
ARE.getLog().info("finatype01");
|
||||
}
|
||||
|
||||
if (operation.contains("defaultValue")) {
|
||||
app.put("coldefaultvalue", value);
|
||||
} else {
|
||||
@ -45,7 +41,7 @@ public class ProductBaseLoanTools {
|
||||
List<Map<String, Object>> libarary = (List<Map<String, Object>>) (donoTemp.get("library"));
|
||||
String source = "";
|
||||
String sourceType = "";
|
||||
|
||||
app.put("coldefaultitemno", value);
|
||||
for (Map<String, Object> col : libarary) {
|
||||
String sColName = col.get("colname") == null ? "" : col.get("colname").toString();
|
||||
if (sColName.equals(colName)) {
|
||||
@ -57,12 +53,10 @@ public class ProductBaseLoanTools {
|
||||
source = app.get("coleditsource") == null ? source : app.get("coleditsource").toString();
|
||||
sourceType = app.get("coleditsourcetype") == null ? sourceType : app.get("coleditsourcetype").toString();
|
||||
if (StringX.isSpace(source)) {
|
||||
app.put("coldefaultitemno", value);
|
||||
return app;
|
||||
}
|
||||
|
||||
if (StringX.isSpace(sourceType)) {
|
||||
app.put("coldefaultitemno", value);
|
||||
return app;
|
||||
}
|
||||
|
||||
@ -74,14 +68,12 @@ public class ProductBaseLoanTools {
|
||||
.setParameter("CODENO", source).setParameter("itemno", itemno)
|
||||
.getSingleResult(false);
|
||||
if (null == bo) {
|
||||
app.put("coldefaultitemno", value);
|
||||
return app;
|
||||
}
|
||||
app.put("coldefaultitemno", bo.getAttribute("itemname").getValue());
|
||||
app.put("coldefaultvalue", bo.getAttribute("itemname").getValue());
|
||||
return app;
|
||||
} catch (JBOException e) {
|
||||
ARE.getLog().error(e);
|
||||
app.put("coldefaultitemno", value);
|
||||
return app;
|
||||
}
|
||||
|
||||
@ -95,22 +87,17 @@ public class ProductBaseLoanTools {
|
||||
if (i!=0 && i + 1 > size) break;
|
||||
String itemno2 = array[i];
|
||||
if (itemno2.equalsIgnoreCase(itemno)) {
|
||||
app.put("coldefaultitemno", array[i+1]);
|
||||
app.put("coldefaultvalue", array[i+1]);
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
if (null == app.get("coldefaultitemno")) {
|
||||
app.put("coldefaultitemno", value);
|
||||
return app;
|
||||
}
|
||||
} else {
|
||||
app.put("coldefaultitemno", value);
|
||||
return app;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
ARE.getLog().error(e);
|
||||
app.put("coldefaultitemno", value);
|
||||
app.put("coldefaultvalue", value);
|
||||
return app;
|
||||
}
|
||||
} else if ("JBO".equals(sourceType)) { // jbo.app.tenwa.customer.DISTRIBUTOR_INFO,ID,DISTRIBUTOR_NAME,1=1
|
||||
@ -139,20 +126,15 @@ public class ProductBaseLoanTools {
|
||||
// sDefult
|
||||
if (itemno.equals(bo.getAttribute(sKey)
|
||||
.getValue())) {
|
||||
app.put("coldefaultitemno", bo.getAttribute(sValue)
|
||||
app.put("coldefaultvalue", bo.getAttribute(sValue)
|
||||
.getValue());
|
||||
return app;
|
||||
}
|
||||
}
|
||||
if (null == app.get("coldefaultitemno")) {
|
||||
app.put("coldefaultitemno", value);
|
||||
return app;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (JBOException e) {
|
||||
ARE.getLog().error(e);
|
||||
app.put("coldefaultitemno", value);
|
||||
return app;
|
||||
}
|
||||
|
||||
@ -169,23 +151,20 @@ public class ProductBaseLoanTools {
|
||||
int iin = Integer.valueOf(itemno);
|
||||
|
||||
if(min <= iin && iin <= max) {
|
||||
app.put("coldefaultitemno", iin);
|
||||
app.put("coldefaultvalue", iin);
|
||||
return app;
|
||||
} else {
|
||||
app.put("coldefaultitemno", value);
|
||||
app.put("coldefaultvalue", value);
|
||||
return app;
|
||||
}
|
||||
} else {
|
||||
app.put("coldefaultitemno", value);
|
||||
return app;
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
ARE.getLog().error(e);
|
||||
app.put("coldefaultitemno", value);
|
||||
return app;
|
||||
}
|
||||
}
|
||||
|
||||
return app;
|
||||
}
|
||||
|
||||
@ -225,6 +204,14 @@ public class ProductBaseLoanTools {
|
||||
appList = new ArrayList<Map<String, Object>>();
|
||||
ProductCondition pc = new ProductCondition();
|
||||
pc.getProductFundRulesApp(appList, productId);
|
||||
|
||||
|
||||
//»ñÈ¡²úÆ·Ãû³Æ
|
||||
BizObject bo = JBOFactory.createBizObjectQuery(BUSINESS_TYPE.CLASS_NAME,"typeno=:productID")
|
||||
.setParameter("productID", productId).getSingleResult(false);
|
||||
String productName = bo.getAttribute("typename").getString();
|
||||
|
||||
ProductBaseLoanTools.addAppList(appList, "PRODUCT_NAME", "coldefaultvalue", productName);
|
||||
/* ÉèÖÃÄ£°åÊôÐÔ */
|
||||
Vector<ValidateRule> vali = new Vector<ValidateRule>();
|
||||
String calcRules = pc.getProductRulesApp(appList, productId, vali);
|
||||
|
||||
@ -20,6 +20,12 @@ public interface LoanSimulationBasicService {
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca, ReturnMapUtil ReturnMapUtil)
|
||||
throws Exception;
|
||||
|
||||
Map<String, Object> rent(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca, ReturnMapUtil ReturnMapUtil)
|
||||
throws Exception;
|
||||
|
||||
|
||||
Map<String, Object> saveInfo(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
|
||||
@ -8,6 +8,8 @@ import java.util.Map;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import jbo.prd.BUSINESS_TYPE;
|
||||
import apx.com.amarsoft.als.apzl.apply.business.loan.manage.LCRentPlanTempDoQueryManage;
|
||||
import apx.com.amarsoft.als.apzl.apply.business.loan.manage.LoanSimulationBasicInfoAppInfoDoManage;
|
||||
import apx.com.amarsoft.als.apzl.apply.business.loan.manage.LoanSimulationBasicInfoAppInfoSaveDoManage;
|
||||
import apx.com.amarsoft.als.apzl.apply.business.loan.product.ProductBaseLoanTools;
|
||||
@ -15,6 +17,7 @@ import apx.com.amarsoft.als.apzl.apply.business.loan.service.LoanSimulationBasic
|
||||
|
||||
import com.amarsoft.app.lc.workflow.action.GetFlowAction;
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.context.ASUser;
|
||||
@ -49,23 +52,31 @@ public class LoanSimulationBasicServiceImpl implements
|
||||
Map<String, Object> baseMap = ProductBaseLoanTools.deadWork(null, null,
|
||||
null, null, null, flowunid, tx);
|
||||
// ·ÑÓùæÔò
|
||||
List<Map<String, Object>> appList = new ArrayList<Map<String,Object>>();
|
||||
|
||||
String calcRules = ProductBaseLoanTools
|
||||
.getProductFundRules(appList, baseMap.get("productId").toString());
|
||||
List<Map<String, Object>> appList = new ArrayList<Map<String, Object>>();
|
||||
|
||||
String calcRules = ProductBaseLoanTools.getProductFundRules(appList,
|
||||
baseMap.get("productId").toString());
|
||||
|
||||
Map<String, Object> calcRulesMap = JsonUtil.str2JSONObject(calcRules);
|
||||
|
||||
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
body.put("planCName", baseMap.get("planCName"));
|
||||
body.put("plannumber", baseMap.get("plannumber"));
|
||||
body.put("tb", baseMap.get("tb"));
|
||||
body.put("calType", baseMap.get("calType"));
|
||||
|
||||
|
||||
body.put("productId", baseMap.get("productId"));
|
||||
body.put("productDatas", appList);
|
||||
body.put("productFundRules", calcRulesMap);
|
||||
|
||||
// 获取产品名称
|
||||
BizObject bo = JBOFactory
|
||||
.createBizObjectQuery(BUSINESS_TYPE.CLASS_NAME,
|
||||
"typeno=:productID")
|
||||
.setParameter("productID", baseMap.get("productId").toString())
|
||||
.getSingleResult(false);
|
||||
String productName = bo.getAttribute("typename").getString();
|
||||
body.put("productName", productName);
|
||||
|
||||
ReturnMapUtil.setReturnMap(body,
|
||||
RestfullConstant.baseProperty.get("success").toString(), "");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
@ -123,6 +134,9 @@ public class LoanSimulationBasicServiceImpl implements
|
||||
fieldMap.put("flow_unid".toLowerCase(), flowunid);
|
||||
fieldMap.put("flow_unid".toUpperCase(), flowunid);
|
||||
|
||||
fieldMap.put(planCName.toLowerCase(), plannumber);
|
||||
fieldMap.put(planCName.toUpperCase(), plannumber);
|
||||
|
||||
LoanSimulationBasicInfoAppInfoSaveDoManage manage = new LoanSimulationBasicInfoAppInfoSaveDoManage();
|
||||
manage.setDono("LoanSimulationBasicInfoApp2");
|
||||
manage.setAddWhere(" and " + planCName + "='" + plannumber + "'");
|
||||
@ -165,16 +179,56 @@ public class LoanSimulationBasicServiceImpl implements
|
||||
calType = "proj_process";
|
||||
}
|
||||
|
||||
CreateTransactionExecutor cte = new CreateTransactionExecutor();
|
||||
cte.setCalType(calType);
|
||||
cte.setFlowunid(flowunid);
|
||||
cte.setPlannumber(plannumber);
|
||||
cte.setProductId(productId);
|
||||
String result = cte.run();
|
||||
ReturnMapUtil
|
||||
.setReturnMap(null, RestfullConstant.baseProperty
|
||||
.get("success").toString(), result);
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
try {
|
||||
CreateTransactionExecutor cte = new CreateTransactionExecutor();
|
||||
cte.setCalType(calType);
|
||||
cte.setFlowunid(flowunid);
|
||||
cte.setPlannumber(plannumber);
|
||||
cte.setProductId(productId);
|
||||
String result = cte.run();
|
||||
|
||||
Map<String, Object> body = JsonUtil.str2JSONObject(result);
|
||||
|
||||
ReturnMapUtil
|
||||
.setReturnMap(body,
|
||||
RestfullConstant.baseProperty.get("success")
|
||||
.toString(), "");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
} catch (Exception e) {
|
||||
ReturnMapUtil.setReturnMap(null,
|
||||
RestfullConstant.baseProperty.get("fail").toString(),
|
||||
"后台异常,请联系管理员!");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Map<String, Object> rent(HttpServletRequest request,
|
||||
HttpServletResponse response, JBOTransaction tx, Transaction sqlca,
|
||||
ReturnMapUtil ReturnMapUtil) throws Exception {
|
||||
|
||||
Map<String, Object> testMap = (Map<String, Object>) MultipartDataUtil
|
||||
.readRequestParam(request, "UTF-8");
|
||||
fieldMap = (Map<String, Object>) testMap.get("fieldMap");
|
||||
|
||||
String flowunid = fieldMap.get("objectNo".toLowerCase()) == null ? ""
|
||||
: fieldMap.get("objectNo".toLowerCase()).toString();
|
||||
String planCName = fieldMap.get("planCName".toLowerCase()) == null ? null
|
||||
: fieldMap.get("planCName".toLowerCase()).toString(); // 方案编号
|
||||
String plannumber = fieldMap.get("plannumber".toLowerCase()) == null ? null
|
||||
: fieldMap.get("plannumber".toLowerCase()).toString(); // 方案编号
|
||||
|
||||
fieldMap.put("flowunid".toLowerCase(), flowunid);
|
||||
fieldMap.put("flowunid".toUpperCase(), flowunid);
|
||||
fieldMap.put("flow_unid".toLowerCase(), flowunid);
|
||||
fieldMap.put("flow_unid".toUpperCase(), flowunid);
|
||||
|
||||
LCRentPlanTempDoQueryManage manage = new LCRentPlanTempDoQueryManage();
|
||||
manage.setDono("LCRentPlanTempApp2");
|
||||
manage.setsAddWhere(" and " + planCName + "='" + plannumber + "'");
|
||||
// manage.setsJboClass(conditionTB);
|
||||
manage.setFieldMap(fieldMap);
|
||||
return manage.queryDefaultDo(request, sqlca, tx, ReturnMapUtil);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -30,6 +30,10 @@ public class ApplyListQueryController {
|
||||
ARE.getLog().info("[Path] /apply/list" + " run .................");
|
||||
|
||||
ApplyListQueryService service = new ApplyListQueryServiceImpl();
|
||||
return service.queryList(request, response, tx, sqlca, ReturnMapUtil);
|
||||
try {
|
||||
return service.queryList(request, response, tx, sqlca, ReturnMapUtil);
|
||||
} catch (Exception e) {
|
||||
return ReturnMapUtil.rollback(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,13 +2,28 @@ package apx.com.amarsoft.als.apzl.apply.business.start.bo;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.app.LB_DOCLIBRARY;
|
||||
import jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP;
|
||||
import jbo.app.tenwa.calc.LC_RENT_PLAN_TEMP;
|
||||
import jbo.app.tenwa.doc.LB_DOCATTRIBUTE;
|
||||
import jbo.app.tenwa.doc.LB_DOCRELATIVE;
|
||||
import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT;
|
||||
import net.sf.json.JSON;
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
import com.amarsoft.are.ARE;
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.BizObjectQuery;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.are.lang.StringX;
|
||||
import com.base.constant.RestfullConstant;
|
||||
import com.base.util.JsonUtil;
|
||||
import com.tenwa.lease.flow.project.projectapproval.BusinessApprovalStartAction;
|
||||
|
||||
public class BusinessBO implements Serializable {
|
||||
@ -39,8 +54,13 @@ public class BusinessBO implements Serializable {
|
||||
|
||||
private String fixedFlowParam;
|
||||
|
||||
private String serialNo;
|
||||
private String objectNo;
|
||||
private String projectId;
|
||||
|
||||
private String msg;
|
||||
private Map<String, String> params;
|
||||
|
||||
public void setParam(Map<String, Object> fieldMap, String param, Object obj) {
|
||||
obj = fieldMap.get(param.toLowerCase()) == null ? null : fieldMap.get(
|
||||
param.toLowerCase()).toString();
|
||||
@ -91,6 +111,13 @@ public class BusinessBO implements Serializable {
|
||||
|
||||
public BusinessBO(Map<String, Object> fieldMap, JBOTransaction tx)
|
||||
throws Exception {
|
||||
this.objectNo = fieldMap.get("objectNo".toLowerCase()) == null ? ""
|
||||
: fieldMap.get("objectNo".toLowerCase()).toString(); // 流程实例号
|
||||
this.projectId = fieldMap.get("projectId".toLowerCase()) == null ? ""
|
||||
: fieldMap.get("projectId".toLowerCase()).toString(); // 项目编号
|
||||
this.serialNo = fieldMap.get("serialNo".toLowerCase()) == null ? ""
|
||||
: fieldMap.get("serialNo".toLowerCase()).toString(); // 流程实例流水号
|
||||
|
||||
this.carAttributes = fieldMap.get("carAttributes".toLowerCase()) == null ? ""
|
||||
: fieldMap.get("carAttributes".toLowerCase()).toString(); // 车辆属性
|
||||
// 1,新车,2,二手车
|
||||
@ -139,9 +166,12 @@ public class BusinessBO implements Serializable {
|
||||
this.geartype = fieldMap.get("geartype".toLowerCase()) == null ? ""
|
||||
: fieldMap.get("geartype".toLowerCase()).toString(); // 档位
|
||||
|
||||
}
|
||||
|
||||
public void businessAppStart(JBOTransaction tx) throws Exception {
|
||||
if (!checkKeyField()) // 校验非空字段
|
||||
return;
|
||||
|
||||
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
BusinessApprovalStartAction action = new BusinessApprovalStartAction();
|
||||
|
||||
@ -191,6 +221,112 @@ public class BusinessBO implements Serializable {
|
||||
action.setFixedFlowParam(fixedFlowParam);
|
||||
msg = action.initFLow(tx); // 定义流程中需要的参数
|
||||
params = action.getFlowParam();
|
||||
|
||||
objectNo = params.get("FlowUnid");
|
||||
projectId = params.get("ProjectId");
|
||||
if (msg.startsWith("success")) {
|
||||
serialNo = msg.split("@")[1];
|
||||
}
|
||||
}
|
||||
|
||||
public String getSerialNo() {
|
||||
return serialNo;
|
||||
}
|
||||
|
||||
public void setSerialNo(String serialNo) {
|
||||
this.serialNo = serialNo;
|
||||
}
|
||||
|
||||
public String getObjectNo() {
|
||||
return objectNo;
|
||||
}
|
||||
|
||||
public void setObjectNo(String objectNo) {
|
||||
this.objectNo = objectNo;
|
||||
}
|
||||
|
||||
public String getProjectId() {
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public void setProjectId(String projectId) {
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public boolean checkDoc() throws JBOException {
|
||||
BizObjectManager fboM = JBOFactory
|
||||
.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME);
|
||||
|
||||
BizObject fbo = fboM.createQuery("flow_unid=:flow_unid")
|
||||
.setParameter("flow_unid", objectNo).getSingleResult(false);
|
||||
if (null == fbo) {
|
||||
msg = "未找到流程实例!";
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
String flowPara = fbo.getAttribute("FixedFlowParam") == null ? ""
|
||||
: fbo.getAttribute("FixedFlowParam").toString();
|
||||
JSONObject jo = JsonUtil.str2JSONObject(flowPara.trim());
|
||||
customerType = jo.get("CustomerType") == null ? "" : jo
|
||||
.getString("CustomerType");
|
||||
} catch (Exception e) {
|
||||
ARE.getLog().error(e);
|
||||
msg = "获取客户信息失败!";
|
||||
return false;
|
||||
}
|
||||
|
||||
String sql = "";
|
||||
sql = "SELECT DISTINCT O.ID, O.DOC_NAME,r.id " + "FROM O, "
|
||||
+ LB_DOCRELATIVE.CLASS_NAME + " R "
|
||||
+ "WHERE O.RELATIVE_ID = R.ID "
|
||||
+ "AND O.ID NOT IN (SELECT A.LIBRARY_ID FROM "
|
||||
+ LB_DOCATTRIBUTE.CLASS_NAME + " A) "
|
||||
+ "AND R.FLOW_UNID=:FLOW_UNID " + "AND o.DOC_NATURE='01' "
|
||||
+ "ORDER BY SERIAL_NUM";
|
||||
|
||||
BizObjectManager libraryManage = JBOFactory
|
||||
.getBizObjectManager(LB_DOCLIBRARY.CLASS_NAME);
|
||||
BizObjectQuery query = libraryManage.createQuery(sql).setParameter(
|
||||
"FLOW_UNID", objectNo);
|
||||
List<BizObject> librarys = query.getResultList(false);
|
||||
|
||||
String docNameConfig = "01".equals(customerType) ? RestfullConstant.baseProperty
|
||||
.get("COMPANY_DOC_NAME").toString()
|
||||
: "03".equals(customerType) ? RestfullConstant.baseProperty
|
||||
.get("PERSON_DOC_NAME").toString() : "";
|
||||
String[] array = docNameConfig.trim().split(",");
|
||||
String docName = "";
|
||||
for (String str : array) {
|
||||
String[] array2 = str.trim().split("@");
|
||||
docName += array2[0].trim() + ",";
|
||||
}
|
||||
String[] docArr = docName.split(",");
|
||||
msg = "";
|
||||
for (String doc : docArr) {
|
||||
for (BizObject library : librarys) {
|
||||
if (doc.trim().equals(
|
||||
library.getAttribute("DOC_NAME").toString().trim())) {
|
||||
msg += " [" + doc + "] 必备 未上传资料照片!\r\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BizObjectManager conditionM = JBOFactory.getBizObjectManager(LC_CALC_CONDITION_TEMP.CLASS_NAME);
|
||||
BizObjectManager rentM = JBOFactory.getBizObjectManager(LC_RENT_PLAN_TEMP.CLASS_NAME);
|
||||
BizObject condition = conditionM.createQuery("FLOWUNID=:FLOWUNID").setParameter("FLOWUNID", objectNo).getSingleResult(false);
|
||||
BizObject rent = rentM.createQuery("FLOWUNID=:FLOWUNID").setParameter("FLOWUNID", objectNo).getSingleResult(false);
|
||||
|
||||
if (null == condition || null == rent) {
|
||||
msg += " [商务条件] 没有找到业务测算信息!\r\n";
|
||||
}
|
||||
|
||||
|
||||
if (msg.equals("")) {
|
||||
return true;
|
||||
}
|
||||
// msg += "业务申请 提交风险预警报告";
|
||||
return false;
|
||||
}
|
||||
|
||||
public String getCarAttributes() {
|
||||
|
||||
@ -29,6 +29,27 @@ public class BusinessApplyStartController {
|
||||
ARE.getLog().info("[Path] /apply/business/start" + " run .................");
|
||||
|
||||
BusinessApplyStartService service = new BusinessApplyStartServiceImpl();
|
||||
return service.applyStart(request, response, tx, sqlca, ReturnMapUtil);
|
||||
try {
|
||||
return service.applyStart(request, response, tx, sqlca, ReturnMapUtil);
|
||||
} catch (Exception e) {
|
||||
return ReturnMapUtil.rollback(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Path("/action/submit/risk/warning")
|
||||
@POST
|
||||
public Map<String, Object> riskWarning(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca) throws Exception {
|
||||
ReturnMapUtil ReturnMapUtil = new ReturnMapUtil(tx, sqlca);
|
||||
ARE.getLog().info(
|
||||
"[CONTROLLER] BusinessApplyStartController run .................");
|
||||
ARE.getLog().info("[Path] /apply/action/submit/risk/warning" + " run .................");
|
||||
BusinessApplyStartService service = new BusinessApplyStartServiceImpl();
|
||||
try {
|
||||
return service.riskWarning(request, response, tx, sqlca, ReturnMapUtil);
|
||||
} catch (Exception e) {
|
||||
return ReturnMapUtil.rollback(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,6 +31,10 @@ public class ContractInformationSupplementController {
|
||||
+ " run .................");
|
||||
|
||||
ContractInformationSupplementService service = new ContractInformationSupplementServiceImpl();
|
||||
return service.applyStart(request, response, tx, sqlca, ReturnMapUtil);
|
||||
try {
|
||||
return service.applyStart(request, response, tx, sqlca, ReturnMapUtil);
|
||||
} catch (Exception e) {
|
||||
return ReturnMapUtil.rollback(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,4 +14,8 @@ public interface BusinessApplyStartService {
|
||||
Map<String, Object> applyStart(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca, ReturnMapUtil ReturnMapUtil) throws Exception;
|
||||
|
||||
Map<String, Object> riskWarning(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca, ReturnMapUtil ReturnMapUtil) throws Exception;
|
||||
}
|
||||
|
||||
@ -34,6 +34,7 @@ public class BusinessApplyStartServiceImpl implements BusinessApplyStartService
|
||||
fieldMap = (Map<String, Object>) testMap.get("fieldMap");
|
||||
fileList = (List<Map<String, Object>>) testMap.get("fileList");
|
||||
BusinessBO bo = new BusinessBO(fieldMap, tx);
|
||||
bo.businessAppStart(tx);
|
||||
tx.commit();
|
||||
String sReturnInfo = bo.getMsg();
|
||||
if (sReturnInfo.startsWith("success")) {
|
||||
@ -61,15 +62,15 @@ public class BusinessApplyStartServiceImpl implements BusinessApplyStartService
|
||||
BusinessDocUploadServiceImpl service = new BusinessDocUploadServiceImpl();
|
||||
service.setFieldMap(fieldMap);
|
||||
service.setFileList(fileList);
|
||||
service.upload(null, null, tx, sqlca, null);
|
||||
service.upload(null, null, tx, sqlca, ReturnMapUtil);
|
||||
}
|
||||
// 返回前台的数据
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
body.put("flowUnid", params.get("FlowUnid"));
|
||||
body.put("objectNo", params.get("FlowUnid"));
|
||||
body.put("projectId", params.get("ProjectId"));
|
||||
body.put("taskNo", serialNo);
|
||||
body.put("serialNo", serialNo);
|
||||
body.put("flowUnid", bo.getObjectNo());
|
||||
body.put("objectNo", bo.getObjectNo());
|
||||
body.put("projectId", bo.getProjectId());
|
||||
body.put("taskNo", bo.getSerialNo());
|
||||
body.put("serialNo", bo.getSerialNo());
|
||||
ReturnMapUtil.setReturnMap(body,
|
||||
RestfullConstant.baseProperty.get("success").toString(),
|
||||
"发起成功");
|
||||
@ -85,4 +86,24 @@ public class BusinessApplyStartServiceImpl implements BusinessApplyStartService
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Map<String, Object> riskWarning(HttpServletRequest request,
|
||||
HttpServletResponse response, JBOTransaction tx, Transaction sqlca,
|
||||
ReturnMapUtil ReturnMapUtil) throws Exception {
|
||||
Map<String, Object> testMap = (Map<String, Object>) MultipartDataUtil
|
||||
.readRequestParam(request, "UTF-8");
|
||||
fieldMap = (Map<String, Object>) testMap.get("fieldMap");
|
||||
fileList = (List<Map<String, Object>>) testMap.get("fileList");
|
||||
BusinessBO bo = new BusinessBO(fieldMap, tx);
|
||||
boolean flag = bo.checkDoc();
|
||||
|
||||
if(flag) {
|
||||
ReturnMapUtil.setReturnMap(null, RestfullConstant.baseProperty.get("success").toString(), "");
|
||||
} else {
|
||||
String msg = bo.getMsg();
|
||||
ReturnMapUtil.setReturnMap(null, RestfullConstant.baseProperty.get("fail").toString(), msg);
|
||||
}
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -847,7 +847,7 @@ public abstract class AbstractAweDoQueryManage extends AbstractAweDoHandler {
|
||||
if (sPageIndex == null)
|
||||
sPageIndex = "1";
|
||||
if (sLimit == null)
|
||||
sLimit = "10";
|
||||
sLimit = "1000";
|
||||
int iPageIndex, iLimit;
|
||||
iPageIndex = Integer.valueOf(sPageIndex);
|
||||
iLimit = Integer.valueOf(sLimit);
|
||||
|
||||
@ -50,11 +50,12 @@ public class CopyFundPaymentToTemp extends BaseBussiness{
|
||||
}
|
||||
}
|
||||
}
|
||||
if(fundList.length() > 0) {
|
||||
//安鹏贴息不抵扣
|
||||
/*if(fundList.length() > 0) {
|
||||
fundList += ",";
|
||||
}
|
||||
|
||||
fundList += "'feetype27'";
|
||||
fundList += "'feetype27'";*/
|
||||
|
||||
ASUser user = ASUser.getUser(userId, Sqlca);
|
||||
FundPaymentCar fp = new FundPaymentCar();
|
||||
|
||||
@ -20,7 +20,7 @@ public class LCFundPaymentTempInfoHandler extends CommonHandler {
|
||||
String productId = this.asPage.getParameter("ProductId");
|
||||
|
||||
//»ñÈ¡×ø¿ÛÏî
|
||||
Map<String, Map<String, String>> params = ProductParamUtil.getProductComponentType(productId, "PRD0315");
|
||||
Map<String, Map<String, String>> params = ProductParamUtil.getProductComponentType(productId, "PRD0315");
|
||||
List<String> deductFeeType = new ArrayList<String>();
|
||||
for(Entry<String, Map<String, String>> feeTypes : params.entrySet()) {
|
||||
if(!feeTypes.getValue().containsKey("isBalance")) {
|
||||
@ -45,12 +45,11 @@ public class LCFundPaymentTempInfoHandler extends CommonHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(fundList.length() > 0) {
|
||||
//安鹏贴息不抵扣
|
||||
/*if(fundList.length() > 0) {
|
||||
fundList += ",";
|
||||
}
|
||||
|
||||
fundList += "'feetype27'";
|
||||
fundList += "'feetype27'";*/
|
||||
|
||||
String flowunid = this.asPage.getParameter("ObjectNo");
|
||||
@SuppressWarnings("unchecked")
|
||||
@ -73,11 +72,11 @@ public class LCFundPaymentTempInfoHandler extends CommonHandler {
|
||||
bo.setAttributeValue("CAUTION_MONEY", factMoney);
|
||||
this.asDataObject.setVisible("CAUTION_MONEY", true);
|
||||
break;
|
||||
case "feetype27":
|
||||
/*case "feetype27":
|
||||
cleanLeaseMoney = cleanLeaseMoney.add(factMoney);
|
||||
bo.setAttributeValue("DEALER_DISCOUNT", factMoney);
|
||||
this.asDataObject.setVisible("DEALER_DISCOUNT", true);
|
||||
break;
|
||||
break;*/
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -9,6 +9,7 @@ import org.quartz.JobExecutionContext;
|
||||
import org.quartz.JobExecutionException;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.Configure;
|
||||
@ -20,24 +21,32 @@ public class AutoBuckle implements Job{
|
||||
@Override
|
||||
public void execute(JobExecutionContext arg0) throws JobExecutionException {
|
||||
CollectAuditInfoCache ca = new CollectAuditInfoCache();
|
||||
JBOTransaction tx;
|
||||
JBOTransaction tx = null;
|
||||
String plan_date = DateAssistant.getToday();
|
||||
try {
|
||||
tx = JBOFactory.createJBOTransaction();
|
||||
//and (O.rent<>'' or O.rent<>'0' or O.rent<>'0.0')
|
||||
List<BizObject> bos = JBOFactory.getBizObjectManager(VI_LC_AUDIT_RENT_PLAN.CLASS_NAME, tx).createQuery("O.COLLECT_STATUS IN ('δÊÕ¿î', '²¿·ÖÊÕ¿î') and O.PLAN_DATE <= '"+plan_date+"' and ( O.BATCH_STATUS<>'process' or o.BATCH_STATUS IS NULL ) ").getResultList(true);
|
||||
StringBuffer ids = new StringBuffer();
|
||||
for (BizObject bo : bos) {
|
||||
ids.append(bo.getAttribute("id").getString()+"@");
|
||||
if(bos.size()>0){
|
||||
for (BizObject bo : bos) {
|
||||
ids.append(bo.getAttribute("id").getString()+"@");
|
||||
}
|
||||
ca.setId(ids.toString().substring(0, ids.toString().length()-1));
|
||||
Configure CurConfig = Configure.getInstance();
|
||||
ca.setFileSavePath(CurConfig.getConfigure("InterfaceFileSavePath"));
|
||||
ca.setInputuserid("system");
|
||||
ca.setInputorgid("system");
|
||||
ca.batchCollectManage(tx);
|
||||
}
|
||||
ca.setId(ids.toString().substring(0, ids.toString().length()-1));
|
||||
Configure CurConfig = Configure.getInstance();
|
||||
ca.setFileSavePath(CurConfig.getConfigure("InterfaceFileSavePath"));
|
||||
ca.setInputuserid("system");
|
||||
ca.setInputorgid("system");
|
||||
ca.batchCollectManage(tx);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}finally{
|
||||
try {
|
||||
tx.commit();
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -9,6 +9,7 @@ import org.quartz.JobExecutionContext;
|
||||
import org.quartz.JobExecutionException;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.Configure;
|
||||
@ -20,23 +21,31 @@ public class AutoRefresh implements Job{
|
||||
@Override
|
||||
public void execute(JobExecutionContext arg0) throws JobExecutionException {
|
||||
CollectAuditInfoCache ca = new CollectAuditInfoCache();
|
||||
JBOTransaction tx;
|
||||
JBOTransaction tx = null;
|
||||
String plan_date = DateAssistant.getToday();
|
||||
try {
|
||||
tx = JBOFactory.createJBOTransaction();
|
||||
List<BizObject> bos = JBOFactory.getBizObjectManager(VI_LC_AUDIT_RENT_PLAN.CLASS_NAME, tx).createQuery("O.COLLECT_STATUS IN ('δÊÕ¿î', '²¿·ÖÊÕ¿î') and O.PLAN_DATE <= '"+plan_date+"'").getResultList(true);
|
||||
StringBuffer ids = new StringBuffer();
|
||||
for (BizObject bo : bos) {
|
||||
ids.append(bo.getAttribute("id").getString()+"@");
|
||||
if(bos.size()>0){
|
||||
for (BizObject bo : bos) {
|
||||
ids.append(bo.getAttribute("id").getString()+"@");
|
||||
}
|
||||
ca.setId(ids.toString().substring(0, ids.toString().length()-1));
|
||||
Configure CurConfig = Configure.getInstance();
|
||||
ca.setFileSavePath(CurConfig.getConfigure("InterfaceFileSavePath"));
|
||||
ca.setInputuserid("system");
|
||||
ca.setInputorgid("system");
|
||||
ca.queryBatchCollectStatus(tx);
|
||||
}
|
||||
ca.setId(ids.toString().substring(0, ids.toString().length()-1));
|
||||
Configure CurConfig = Configure.getInstance();
|
||||
ca.setFileSavePath(CurConfig.getConfigure("InterfaceFileSavePath"));
|
||||
ca.setInputuserid("system");
|
||||
ca.setInputorgid("system");
|
||||
ca.queryBatchCollectStatus(tx);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}finally{
|
||||
try {
|
||||
tx.commit();
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user