凭证相关--回款反冲等
This commit is contained in:
parent
05a99bb8e9
commit
e3e429874b
@ -0,0 +1,117 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.voucher.LV_VOUCHER_CONFIG;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.voucher.serviceImp.CreateVoucherServiceImpl;
|
||||
/**
|
||||
* 合同变更凭证取值
|
||||
* @author xiezhiwen
|
||||
*/
|
||||
public class CreateVoucherContractChangeForCarTradition {
|
||||
|
||||
public String CreateVoucher(String FlowUnid,String VOUCHERNO) throws Exception {
|
||||
Transaction Sqlca=null;
|
||||
Map<String,String> map=new HashMap<String, String>();
|
||||
Map<String,String> param=new HashMap<String, String>();
|
||||
Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource());
|
||||
String MONEY=null;
|
||||
String MONEYNOTAX=null;
|
||||
String MONEYTAX=null;
|
||||
String ACCOUNT_DATE=null;
|
||||
String FACT_DATE=null;
|
||||
String CONTRACT_ID=null;
|
||||
String CONTRACT_NUMBER=null;
|
||||
String PROJECT_NAME=null;
|
||||
String leas_form=null;
|
||||
String DISTRIBUTOR_ID=null;
|
||||
String DISTRIBUTOR_NAME=null;
|
||||
String CUSTID=null;
|
||||
String CUSTNAME=null;
|
||||
String CUSTOMERTYPE=null;
|
||||
String BUSINESSTYPE=null;
|
||||
String sql="";
|
||||
param.clear();
|
||||
map.put("FlowUnid", FlowUnid);
|
||||
// 未实现利息总额
|
||||
if("PZ2018100900000265".equals(VOUCHERNO)||"PZ2018100900000266".equals(VOUCHERNO)){
|
||||
sql="SELECT ROUND(LRPT.SUMINTE/getTax(LCI.LEAS_FORM,'租息',LCI.INPUTTIME),2) - ROUND(LRP.SUMINTE/getTax(LCI.LEAS_FORM,'租息',LCI.INPUTTIME),2) AS MONEY,0 AS MONEYNOTAX,0 AS MONEYTAX,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS FACT_DATE,LCI.ID AS CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE FROM LB_CONTRACT_INFO LCI INNER JOIN (SELECT MAX(CONTRACT_ID) CONTRACT_ID,SUM(INTEREST) SUMINTE,FLOWUNID FROM LC_RENT_PLAN_TEMP GROUP BY FLOWUNID) LRPT ON LRPT.CONTRACT_ID = LCI.ID INNER JOIN (SELECT CONTRACT_ID,SUM(INTEREST) SUMINTE FROM LC_RENT_PLAN GROUP BY CONTRACT_ID) LRP ON LRP.CONTRACT_ID = LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO = LCI.DISTRIBUTOR_ID LEFT JOIN lb_union_lessee lul ON lul.contract_id = lci.id LEFT JOIN customer_info cif ON cif.customerid = lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID WHERE LRPT.FLOWUNID = :FLOWUNID ";
|
||||
}
|
||||
// 未实现利息税金
|
||||
if("PZ2018100900000267".equals(VOUCHERNO)||"PZ2018100900000268".equals(VOUCHERNO)){
|
||||
sql="SELECT (LRPT.SUMINTE-ROUND(LRPT.SUMINTE/getTax(LCI.LEAS_FORM,'租息',LCI.INPUTTIME),2)) - (LRP.SUMINTE-ROUND(LRP.SUMINTE/getTax(LCI.LEAS_FORM,'租息',LCI.INPUTTIME),2)) AS MONEY,0 AS MONEYNOTAX,0 AS MONEYTAX,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS FACT_DATE,LCI.ID AS CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE FROM LB_CONTRACT_INFO LCI INNER JOIN (SELECT MAX(CONTRACT_ID) CONTRACT_ID,SUM(INTEREST) SUMINTE,FLOWUNID FROM LC_RENT_PLAN_TEMP GROUP BY FLOWUNID) LRPT ON LRPT.CONTRACT_ID = LCI.ID INNER JOIN (SELECT CONTRACT_ID,SUM(INTEREST) SUMINTE FROM LC_RENT_PLAN GROUP BY CONTRACT_ID) LRP ON LRP.CONTRACT_ID = LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO = LCI.DISTRIBUTOR_ID LEFT JOIN lb_union_lessee lul ON lul.contract_id = lci.id LEFT JOIN customer_info cif ON cif.customerid = lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID WHERE LRPT.FLOWUNID = :FLOWUNID ";
|
||||
}
|
||||
List<Map<String,String>> dataList=DataOperatorUtil.getDataBySql(Sqlca, sql, map);
|
||||
|
||||
CreateVoucherServiceImpl vs=new CreateVoucherServiceImpl();
|
||||
String VOUCHER_TYPE="1";// 凭证分类 金蝶
|
||||
String userid ="admin";
|
||||
for (int i=0;i<dataList.size();i++){
|
||||
MONEY=dataList.get(i).get("MONEY").toString();
|
||||
if("".equals(MONEY)||MONEY==null) MONEY="0.00";
|
||||
double mon=Double.parseDouble(MONEY);
|
||||
if(mon>0){
|
||||
MONEYNOTAX=dataList.get(i).get("MONEYNOTAX").toString();
|
||||
MONEYTAX=dataList.get(i).get("MONEYTAX").toString();
|
||||
ACCOUNT_DATE=dataList.get(i).get("ACCOUNT_DATE").toString();
|
||||
FACT_DATE =dataList.get(i).get("FACT_DATE").toString();
|
||||
CONTRACT_ID=dataList.get(i).get("CONTRACT_ID").toString();
|
||||
CONTRACT_NUMBER=dataList.get(i).get("CONTRACT_NUMBER").toString();
|
||||
PROJECT_NAME=dataList.get(i).get("PROJECT_NAME").toString();
|
||||
leas_form=dataList.get(i).get("LEAS_FORM").toString();
|
||||
DISTRIBUTOR_ID=dataList.get(i).get("DISTRIBUTOR_ID");
|
||||
DISTRIBUTOR_NAME=dataList.get(i).get("DISTRIBUTOR_NAME");
|
||||
CUSTID=dataList.get(i).get("CUSTOMERID");
|
||||
CUSTNAME=dataList.get(i).get("CUSTOMERNAME");
|
||||
CUSTOMERTYPE=dataList.get(i).get("CUSTOMERTYPE");
|
||||
BUSINESSTYPE=dataList.get(i).get("BUSINESSTYPE");
|
||||
|
||||
param.put("FACT_MONEY",MONEY);
|
||||
param.put("INTERESTNOTAX",MONEYNOTAX);
|
||||
param.put("TAX",MONEYTAX);
|
||||
param.put("ACCOUNT_DATE",ACCOUNT_DATE);
|
||||
param.put("FACT_DATE",FACT_DATE);
|
||||
param.put("CONTRACT_ID",CONTRACT_ID);
|
||||
param.put("CONTRACT_NUMBER",CONTRACT_NUMBER);
|
||||
param.put("PROJECT_NAME",PROJECT_NAME);
|
||||
param.put("LEAS_FORM",leas_form);
|
||||
param.put("DISTRIBUTOR_ID",DISTRIBUTOR_ID);
|
||||
param.put("DISTRIBUTOR_NAME",DISTRIBUTOR_NAME);
|
||||
param.put("CUSTID",CUSTID);
|
||||
param.put("CUSTNAME",CUSTNAME);
|
||||
param.put("CUSTOMERTYPE",CUSTOMERTYPE);
|
||||
param.put("BUSINESSTYPE",BUSINESSTYPE);
|
||||
if("3".equals(BUSINESSTYPE)){
|
||||
param.put("LEASFORMASSET", ""); // 融资租赁资产
|
||||
param.put("DEPT", "01"); // 部门
|
||||
param.put("LEASINCOMEFORM", "05");
|
||||
}
|
||||
param.put("FUNDTYPE", "01"); // 主营类型
|
||||
param.put("BUSINESSTYPE", "06");
|
||||
|
||||
param.put("FlowUnid", FlowUnid);
|
||||
map.clear();
|
||||
map.put("PROJ_TYPE", leas_form);
|
||||
map.put("VOUCHER_NO", VOUCHERNO);
|
||||
BizObject vouch=DataOperatorUtil.getSingleJBO(LV_VOUCHER_CONFIG.CLASS_NAME, map, Sqlca);
|
||||
|
||||
if(vouch!=null){
|
||||
vs.createVoucher(vouch.getAttribute("MODULAR_NUMBER").getString(), vouch.getAttribute("OWNED_COMPANY").getString(), leas_form, VOUCHER_TYPE, userid,param, Sqlca);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(Sqlca!=null){
|
||||
Sqlca.commit();
|
||||
}
|
||||
|
||||
String sMessage="true";
|
||||
return sMessage;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,118 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.voucher.LV_VOUCHER_CONFIG;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.voucher.serviceImp.CreateVoucherServiceImpl;
|
||||
/**
|
||||
* 合同变更凭证取值
|
||||
* @author xiezhiwen
|
||||
*/
|
||||
public class CreateVoucherContractChangeForTradition {
|
||||
|
||||
public String CreateVoucher(String FlowUnid,String VOUCHERNO) throws Exception {
|
||||
Transaction Sqlca=null;
|
||||
Map<String,String> map=new HashMap<String, String>();
|
||||
Map<String,String> param=new HashMap<String, String>();
|
||||
Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource());
|
||||
String MONEY=null;
|
||||
String MONEYNOTAX=null;
|
||||
String MONEYTAX=null;
|
||||
String ACCOUNT_DATE=null;
|
||||
String FACT_DATE=null;
|
||||
String CONTRACT_ID=null;
|
||||
String CONTRACT_NUMBER=null;
|
||||
String PROJECT_NAME=null;
|
||||
String leas_form=null;
|
||||
String DISTRIBUTOR_ID=null;
|
||||
String DISTRIBUTOR_NAME=null;
|
||||
String CUSTID=null;
|
||||
String CUSTNAME=null;
|
||||
String CUSTOMERTYPE=null;
|
||||
String BUSINESSTYPE=null;
|
||||
String sql="";
|
||||
param.clear();
|
||||
map.put("FlowUnid", FlowUnid);
|
||||
// 未实现利息总额
|
||||
if("PZ2018100900000269".equals(VOUCHERNO)||"PZ2018100900000270".equals(VOUCHERNO)){
|
||||
sql="SELECT ROUND(LRPT.SUMINTE/getTax(LCI.LEAS_FORM,'租息',LCI.INPUTTIME),2) - ROUND(LRP.SUMINTE/getTax(LCI.LEAS_FORM,'租息',LCI.INPUTTIME),2) AS MONEY,0 AS MONEYNOTAX,0 AS MONEYTAX,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS FACT_DATE,LCI.ID AS CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE FROM LB_CONTRACT_INFO LCI INNER JOIN (SELECT MAX(CONTRACT_ID) CONTRACT_ID,SUM(INTEREST) SUMINTE,FLOWUNID FROM LC_RENT_PLAN_TEMP GROUP BY FLOWUNID) LRPT ON LRPT.CONTRACT_ID = LCI.ID INNER JOIN (SELECT CONTRACT_ID,SUM(INTEREST) SUMINTE FROM LC_RENT_PLAN GROUP BY CONTRACT_ID) LRP ON LRP.CONTRACT_ID = LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO = LCI.DISTRIBUTOR_ID LEFT JOIN lb_union_lessee lul ON lul.contract_id = lci.id LEFT JOIN customer_info cif ON cif.customerid = lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID WHERE LRPT.FLOWUNID = :FLOWUNID ";
|
||||
}
|
||||
// 未实现利息税金
|
||||
if("PZ2018100900000271".equals(VOUCHERNO)||"PZ2018100900000272".equals(VOUCHERNO)){
|
||||
sql="SELECT (LRPT.SUMINTE-ROUND(LRPT.SUMINTE/getTax(LCI.LEAS_FORM,'租息',LCI.INPUTTIME),2)) - (LRP.SUMINTE-ROUND(LRP.SUMINTE/getTax(LCI.LEAS_FORM,'租息',LCI.INPUTTIME),2)) AS MONEY,0 AS MONEYNOTAX,0 AS MONEYTAX,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS FACT_DATE,LCI.ID AS CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE FROM LB_CONTRACT_INFO LCI INNER JOIN (SELECT MAX(CONTRACT_ID) CONTRACT_ID,SUM(INTEREST) SUMINTE,FLOWUNID FROM LC_RENT_PLAN_TEMP GROUP BY FLOWUNID) LRPT ON LRPT.CONTRACT_ID = LCI.ID INNER JOIN (SELECT CONTRACT_ID,SUM(INTEREST) SUMINTE FROM LC_RENT_PLAN GROUP BY CONTRACT_ID) LRP ON LRP.CONTRACT_ID = LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO = LCI.DISTRIBUTOR_ID LEFT JOIN lb_union_lessee lul ON lul.contract_id = lci.id LEFT JOIN customer_info cif ON cif.customerid = lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID WHERE LRPT.FLOWUNID = :FLOWUNID ";
|
||||
}
|
||||
List<Map<String,String>> dataList=DataOperatorUtil.getDataBySql(Sqlca, sql, map);
|
||||
|
||||
CreateVoucherServiceImpl vs=new CreateVoucherServiceImpl();
|
||||
String VOUCHER_TYPE="1";// 凭证分类 金蝶
|
||||
String userid ="admin";
|
||||
for (int i=0;i<dataList.size();i++){
|
||||
MONEY=dataList.get(i).get("MONEY").toString();
|
||||
if("".equals(MONEY)||MONEY==null) MONEY="0.00";
|
||||
double mon=Double.parseDouble(MONEY);
|
||||
if(mon>0){
|
||||
MONEYNOTAX=dataList.get(i).get("MONEYNOTAX").toString();
|
||||
MONEYTAX=dataList.get(i).get("MONEYTAX").toString();
|
||||
ACCOUNT_DATE=dataList.get(i).get("ACCOUNT_DATE").toString();
|
||||
FACT_DATE =dataList.get(i).get("FACT_DATE").toString();
|
||||
CONTRACT_ID=dataList.get(i).get("CONTRACT_ID").toString();
|
||||
CONTRACT_NUMBER=dataList.get(i).get("CONTRACT_NUMBER").toString();
|
||||
PROJECT_NAME=dataList.get(i).get("PROJECT_NAME").toString();
|
||||
leas_form=dataList.get(i).get("LEAS_FORM").toString();
|
||||
DISTRIBUTOR_ID=dataList.get(i).get("DISTRIBUTOR_ID");
|
||||
DISTRIBUTOR_NAME=dataList.get(i).get("DISTRIBUTOR_NAME");
|
||||
CUSTID=dataList.get(i).get("CUSTOMERID");
|
||||
CUSTNAME=dataList.get(i).get("CUSTOMERNAME");
|
||||
CUSTOMERTYPE=dataList.get(i).get("CUSTOMERTYPE");
|
||||
BUSINESSTYPE=dataList.get(i).get("BUSINESSTYPE");
|
||||
|
||||
param.put("FACT_MONEY",MONEY);
|
||||
param.put("INTERESTNOTAX",MONEYNOTAX);
|
||||
param.put("TAX",MONEYTAX);
|
||||
param.put("ACCOUNT_DATE",ACCOUNT_DATE);
|
||||
param.put("FACT_DATE",FACT_DATE);
|
||||
param.put("CONTRACT_ID",CONTRACT_ID);
|
||||
param.put("CONTRACT_NUMBER",CONTRACT_NUMBER);
|
||||
param.put("PROJECT_NAME",PROJECT_NAME);
|
||||
param.put("LEAS_FORM",leas_form);
|
||||
param.put("DISTRIBUTOR_ID",DISTRIBUTOR_ID);
|
||||
param.put("DISTRIBUTOR_NAME",DISTRIBUTOR_NAME);
|
||||
param.put("CUSTID",CUSTID);
|
||||
param.put("CUSTNAME",CUSTNAME);
|
||||
param.put("CUSTOMERTYPE",CUSTOMERTYPE);
|
||||
param.put("BUSINESSTYPE",BUSINESSTYPE);
|
||||
|
||||
if("2".equals(BUSINESSTYPE)){
|
||||
param.put("LEASFORMASSET", ""); // 融资租赁资产
|
||||
param.put("DEPT", "01"); // 部门
|
||||
param.put("LEASINCOMEFORM", "06");
|
||||
}
|
||||
param.put("FUNDTYPE", "01"); // 主营类型
|
||||
param.put("BUSINESSTYPE", "06");
|
||||
|
||||
param.put("FlowUnid", FlowUnid);
|
||||
map.clear();
|
||||
map.put("PROJ_TYPE", leas_form);
|
||||
map.put("VOUCHER_NO", VOUCHERNO);
|
||||
BizObject vouch=DataOperatorUtil.getSingleJBO(LV_VOUCHER_CONFIG.CLASS_NAME, map, Sqlca);
|
||||
|
||||
if(vouch!=null){
|
||||
vs.createVoucher(vouch.getAttribute("MODULAR_NUMBER").getString(), vouch.getAttribute("OWNED_COMPANY").getString(), leas_form, VOUCHER_TYPE, userid,param, Sqlca);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(Sqlca!=null){
|
||||
Sqlca.commit();
|
||||
}
|
||||
|
||||
String sMessage="true";
|
||||
return sMessage;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,144 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.quartz.Job;
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.quartz.JobExecutionException;
|
||||
|
||||
import jbo.voucher.LV_VOUCHER_CONFIG;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.voucher.serviceImp.CreateVoucherServiceImpl;
|
||||
|
||||
public class CreateVoucherInsuranceForCarTradition{
|
||||
public void CreateVoucher(String voucherNo) {
|
||||
Transaction Sqlca =null;
|
||||
try{
|
||||
Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource());
|
||||
Map<String,String> map=new HashMap<String, String>();
|
||||
Map<String,String> param=new HashMap<String, String>();
|
||||
|
||||
String MONEY=null;
|
||||
String MONEYNOTAX=null;
|
||||
String MONEYTAX=null;
|
||||
String RENTMONEY=null;
|
||||
String ACCOUNT_DATE=null;
|
||||
String FACT_DATE=null;
|
||||
String CONTRACT_ID=null;
|
||||
String CONTRACT_NUMBER=null;
|
||||
String PROJECT_NAME=null;
|
||||
String leas_form=null;
|
||||
String DISTRIBUTOR_ID=null;
|
||||
String DISTRIBUTOR_NAME=null;
|
||||
String CARID=null;
|
||||
String CARMODEL=null;
|
||||
String CUSTID=null;
|
||||
String CUSTNAME=null;
|
||||
String CUSTOMERTYPE=null;
|
||||
String BUSINESSTYPE=null;
|
||||
param.clear();
|
||||
String sql="";
|
||||
String moneyType="MONEY";
|
||||
|
||||
// 汽车类传统
|
||||
if("PZ2018092500000221".equals(voucherNo) || "PZ2018100900000273".equals(voucherNo)) {
|
||||
sql="SELECT lic.claims_money AS MONEY,'0' AS MONEYNOTAX,'0' AS MONEYTAX,'0' AS RENTMONEY,DATE_FORMAT(claims_start_date,'%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(claims_start_date,'%Y/%m/%d') AS FACT_DATE,lii.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,LEC.ID AS CARID,LEC.MODEL,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE FROM LB_INSURANCE_CLAIM lic inner join LB_INSURANCE_INFO lii on lic.INSURANCE_ID=lii.INSURANCE_ID LEFT JOIN LB_CONTRACT_INFO LCI ON lii.CONTRACT_ID=LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO=LCI.DISTRIBUTOR_ID LEFT JOIN LB_EQUIPMENT_CAR LEC ON LEC.CONTRACT_ID=LCI.ID LEFT JOIN lb_union_lessee lul ON lul.contract_id=lci.id LEFT JOIN customer_info cif ON cif.customerid=lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID WHERE LCI.BUSINESSTYPE = '3' AND DATE_FORMAT(lic.inputtime,'%Y/%m/%d')=DATE_FORMAT(SYSDATE(),'%Y/%m/%d')";
|
||||
}else {//传统
|
||||
sql="SELECT lic.claims_money AS MONEY,'0' AS MONEYNOTAX,'0' AS MONEYTAX,'0' AS RENTMONEY,DATE_FORMAT(claims_start_date,'%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(claims_start_date,'%Y/%m/%d') AS FACT_DATE,lii.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,LEC.ID AS CARID,LEC.MODEL,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE FROM LB_INSURANCE_CLAIM lic inner join LB_INSURANCE_INFO lii on lic.INSURANCE_ID=lii.INSURANCE_ID LEFT JOIN LB_CONTRACT_INFO LCI ON lii.CONTRACT_ID=LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO=LCI.DISTRIBUTOR_ID LEFT JOIN LB_EQUIPMENT_CAR LEC ON LEC.CONTRACT_ID=LCI.ID LEFT JOIN lb_union_lessee lul ON lul.contract_id=lci.id LEFT JOIN customer_info cif ON cif.customerid=lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID WHERE LCI.BUSINESSTYPE = '2' AND DATE_FORMAT(lic.inputtime,'%Y/%m/%d')=DATE_FORMAT(SYSDATE(),'%Y/%m/%d')";
|
||||
}
|
||||
|
||||
List<Map<String,String>> dataList=DataOperatorUtil.getDataBySql(Sqlca, sql, map);
|
||||
|
||||
CreateVoucherServiceImpl vs=new CreateVoucherServiceImpl();
|
||||
String VOUCHER_TYPE="1";// 凭证分类 金蝶
|
||||
String userid ="admin";
|
||||
for (int i=0;i<dataList.size();i++){
|
||||
MONEY=dataList.get(i).get(moneyType).toString();
|
||||
if("".equals(MONEY)||MONEY==null) MONEY="0.00";
|
||||
double mon=Double.parseDouble(MONEY);
|
||||
if(Math.abs(mon)>0){
|
||||
MONEYNOTAX=dataList.get(i).get("MONEYNOTAX").toString();
|
||||
MONEYTAX=dataList.get(i).get("MONEYTAX").toString();
|
||||
RENTMONEY=dataList.get(i).get("RENTMONEY").toString();
|
||||
ACCOUNT_DATE=dataList.get(i).get("ACCOUNT_DATE").toString();
|
||||
FACT_DATE =dataList.get(i).get("FACT_DATE").toString();
|
||||
CONTRACT_ID=dataList.get(i).get("CONTRACT_ID").toString();
|
||||
CONTRACT_NUMBER=dataList.get(i).get("CONTRACT_NUMBER").toString();
|
||||
PROJECT_NAME=dataList.get(i).get("PROJECT_NAME").toString();
|
||||
leas_form=dataList.get(i).get("LEAS_FORM").toString();
|
||||
DISTRIBUTOR_ID=dataList.get(i).get("DISTRIBUTOR_ID");
|
||||
DISTRIBUTOR_NAME=dataList.get(i).get("DISTRIBUTOR_NAME");
|
||||
CARID=dataList.get(i).get("CARID");
|
||||
CARMODEL=dataList.get(i).get("MODEL");
|
||||
CUSTID=dataList.get(i).get("CUSTOMERID");
|
||||
CUSTNAME=dataList.get(i).get("CUSTOMERNAME");
|
||||
CUSTOMERTYPE=dataList.get(i).get("CUSTOMERTYPE");
|
||||
BUSINESSTYPE=dataList.get(i).get("BUSINESSTYPE");
|
||||
|
||||
param.put("FACT_MONEY",MONEY);
|
||||
param.put("INTERESTNOTAX",MONEYNOTAX);
|
||||
param.put("TAX",MONEYTAX);
|
||||
param.put("RENTMONEY",RENTMONEY);
|
||||
param.put("ACCOUNT_DATE",ACCOUNT_DATE);
|
||||
param.put("FACT_DATE",FACT_DATE);
|
||||
param.put("CONTRACT_ID",CONTRACT_ID);
|
||||
param.put("CONTRACT_NUMBER",CONTRACT_NUMBER);
|
||||
param.put("PROJECT_NAME",PROJECT_NAME);
|
||||
param.put("LEAS_FORM",leas_form);
|
||||
param.put("DISTRIBUTOR_ID",DISTRIBUTOR_ID);
|
||||
param.put("DISTRIBUTOR_NAME",DISTRIBUTOR_NAME);
|
||||
param.put("CARID",CARID);
|
||||
param.put("CARMODEL",CARMODEL);
|
||||
param.put("CUSTID",CUSTID);
|
||||
param.put("CUSTNAME",CUSTNAME);
|
||||
param.put("CUSTOMERTYPE",CUSTOMERTYPE);
|
||||
param.put("BUSINESSTYPE",BUSINESSTYPE);
|
||||
|
||||
// 汽车类传统
|
||||
if("3".equals(BUSINESSTYPE)){
|
||||
param.put("LEASFORMASSET", "");
|
||||
param.put("DEPT", "01");
|
||||
param.put("LEASINCOMEFORM", "05");
|
||||
}else if("2".equals(BUSINESSTYPE)){// 传统
|
||||
param.put("LEASFORMASSET", "");
|
||||
param.put("DEPT", "01");
|
||||
param.put("LEASINCOMEFORM", "06");
|
||||
}
|
||||
|
||||
param.put("FUNDTYPE", "02"); // 主营类型
|
||||
param.put("BUSINESSTYPE", "06");
|
||||
|
||||
map.clear();
|
||||
map.put("PROJ_TYPE", leas_form);
|
||||
map.put("VOUCHER_NO",voucherNo);
|
||||
BizObject vouch=DataOperatorUtil.getSingleJBO(LV_VOUCHER_CONFIG.CLASS_NAME, map, Sqlca);
|
||||
|
||||
if(vouch!=null){
|
||||
vs.createVoucher(vouch.getAttribute("MODULAR_NUMBER").getString(), vouch.getAttribute("OWNED_COMPANY").getString(), leas_form, VOUCHER_TYPE, userid,param, Sqlca);
|
||||
}
|
||||
}
|
||||
if(Sqlca!=null){
|
||||
Sqlca.commit();
|
||||
}}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}finally{
|
||||
if(Sqlca!=null){
|
||||
try {
|
||||
Sqlca.disConnect();
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
Sqlca = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -60,7 +60,7 @@ public class CreateVoucherInsuranceSettlement{
|
||||
MONEY=dataList.get(i).get(moneyType).toString();
|
||||
if("".equals(MONEY)||MONEY==null) MONEY="0.00";
|
||||
double mon=Double.parseDouble(MONEY);
|
||||
if(mon>0){
|
||||
if(Math.abs(mon)>0){
|
||||
MONEYNOTAX=dataList.get(i).get("MONEYNOTAX").toString();
|
||||
MONEYTAX=dataList.get(i).get("MONEYTAX").toString();
|
||||
RENTMONEY=dataList.get(i).get("RENTMONEY").toString();
|
||||
|
||||
@ -0,0 +1,26 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess.CreateVoucherMethodSettle;
|
||||
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherContractChangeForCarTradition;
|
||||
/**
|
||||
* 汽车类传统合同变更生成凭证
|
||||
* @author xiezhiwen
|
||||
*/
|
||||
public class ContractOnhireChangeForCarTradition extends BaseBussiness {
|
||||
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String FlowUnid=this.getAttribute("FlowUnid").toString();
|
||||
|
||||
CreateVoucherContractChangeForCarTradition cvco=new CreateVoucherContractChangeForCarTradition();
|
||||
cvco.CreateVoucher(FlowUnid, "PZ2018100900000265"); //合同变更-调整未实现利息收入--回租
|
||||
cvco.CreateVoucher(FlowUnid, "PZ2018100900000266"); //合同变更-调整未实现利息收入--直租
|
||||
|
||||
cvco.CreateVoucher(FlowUnid, "PZ2018100900000267"); //合同变更-调整利息的税--回租
|
||||
cvco.CreateVoucher(FlowUnid, "PZ2018100900000268"); //合同变更-调整利息的税--直租
|
||||
return "true";
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess.CreateVoucherMethodSettle;
|
||||
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherContractChangeForTradition;
|
||||
/**
|
||||
* 传统合同变更生成凭证
|
||||
* @author xiezhiwen
|
||||
*/
|
||||
public class ContractOnhireChangeForTradition extends BaseBussiness {
|
||||
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String FlowUnid=this.getAttribute("FlowUnid").toString();
|
||||
|
||||
CreateVoucherContractChangeForTradition cvco=new CreateVoucherContractChangeForTradition();
|
||||
|
||||
cvco.CreateVoucher(FlowUnid, "PZ2018100900000269"); //合同变更-调整未实现利息收入--回租
|
||||
cvco.CreateVoucher(FlowUnid, "PZ2018100900000270"); //合同变更-调整未实现利息收入--直租
|
||||
|
||||
cvco.CreateVoucher(FlowUnid, "PZ2018100900000271"); //合同变更-调整利息的税--回租
|
||||
cvco.CreateVoucher(FlowUnid, "PZ2018100900000272"); //合同变更-调整利息的税--直租
|
||||
|
||||
return "true";
|
||||
}
|
||||
|
||||
}
|
||||
@ -14,7 +14,6 @@ public class ContractOnhireVoucherTradition extends BaseBussiness {
|
||||
String FlowUnid=this.getAttribute("FlowUnid").toString();
|
||||
CreateVoucherOnhireTradition cvot=new CreateVoucherOnhireTradition();
|
||||
// 传统
|
||||
System.out.println(0/0);
|
||||
cvot.CreateVoucher(FlowUnid, "PZ2018092500000170"); //客户支付的应收账款总金额 --回租
|
||||
cvot.CreateVoucher(FlowUnid, "PZ2018092800000247"); //客户支付的应收账款总金额 --直租
|
||||
// 汽车类传统
|
||||
|
||||
@ -0,0 +1,47 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess.CreateVoucherMethodSettle;
|
||||
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherRedDashedIncomeCarTradition;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherRedRentIncome;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherRedRentIncomeCarTradition;
|
||||
/**
|
||||
* 汽车类传统红冲凭证
|
||||
* @author xiezhiwen
|
||||
*/
|
||||
public class RedIncomeVoucherForCarTradition extends BaseBussiness {
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
|
||||
String FlowUnid=this.getAttribute("FlowUnid").toString();
|
||||
|
||||
CreateVoucherRedDashedIncomeCarTradition cvrdit=new CreateVoucherRedDashedIncomeCarTradition();
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018092500000207", "feetype2");// 收到客户记录保证金--回租
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018100900000249", "feetype2");// 收到客户记录保证金--直租
|
||||
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018092500000208", "feetype1");// 收到客户手续费--回租
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018100900000250", "feetype1");// 收到客户手续费--直租
|
||||
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018092500000209", "feetype5");// 收到客户预付款(首付)--回租
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018100900000251", "feetype5");// 收到客户预付款(首付)--直租
|
||||
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018092500000210", "feetype24");// 记录GPS安装服务费(不参融)--回租
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018100900000252", "feetype24");// 记录GPS安装服务费(不参融)--直租
|
||||
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018092500000213", "feetype30");// 收到的违约金/罚款--回租
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018100900000256", "feetype30");// 收到的违约金/罚款--直租
|
||||
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018092500000214", "feetype4");// 收到名义货价--回租
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018100900000255", "feetype4");// 收到名义货价--直租
|
||||
|
||||
CreateVoucherRedRentIncomeCarTradition cvrict=new CreateVoucherRedRentIncomeCarTradition();
|
||||
cvrict.CreateVoucher(FlowUnid, "PZ2018092500000211");//收到的租金--回租
|
||||
cvrict.CreateVoucher(FlowUnid, "PZ2018100900000253");//收到的租金--直租
|
||||
|
||||
cvrict.CreateVoucher(FlowUnid, "PZ2018092500000212");//收到逾期利息--回租
|
||||
cvrict.CreateVoucher(FlowUnid, "PZ2018100900000254");//收到逾期利息--直租
|
||||
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess.CreateVoucherMethodSettle;
|
||||
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherRedDashedIncomeCarTradition;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherRedDashedIncomeTradition;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherRedRentIncome;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherRedRentIncomeCarTradition;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherRedRentIncomeTradition;
|
||||
/**
|
||||
* 传统红冲凭证
|
||||
* @author xiezhiwen
|
||||
*/
|
||||
public class RedIncomeVoucherForTradition extends BaseBussiness {
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
|
||||
String FlowUnid=this.getAttribute("FlowUnid").toString();
|
||||
|
||||
CreateVoucherRedDashedIncomeTradition cvrdit=new CreateVoucherRedDashedIncomeTradition();
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018092500000175", "feetype2");// 收到客户记录保证金--回租
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018100900000257", "feetype2");// 收到客户记录保证金--直租
|
||||
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018092500000176", "feetype1");// 收到客户手续费--回租
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018100900000258", "feetype1");// 收到客户手续费--直租
|
||||
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018092500000177", "feetype5");// 收到客户预付款(首付)--回租
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018100900000259", "feetype5");// 收到客户预付款(首付)--直租
|
||||
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018092500000178", "feetype24");// 记录GPS安装服务费(不参融)--回租
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018100900000260", "feetype24");// 记录GPS安装服务费(不参融)--直租
|
||||
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018092500000181", "feetype30");// 收到的违约金/罚款--回租
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018100900000261", "feetype30");// 收到的违约金/罚款--直租
|
||||
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018092500000182", "feetype4");// 收到名义货价--回租
|
||||
cvrdit.CreateVoucher(FlowUnid, "PZ2018100900000262", "feetype4");// 收到名义货价--直租
|
||||
|
||||
CreateVoucherRedRentIncomeTradition cvrict=new CreateVoucherRedRentIncomeTradition();
|
||||
cvrict.CreateVoucher(FlowUnid, "PZ2018092500000179");//收到的租金--回租
|
||||
cvrict.CreateVoucher(FlowUnid, "PZ2018100900000263");//收到的租金--直租
|
||||
|
||||
cvrict.CreateVoucher(FlowUnid, "PZ2018092500000180");//收到逾期利息--回租
|
||||
cvrict.CreateVoucher(FlowUnid, "PZ2018100900000264");//收到逾期利息--直租
|
||||
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,145 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.voucher.LV_VOUCHER_CONFIG;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.voucher.serviceImp.CreateVoucherServiceImpl;
|
||||
/**
|
||||
* 汽车类传统红冲凭证
|
||||
* @author xiezhiwen
|
||||
*/
|
||||
public class CreateVoucherRedDashedIncomeCarTradition extends BaseBussiness {
|
||||
|
||||
public String CreateVoucher(String FlowUnid, String VOUCHERNO, String FeeType) throws Exception {
|
||||
|
||||
Transaction Sqlca = null;
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
Map<String, String> param = new HashMap<String, String>();
|
||||
Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource());
|
||||
|
||||
String MONEY = null;
|
||||
String MONEYNOTAX = null;
|
||||
String MONEYTAX = null;
|
||||
String ACCOUNT_DATE = null;
|
||||
String FACT_DATE = null;
|
||||
String CONTRACT_ID = null;
|
||||
String CONTRACT_NUMBER = null;
|
||||
String PROJECT_NAME = null;
|
||||
String LEAS_FORM = null;
|
||||
String DISTRIBUTOR_ID = null;
|
||||
String DISTRIBUTOR_NAME = null;
|
||||
String CUSTOMERID = null;
|
||||
String CUSTOMERNAME = null;
|
||||
String CUSTOMERTYPE = null;
|
||||
String BUSINESSTYPE = null;
|
||||
String ACC_NUMBER = null;
|
||||
String TaxType="";
|
||||
String sql = "";
|
||||
param.clear();
|
||||
map.put("FlowUnid", FlowUnid);
|
||||
map.put("FEE_TYPE", FeeType);
|
||||
|
||||
if("PZ2018092500000207".equals(VOUCHERNO) || "PZ2018100900000249".equals(VOUCHERNO) || "PZ2018092500000209".equals(VOUCHERNO) || "PZ2018100900000251".equals(VOUCHERNO)) {
|
||||
TaxType="本金";
|
||||
}else if("PZ2018092500000208".equals(VOUCHERNO) || "PZ2018100900000250".equals(VOUCHERNO)) {
|
||||
TaxType="手续费";
|
||||
}else if("PZ2018092500000210".equals(VOUCHERNO) || "PZ2018100900000252".equals(VOUCHERNO)) {
|
||||
TaxType="GPS";
|
||||
}else if("PZ2018092500000213".equals(VOUCHERNO) || "PZ2018100900000256".equals(VOUCHERNO)) {
|
||||
TaxType="违约金";
|
||||
}else if("PZ2018092500000214".equals(VOUCHERNO) || "PZ2018100900000255".equals(VOUCHERNO)) {
|
||||
TaxType="留购价";
|
||||
}
|
||||
|
||||
sql = "SELECT LFIT.FACT_MONEY AS MONEY,ROUND(LFIT.FACT_MONEY / getTax (LCI.LEAS_FORM,'"+TaxType+"',LCI.INPUTTIME),2) AS MONEYNOTAX,(LFIT.FACT_MONEY - ROUND(LFIT.FACT_MONEY / getTax (LCI.LEAS_FORM,'"+TaxType+"',LCI.INPUTTIME),2)) AS MONEYTAX,LFIT.ACCOUNTING_DATE AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS FACT_DATE,LFIT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,LFIT.ACC_NUMBER FROM LC_FUND_INCOME_TEMP LFIT LEFT JOIN LB_CONTRACT_INFO LCI ON LFIT.CONTRACT_ID = LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO = LCI.DISTRIBUTOR_ID LEFT JOIN LB_EQUIPMENT_CAR LEC ON LEC.CONTRACT_ID = LCI.ID LEFT JOIN lb_union_lessee lul ON lul.contract_id = lci.id LEFT JOIN customer_info cif ON cif.customerid = lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID LEFT JOIN LC_CALC_CONDITION LCCT ON LCCT.CONTRACT_ID = LCI.ID WHERE LCI.BUSINESSTYPE = '3' AND LFIT.FEE_TYPE = :FEE_TYPE AND LFIT.FLOWUNID = :FLOWUNID ";
|
||||
|
||||
// GPS不参融
|
||||
if("PZ2018092500000210".equals(VOUCHERNO) || "PZ2018100900000252".equals(VOUCHERNO)) {
|
||||
sql+=" AND LCCT.GPS_FEE_FINA='finatype01'";
|
||||
}
|
||||
// 查询sql, 将结果集封装到list集合中
|
||||
List<Map<String, String>> dataList = DataOperatorUtil.getDataBySql(Sqlca, sql, map);
|
||||
CreateVoucherServiceImpl vs = new CreateVoucherServiceImpl();
|
||||
String VOUCHER_TYPE = "1";// 凭证分类 金蝶
|
||||
String userid = "admin";
|
||||
//遍历获取结果集, 将结果写入map中
|
||||
for (int i = 0; i < dataList.size(); i++) {
|
||||
MONEY = dataList.get(i).get("MONEY").toString();
|
||||
if ("".equals(MONEY)||MONEY == null)MONEY = "0.00";
|
||||
double mon = Double.parseDouble(MONEY);
|
||||
// 判断有金额, 封装值到map中
|
||||
if (Math.abs(mon) > 0) {
|
||||
MONEYNOTAX = dataList.get(i).get("MONEYNOTAX").toString();
|
||||
MONEYTAX = dataList.get(i).get("MONEYTAX").toString();
|
||||
ACCOUNT_DATE = dataList.get(i).get("ACCOUNT_DATE").toString();
|
||||
FACT_DATE = dataList.get(i).get("FACT_DATE").toString();
|
||||
CONTRACT_ID = dataList.get(i).get("CONTRACT_ID").toString();
|
||||
CONTRACT_NUMBER = dataList.get(i).get("CONTRACT_NUMBER").toString();
|
||||
PROJECT_NAME = dataList.get(i).get("PROJECT_NAME").toString();
|
||||
LEAS_FORM = dataList.get(i).get("LEAS_FORM").toString();
|
||||
DISTRIBUTOR_ID = dataList.get(i).get("DISTRIBUTOR_ID");
|
||||
DISTRIBUTOR_NAME = dataList.get(i).get("DISTRIBUTOR_NAME");
|
||||
CUSTOMERID = dataList.get(i).get("CUSTOMERID");
|
||||
CUSTOMERNAME = dataList.get(i).get("CUSTOMERNAME");
|
||||
CUSTOMERTYPE = dataList.get(i).get("CUSTOMERTYPE");
|
||||
BUSINESSTYPE = dataList.get(i).get("BUSINESSTYPE");
|
||||
ACC_NUMBER = dataList.get(i).get("ACC_NUMBER");
|
||||
|
||||
param.put("FACT_MONEY", MONEY);
|
||||
param.put("INTERESTNOTAX", MONEYNOTAX);
|
||||
param.put("TAX", MONEYTAX);
|
||||
param.put("ACCOUNT_DATE", ACCOUNT_DATE);
|
||||
param.put("FACT_DATE", FACT_DATE);
|
||||
param.put("CONTRACT_ID", CONTRACT_ID);
|
||||
param.put("CONTRACT_NUMBER", CONTRACT_NUMBER);
|
||||
param.put("PROJECT_NAME", PROJECT_NAME);
|
||||
param.put("LEAS_FORM", LEAS_FORM);
|
||||
param.put("DISTRIBUTOR_ID", DISTRIBUTOR_ID);
|
||||
param.put("DISTRIBUTOR_NAME", DISTRIBUTOR_NAME);
|
||||
param.put("CUSTID", CUSTOMERID);
|
||||
param.put("CUSTNAME", CUSTOMERNAME);
|
||||
param.put("CUSTOMERTYPE", CUSTOMERTYPE);
|
||||
param.put("BUSINESSTYPE", BUSINESSTYPE);
|
||||
param.put("ACC_NUMBER", ACC_NUMBER);
|
||||
param.put("VOUCHERNO", VOUCHERNO);
|
||||
|
||||
// 定义辅助账信息
|
||||
// 融资租赁资产
|
||||
param.put("LEASFORMASSET", "04");
|
||||
// 业务一部
|
||||
param.put("DEPT", "01");
|
||||
// 汽车融资租赁收入
|
||||
param.put("LEASINCOMEFORM", "05");
|
||||
|
||||
// param.put("FUNDTYPE", ""); // 主营类型
|
||||
param.put("BUSINESSTYPE", "06");
|
||||
param.put("FlowUnid", FlowUnid);
|
||||
map.clear();
|
||||
map.put("PROJ_TYPE", LEAS_FORM);
|
||||
map.put("VOUCHER_NO", VOUCHERNO);
|
||||
// 根据map中的参数, 查询LV_VOUCHER_CONFIG表数据
|
||||
BizObject vouch = DataOperatorUtil.getSingleJBO(LV_VOUCHER_CONFIG.CLASS_NAME, map, Sqlca);
|
||||
// 如果结果不为空,
|
||||
if (vouch != null) {
|
||||
//将创建凭证的参数传入在下一层
|
||||
vs.createVoucher(vouch.getAttribute("MODULAR_NUMBER").getString(),vouch.getAttribute("OWNED_COMPANY").getString(), LEAS_FORM, VOUCHER_TYPE, userid, param,Sqlca);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Sqlca != null) {
|
||||
Sqlca.commit();
|
||||
}
|
||||
|
||||
String sMessage = "true";
|
||||
return sMessage;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,145 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.voucher.LV_VOUCHER_CONFIG;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.voucher.serviceImp.CreateVoucherServiceImpl;
|
||||
/**
|
||||
* 汽车类传统红冲凭证
|
||||
* @author xiezhiwen
|
||||
*/
|
||||
public class CreateVoucherRedDashedIncomeTradition extends BaseBussiness {
|
||||
|
||||
public String CreateVoucher(String FlowUnid, String VOUCHERNO, String FeeType) throws Exception {
|
||||
|
||||
Transaction Sqlca = null;
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
Map<String, String> param = new HashMap<String, String>();
|
||||
Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource());
|
||||
|
||||
String MONEY = null;
|
||||
String MONEYNOTAX = null;
|
||||
String MONEYTAX = null;
|
||||
String ACCOUNT_DATE = null;
|
||||
String FACT_DATE = null;
|
||||
String CONTRACT_ID = null;
|
||||
String CONTRACT_NUMBER = null;
|
||||
String PROJECT_NAME = null;
|
||||
String LEAS_FORM = null;
|
||||
String DISTRIBUTOR_ID = null;
|
||||
String DISTRIBUTOR_NAME = null;
|
||||
String CUSTOMERID = null;
|
||||
String CUSTOMERNAME = null;
|
||||
String CUSTOMERTYPE = null;
|
||||
String BUSINESSTYPE = null;
|
||||
String ACC_NUMBER = null;
|
||||
String TaxType="";
|
||||
String sql = "";
|
||||
param.clear();
|
||||
map.put("FlowUnid", FlowUnid);
|
||||
map.put("FEE_TYPE", FeeType);
|
||||
|
||||
if("PZ2018092500000175".equals(VOUCHERNO) || "PZ2018100900000257".equals(VOUCHERNO) || "PZ2018092500000177".equals(VOUCHERNO) || "PZ2018100900000259".equals(VOUCHERNO)) {
|
||||
TaxType="本金";
|
||||
}else if("PZ2018092500000176".equals(VOUCHERNO) || "PZ2018100900000258".equals(VOUCHERNO)) {
|
||||
TaxType="手续费";
|
||||
}else if("PZ2018092500000178".equals(VOUCHERNO) || "PZ2018100900000260".equals(VOUCHERNO)) {
|
||||
TaxType="GPS";
|
||||
}else if("PZ2018092500000181".equals(VOUCHERNO) || "PZ2018100900000261".equals(VOUCHERNO)) {
|
||||
TaxType="违约金";
|
||||
}else if("PZ2018092500000182".equals(VOUCHERNO) || "PZ2018100900000262".equals(VOUCHERNO)) {
|
||||
TaxType="留购价";
|
||||
}
|
||||
|
||||
sql = "SELECT LFIT.FACT_MONEY AS MONEY,ROUND(LFIT.FACT_MONEY / getTax (LCI.LEAS_FORM,'"+TaxType+"',LCI.INPUTTIME),2) AS MONEYNOTAX,(LFIT.FACT_MONEY - ROUND(LFIT.FACT_MONEY / getTax (LCI.LEAS_FORM,'"+TaxType+"',LCI.INPUTTIME),2)) AS MONEYTAX,LFIT.ACCOUNTING_DATE AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS FACT_DATE,LFIT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,LFIT.ACC_NUMBER FROM LC_FUND_INCOME_TEMP LFIT LEFT JOIN LB_CONTRACT_INFO LCI ON LFIT.CONTRACT_ID = LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO = LCI.DISTRIBUTOR_ID LEFT JOIN LB_EQUIPMENT_CAR LEC ON LEC.CONTRACT_ID = LCI.ID LEFT JOIN lb_union_lessee lul ON lul.contract_id = lci.id LEFT JOIN customer_info cif ON cif.customerid = lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID LEFT JOIN LC_CALC_CONDITION LCCT ON LCCT.CONTRACT_ID = LCI.ID WHERE LCI.BUSINESSTYPE = '3' AND LFIT.FEE_TYPE = :FEE_TYPE AND LFIT.FLOWUNID = :FLOWUNID ";
|
||||
|
||||
// GPS不参融
|
||||
if("PZ2018092500000178".equals(VOUCHERNO) || "PZ2018100900000260".equals(VOUCHERNO)) {
|
||||
sql+=" AND LCCT.GPS_FEE_FINA='finatype01'";
|
||||
}
|
||||
// 查询sql, 将结果集封装到list集合中
|
||||
List<Map<String, String>> dataList = DataOperatorUtil.getDataBySql(Sqlca, sql, map);
|
||||
CreateVoucherServiceImpl vs = new CreateVoucherServiceImpl();
|
||||
String VOUCHER_TYPE = "1";// 凭证分类 金蝶
|
||||
String userid = "admin";
|
||||
//遍历获取结果集, 将结果写入map中
|
||||
for (int i = 0; i < dataList.size(); i++) {
|
||||
MONEY = dataList.get(i).get("MONEY").toString();
|
||||
if ("".equals(MONEY)||MONEY == null)MONEY = "0.00";
|
||||
double mon = Double.parseDouble(MONEY);
|
||||
// 判断有金额, 封装值到map中
|
||||
if (Math.abs(mon) > 0) {
|
||||
MONEYNOTAX = dataList.get(i).get("MONEYNOTAX").toString();
|
||||
MONEYTAX = dataList.get(i).get("MONEYTAX").toString();
|
||||
ACCOUNT_DATE = dataList.get(i).get("ACCOUNT_DATE").toString();
|
||||
FACT_DATE = dataList.get(i).get("FACT_DATE").toString();
|
||||
CONTRACT_ID = dataList.get(i).get("CONTRACT_ID").toString();
|
||||
CONTRACT_NUMBER = dataList.get(i).get("CONTRACT_NUMBER").toString();
|
||||
PROJECT_NAME = dataList.get(i).get("PROJECT_NAME").toString();
|
||||
LEAS_FORM = dataList.get(i).get("LEAS_FORM").toString();
|
||||
DISTRIBUTOR_ID = dataList.get(i).get("DISTRIBUTOR_ID");
|
||||
DISTRIBUTOR_NAME = dataList.get(i).get("DISTRIBUTOR_NAME");
|
||||
CUSTOMERID = dataList.get(i).get("CUSTOMERID");
|
||||
CUSTOMERNAME = dataList.get(i).get("CUSTOMERNAME");
|
||||
CUSTOMERTYPE = dataList.get(i).get("CUSTOMERTYPE");
|
||||
BUSINESSTYPE = dataList.get(i).get("BUSINESSTYPE");
|
||||
ACC_NUMBER = dataList.get(i).get("ACC_NUMBER");
|
||||
|
||||
param.put("FACT_MONEY", MONEY);
|
||||
param.put("INTERESTNOTAX", MONEYNOTAX);
|
||||
param.put("TAX", MONEYTAX);
|
||||
param.put("ACCOUNT_DATE", ACCOUNT_DATE);
|
||||
param.put("FACT_DATE", FACT_DATE);
|
||||
param.put("CONTRACT_ID", CONTRACT_ID);
|
||||
param.put("CONTRACT_NUMBER", CONTRACT_NUMBER);
|
||||
param.put("PROJECT_NAME", PROJECT_NAME);
|
||||
param.put("LEAS_FORM", LEAS_FORM);
|
||||
param.put("DISTRIBUTOR_ID", DISTRIBUTOR_ID);
|
||||
param.put("DISTRIBUTOR_NAME", DISTRIBUTOR_NAME);
|
||||
param.put("CUSTID", CUSTOMERID);
|
||||
param.put("CUSTNAME", CUSTOMERNAME);
|
||||
param.put("CUSTOMERTYPE", CUSTOMERTYPE);
|
||||
param.put("BUSINESSTYPE", BUSINESSTYPE);
|
||||
param.put("ACC_NUMBER", ACC_NUMBER);
|
||||
param.put("VOUCHERNO", VOUCHERNO);
|
||||
|
||||
// 定义辅助账信息
|
||||
// 融资租赁资产
|
||||
param.put("LEASFORMASSET", "02/03/05/06");
|
||||
// 业务一部
|
||||
param.put("DEPT", "01");
|
||||
// 汽车融资租赁收入
|
||||
param.put("LEASINCOMEFORM", "06");
|
||||
|
||||
// param.put("FUNDTYPE", ""); // 主营类型
|
||||
param.put("BUSINESSTYPE", "06");
|
||||
param.put("FlowUnid", FlowUnid);
|
||||
map.clear();
|
||||
map.put("PROJ_TYPE", LEAS_FORM);
|
||||
map.put("VOUCHER_NO", VOUCHERNO);
|
||||
// 根据map中的参数, 查询LV_VOUCHER_CONFIG表数据
|
||||
BizObject vouch = DataOperatorUtil.getSingleJBO(LV_VOUCHER_CONFIG.CLASS_NAME, map, Sqlca);
|
||||
// 如果结果不为空,
|
||||
if (vouch != null) {
|
||||
//将创建凭证的参数传入在下一层
|
||||
vs.createVoucher(vouch.getAttribute("MODULAR_NUMBER").getString(),vouch.getAttribute("OWNED_COMPANY").getString(), LEAS_FORM, VOUCHER_TYPE, userid, param,Sqlca);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Sqlca != null) {
|
||||
Sqlca.commit();
|
||||
}
|
||||
|
||||
String sMessage = "true";
|
||||
return sMessage;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,144 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.voucher.LV_VOUCHER_CONFIG;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.voucher.serviceImp.CreateVoucherServiceImpl;
|
||||
|
||||
public class CreateVoucherRedRentIncomeCarTradition {
|
||||
|
||||
public void CreateVoucher(String FlowUnid,String VOUCHERNO){
|
||||
|
||||
Transaction Sqlca =null;
|
||||
try{
|
||||
Map<String,String> map=new HashMap<String, String>();
|
||||
Map<String,String> param=new HashMap<String, String>();
|
||||
Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource());
|
||||
String MONEY=null;
|
||||
String MONEYNOTAX=null;
|
||||
String MONEYTAX=null;
|
||||
String ACCOUNT_DATE=null;
|
||||
String FACT_DATE=null;
|
||||
String CONTRACT_ID=null;
|
||||
String CONTRACT_NUMBER=null;
|
||||
String PROJECT_NAME=null;
|
||||
String leas_form=null;
|
||||
String DISTRIBUTOR_ID=null;
|
||||
String DISTRIBUTOR_NAME=null;
|
||||
String CARID=null;
|
||||
String CARMODEL=null;
|
||||
String CUSTID=null;
|
||||
String CUSTNAME=null;
|
||||
String CUSTOMERTYPE=null;
|
||||
String BUSINESSTYPE=null;
|
||||
String ACC_NUM=null;
|
||||
String sql="";
|
||||
param.clear();
|
||||
map.clear();
|
||||
map.put("FLOWUNID", FlowUnid);
|
||||
|
||||
// 租金
|
||||
if("PZ2018092500000211".equals(VOUCHERNO)||"PZ2018100900000253".equals(VOUCHERNO)){
|
||||
sql= "SELECT LRIT.rent AS MONEY,0 AS MONEYNOTAX,0 AS MONEYTAX, DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS FACT_DATE,LrIT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,LrIT.FLOWUNID,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,LrIT.OWN_NUMBER FROM LC_rent_INCOME_temp LrIT LEFT JOIN LB_CONTRACT_INFO LCI ON LrIT.CONTRACT_ID=LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO=LCI.DISTRIBUTOR_ID LEFT JOIN LB_EQUIPMENT_CAR LEC ON LEC.CONTRACT_ID=LCI.ID LEFT JOIN lb_union_lessee lul ON lul.contract_id=lci.id LEFT JOIN customer_info cif ON cif.customerid=lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID WHERE LCI.BUSINESSTYPE = '3' AND LrIT.FLOWUNID=:FLOWUNID";
|
||||
}
|
||||
|
||||
// 逾期利息
|
||||
if("PZ2018092500000212".equals(VOUCHERNO)||"PZ2018100900000254".equals(VOUCHERNO)){
|
||||
sql= "SELECT LrIT.penalty AS MONEY,ROUND(LrIT.penalty/getTax(LCI.LEAS_FORM,'逾期利息',LCI.INPUTTIME),2) AS MONEYNOTAX,LrIT.penalty-ROUND(LrIT.penalty/getTax(LCI.LEAS_FORM,'租息',LCI.INPUTTIME),2) AS MONEYTAX,DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS FACT_DATE,LrIT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,LrIT.FLOWUNID,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,LrIT.OWN_NUMBER FROM LC_rent_INCOME_temp LrIT LEFT JOIN LB_CONTRACT_INFO LCI ON LrIT.CONTRACT_ID=LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO=LCI.DISTRIBUTOR_ID LEFT JOIN LB_EQUIPMENT_CAR LEC ON LEC.CONTRACT_ID=LCI.ID LEFT JOIN lb_union_lessee lul ON lul.contract_id=lci.id LEFT JOIN customer_info cif ON cif.customerid=lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID WHERE LCI.BUSINESSTYPE = '3' AND LrIT.FLOWUNID=:FLOWUNID";
|
||||
}
|
||||
|
||||
List<Map<String,String>> dataList=DataOperatorUtil.getDataBySql(Sqlca, sql, map);
|
||||
|
||||
CreateVoucherServiceImpl vs=new CreateVoucherServiceImpl();
|
||||
String VOUCHER_TYPE="1";// 凭证分类 金蝶
|
||||
String userid ="admin";
|
||||
for (int i=0;i<dataList.size();i++){
|
||||
MONEY=dataList.get(i).get("MONEY").toString();
|
||||
if("".equals(MONEY)||MONEY==null) MONEY="0.00";
|
||||
double mon=Double.parseDouble(MONEY);
|
||||
if(Math.abs(mon)>0){
|
||||
MONEYNOTAX=dataList.get(i).get("MONEYNOTAX").toString();
|
||||
MONEYTAX=dataList.get(i).get("MONEYTAX").toString();
|
||||
ACCOUNT_DATE=dataList.get(i).get("ACCOUNT_DATE").toString();
|
||||
FACT_DATE =dataList.get(i).get("FACT_DATE").toString();
|
||||
CONTRACT_ID=dataList.get(i).get("CONTRACT_ID").toString();
|
||||
CONTRACT_NUMBER=dataList.get(i).get("CONTRACT_NUMBER").toString();
|
||||
PROJECT_NAME=dataList.get(i).get("PROJECT_NAME").toString();
|
||||
leas_form=dataList.get(i).get("LEAS_FORM").toString();
|
||||
DISTRIBUTOR_ID=dataList.get(i).get("DISTRIBUTOR_ID");
|
||||
DISTRIBUTOR_NAME=dataList.get(i).get("DISTRIBUTOR_NAME");
|
||||
CARID=dataList.get(i).get("CARID");
|
||||
CARMODEL=dataList.get(i).get("MODEL");
|
||||
CUSTID=dataList.get(i).get("CUSTOMERID");
|
||||
CUSTNAME=dataList.get(i).get("CUSTOMERNAME");
|
||||
CUSTOMERTYPE=dataList.get(i).get("CUSTOMERTYPE");
|
||||
BUSINESSTYPE=dataList.get(i).get("BUSINESSTYPE");
|
||||
ACC_NUM=dataList.get(i).get("OWN_NUMBER");
|
||||
|
||||
param.put("FACT_MONEY",MONEY);
|
||||
param.put("INTERESTNOTAX",MONEYNOTAX);
|
||||
param.put("TAX",MONEYTAX);
|
||||
param.put("ACCOUNT_DATE",ACCOUNT_DATE);
|
||||
param.put("FACT_DATE",FACT_DATE);
|
||||
param.put("CONTRACT_ID",CONTRACT_ID);
|
||||
param.put("CONTRACT_NUMBER",CONTRACT_NUMBER);
|
||||
param.put("PROJECT_NAME",PROJECT_NAME);
|
||||
param.put("LEAS_FORM",leas_form);
|
||||
param.put("DISTRIBUTOR_ID",DISTRIBUTOR_ID);
|
||||
param.put("DISTRIBUTOR_NAME",DISTRIBUTOR_NAME);
|
||||
param.put("CARID",CARID);
|
||||
param.put("CARMODEL",CARMODEL);
|
||||
param.put("CUSTID",CUSTID);
|
||||
param.put("CUSTNAME",CUSTNAME);
|
||||
param.put("CUSTOMERTYPE",CUSTOMERTYPE);
|
||||
param.put("BUSINESSTYPE",BUSINESSTYPE);
|
||||
param.put("ACC_NUMBER",ACC_NUM);
|
||||
param.put("VOUCHERNO",VOUCHERNO);
|
||||
|
||||
// 定义辅助账信息
|
||||
// 融资租赁资产
|
||||
param.put("LEASFORMASSET", "04");
|
||||
// 业务一部
|
||||
param.put("DEPT", "01");
|
||||
// 汽车融资租赁收入
|
||||
param.put("LEASINCOMEFORM", "04");
|
||||
|
||||
//param.put("FUNDTYPE", ""); // 主营类型
|
||||
param.put("BUSINESSTYPE", "06");
|
||||
|
||||
map.clear();
|
||||
map.put("PROJ_TYPE", leas_form);
|
||||
map.put("VOUCHER_NO", VOUCHERNO);
|
||||
BizObject vouch=DataOperatorUtil.getSingleJBO(LV_VOUCHER_CONFIG.CLASS_NAME, map, Sqlca);
|
||||
|
||||
if(vouch!=null){
|
||||
vs.createVoucher(vouch.getAttribute("MODULAR_NUMBER").getString(), vouch.getAttribute("OWNED_COMPANY").getString(), leas_form, VOUCHER_TYPE, userid,param, Sqlca);
|
||||
}}
|
||||
}
|
||||
|
||||
if(Sqlca!=null){
|
||||
Sqlca.commit();
|
||||
}
|
||||
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}finally{
|
||||
if(Sqlca!=null){
|
||||
try {
|
||||
Sqlca.disConnect();
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
Sqlca = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,147 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.voucher.LV_VOUCHER_CONFIG;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.voucher.serviceImp.CreateVoucherServiceImpl;
|
||||
/**
|
||||
* 传统租金红冲
|
||||
* @author xiezhiwen
|
||||
*/
|
||||
public class CreateVoucherRedRentIncomeTradition {
|
||||
|
||||
public void CreateVoucher(String FlowUnid,String VOUCHERNO){
|
||||
|
||||
Transaction Sqlca =null;
|
||||
try{
|
||||
Map<String,String> map=new HashMap<String, String>();
|
||||
Map<String,String> param=new HashMap<String, String>();
|
||||
Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource());
|
||||
String MONEY=null;
|
||||
String MONEYNOTAX=null;
|
||||
String MONEYTAX=null;
|
||||
String ACCOUNT_DATE=null;
|
||||
String FACT_DATE=null;
|
||||
String CONTRACT_ID=null;
|
||||
String CONTRACT_NUMBER=null;
|
||||
String PROJECT_NAME=null;
|
||||
String leas_form=null;
|
||||
String DISTRIBUTOR_ID=null;
|
||||
String DISTRIBUTOR_NAME=null;
|
||||
String CARID=null;
|
||||
String CARMODEL=null;
|
||||
String CUSTID=null;
|
||||
String CUSTNAME=null;
|
||||
String CUSTOMERTYPE=null;
|
||||
String BUSINESSTYPE=null;
|
||||
String ACC_NUM=null;
|
||||
String sql="";
|
||||
param.clear();
|
||||
map.clear();
|
||||
map.put("FLOWUNID", FlowUnid);
|
||||
|
||||
// 租金
|
||||
if("PZ2018092500000179".equals(VOUCHERNO)||"PZ2018100900000263".equals(VOUCHERNO)){
|
||||
sql= "SELECT LRIT.rent AS MONEY,0 AS MONEYNOTAX,0 AS MONEYTAX, DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS FACT_DATE,LrIT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,LrIT.FLOWUNID,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,LrIT.OWN_NUMBER FROM LC_rent_INCOME_temp LrIT LEFT JOIN LB_CONTRACT_INFO LCI ON LrIT.CONTRACT_ID=LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO=LCI.DISTRIBUTOR_ID LEFT JOIN LB_EQUIPMENT_CAR LEC ON LEC.CONTRACT_ID=LCI.ID LEFT JOIN lb_union_lessee lul ON lul.contract_id=lci.id LEFT JOIN customer_info cif ON cif.customerid=lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID WHERE LCI.BUSINESSTYPE = '2' AND LrIT.FLOWUNID=:FLOWUNID";
|
||||
}
|
||||
|
||||
// 逾期利息
|
||||
if("PZ2018092500000180".equals(VOUCHERNO)||"PZ2018100900000264".equals(VOUCHERNO)){
|
||||
sql= "SELECT LrIT.penalty AS MONEY,ROUND(LrIT.penalty/getTax(LCI.LEAS_FORM,'逾期利息',LCI.INPUTTIME),2) AS MONEYNOTAX,LrIT.penalty-ROUND(LrIT.penalty/getTax(LCI.LEAS_FORM,'租息',LCI.INPUTTIME),2) AS MONEYTAX,DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS FACT_DATE,LrIT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,LrIT.FLOWUNID,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,LrIT.OWN_NUMBER FROM LC_rent_INCOME_temp LrIT LEFT JOIN LB_CONTRACT_INFO LCI ON LrIT.CONTRACT_ID=LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO=LCI.DISTRIBUTOR_ID LEFT JOIN LB_EQUIPMENT_CAR LEC ON LEC.CONTRACT_ID=LCI.ID LEFT JOIN lb_union_lessee lul ON lul.contract_id=lci.id LEFT JOIN customer_info cif ON cif.customerid=lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID WHERE LCI.BUSINESSTYPE = '2' AND LrIT.FLOWUNID=:FLOWUNID";
|
||||
}
|
||||
|
||||
List<Map<String,String>> dataList=DataOperatorUtil.getDataBySql(Sqlca, sql, map);
|
||||
|
||||
CreateVoucherServiceImpl vs=new CreateVoucherServiceImpl();
|
||||
String VOUCHER_TYPE="1";// 凭证分类 金蝶
|
||||
String userid ="admin";
|
||||
for (int i=0;i<dataList.size();i++){
|
||||
MONEY=dataList.get(i).get("MONEY").toString();
|
||||
if("".equals(MONEY)||MONEY==null) MONEY="0.00";
|
||||
double mon=Double.parseDouble(MONEY);
|
||||
if(Math.abs(mon)>0){
|
||||
MONEYNOTAX=dataList.get(i).get("MONEYNOTAX").toString();
|
||||
MONEYTAX=dataList.get(i).get("MONEYTAX").toString();
|
||||
ACCOUNT_DATE=dataList.get(i).get("ACCOUNT_DATE").toString();
|
||||
FACT_DATE =dataList.get(i).get("FACT_DATE").toString();
|
||||
CONTRACT_ID=dataList.get(i).get("CONTRACT_ID").toString();
|
||||
CONTRACT_NUMBER=dataList.get(i).get("CONTRACT_NUMBER").toString();
|
||||
PROJECT_NAME=dataList.get(i).get("PROJECT_NAME").toString();
|
||||
leas_form=dataList.get(i).get("LEAS_FORM").toString();
|
||||
DISTRIBUTOR_ID=dataList.get(i).get("DISTRIBUTOR_ID");
|
||||
DISTRIBUTOR_NAME=dataList.get(i).get("DISTRIBUTOR_NAME");
|
||||
CARID=dataList.get(i).get("CARID");
|
||||
CARMODEL=dataList.get(i).get("MODEL");
|
||||
CUSTID=dataList.get(i).get("CUSTOMERID");
|
||||
CUSTNAME=dataList.get(i).get("CUSTOMERNAME");
|
||||
CUSTOMERTYPE=dataList.get(i).get("CUSTOMERTYPE");
|
||||
BUSINESSTYPE=dataList.get(i).get("BUSINESSTYPE");
|
||||
ACC_NUM=dataList.get(i).get("OWN_NUMBER");
|
||||
|
||||
param.put("FACT_MONEY",MONEY);
|
||||
param.put("INTERESTNOTAX",MONEYNOTAX);
|
||||
param.put("TAX",MONEYTAX);
|
||||
param.put("ACCOUNT_DATE",ACCOUNT_DATE);
|
||||
param.put("FACT_DATE",FACT_DATE);
|
||||
param.put("CONTRACT_ID",CONTRACT_ID);
|
||||
param.put("CONTRACT_NUMBER",CONTRACT_NUMBER);
|
||||
param.put("PROJECT_NAME",PROJECT_NAME);
|
||||
param.put("LEAS_FORM",leas_form);
|
||||
param.put("DISTRIBUTOR_ID",DISTRIBUTOR_ID);
|
||||
param.put("DISTRIBUTOR_NAME",DISTRIBUTOR_NAME);
|
||||
param.put("CARID",CARID);
|
||||
param.put("CARMODEL",CARMODEL);
|
||||
param.put("CUSTID",CUSTID);
|
||||
param.put("CUSTNAME",CUSTNAME);
|
||||
param.put("CUSTOMERTYPE",CUSTOMERTYPE);
|
||||
param.put("BUSINESSTYPE",BUSINESSTYPE);
|
||||
param.put("ACC_NUMBER",ACC_NUM);
|
||||
param.put("VOUCHERNO",VOUCHERNO);
|
||||
|
||||
// 定义辅助账信息
|
||||
// 融资租赁资产
|
||||
param.put("LEASFORMASSET", "02/03/05/06");
|
||||
// 业务一部
|
||||
param.put("DEPT", "01");
|
||||
// 汽车融资租赁收入
|
||||
param.put("LEASINCOMEFORM", "06");
|
||||
|
||||
//param.put("FUNDTYPE", ""); // 主营类型
|
||||
param.put("BUSINESSTYPE", "06");
|
||||
|
||||
map.clear();
|
||||
map.put("PROJ_TYPE", leas_form);
|
||||
map.put("VOUCHER_NO", VOUCHERNO);
|
||||
BizObject vouch=DataOperatorUtil.getSingleJBO(LV_VOUCHER_CONFIG.CLASS_NAME, map, Sqlca);
|
||||
|
||||
if(vouch!=null){
|
||||
vs.createVoucher(vouch.getAttribute("MODULAR_NUMBER").getString(), vouch.getAttribute("OWNED_COMPANY").getString(), leas_form, VOUCHER_TYPE, userid,param, Sqlca);
|
||||
}}
|
||||
}
|
||||
|
||||
if(Sqlca!=null){
|
||||
Sqlca.commit();
|
||||
}
|
||||
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}finally{
|
||||
if(Sqlca!=null){
|
||||
try {
|
||||
Sqlca.disConnect();
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
Sqlca = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -309,21 +309,24 @@ public class CreateVoucherServiceImpl {
|
||||
if("PZ2018071000000006".equals(VOUCHERNO) || "PZ2018080300000071".equals(VOUCHERNO) || "PZ2018071100000010".equals(VOUCHERNO) || "PZ2018080300000074".equals(VOUCHERNO) || "PZ2018082600000151".equals(VOUCHERNO) || "PZ2018082600000152".equals(VOUCHERNO)) {
|
||||
subData.put("CUSTID",dataTemp.get("DISTRIBUTOR_ID"));//¾ÏúÉÌid
|
||||
subData.put("CUSTNAME",dataTemp.get("DISTRIBUTOR_NAME"));//¾ÏúÉÌÃû³Æ
|
||||
}else if("PZ2018082600000149".equals(VOUCHERNO) || "PZ2018082600000150".equals(VOUCHERNO) || "PZ2018070900000003".equals(VOUCHERNO) || "PZ2018080200000065".equals(VOUCHERNO)) {
|
||||
}else if("PZ2018082600000149".equals(VOUCHERNO) || "PZ2018082600000150".equals(VOUCHERNO) || "PZ2018070900000003".equals(VOUCHERNO) || "PZ2018080200000065".equals(VOUCHERNO) ) {
|
||||
subData.put("CUSTID",dataTemp.get("DISTRIBUTOR_ID"));//¾ÏúÉÌid
|
||||
subData.put("CUSTNAME",dataTemp.get("DISTRIBUTOR_NAME"));//¾ÏúÉÌÃû³Æ
|
||||
}else if("PZ2018072100000037".equals(VOUCHERNO)||"PZ2018080400000091".equals(VOUCHERNO) || "PZ2018072100000038".equals(VOUCHERNO) || "PZ2018080400000092".equals(VOUCHERNO)){
|
||||
subData.put("CUSTID","APZL00000000DC");//经销商id
|
||||
subData.put("CUSTNAME","业务系统待查客户");//经销商名称
|
||||
}else if("PZ2018092500000192".equals(VOUCHERNO)||"PZ2018092500000193".equals(VOUCHERNO) || "PZ2018092500000194".equals(VOUCHERNO) || "PZ2018092500000195".equals(VOUCHERNO) || "PZ2018092600000240".equals(VOUCHERNO)||"PZ2018092600000241".equals(VOUCHERNO) || "PZ2018092600000242".equals(VOUCHERNO) || "PZ2018092600000243".equals(VOUCHERNO)){
|
||||
subData.put("CUSTID","APZL00000000DC");//经销商id
|
||||
subData.put("CUSTNAME","业务系统待查客户");//经销商名称
|
||||
}else if("PZ2018092500000164".equals(VOUCHERNO)||"PZ2018092600000229".equals(VOUCHERNO) || "PZ2018092500000166".equals(VOUCHERNO) || "PZ2018092600000231".equals(VOUCHERNO)){
|
||||
subData.put("CUSTID","APZL00000000DC");//经销商id
|
||||
subData.put("CUSTNAME","业务系统待查客户");//经销商名称
|
||||
}else if("PZ2018092500000156".equals(VOUCHERNO)||"PZ2018092500000157".equals(VOUCHERNO) || "PZ2018092500000158".equals(VOUCHERNO) || "PZ2018092600000244".equals(VOUCHERNO)||"PZ2018092600000245".equals(VOUCHERNO) || "PZ2018092600000246".equals(VOUCHERNO)){
|
||||
subData.put("CUSTID","APZL00000000DC");//经销商id
|
||||
subData.put("CUSTNAME","业务系统待查客户");//经销商名称
|
||||
}else if("PZ2018072100000037".equals(VOUCHERNO)||"PZ2018080400000091".equals(VOUCHERNO) || "PZ2018072100000038".equals(VOUCHERNO) || "PZ2018080400000092".equals(VOUCHERNO) || "PZ2018092500000207".equals(VOUCHERNO) || "PZ2018100900000249".equals(VOUCHERNO) || "PZ2018092500000208".equals(VOUCHERNO) || "PZ2018100900000250".equals(VOUCHERNO)){
|
||||
subData.put("CUSTID","APZL00000000DC");//虚拟账户
|
||||
subData.put("CUSTNAME","业务系统待查客户");//虚拟账户
|
||||
}else if("PZ2018092500000192".equals(VOUCHERNO)||"PZ2018092500000193".equals(VOUCHERNO) || "PZ2018092500000194".equals(VOUCHERNO) || "PZ2018092500000195".equals(VOUCHERNO) || "PZ2018092600000240".equals(VOUCHERNO) || "PZ2018092600000241".equals(VOUCHERNO) || "PZ2018092600000242".equals(VOUCHERNO) || "PZ2018092600000243".equals(VOUCHERNO)){
|
||||
subData.put("CUSTID","APZL00000000DC");//虚拟账户
|
||||
subData.put("CUSTNAME","业务系统待查客户");//虚拟账户
|
||||
}else if("PZ2018092500000164".equals(VOUCHERNO)||"PZ2018092600000229".equals(VOUCHERNO) || "PZ2018092500000166".equals(VOUCHERNO) || "PZ2018092600000231".equals(VOUCHERNO) || "PZ2018092500000209".equals(VOUCHERNO) || "PZ2018100900000251".equals(VOUCHERNO) || "PZ2018092500000210".equals(VOUCHERNO) || "PZ2018100900000252".equals(VOUCHERNO)){
|
||||
subData.put("CUSTID","APZL00000000DC");//虚拟账户
|
||||
subData.put("CUSTNAME","业务系统待查客户");//虚拟账户
|
||||
}else if("PZ2018092500000156".equals(VOUCHERNO)||"PZ2018092500000157".equals(VOUCHERNO) || "PZ2018092500000158".equals(VOUCHERNO) || "PZ2018092600000244".equals(VOUCHERNO) || "PZ2018092600000245".equals(VOUCHERNO) || "PZ2018092600000246".equals(VOUCHERNO)){
|
||||
subData.put("CUSTID","APZL00000000DC");//虚拟账户
|
||||
subData.put("CUSTNAME","业务系统待查客户");//虚拟账户
|
||||
}else if("PZ2018092500000175".equals(VOUCHERNO)||"PZ2018100900000257".equals(VOUCHERNO) || "PZ2018092500000176".equals(VOUCHERNO) || "PZ2018100900000258".equals(VOUCHERNO) || "PZ2018092500000177".equals(VOUCHERNO) || "PZ2018100900000259".equals(VOUCHERNO) || "PZ2018092500000178".equals(VOUCHERNO) || "PZ2018100900000260".equals(VOUCHERNO)){
|
||||
subData.put("CUSTID","APZL00000000DC");//虚拟账户
|
||||
subData.put("CUSTNAME","业务系统待查客户");//虚拟账户
|
||||
}else {
|
||||
subData.put("CUSTID",dataTemp.get("CUSTID"));//¿ÍÉÌid
|
||||
subData.put("CUSTNAME",dataTemp.get("CUSTNAME"));//¿ÍÉÌÃû³Æ
|
||||
|
||||
@ -6,11 +6,15 @@ import org.quartz.JobExecutionException;
|
||||
|
||||
import com.amarsoft.are.util.StringFunction;
|
||||
import com.base.util.QuartzUtil;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherInsuranceForCarTradition;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherInsuranceSettlement;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherMonthSettlement;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherRentIncome;
|
||||
import com.tenwa.voucher.CreateVoucherProcess.InsertVoucherRentIncome;
|
||||
|
||||
/**
|
||||
* 保险理赔生成凭证
|
||||
* @author xiezhiwen
|
||||
*/
|
||||
public class CreateVoucherRentIncomeMission implements Job {
|
||||
|
||||
@Override
|
||||
@ -21,18 +25,23 @@ public class CreateVoucherRentIncomeMission implements Job {
|
||||
String curUserId = userId == null? "system" : userId.toString();
|
||||
|
||||
try{
|
||||
|
||||
InsertVoucherRentIncome ivri=new InsertVoucherRentIncome();
|
||||
ivri.execute();
|
||||
|
||||
CreateVoucherInsuranceSettlement cvis=new CreateVoucherInsuranceSettlement();
|
||||
/*cvis.CreateVoucher("PZ2018072100000029");//回款-- 收到理赔保险费 --回租
|
||||
cvis.CreateVoucher("PZ2018080400000086");//回款-- 收到理赔保险费 --直租*/
|
||||
|
||||
cvis.CreateVoucher("PZ2018072100000054");//保险理赔 -收到理赔保险费--回租
|
||||
cvis.CreateVoucher("PZ2018080200000064");//保险理赔 -记录理赔保险费--直租
|
||||
|
||||
//cvis.CreateVoucher("PZ2018080600000114");//理赔保险费冲抵逾期利息及逾期租金--直租
|
||||
// 汽车类传统
|
||||
CreateVoucherInsuranceForCarTradition cvift = new CreateVoucherInsuranceForCarTradition();
|
||||
cvift.CreateVoucher("PZ2018092500000221");//保险理赔 -收到理赔保险费--回租
|
||||
cvift.CreateVoucher("PZ2018100900000273");//保险理赔 -收到理赔保险费--直租
|
||||
|
||||
// 传统
|
||||
cvift.CreateVoucher("PZ2018092500000189");//保险理赔 -收到理赔保险费--回租
|
||||
cvift.CreateVoucher("PZ2018100900000274");//保险理赔 -收到理赔保险费--直租
|
||||
|
||||
QuartzUtil.insertLog(startime,"com.tenwa.comm.message.controller.BusinessCancelJob", "success", "成功", curUserId);
|
||||
} catch (Exception e) {
|
||||
QuartzUtil.insertLog(startime,"com.tenwa.comm.message.controller.BusinessCancelJob", "error", "失败", curUserId);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user