广发银行拉取网银流水
This commit is contained in:
parent
4f9e957bb8
commit
691f14613a
@ -3,21 +3,22 @@
|
||||
############################################################
|
||||
com.amarsoft.are.log.SimpleLog.level=all
|
||||
#handlers Can be com.amarsoft.are.log.impl.ConsoleHandler,com.amarsoft.are.log.impl.FileHandler
|
||||
com.amarsoft.are.log.SimpleLog.handlers=com.amarsoft.are.log.impl.ConsoleHandler,com.amarsoft.are.log.impl.FileHandler,com.amarsoft.are.log.impl.simple.WarnFileHandler
|
||||
#,com.amarsoft.are.log.impl.FileHandler,com.amarsoft.are.log.impl.simple.WarnFileHandler
|
||||
com.amarsoft.are.log.SimpleLog.handlers=com.amarsoft.are.log.impl.ConsoleHandler
|
||||
|
||||
com.amarsoft.are.log.impl.simple.WarnFileHandler.level = error;
|
||||
#com.amarsoft.are.log.impl.simple.WarnFileHandler.level = error;
|
||||
#
|
||||
#com.amarsoft.are.log.impl.simple.WarnFileHandler.pattern = /Users/lichaojie/apzl/tmp/log/a3web_warn_%g.log
|
||||
#
|
||||
#com.amarsoft.are.log.impl.simple.WarnFileHandler.limit = 1024000
|
||||
#
|
||||
#com.amarsoft.are.log.impl.FileHandler.level = info#com.amarsoft.are.log.impl.FileHandler.pattern = {$ARE.APP_HOME}/log/a3web_%D_%g.log
|
||||
#
|
||||
#com.amarsoft.are.log.impl.FileHandler.pattern = /Users/lichaojie/apzl/tmp/log/a3web_%D_%g.log
|
||||
#
|
||||
#com.amarsoft.are.log.impl.FileHandler.limit = 10240000
|
||||
#com.amarsoft.are.log.impl.FileHandler.count = 10
|
||||
#com.amarsoft.are.log.impl.FileHandler.append = true
|
||||
#com.amarsoft.are.log.impl.FileHandler.formatter = com.amarsoft.are.log.impl.simple.SimpleFormatter
|
||||
|
||||
com.amarsoft.are.log.impl.simple.WarnFileHandler.pattern = /tmp/log/a3web_warn_%g.log
|
||||
|
||||
com.amarsoft.are.log.impl.simple.WarnFileHandler.limit = 1024000
|
||||
|
||||
com.amarsoft.are.log.impl.FileHandler.level = info#com.amarsoft.are.log.impl.FileHandler.pattern = {$ARE.APP_HOME}/log/a3web_%D_%g.log
|
||||
|
||||
com.amarsoft.are.log.impl.FileHandler.pattern = /tmp/log/a3web_%D_%g.log
|
||||
|
||||
com.amarsoft.are.log.impl.FileHandler.limit = 10240000
|
||||
com.amarsoft.are.log.impl.FileHandler.count = 10
|
||||
com.amarsoft.are.log.impl.FileHandler.append = true
|
||||
com.amarsoft.are.log.impl.FileHandler.formatter = com.amarsoft.are.log.impl.simple.SimpleFormatter
|
||||
|
||||
com.amarsoft.are.log.impl.ConsoleHandler.level = info
|
||||
com.amarsoft.are.log.impl.ConsoleHandler.level = all
|
||||
BIN
WebContent/WEB-INF/lib/jackson-annotations-2.15.2.jar
Normal file
BIN
WebContent/WEB-INF/lib/jackson-annotations-2.15.2.jar
Normal file
Binary file not shown.
BIN
WebContent/WEB-INF/lib/jackson-core-2.15.2.jar
Normal file
BIN
WebContent/WEB-INF/lib/jackson-core-2.15.2.jar
Normal file
Binary file not shown.
BIN
WebContent/WEB-INF/lib/jackson-databind-2.15.2.jar
Normal file
BIN
WebContent/WEB-INF/lib/jackson-databind-2.15.2.jar
Normal file
Binary file not shown.
BIN
WebContent/WEB-INF/lib/jackson-dataformat-xml-2.15.2.jar
Normal file
BIN
WebContent/WEB-INF/lib/jackson-dataformat-xml-2.15.2.jar
Normal file
Binary file not shown.
BIN
WebContent/WEB-INF/lib/stax2-api-4.2.1.jar
Normal file
BIN
WebContent/WEB-INF/lib/stax2-api-4.2.1.jar
Normal file
Binary file not shown.
BIN
WebContent/WEB-INF/lib/woodstox-core-6.5.1.jar
Normal file
BIN
WebContent/WEB-INF/lib/woodstox-core-6.5.1.jar
Normal file
Binary file not shown.
Binary file not shown.
@ -6,3 +6,8 @@ entUserId=100001
|
||||
password=1q2w3e4r
|
||||
#前置机地址
|
||||
cgbUrl=http://114.242.219.170:63312/CGBClient/BankAction
|
||||
|
||||
#本方账号
|
||||
ownAccBank=广发银行
|
||||
ownAccName=安鹏融资租赁(天津)有限公司
|
||||
ownAccNumber=9550880217136700372
|
||||
@ -16,6 +16,9 @@ public class CGBconfProperties {
|
||||
public static final String ENTUSERID;
|
||||
public static final String PASSWORD;
|
||||
public static final String CGBURL;
|
||||
public static final String OWNACCBANK;
|
||||
public static final String OWNACCNAME;
|
||||
public static final String OWNACCNUMBER;
|
||||
|
||||
static {
|
||||
Properties prop = new Properties();
|
||||
@ -28,5 +31,8 @@ public class CGBconfProperties {
|
||||
ENTUSERID = prop.getProperty("entUserId");
|
||||
PASSWORD = prop.getProperty("password");
|
||||
CGBURL = prop.getProperty("cgbUrl");
|
||||
OWNACCBANK = prop.getProperty("ownAccBank");
|
||||
OWNACCNAME = prop.getProperty("ownAccName");
|
||||
OWNACCNUMBER = prop.getProperty("ownAccNumber");
|
||||
}
|
||||
}
|
||||
|
||||
@ -134,13 +134,11 @@ public interface LB_CONTRACT_INSURANCE_INFO{
|
||||
*/
|
||||
public static final String UPDATETIME = "UPDATETIME";
|
||||
/**
|
||||
* 被保险人姓名
|
||||
* 被保险人姓名 STRING(32)<br>
|
||||
*/
|
||||
public static final String insurance_username = "insurance_username";
|
||||
/**
|
||||
* 被保险人身份证号
|
||||
* 被保险人身份证号 STRING(32)<br>
|
||||
*/
|
||||
public static final String insurance_cert_id = "insurance_cert_id";
|
||||
|
||||
|
||||
}
|
||||
@ -133,4 +133,12 @@ public interface VI_VOUCHER_V8{
|
||||
* NC传输成功日期 STRING(20)<br>
|
||||
*/
|
||||
public static final String CREATE_TIME = "CREATE_TIME";
|
||||
/**
|
||||
* 会计年 STRING(20)<br>
|
||||
*/
|
||||
public static final String f51 = "f51";
|
||||
/**
|
||||
* 会计月 STRING(20)<br>
|
||||
*/
|
||||
public static final String f52 = "f52";
|
||||
}
|
||||
@ -53,4 +53,20 @@ public interface LB_ACTUAL_PAYMENT_INFO{
|
||||
* UPDATETIME STRING(32)<br>
|
||||
*/
|
||||
public static final String UPDATETIME = "UPDATETIME";
|
||||
/**
|
||||
* 本方银行 STRING(200)<br>
|
||||
*/
|
||||
public static final String bank = "bank";
|
||||
/**
|
||||
* 本方账户 STRING(200)<br>
|
||||
*/
|
||||
public static final String account = "account";
|
||||
/**
|
||||
* 本方帐号 STRING(200)<br>
|
||||
*/
|
||||
public static final String acc_number = "acc_number";
|
||||
/**
|
||||
* 付款方式 STRING(10)<br>
|
||||
*/
|
||||
public static final String pay_mode = "pay_mode";
|
||||
}
|
||||
@ -57,4 +57,20 @@ public interface LB_ACTUAL_PAYMENT_INFO_TEMP{
|
||||
* FLOWUNID STRING(32)<br>
|
||||
*/
|
||||
public static final String FLOWUNID = "FLOWUNID";
|
||||
/**
|
||||
* 本方银行 STRING(200)<br>
|
||||
*/
|
||||
public static final String bank = "bank";
|
||||
/**
|
||||
* 本方账户 STRING(200)<br>
|
||||
*/
|
||||
public static final String account = "account";
|
||||
/**
|
||||
* 本方帐号 STRING(200)<br>
|
||||
*/
|
||||
public static final String acc_number = "acc_number";
|
||||
/**
|
||||
* 付款方式 STRING(10)<br>
|
||||
*/
|
||||
public static final String pay_mode = "pay_mode";
|
||||
}
|
||||
@ -606,20 +606,23 @@ public interface LC_CALC_CONDITION{
|
||||
*/
|
||||
public static final String STRATEGY_ROA = "STRATEGY_ROA";
|
||||
/**
|
||||
* 是否灵活分润<br>
|
||||
* 是否灵活分润 STRING(20)<br>
|
||||
*/
|
||||
public static final String SPLIT_TYPE = "SPLIT_TYPE";
|
||||
/**
|
||||
* 个人意外险<br>
|
||||
* 个人意外险 DOUBLE(22)<br>
|
||||
*/
|
||||
public static final String PERSONAL_INSURANCE = "PERSONAL_INSURANCE";
|
||||
/**
|
||||
* 贴息<br>
|
||||
* 贴息 DOUBLE(22)<br>
|
||||
*/
|
||||
public static final String DISCOUNT_INTEREST = "DISCOUNT_INTEREST";
|
||||
|
||||
/**
|
||||
* 综合利率<br>
|
||||
* 分段配置 STRING(32)<br>
|
||||
*/
|
||||
public static final String SUBSECTION_CONDIG = "SUBSECTION_CONDIG";
|
||||
/**
|
||||
* 综合利率 STRING(32)<br>
|
||||
*/
|
||||
public static final String COMPREHENSIVE_RATE = "COMPREHENSIVE_RATE";
|
||||
}
|
||||
@ -606,19 +606,23 @@ public interface LC_CALC_CONDITION_HIS{
|
||||
*/
|
||||
public static final String STRATEGY_ROA = "STRATEGY_ROA";
|
||||
/**
|
||||
* 是否灵活分润<br>
|
||||
* 是否灵活分润 STRING(20)<br>
|
||||
*/
|
||||
public static final String SPLIT_TYPE = "SPLIT_TYPE";
|
||||
/**
|
||||
* 个人意外险<br>
|
||||
* 个人意外险 DOUBLE(22)<br>
|
||||
*/
|
||||
public static final String PERSONAL_INSURANCE = "PERSONAL_INSURANCE";
|
||||
/**
|
||||
* 贴息<br>
|
||||
* 贴息 DOUBLE(22)<br>
|
||||
*/
|
||||
public static final String DISCOUNT_INTEREST = "DISCOUNT_INTEREST";
|
||||
/**
|
||||
* 综合利率<br>
|
||||
* 分段配置 STRING(32)<br>
|
||||
*/
|
||||
public static final String SUBSECTION_CONDIG = "SUBSECTION_CONDIG";
|
||||
/**
|
||||
* 综合利率 STRING(32)<br>
|
||||
*/
|
||||
public static final String COMPREHENSIVE_RATE = "COMPREHENSIVE_RATE";
|
||||
}
|
||||
@ -606,19 +606,23 @@ public interface LC_CALC_CONDITION_TEMP{
|
||||
*/
|
||||
public static final String STRATEGY_ROA = "STRATEGY_ROA";
|
||||
/**
|
||||
* 是否灵活分润<br>
|
||||
* 是否灵活分润 STRING(20)<br>
|
||||
*/
|
||||
public static final String SPLIT_TYPE = "SPLIT_TYPE";
|
||||
/**
|
||||
* 个人意外险<br>
|
||||
* 个人意外险 DOUBLE(22)<br>
|
||||
*/
|
||||
public static final String PERSONAL_INSURANCE = "PERSONAL_INSURANCE";
|
||||
/**
|
||||
* 贴息<br>
|
||||
* 贴息 DOUBLE(22)<br>
|
||||
*/
|
||||
public static final String DISCOUNT_INTEREST = "DISCOUNT_INTEREST";
|
||||
/**
|
||||
* 综合利率<br>
|
||||
* 分段配置 STRING(32)<br>
|
||||
*/
|
||||
public static final String SUBSECTION_CONDIG = "SUBSECTION_CONDIG";
|
||||
/**
|
||||
* 综合利率 STRING(32)<br>
|
||||
*/
|
||||
public static final String COMPREHENSIVE_RATE = "COMPREHENSIVE_RATE";
|
||||
}
|
||||
@ -142,11 +142,11 @@ public interface LC_CALC_SUBSECTION_INFO{
|
||||
*/
|
||||
public static final String MIN_INCOME_NUMBER = "MIN_INCOME_NUMBER";
|
||||
/**
|
||||
* ÈÚ×ʽð¶î×îСֵ STRING(10)<br>
|
||||
* ÈÚ×ʽð¶î×îСֵ STRING(32)<br>
|
||||
*/
|
||||
public static final String MIN_LEASE_MONEY = "MIN_LEASE_MONEY";
|
||||
/**
|
||||
* ÌùÏ¢½ð¶î
|
||||
* ÌùÏ¢½ð¶î DOUBLE(18)<br>
|
||||
*/
|
||||
public static final String DISCOUNT_INTEREST = "DISCOUNT_INTEREST";
|
||||
}
|
||||
@ -133,7 +133,6 @@ public interface LC_CALC_SUBSECTION_INFO_HIS{
|
||||
* 贴息后利率是否固定 STRING(10)<br>
|
||||
*/
|
||||
public static final String IS_FIXED_DISCOUNT_RATE = "IS_FIXED_DISCOUNT_RATE";
|
||||
|
||||
/**
|
||||
* 最大期次 STRING(32)<br>
|
||||
*/
|
||||
@ -143,11 +142,11 @@ public interface LC_CALC_SUBSECTION_INFO_HIS{
|
||||
*/
|
||||
public static final String MIN_INCOME_NUMBER = "MIN_INCOME_NUMBER";
|
||||
/**
|
||||
* ÈÚ×ʽð¶î×îСֵ STRING(32<br>
|
||||
* ÈÚ×ʽð¶î×îСֵ STRING(32)<br>
|
||||
*/
|
||||
public static final String MIN_LEASE_MONEY = "MIN_LEASE_MONEY";
|
||||
/**
|
||||
* ÌùÏ¢½ð¶î
|
||||
* ÌùÏ¢½ð¶î DOUBLE(18)<br>
|
||||
*/
|
||||
public static final String DISCOUNT_INTEREST = "DISCOUNT_INTEREST";
|
||||
}
|
||||
@ -146,11 +146,11 @@ public interface LC_CALC_SUBSECTION_INFO_TEMP{
|
||||
*/
|
||||
public static final String MIN_INCOME_NUMBER = "MIN_INCOME_NUMBER";
|
||||
/**
|
||||
* ÈÚ×ʽð¶î×îСֵ STRING(32<br>
|
||||
* ÈÚ×ʽð¶î×îСֵ STRING(32)<br>
|
||||
*/
|
||||
public static final String MIN_LEASE_MONEY = "MIN_LEASE_MONEY";
|
||||
/**
|
||||
* ÌùÏ¢½ð¶î
|
||||
* ÌùÏ¢½ð¶î DOUBLE(18)<br>
|
||||
*/
|
||||
public static final String DISCOUNT_INTEREST = "DISCOUNT_INTEREST";
|
||||
}
|
||||
@ -26,6 +26,10 @@ public interface LC_COLLECT_MANUAL_INFO{
|
||||
*/
|
||||
public static final String plan_id = "plan_id";
|
||||
/**
|
||||
* ÆÚ´Î STRING(20)<br>
|
||||
*/
|
||||
public static final String plan_list = "plan_list";
|
||||
/**
|
||||
* ¿¨¿Û½ð¶î STRING(20)<br>
|
||||
*/
|
||||
public static final String money = "money";
|
||||
|
||||
@ -66,7 +66,7 @@ public interface LC_DORMANT_RENT_ADJUST{
|
||||
*/
|
||||
public static final String UPDATETIME = "UPDATETIME";
|
||||
/**
|
||||
* ÐÝÃß±ä¸üǰIRR STRING(32)<br>
|
||||
* ĐÝĂßąä¸üǰIRR DOUBLE(22)<br>
|
||||
*/
|
||||
public static final String IRR_OLD = "IRR_OLD";
|
||||
}
|
||||
@ -70,7 +70,7 @@ public interface LC_DORMANT_RENT_ADJUST_TEMP{
|
||||
*/
|
||||
public static final String UPDATETIME = "UPDATETIME";
|
||||
/**
|
||||
* ÐÝÃß±ä¸üǰIRR STRING(32)<br>
|
||||
* ĐÝĂßąä¸üǰIRR DOUBLE(22)<br>
|
||||
*/
|
||||
public static final String IRR_OLD = "IRR_OLD";
|
||||
}
|
||||
@ -185,4 +185,8 @@ public interface LC_RENT_PLAN{
|
||||
* 分润支付状态 STRING(2)<br>
|
||||
*/
|
||||
public static final String SPLITTING_STATUS = "SPLITTING_STATUS";
|
||||
/**
|
||||
* 扣款方式 STRING(10)<br>
|
||||
*/
|
||||
public static final String CHARGE_WAY = "CHARGE_WAY";
|
||||
}
|
||||
@ -125,7 +125,6 @@ public interface VI_LC_RENT_PLAN{
|
||||
* »ØÁý״̬ STRING(20)<br>
|
||||
*/
|
||||
public static final String planstatus = "planstatus";
|
||||
|
||||
/**
|
||||
* ÏîÄ¿id STRING(20)<br>
|
||||
*/
|
||||
|
||||
@ -109,4 +109,16 @@ public interface CUSTOMER_ACCOUNT_HIS{
|
||||
* 客户类型 STRING(40)<br>
|
||||
*/
|
||||
public static final String CUSTTYPE = "CUSTTYPE";
|
||||
/**
|
||||
* 扣款类型 STRING(20)<br>
|
||||
*/
|
||||
public static final String collect_type = "collect_type";
|
||||
/**
|
||||
* 银行编号 STRING(20)<br>
|
||||
*/
|
||||
public static final String bank_code = "bank_code";
|
||||
/**
|
||||
* 银行名称 STRING(20)<br>
|
||||
*/
|
||||
public static final String bank_type = "bank_type";
|
||||
}
|
||||
@ -7,7 +7,7 @@ import java.lang.String;
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface VI_LB_IDENTITY_CHECK_CREDITAUTH {
|
||||
public interface VI_LB_IDENTITY_CHECK_CREDITAUTH{
|
||||
/**
|
||||
* 身份校验视图表<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
@ -33,11 +33,12 @@ public interface VI_LB_IDENTITY_CHECK_CREDITAUTH {
|
||||
* 电话号 STRING(20)<br>
|
||||
*/
|
||||
public static final String phone = "phone";
|
||||
|
||||
/**
|
||||
* µç»°ºÅ STRING(20)<br>
|
||||
* ÊÚȨģ°åÃû³Æ STRING(20)<br>
|
||||
*/
|
||||
public static final String creditauth = "creditauth";
|
||||
|
||||
/**
|
||||
* ÊÚȨģ°åÀàÐÍ STRING(20)<br>
|
||||
*/
|
||||
public static final String credittype = "credittype";
|
||||
}
|
||||
@ -7,7 +7,7 @@ import java.lang.String;
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface VI_LB_IDENTITY_CHECK_CREDITAUTH_LOAN {
|
||||
public interface VI_LB_IDENTITY_CHECK_CREDITAUTH_LOAN{
|
||||
/**
|
||||
* 身份校验视图表<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
@ -33,11 +33,12 @@ public interface VI_LB_IDENTITY_CHECK_CREDITAUTH_LOAN {
|
||||
* 电话号 STRING(20)<br>
|
||||
*/
|
||||
public static final String phone = "phone";
|
||||
|
||||
/**
|
||||
* µç»°ºÅ STRING(20)<br>
|
||||
* ÊÚȨģ°åÃû³Æ STRING(20)<br>
|
||||
*/
|
||||
public static final String creditauth = "creditauth";
|
||||
|
||||
/**
|
||||
* ÊÚȨģ°åÀàÐÍ STRING(20)<br>
|
||||
*/
|
||||
public static final String credittype = "credittype";
|
||||
}
|
||||
@ -97,28 +97,24 @@ public interface LB_INVOICE_INFO{
|
||||
* 更新时间 STRING(100)<br>
|
||||
*/
|
||||
public static final String updatetime = "updatetime";
|
||||
|
||||
|
||||
/**
|
||||
* ˰ÂÊ STRING(100)<br>
|
||||
* ˰ÂÊ STRING(20)<br>
|
||||
*/
|
||||
public static final String tax_rate = "tax_rate";
|
||||
/**
|
||||
* ˰ÂÊ_¹Ò³µ STRING(100)<br>
|
||||
* ˰ÂÊ_¹Ò³µ STRING(20)<br>
|
||||
*/
|
||||
public static final String tax_rate_bak = "tax_rate_bak";
|
||||
/**
|
||||
* ˰½ðºÏ¼Æ STRING(100)<br>
|
||||
* ˰½ðºÏ¼Æ STRING(32)<br>
|
||||
*/
|
||||
public static final String tax_due_total = "tax_due_total";
|
||||
/**
|
||||
* ¿ªÆ±½ð¶îºÏ¼Æ STRING(100)<br>
|
||||
* ¿ªÆ±½ð¶îºÏ¼Æ STRING(32)<br>
|
||||
*/
|
||||
public static final String Invoice_money_total = "Invoice_money_total";
|
||||
|
||||
/**
|
||||
* 车辆信息id STRING(32)<br>
|
||||
*/
|
||||
public static final String equipment_id = "equipment_id";
|
||||
|
||||
}
|
||||
@ -14,7 +14,7 @@ public interface LB_INVOICE_INFO_TEMP{
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.com.tenwa.entity.comm.invoice.LB_INVOICE_INFO_TEMP";
|
||||
/**
|
||||
* 唯一标识 STRING(32 )<br>
|
||||
* 唯一标识 STRING(32)<br>
|
||||
*/
|
||||
public static final String id = "id";
|
||||
/**
|
||||
@ -101,24 +101,22 @@ public interface LB_INVOICE_INFO_TEMP{
|
||||
* ¸üÐÂʱ¼ä STRING(100)<br>
|
||||
*/
|
||||
public static final String updatetime = "updatetime";
|
||||
|
||||
/**
|
||||
* 税率 STRING(100)<br>
|
||||
* 税率 STRING(20)<br>
|
||||
*/
|
||||
public static final String tax_rate = "tax_rate";
|
||||
/**
|
||||
* 税率_挂车 STRING(100)<br>
|
||||
* 税率_挂车 STRING(20)<br>
|
||||
*/
|
||||
public static final String tax_rate_bak = "tax_rate_bak";
|
||||
/**
|
||||
* 税金合计 STRING(100)<br>
|
||||
* 税金合计 STRING(32)<br>
|
||||
*/
|
||||
public static final String tax_due_total = "tax_due_total";
|
||||
/**
|
||||
* 开票金额合计 STRING(100)<br>
|
||||
* 开票金额合计 STRING(32)<br>
|
||||
*/
|
||||
public static final String Invoice_money_total = "Invoice_money_total";
|
||||
|
||||
/**
|
||||
* ³µÁ¾ÐÅÏ¢id STRING(32)<br>
|
||||
*/
|
||||
|
||||
@ -22,7 +22,7 @@ public interface LC_FUND_INCOME_CALLBACK_DETAIL_TEMP{
|
||||
*/
|
||||
public static final String CMB_PAY_NO = "CMB_PAY_NO";
|
||||
/**
|
||||
* 付款日志 STRING(32)<br>
|
||||
* 付款日志(未使用字段,暂存广发批次号) STRING(32)<br>
|
||||
*/
|
||||
public static final String CMB_PAY_LOG = "CMB_PAY_LOG";
|
||||
/**
|
||||
@ -38,7 +38,7 @@ public interface LC_FUND_INCOME_CALLBACK_DETAIL_TEMP{
|
||||
*/
|
||||
public static final String FLOWUNID = "FLOWUNID";
|
||||
/**
|
||||
* 流水号 STRING(10)<br>
|
||||
* 流水号 STRING(50)<br>
|
||||
*/
|
||||
public static final String SQRNBR = "SQRNBR";
|
||||
/**
|
||||
|
||||
@ -3,10 +3,10 @@ package jbo.com.tenwa.lease.comm;
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* - JBOÃüÃû³£Á¿Àà<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
* - JBOÃüÃû³£Á¿Àà<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
*/
|
||||
public interface VI_BUSINESS_QUERY{
|
||||
/**
|
||||
* <br><br>
|
||||
@ -44,7 +44,6 @@ public interface VI_BUSINESS_QUERY{
|
||||
/**
|
||||
* µ±Ç°Á÷³ÌÃû³Æ STRING(20)<br>
|
||||
*/
|
||||
|
||||
public static final String flowname = "flowname";
|
||||
/**
|
||||
* ÉêÇëÀàÐÍ STRING(20)<br>
|
||||
|
||||
@ -22,6 +22,10 @@ public interface VI_YC_RENT_COLLECT{
|
||||
*/
|
||||
public static final String distributor_id = "distributor_id";
|
||||
/**
|
||||
* ºÏͬÖ÷¼üID STRING(32)<br>
|
||||
*/
|
||||
public static final String contract_id = "contract_id";
|
||||
/**
|
||||
* payment_number STRING(32)<br>
|
||||
*/
|
||||
public static final String payment_number = "payment_number";
|
||||
|
||||
@ -1,13 +1,15 @@
|
||||
package jbo.oti;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* 接口资料表 - JBO命名常量类<br><br>
|
||||
* 对账文件信息 - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface FC_FILE_PUSH {
|
||||
public interface FC_FILE_PUSH{
|
||||
/**
|
||||
* 接口资料表<br><br>
|
||||
* 对账文件信息<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.oti.FC_FILE_PUSH";
|
||||
@ -16,7 +18,7 @@ public interface FC_FILE_PUSH {
|
||||
*/
|
||||
public static final String ID = "ID";
|
||||
/**
|
||||
* 渠道编号 STRING(32)<br>
|
||||
* 渠道编码 STRING(32)<br>
|
||||
*/
|
||||
public static final String CHANNEL_NO = "CHANNEL_NO";
|
||||
/**
|
||||
@ -40,7 +42,7 @@ public interface FC_FILE_PUSH {
|
||||
*/
|
||||
public static final String FILE_PATH = "FILE_PATH";
|
||||
/**
|
||||
* 文件状态 STRING(32)<br>
|
||||
* 文件状态:0,下载失败,1、解析失败,2、解析成功,3、拷贝成功 STRING(32)<br>
|
||||
*/
|
||||
public static final String FILE_STS = "FILE_STS";
|
||||
/**
|
||||
@ -48,7 +50,7 @@ public interface FC_FILE_PUSH {
|
||||
*/
|
||||
public static final String FILE_STS_DESC = "FILE_STS_DESC";
|
||||
/**
|
||||
* 包含订单数量 STRING(32)<br>
|
||||
* 文件包含订单数量 STRING(32)<br>
|
||||
*/
|
||||
public static final String ORDER_COUNT = "ORDER_COUNT";
|
||||
/**
|
||||
@ -59,6 +61,4 @@ public interface FC_FILE_PUSH {
|
||||
* 修改时间 STRING(32)<br>
|
||||
*/
|
||||
public static final String UPDATE_TIME = "UPDATE_TIME";
|
||||
|
||||
|
||||
}
|
||||
@ -30,11 +30,11 @@ public interface FC_REQUEST{
|
||||
*/
|
||||
public static final String CHANNEL_NAME = "CHANNEL_NAME";
|
||||
/**
|
||||
* ×ʽðÇþµÀ²úÆ·ID STRING(32)<br>
|
||||
* ×ʽðÇþµÀ²úÆ·±àºÅ STRING(32)<br>
|
||||
*/
|
||||
public static final String CHANNEL_PRODUCT_ID = "CHANNEL_PRODUCT_ID";
|
||||
/**
|
||||
* ×ʽðÇþµÀ²úÆ·Ãû³Æ STRING(32)<br>
|
||||
* ×ʽðÇþµÀ²úÆ·ÃèÊö STRING(32)<br>
|
||||
*/
|
||||
public static final String CHANNEL_PRODUCT_DESC = "CHANNEL_PRODUCT_DESC";
|
||||
/**
|
||||
@ -77,15 +77,15 @@ public interface FC_REQUEST{
|
||||
* 客户名称 STRING(32)<br>
|
||||
*/
|
||||
public static final String CUSTOMER_NAME = "CUSTOMER_NAME";
|
||||
/**
|
||||
* µ±Ç°×´Ì¬ STRING(32)<br>
|
||||
*/
|
||||
public static final String FC_STATUS = "FC_STATUS";
|
||||
/**
|
||||
* 当前订单状态:0信审中,1信审通过,2合通签署成功,3放款成功 STRING(32)<br>
|
||||
*/
|
||||
public static final String FC_STAGE = "FC_STAGE";
|
||||
/**
|
||||
* µ±Ç°×´Ì¬ STRING(32)<br>
|
||||
*/
|
||||
public static final String FC_STATUS = "FC_STATUS";
|
||||
/**
|
||||
* 返回状态描述 STRING(32)<br>
|
||||
*/
|
||||
public static final String FC_REMARK = "FC_REMARK";
|
||||
|
||||
@ -42,7 +42,7 @@ public interface FC_REQUEST_FILE{
|
||||
*/
|
||||
public static final String FC_FILE_TYPE = "FC_FILE_TYPE";
|
||||
/**
|
||||
* 资方:文件类型:JPG,PNG,FDP等 STRING(32)<br>
|
||||
* 例如:image/jpeg等 STRING(32)<br>
|
||||
*/
|
||||
public static final String FILE_TYPE = "FILE_TYPE";
|
||||
/**
|
||||
|
||||
@ -1,13 +1,15 @@
|
||||
package jbo.oti;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* 接口资料表 - JBO命名常量类<br><br>
|
||||
* 资方租金计划信息 - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface FC_YC_FILE_REPAY_PLAN {
|
||||
public interface FC_YC_FILE_REPAY_PLAN{
|
||||
/**
|
||||
* 接口资料表<br><br>
|
||||
* 资方租金计划信息<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.oti.FC_YC_FILE_REPAY_PLAN";
|
||||
@ -16,7 +18,7 @@ public interface FC_YC_FILE_REPAY_PLAN {
|
||||
*/
|
||||
public static final String ID = "ID";
|
||||
/**
|
||||
* 文件ID STRING(32)<br>
|
||||
* 资金渠道申请ID STRING(32)<br>
|
||||
*/
|
||||
public static final String FC_FILE_ID = "FC_FILE_ID";
|
||||
/**
|
||||
@ -24,7 +26,7 @@ public interface FC_YC_FILE_REPAY_PLAN {
|
||||
*/
|
||||
public static final String FC_REQUEST_ID = "FC_REQUEST_ID";
|
||||
/**
|
||||
* 放款请求编号 STRING(32)<br>
|
||||
* 放款申请编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String LOAN_NO = "LOAN_NO";
|
||||
/**
|
||||
@ -55,5 +57,4 @@ public interface FC_YC_FILE_REPAY_PLAN {
|
||||
* 修改时间 STRING(32)<br>
|
||||
*/
|
||||
public static final String UPDATE_TIME = "UPDATE_TIME";
|
||||
|
||||
}
|
||||
@ -1,13 +1,15 @@
|
||||
package jbo.oti;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* 接口资料表 - JBO命名常量类<br><br>
|
||||
* 资方分润计划信息 - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface LC_PROFIT_PLAN {
|
||||
public interface LC_PROFIT_PLAN{
|
||||
/**
|
||||
* 接口资料表<br><br>
|
||||
* 资方分润计划信息<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.oti.LC_PROFIT_PLAN";
|
||||
@ -16,7 +18,7 @@ public interface LC_PROFIT_PLAN {
|
||||
*/
|
||||
public static final String ID = "ID";
|
||||
/**
|
||||
* 对应租金计划ID STRING(32)<br>
|
||||
* 对应租金计划id STRING(32)<br>
|
||||
*/
|
||||
public static final String RENT_PLAN_ID = "RENT_PLAN_ID";
|
||||
/**
|
||||
@ -31,6 +33,4 @@ public interface LC_PROFIT_PLAN {
|
||||
* 创建时间 STRING(32)<br>
|
||||
*/
|
||||
public static final String INPUTTIME = "INPUTTIME";
|
||||
|
||||
|
||||
}
|
||||
@ -22,7 +22,7 @@ public interface LB_PRODUCT_CORPUS_SOURCE{
|
||||
*/
|
||||
public static final String PRODUCT_ID = "PRODUCT_ID";
|
||||
/**
|
||||
* 对应邮储产品 STRING(32)<br>
|
||||
* 对应渠道产品 STRING(32)<br>
|
||||
*/
|
||||
public static final String CHANNEL_PRODUCT_ID = "CHANNEL_PRODUCT_ID";
|
||||
/**
|
||||
|
||||
@ -1,23 +1,24 @@
|
||||
package jbo.sys;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* 经销商管理人员角色权限表 - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface USER_AUTHORITY_CHECK {
|
||||
public interface USER_AUTHORITY_CHECK{
|
||||
/**
|
||||
* 经销商管理人员角色权限表<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.sys.USER_AUTHORITY_CHECK";
|
||||
/**
|
||||
* ID编号 STRING(32)<br>
|
||||
* 编号 INT(32)<br>
|
||||
*/
|
||||
public static final String ID = "ID";
|
||||
/**
|
||||
* 用户登录名 STRING(80)<br>
|
||||
* 用户登录名 STRING(32)<br>
|
||||
*/
|
||||
public static final String LOGINID = "LOGINID";
|
||||
|
||||
}
|
||||
115
src_tenwa/com/tenwa/cgbbank/dto/CGB0032ReqBody.java
Normal file
115
src_tenwa/com/tenwa/cgbbank/dto/CGB0032ReqBody.java
Normal file
@ -0,0 +1,115 @@
|
||||
package com.tenwa.cgbbank.dto;
|
||||
|
||||
/**
|
||||
* 名称 变量名称 类型长度 缺省值 备注
|
||||
* 账号 account 32 被查询账号,必填
|
||||
* 开始日期 beginDate 8 日期格式(YYYYMMDD),必填
|
||||
* 结束日期 endDate 8 日期格式(YYYYMMDD),必填
|
||||
* 查询类型 queryType 1 0:全部、1:付款、2:收款。暂只支持“0:全部”
|
||||
* 起始记录交易日期 beginRecTranDate 8 第一次查询为空,非第一次查询为查询的第一条记录的交易日期,由上页查询获得,日期格式(YYYYMMDD)
|
||||
* 起始记录交易代号 beginRecTranCode 5 1.第一次查询为空;2.非第一次查询为查询的第一条记录的交易代号,由上页查询获得
|
||||
* 起始记录CBS交易流水号 beginRecTranSeq 12 第一次查询为空;非第一次查询为查询的第一条记录的CBS交易流水号,由上页查询获得
|
||||
* 查询笔数 queryNumber 6 必填,(大于0并且小于或等于1000)
|
||||
* 保留字段1 reserve1 50 预留字段,暂时未使用
|
||||
* 保留字段2 reserve2 50 预留字段,暂时未使用
|
||||
*/
|
||||
|
||||
/**
|
||||
* @program: apzl_leasing
|
||||
* @description:
|
||||
* @author: 李超杰
|
||||
* @create: 2023-06-07 09:40
|
||||
*/
|
||||
public class CGB0032ReqBody {
|
||||
|
||||
String account;
|
||||
String beginDate;
|
||||
String endDate;
|
||||
Integer queryType;
|
||||
String beginRecTranDate;
|
||||
String beginRecTranCode;
|
||||
String beginRecTranSeq;
|
||||
Integer queryNumber;
|
||||
String reserve1;
|
||||
String reserve2;
|
||||
|
||||
public String getAccount() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
public String getBeginDate() {
|
||||
return beginDate;
|
||||
}
|
||||
|
||||
public void setBeginDate(String beginDate) {
|
||||
this.beginDate = beginDate;
|
||||
}
|
||||
|
||||
public String getEndDate() {
|
||||
return endDate;
|
||||
}
|
||||
|
||||
public void setEndDate(String endDate) {
|
||||
this.endDate = endDate;
|
||||
}
|
||||
|
||||
public Integer getQueryType() {
|
||||
return queryType;
|
||||
}
|
||||
|
||||
public void setQueryType(Integer queryType) {
|
||||
this.queryType = queryType;
|
||||
}
|
||||
|
||||
public String getBeginRecTranDate() {
|
||||
return beginRecTranDate;
|
||||
}
|
||||
|
||||
public void setBeginRecTranDate(String beginRecTranDate) {
|
||||
this.beginRecTranDate = beginRecTranDate;
|
||||
}
|
||||
|
||||
public String getBeginRecTranCode() {
|
||||
return beginRecTranCode;
|
||||
}
|
||||
|
||||
public void setBeginRecTranCode(String beginRecTranCode) {
|
||||
this.beginRecTranCode = beginRecTranCode;
|
||||
}
|
||||
|
||||
public String getBeginRecTranSeq() {
|
||||
return beginRecTranSeq;
|
||||
}
|
||||
|
||||
public void setBeginRecTranSeq(String beginRecTranSeq) {
|
||||
this.beginRecTranSeq = beginRecTranSeq;
|
||||
}
|
||||
|
||||
public Integer getQueryNumber() {
|
||||
return queryNumber;
|
||||
}
|
||||
|
||||
public void setQueryNumber(Integer queryNumber) {
|
||||
this.queryNumber = queryNumber;
|
||||
}
|
||||
|
||||
public String getReserve1() {
|
||||
return reserve1;
|
||||
}
|
||||
|
||||
public void setReserve1(String reserve1) {
|
||||
this.reserve1 = reserve1;
|
||||
}
|
||||
|
||||
public String getReserve2() {
|
||||
return reserve2;
|
||||
}
|
||||
|
||||
public void setReserve2(String reserve2) {
|
||||
this.reserve2 = reserve2;
|
||||
}
|
||||
}
|
||||
107
src_tenwa/com/tenwa/cgbbank/dto/CGB0032ResBody.java
Normal file
107
src_tenwa/com/tenwa/cgbbank/dto/CGB0032ResBody.java
Normal file
@ -0,0 +1,107 @@
|
||||
package com.tenwa.cgbbank.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 名称 变量名称 类型长度 缺省值 备注
|
||||
* 账号 Account 32
|
||||
* 返回交易笔数 totalNum 15
|
||||
* 页标识 pageFlag 1 0:不存在下一页,1:存在下一页
|
||||
* 下页交易日期 nextRecTranDate 8 当“页标识”为1时,此域不为空,日期格式(YYYYMMDD)
|
||||
* 下页CBS交易流水号 nextRecTranSeq 12 当“页标识”为1时,此域不为空
|
||||
* 下页交易代号 nextRecTranCode 5 当“页标识”为1时,此域不为空
|
||||
* 保留字段1 reserve1 50 预留字段,暂时未使用
|
||||
* 保留字段2 reserve2 50 预留字段,暂时未使用
|
||||
* 流水列表 records
|
||||
*/
|
||||
|
||||
/**
|
||||
* @program: apzl_leasing
|
||||
* @description:
|
||||
* @author: 李超杰
|
||||
* @create: 2023-06-07 09:40
|
||||
*/
|
||||
public class CGB0032ResBody {
|
||||
|
||||
String account;
|
||||
Integer totalNum;
|
||||
Integer pageFlag;
|
||||
String nextRecTranDate;
|
||||
String nextRecTranSeq;
|
||||
String nextRecTranCode;
|
||||
String reserve1;
|
||||
String reserve2;
|
||||
List<CGB0032ResBodyRecord> records;
|
||||
|
||||
public String getAccount() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
public Integer getTotalNum() {
|
||||
return totalNum;
|
||||
}
|
||||
|
||||
public void setTotalNum(Integer totalNum) {
|
||||
this.totalNum = totalNum;
|
||||
}
|
||||
|
||||
public Integer getPageFlag() {
|
||||
return pageFlag;
|
||||
}
|
||||
|
||||
public void setPageFlag(Integer pageFlag) {
|
||||
this.pageFlag = pageFlag;
|
||||
}
|
||||
|
||||
public String getNextRecTranDate() {
|
||||
return nextRecTranDate;
|
||||
}
|
||||
|
||||
public void setNextRecTranDate(String nextRecTranDate) {
|
||||
this.nextRecTranDate = nextRecTranDate;
|
||||
}
|
||||
|
||||
public String getNextRecTranSeq() {
|
||||
return nextRecTranSeq;
|
||||
}
|
||||
|
||||
public void setNextRecTranSeq(String nextRecTranSeq) {
|
||||
this.nextRecTranSeq = nextRecTranSeq;
|
||||
}
|
||||
|
||||
public String getNextRecTranCode() {
|
||||
return nextRecTranCode;
|
||||
}
|
||||
|
||||
public void setNextRecTranCode(String nextRecTranCode) {
|
||||
this.nextRecTranCode = nextRecTranCode;
|
||||
}
|
||||
|
||||
public String getReserve1() {
|
||||
return reserve1;
|
||||
}
|
||||
|
||||
public void setReserve1(String reserve1) {
|
||||
this.reserve1 = reserve1;
|
||||
}
|
||||
|
||||
public String getReserve2() {
|
||||
return reserve2;
|
||||
}
|
||||
|
||||
public void setReserve2(String reserve2) {
|
||||
this.reserve2 = reserve2;
|
||||
}
|
||||
|
||||
public List<CGB0032ResBodyRecord> getRecords() {
|
||||
return records;
|
||||
}
|
||||
|
||||
public void setRecords(List<CGB0032ResBodyRecord> records) {
|
||||
this.records = records;
|
||||
}
|
||||
}
|
||||
285
src_tenwa/com/tenwa/cgbbank/dto/CGB0032ResBodyRecord.java
Normal file
285
src_tenwa/com/tenwa/cgbbank/dto/CGB0032ResBodyRecord.java
Normal file
@ -0,0 +1,285 @@
|
||||
package com.tenwa.cgbbank.dto;
|
||||
|
||||
|
||||
/**
|
||||
* 名称 变量名称 类型长度 缺省值 备注
|
||||
* 交易序号 serialNo 20 循环域
|
||||
* 交易日期 dealDate 8 循环域,日期格式(YYYYMMDD)
|
||||
* 借贷标志 loanSign 1 循环域 +/-
|
||||
* 交易金额 dealMoney 20 循环域,实际数字是(19,2)小数点占一位,整数部分占17位
|
||||
* 正负标志 financingSymbol 1 循环域 +/-
|
||||
* 可用余额 usableMoney 20 循环域,实际数字是(19,2)小数点占一位,整数部分占17位
|
||||
* 业务描述 Abstract 32 循环域,如:资金上拔、资金下划
|
||||
* 交易行所 dealBranch 40 循环域
|
||||
* 凭证号码 upBill 16 循环域
|
||||
* 对方账号 oppoAccno 32 循环域
|
||||
* 对方户名 Name 82 循环域
|
||||
* 对手方行号 rcvBankId 14 循环域,行内交易显示行所号,行外交易显示联行号
|
||||
* 交易时间 dealTime 6 循环域,时间格式(HHMMSS)
|
||||
* 附加信息 abstractContent 30 循环域
|
||||
* 交易渠道 dealChannel 20 循环域
|
||||
* 备注 summary 22 循环域
|
||||
* 附言 postScript 102 循环域
|
||||
* 对手账号类型 oppAccountType 1 循环域,1-对公 0-对私 空-非我行账号
|
||||
* 唯一标识码 uniqueCode 32 循环域,可全行标识交易唯一性
|
||||
* CBS交易序号 cbsTranSeq 5 循环域
|
||||
* 会计日期 reserve1 50 循环域
|
||||
* 企业财务流水号 reserve2 50 循环域,批量转账交易为客户批次流水号
|
||||
*/
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.tenwa.cgb.conf.CGBconfProperties;
|
||||
import com.tenwa.util.GlobalConst;
|
||||
import com.tenwa.util.SerialNumberUtil;
|
||||
import jbo.app.tenwa.calc.LC_EBANK;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @program: apzl_leasing
|
||||
* @description:
|
||||
* @author: 李超杰
|
||||
* @create: 2023-06-07 09:40
|
||||
*/
|
||||
public class CGB0032ResBodyRecord {
|
||||
String serialNo;
|
||||
String dealDate;
|
||||
String loanSign;
|
||||
String dealMoney;
|
||||
String financingSymbol;
|
||||
String usableMoney;
|
||||
String Abstract;
|
||||
String dealBranch;
|
||||
String upBill;
|
||||
String oppoAccno;
|
||||
String name;
|
||||
String rcvBankId;
|
||||
String dealTime;
|
||||
String abstractContent;
|
||||
String dealChannel;
|
||||
String summary;
|
||||
String postScript;
|
||||
String oppAccountType;
|
||||
String uniqueCode;
|
||||
String cbsTranSeq;
|
||||
String reserve1;
|
||||
String reserve2;
|
||||
|
||||
public String getSerialNo() {
|
||||
return serialNo;
|
||||
}
|
||||
|
||||
public void setSerialNo(String serialNo) {
|
||||
this.serialNo = serialNo;
|
||||
}
|
||||
|
||||
public String getDealDate() {
|
||||
return dealDate;
|
||||
}
|
||||
|
||||
public void setDealDate(String dealDate) {
|
||||
this.dealDate = dealDate;
|
||||
}
|
||||
|
||||
public String getLoanSign() {
|
||||
return loanSign;
|
||||
}
|
||||
|
||||
public void setLoanSign(String loanSign) {
|
||||
this.loanSign = loanSign;
|
||||
}
|
||||
|
||||
public String getDealMoney() {
|
||||
return dealMoney;
|
||||
}
|
||||
|
||||
public void setDealMoney(String dealMoney) {
|
||||
this.dealMoney = dealMoney;
|
||||
}
|
||||
|
||||
public String getFinancingSymbol() {
|
||||
return financingSymbol;
|
||||
}
|
||||
|
||||
public void setFinancingSymbol(String financingSymbol) {
|
||||
this.financingSymbol = financingSymbol;
|
||||
}
|
||||
|
||||
public String getUsableMoney() {
|
||||
return usableMoney;
|
||||
}
|
||||
|
||||
public void setUsableMoney(String usableMoney) {
|
||||
this.usableMoney = usableMoney;
|
||||
}
|
||||
|
||||
public String getAbstract() {
|
||||
return Abstract;
|
||||
}
|
||||
|
||||
public void setAbstract(String anAbstract) {
|
||||
Abstract = anAbstract;
|
||||
}
|
||||
|
||||
public String getDealBranch() {
|
||||
return dealBranch;
|
||||
}
|
||||
|
||||
public void setDealBranch(String dealBranch) {
|
||||
this.dealBranch = dealBranch;
|
||||
}
|
||||
|
||||
public String getUpBill() {
|
||||
return upBill;
|
||||
}
|
||||
|
||||
public void setUpBill(String upBill) {
|
||||
this.upBill = upBill;
|
||||
}
|
||||
|
||||
public String getOppoAccno() {
|
||||
return oppoAccno;
|
||||
}
|
||||
|
||||
public void setOppoAccno(String oppoAccno) {
|
||||
this.oppoAccno = oppoAccno;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getRcvBankId() {
|
||||
return rcvBankId;
|
||||
}
|
||||
|
||||
public void setRcvBankId(String rcvBankId) {
|
||||
this.rcvBankId = rcvBankId;
|
||||
}
|
||||
|
||||
public String getDealTime() {
|
||||
return dealTime;
|
||||
}
|
||||
|
||||
public void setDealTime(String dealTime) {
|
||||
this.dealTime = dealTime;
|
||||
}
|
||||
|
||||
public String getAbstractContent() {
|
||||
return abstractContent;
|
||||
}
|
||||
|
||||
public void setAbstractContent(String abstractContent) {
|
||||
this.abstractContent = abstractContent;
|
||||
}
|
||||
|
||||
public String getDealChannel() {
|
||||
return dealChannel;
|
||||
}
|
||||
|
||||
public void setDealChannel(String dealChannel) {
|
||||
this.dealChannel = dealChannel;
|
||||
}
|
||||
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
|
||||
public String getPostScript() {
|
||||
return postScript;
|
||||
}
|
||||
|
||||
public void setPostScript(String postScript) {
|
||||
this.postScript = postScript;
|
||||
}
|
||||
|
||||
public String getOppAccountType() {
|
||||
return oppAccountType;
|
||||
}
|
||||
|
||||
public void setOppAccountType(String oppAccountType) {
|
||||
this.oppAccountType = oppAccountType;
|
||||
}
|
||||
|
||||
public String getUniqueCode() {
|
||||
return uniqueCode;
|
||||
}
|
||||
|
||||
public void setUniqueCode(String uniqueCode) {
|
||||
this.uniqueCode = uniqueCode;
|
||||
}
|
||||
|
||||
public String getCbsTranSeq() {
|
||||
return cbsTranSeq;
|
||||
}
|
||||
|
||||
public void setCbsTranSeq(String cbsTranSeq) {
|
||||
this.cbsTranSeq = cbsTranSeq;
|
||||
}
|
||||
|
||||
public String getReserve1() {
|
||||
return reserve1;
|
||||
}
|
||||
|
||||
public void setReserve1(String reserve1) {
|
||||
this.reserve1 = reserve1;
|
||||
}
|
||||
|
||||
public String getReserve2() {
|
||||
return reserve2;
|
||||
}
|
||||
|
||||
public void setReserve2(String reserve2) {
|
||||
this.reserve2 = reserve2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public BizObject convertToEbank(BizObjectManager manager, String userId, String orgId) throws JBOException {
|
||||
String nowDateTime = LocalDateTime.now().format(GlobalConst.dateTimeFormatter);
|
||||
|
||||
BizObject bizObject = manager.newObject();
|
||||
bizObject.setAttributeValue(LC_EBANK.ID, "");
|
||||
// bizObject.setAttributeValue(LC_EBANK.EBANK_NUMBER, );
|
||||
bizObject.setAttributeValue(LC_EBANK.EBANK_SN, this.cbsTranSeq);
|
||||
bizObject.setAttributeValue(LC_EBANK.MONEY_TYPE, "currency_type1");
|
||||
bizObject.setAttributeValue(LC_EBANK.FACT_MONEY, this.dealMoney);
|
||||
bizObject.setAttributeValue(LC_EBANK.FACT_DATE, this.dealDate);
|
||||
bizObject.setAttributeValue(LC_EBANK.NOWITH_MONEY, 0);
|
||||
bizObject.setAttributeValue(LC_EBANK.RATE, 0);
|
||||
bizObject.setAttributeValue(LC_EBANK.OWN_BANK, CGBconfProperties.OWNACCBANK);
|
||||
bizObject.setAttributeValue(LC_EBANK.OWN_ACCOUNT, CGBconfProperties.OWNACCNAME);
|
||||
bizObject.setAttributeValue(LC_EBANK.OWNACC_NUMBER, CGBconfProperties.OWNACCNUMBER);
|
||||
bizObject.setAttributeValue(LC_EBANK.CLIENT_NAME, this.name);
|
||||
bizObject.setAttributeValue(LC_EBANK.CLIENT_BANK, "银行");
|
||||
bizObject.setAttributeValue(LC_EBANK.CLIENT_ACCOUNT, this.name);
|
||||
bizObject.setAttributeValue(LC_EBANK.CLIENT_ACC_NUMBER, this.oppoAccno);
|
||||
bizObject.setAttributeValue(LC_EBANK.HAD_MONEY, this.dealMoney);
|
||||
bizObject.setAttributeValue(LC_EBANK.MAYOPE_MONEY, this.dealMoney);
|
||||
// bizObject.setAttributeValue(LC_EBANK.FUND_MONEY, );
|
||||
bizObject.setAttributeValue(LC_EBANK.INVALID, "N");
|
||||
bizObject.setAttributeValue(LC_EBANK.SUMMARY, this.summary);
|
||||
bizObject.setAttributeValue(LC_EBANK.INPUTUSERID, userId);
|
||||
bizObject.setAttributeValue(LC_EBANK.INPUTORGID, orgId);
|
||||
bizObject.setAttributeValue(LC_EBANK.INPUTTIME, nowDateTime);
|
||||
bizObject.setAttributeValue(LC_EBANK.UPDATEUSERID, userId);
|
||||
bizObject.setAttributeValue(LC_EBANK.UPDATEORGID, orgId);
|
||||
bizObject.setAttributeValue(LC_EBANK.UPDATETIME, nowDateTime);
|
||||
bizObject.setAttributeValue(LC_EBANK.DEBIT_MONEY, this.dealMoney);
|
||||
bizObject.setAttributeValue(LC_EBANK.BUSINESS_TYPE, "汽车");
|
||||
bizObject.setAttributeValue(LC_EBANK.CUSTOMER_TYPE, "外部客商");
|
||||
return bizObject;
|
||||
}
|
||||
}
|
||||
25
src_tenwa/com/tenwa/cgbbank/dto/CGBBEDC.java
Normal file
25
src_tenwa/com/tenwa/cgbbank/dto/CGBBEDC.java
Normal file
@ -0,0 +1,25 @@
|
||||
package com.tenwa.cgbbank.dto;
|
||||
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
|
||||
|
||||
/**
|
||||
* @program: apzl_leasing
|
||||
* @description:
|
||||
* @author: À½Ü
|
||||
* @create: 2023-06-07 10:42
|
||||
*/
|
||||
@JacksonXmlRootElement(localName = "BEDC")
|
||||
public class CGBBEDC<T> {
|
||||
|
||||
@JacksonXmlProperty(localName = "Message")
|
||||
CGBMessage<T> message;
|
||||
|
||||
public CGBMessage<T> getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(CGBMessage<T> message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
33
src_tenwa/com/tenwa/cgbbank/dto/CGBMessage.java
Normal file
33
src_tenwa/com/tenwa/cgbbank/dto/CGBMessage.java
Normal file
@ -0,0 +1,33 @@
|
||||
package com.tenwa.cgbbank.dto;
|
||||
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
|
||||
|
||||
/**
|
||||
* @program: apzl_leasing
|
||||
* @description:
|
||||
* @author: À½Ü
|
||||
* @create: 2023-06-07 09:38
|
||||
*/
|
||||
public class CGBMessage<T> {
|
||||
|
||||
CGBMessageHead commHead;
|
||||
|
||||
@JacksonXmlProperty(localName = "Body")
|
||||
T body;
|
||||
|
||||
public CGBMessageHead getCommHead() {
|
||||
return commHead;
|
||||
}
|
||||
|
||||
public void setCommHead(CGBMessageHead commHead) {
|
||||
this.commHead = commHead;
|
||||
}
|
||||
|
||||
public T getBody() {
|
||||
return body;
|
||||
}
|
||||
|
||||
public void setBody(T body) {
|
||||
this.body = body;
|
||||
}
|
||||
}
|
||||
125
src_tenwa/com/tenwa/cgbbank/dto/CGBMessageHead.java
Normal file
125
src_tenwa/com/tenwa/cgbbank/dto/CGBMessageHead.java
Normal file
@ -0,0 +1,125 @@
|
||||
package com.tenwa.cgbbank.dto;
|
||||
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
|
||||
|
||||
/**
|
||||
* @program: apzl_leasing
|
||||
* @description:
|
||||
* @author: 李超杰
|
||||
* @create: 2023-06-07 09:40
|
||||
*/
|
||||
public class CGBMessageHead {
|
||||
|
||||
/**
|
||||
* 交易码
|
||||
* @description: 交易代码(必填字段)
|
||||
*/
|
||||
String tranCode;
|
||||
|
||||
/**
|
||||
* 客户号
|
||||
* @description: 标识企业身份,为银企直联的客户号(必填字段)
|
||||
*/
|
||||
String cifMaster;
|
||||
|
||||
/**
|
||||
* 企业财务系统流水号
|
||||
* @description: 企业财务系统自己产生的流水号。每天唯一(转账类交易每天必须唯一,查询类交易可不唯一,必填字段)
|
||||
*/
|
||||
String entSeqNo;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
* @description: 企业财务系统日期格式:YYYYMMDD(必填字段)
|
||||
*/
|
||||
String tranDate;
|
||||
|
||||
/**
|
||||
* 时间
|
||||
* @description: 企业财务系统时间格式:HHMMSS(必填字段)
|
||||
*/
|
||||
String tranTime;
|
||||
|
||||
/**
|
||||
* 返回码
|
||||
* @description: 企业上送报文留空(填空格),银行默认返回000
|
||||
*/
|
||||
String retCode;
|
||||
|
||||
/**
|
||||
* 操作员
|
||||
* @description: 银企直联的操作员(当设置了查询、转账交易必须校验操作员用户名密码,此字段必填)
|
||||
*/
|
||||
String entUserId;
|
||||
|
||||
/**
|
||||
* 操作密码
|
||||
* @description: 银企直联操作员登录密码(当设置了查询、转账交易必须校验操作员用户名密码,此字段必填)
|
||||
*/
|
||||
@JacksonXmlCData
|
||||
String password;
|
||||
|
||||
public String getTranCode() {
|
||||
return tranCode;
|
||||
}
|
||||
|
||||
public void setTranCode(String tranCode) {
|
||||
this.tranCode = tranCode;
|
||||
}
|
||||
|
||||
public String getCifMaster() {
|
||||
return cifMaster;
|
||||
}
|
||||
|
||||
public void setCifMaster(String cifMaster) {
|
||||
this.cifMaster = cifMaster;
|
||||
}
|
||||
|
||||
public String getEntSeqNo() {
|
||||
return entSeqNo;
|
||||
}
|
||||
|
||||
public void setEntSeqNo(String entSeqNo) {
|
||||
this.entSeqNo = entSeqNo;
|
||||
}
|
||||
|
||||
public String getTranDate() {
|
||||
return tranDate;
|
||||
}
|
||||
|
||||
public void setTranDate(String tranDate) {
|
||||
this.tranDate = tranDate;
|
||||
}
|
||||
|
||||
public String getTranTime() {
|
||||
return tranTime;
|
||||
}
|
||||
|
||||
public void setTranTime(String tranTime) {
|
||||
this.tranTime = tranTime;
|
||||
}
|
||||
|
||||
public String getRetCode() {
|
||||
return retCode;
|
||||
}
|
||||
|
||||
public void setRetCode(String retCode) {
|
||||
this.retCode = retCode;
|
||||
}
|
||||
|
||||
public String getEntUserId() {
|
||||
return entUserId;
|
||||
}
|
||||
|
||||
public void setEntUserId(String entUserId) {
|
||||
this.entUserId = entUserId;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
}
|
||||
28
src_tenwa/com/tenwa/cgbbank/enums/CGBInterfaceEnum.java
Normal file
28
src_tenwa/com/tenwa/cgbbank/enums/CGBInterfaceEnum.java
Normal file
@ -0,0 +1,28 @@
|
||||
package com.tenwa.cgbbank.enums;
|
||||
|
||||
/**
|
||||
* @program: apzl_leasing
|
||||
* @description:
|
||||
* @author: 李超杰
|
||||
* @create: 2023-06-07 15:09
|
||||
*/
|
||||
public enum CGBInterfaceEnum {
|
||||
|
||||
I0032("0032","交易明细查询-分页模式");
|
||||
|
||||
private String code;
|
||||
private String name;
|
||||
|
||||
CGBInterfaceEnum(String code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
112
src_tenwa/com/tenwa/cgbbank/helper/CGBBankInterfaceHelper.java
Normal file
112
src_tenwa/com/tenwa/cgbbank/helper/CGBBankInterfaceHelper.java
Normal file
@ -0,0 +1,112 @@
|
||||
package com.tenwa.cgbbank.helper;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
|
||||
import com.fasterxml.jackson.dataformat.xml.ser.XmlSerializerProvider;
|
||||
import com.fasterxml.jackson.dataformat.xml.util.XmlRootNameLookup;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.tenwa.cgb.conf.CGBconfProperties;
|
||||
import com.tenwa.cgb.util.CGBLogAssistant;
|
||||
import com.tenwa.cgb.util.HttpAssistant;
|
||||
import com.tenwa.cgbbank.dto.*;
|
||||
import com.tenwa.cgbbank.enums.CGBInterfaceEnum;
|
||||
import com.tenwa.cgbbank.xml.CustomNullSerializer;
|
||||
import com.tenwa.comm.util.date.DateAssistant;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* @program: apzl_leasing
|
||||
* @description:
|
||||
* @author: 李超杰
|
||||
* @create: 2023-06-06 17:39
|
||||
*/
|
||||
public class CGBBankInterfaceHelper {
|
||||
|
||||
private static Log log = LogFactory.getLog(CGBBankInterfaceHelper.class);
|
||||
|
||||
private static CGBBankInterfaceHelper instance = new CGBBankInterfaceHelper();
|
||||
|
||||
private CGBBankInterfaceHelper() {
|
||||
}
|
||||
|
||||
public static CGBBankInterfaceHelper getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private static XmlMapper xmlMapper = new XmlMapper();
|
||||
|
||||
static {
|
||||
XmlSerializerProvider provider = new XmlSerializerProvider(new XmlRootNameLookup());
|
||||
provider.setNullValueSerializer(new CustomNullSerializer());
|
||||
xmlMapper.setSerializerProvider(provider);
|
||||
}
|
||||
|
||||
/**
|
||||
* 0032-交易明细查询-分页模式
|
||||
*
|
||||
* @param reqBody
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public CGBBEDC<CGB0032ResBody> queryTransactionDetails(CGB0032ReqBody reqBody) throws Exception {
|
||||
return request(CGBInterfaceEnum.I0032, reqBody, new TypeReference<CGBBEDC<CGB0032ResBody>>() {
|
||||
});
|
||||
}
|
||||
|
||||
private <REQ, RES> CGBBEDC<RES> request(CGBInterfaceEnum interfaceEnum, REQ req, TypeReference<CGBBEDC<RES>> resTypeReference) throws Exception {
|
||||
String customerBatchNo = "AP" + System.currentTimeMillis();
|
||||
String cgbbedcXml = buildReqXml(interfaceEnum, req);
|
||||
log.info("CGB [" + customerBatchNo + "] 【" + interfaceEnum.getName() + "】请求参数: " + cgbbedcXml);
|
||||
CGBLogAssistant.insertCGBlog(interfaceEnum.getName(), interfaceEnum.getCode(), customerBatchNo, null, cgbbedcXml);
|
||||
String retMsg = HttpAssistant.post(CGBconfProperties.CGBURL, ImmutableMap.of("cgb_data", cgbbedcXml));
|
||||
|
||||
if (retMsg == null) {
|
||||
//更新返回日志
|
||||
// TODO 记录异常状态
|
||||
CGBLogAssistant.updateCGBlog(customerBatchNo, null, retMsg);
|
||||
throw new RuntimeException("连接前置机异常,请联系管理员!");
|
||||
}
|
||||
//更新返回日志
|
||||
CGBLogAssistant.updateCGBlog(customerBatchNo, null, retMsg);
|
||||
log.info("CGB [" + customerBatchNo + "] 【" + interfaceEnum.getName() + "】返回结果: " + retMsg);
|
||||
|
||||
CGBBEDC<RES> tcgbbedc = xmlMapper.readValue(retMsg, resTypeReference);
|
||||
return tcgbbedc;
|
||||
}
|
||||
|
||||
private <T> String buildReqXml(CGBInterfaceEnum interfaceEnum, T reqBody) throws JsonProcessingException {
|
||||
CGBMessageHead messageHead = new CGBMessageHead();
|
||||
messageHead.setTranCode(interfaceEnum.getCode());
|
||||
messageHead.setCifMaster(CGBconfProperties.CIFMASTER);
|
||||
messageHead.setEntSeqNo("CGB" + System.currentTimeMillis());
|
||||
messageHead.setTranDate(DateAssistant.getFormatDate("yyyyMMdd"));
|
||||
messageHead.setTranTime(DateAssistant.getFormatDate("HHmmss"));
|
||||
messageHead.setEntUserId(CGBconfProperties.ENTUSERID);
|
||||
messageHead.setPassword(CGBconfProperties.PASSWORD);
|
||||
|
||||
CGBMessage<T> message = new CGBMessage<>();
|
||||
message.setCommHead(messageHead);
|
||||
message.setBody(reqBody);
|
||||
|
||||
CGBBEDC<T> cgbbedc = new CGBBEDC<>();
|
||||
cgbbedc.setMessage(message);
|
||||
return "<?xml version=\"1.0\" encoding=\"GBK\"?>" + xmlMapper.writeValueAsString(cgbbedc);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws JsonProcessingException {
|
||||
CGB0032ReqBody reqBody = new CGB0032ReqBody();
|
||||
reqBody.setAccount("23232326454534767987");
|
||||
reqBody.setBeginDate("20230614");
|
||||
reqBody.setEndDate("20230614");
|
||||
reqBody.setQueryType(0);
|
||||
reqBody.setQueryNumber(20);
|
||||
|
||||
|
||||
CGBBankInterfaceHelper instance1 = CGBBankInterfaceHelper.getInstance();
|
||||
String xml = instance1.buildReqXml(CGBInterfaceEnum.I0032, reqBody);
|
||||
System.out.println(xml);
|
||||
|
||||
}
|
||||
}
|
||||
85
src_tenwa/com/tenwa/cgbbank/service/CGBBankService.java
Normal file
85
src_tenwa/com/tenwa/cgbbank/service/CGBBankService.java
Normal file
@ -0,0 +1,85 @@
|
||||
package com.tenwa.cgbbank.service;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.tenwa.cgbbank.dto.*;
|
||||
import com.tenwa.cgbbank.helper.CGBBankInterfaceHelper;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @program: apzl_leasing
|
||||
* @description:
|
||||
* @author: 李超杰
|
||||
* @create: 2023-06-14 09:30
|
||||
*/
|
||||
public class CGBBankService {
|
||||
|
||||
private static Log log = LogFactory.getLog(CGBBankService.class);
|
||||
|
||||
private static CGBBankService instance = new CGBBankService();
|
||||
|
||||
private CGBBankService() {
|
||||
}
|
||||
|
||||
public static CGBBankService getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private static CGBBankInterfaceHelper cgbBankInterfaceHelper = CGBBankInterfaceHelper.getInstance();
|
||||
|
||||
// 默认操作人ID
|
||||
private String defOperUserId = "admin";
|
||||
// 默认操作人部门ID
|
||||
private String defOperOrgId = "8009001";
|
||||
|
||||
private static final Integer QUERY_PAGE_SIZE = 20;
|
||||
|
||||
public void queryAndSaveTransactionDetailsToEbank(String account, String queryDate) throws JBOException {
|
||||
|
||||
CGB0032ReqBody reqBody = new CGB0032ReqBody();
|
||||
reqBody.setAccount(account);
|
||||
reqBody.setBeginDate(queryDate);
|
||||
reqBody.setEndDate(queryDate);
|
||||
reqBody.setQueryType(0);
|
||||
reqBody.setQueryNumber(QUERY_PAGE_SIZE);
|
||||
|
||||
boolean queryFlag = true;
|
||||
// List<BizObject> ebankObjList = new ArrayList<>();
|
||||
BizObjectManager bizObjectManager = JBOFactory.getBizObjectManager("jbo.app.tenwa.calc.LC_EBANK");
|
||||
while (queryFlag) {
|
||||
CGBBEDC<CGB0032ResBody> cgb0032ResBodyCGBBEDC = null;
|
||||
try {
|
||||
cgb0032ResBodyCGBBEDC = cgbBankInterfaceHelper.queryTransactionDetails(reqBody);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
CGBMessage<CGB0032ResBody> message = cgb0032ResBodyCGBBEDC.getMessage();
|
||||
CGB0032ResBody resBody = message.getBody();
|
||||
|
||||
List<CGB0032ResBodyRecord> records = resBody.getRecords();
|
||||
// 转换成网银流水
|
||||
// ebankObjList.clear();
|
||||
for (CGB0032ResBodyRecord record : records) {
|
||||
if (record.getFinancingSymbol().equals("+")) {
|
||||
// ebankObjList.add();
|
||||
BizObject bizObject = record.convertToEbank(bizObjectManager, defOperUserId, defOperOrgId);
|
||||
bizObjectManager.saveObject(bizObject);
|
||||
}
|
||||
}
|
||||
|
||||
if (resBody.getPageFlag() != 1) {
|
||||
queryFlag = false;
|
||||
} else {
|
||||
reqBody.setBeginRecTranDate(resBody.getNextRecTranDate());
|
||||
reqBody.setBeginRecTranSeq(resBody.getNextRecTranSeq());
|
||||
reqBody.setBeginRecTranCode(resBody.getNextRecTranCode());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
16
src_tenwa/com/tenwa/cgbbank/xml/CustomNullSerializer.java
Normal file
16
src_tenwa/com/tenwa/cgbbank/xml/CustomNullSerializer.java
Normal file
@ -0,0 +1,16 @@
|
||||
package com.tenwa.cgbbank.xml;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonGenerator;
|
||||
import com.fasterxml.jackson.databind.JsonSerializer;
|
||||
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class CustomNullSerializer extends JsonSerializer<Object> {
|
||||
|
||||
@Override
|
||||
public void serialize(Object o, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
|
||||
jsonGenerator.writeString("");
|
||||
}
|
||||
}
|
||||
20
src_tenwa/com/tenwa/util/GlobalConst.java
Normal file
20
src_tenwa/com/tenwa/util/GlobalConst.java
Normal file
@ -0,0 +1,20 @@
|
||||
package com.tenwa.util;
|
||||
|
||||
import java.time.format.DateTimeFormatter;
|
||||
|
||||
/**
|
||||
* @program: apzl_leasing
|
||||
* @description:
|
||||
* @author: À½Ü
|
||||
* @create: 2023-06-08 16:50
|
||||
*/
|
||||
public final class GlobalConst {
|
||||
|
||||
public static final DateTimeFormatter dateFormatterNone = DateTimeFormatter.ofPattern("yyyyMMdd");
|
||||
public static final DateTimeFormatter dateFormatterSlash = DateTimeFormatter.ofPattern("yyyy/MM/dd");
|
||||
public static final DateTimeFormatter dateFormatterBar = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
||||
public static final DateTimeFormatter dateFormatterCN = DateTimeFormatter.ofPattern("yyyyÄêMMÔÂddÈÕ");
|
||||
public static final DateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern("HH:mm:ss");
|
||||
public static final DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss");
|
||||
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package quartz;
|
||||
|
||||
import com.tenwa.cgb.conf.CGBconfProperties;
|
||||
import com.tenwa.cgbbank.service.CGBBankService;
|
||||
import com.tenwa.util.GlobalConst;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.quartz.Job;
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.quartz.JobExecutionException;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
|
||||
/**
|
||||
* @program: apzl_leasing
|
||||
* @description: 拉取广发银行网银流水
|
||||
* @author: 李超杰
|
||||
* @create: 2023-06-06 16:23
|
||||
*/
|
||||
public class CGBOnlineBankingTransactionRecordsPullJob implements Job {
|
||||
|
||||
private static Log log = LogFactory.getLog(CGBBankService.class);
|
||||
|
||||
private static CGBBankService cgbBankService = CGBBankService.getInstance();
|
||||
|
||||
@Override
|
||||
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
||||
String yesterday = LocalDate.now().minusDays(1).format(GlobalConst.dateFormatterNone);
|
||||
try {
|
||||
cgbBankService.queryAndSaveTransactionDetailsToEbank(CGBconfProperties.OWNACCNUMBER, yesterday);
|
||||
} catch (Throwable e) {
|
||||
log.error("定时任务拉取广发银行网银流水失败!拉取日期:" + yesterday + ",本方账号:" + CGBconfProperties.OWNACCNUMBER, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user