From 235de47f6c0f75d89ed17d306ab6780c22196d23 Mon Sep 17 00:00:00 2001 From: tangfutang Date: Fri, 19 Mar 2021 09:51:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BE=E8=9E=8D=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E7=AD=89=E5=BE=85=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src_sql/dailyfix/tft_dailyfix.sql | 4 ++++ src_tenwa/com/tenwa/flow/Bigdata/BaiRongVerification.java | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src_sql/dailyfix/tft_dailyfix.sql b/src_sql/dailyfix/tft_dailyfix.sql index 54f530561..c58f54b95 100644 --- a/src_sql/dailyfix/tft_dailyfix.sql +++ b/src_sql/dailyfix/tft_dailyfix.sql @@ -46,6 +46,10 @@ LEFT JOIN lc_rent_income_temp_transfer lcfi ON lcf.PAYMENT_NUMBER = lcfi.payment WHERE plan_date0 group by payment_number) vlrp on vlrp.payment_number = lccs.payment_number left join (select lu.contract_id,ci.customerid,ci.customername from LB_UNIon_LESSEE lu,CUSTOMER_INFO ci where lu.CUSTOMER_ID = ci.customerid and is_main = ''y'') as lul on lul.ConTRACT_ID = lci.id left join user_info ui on ui.userid = lci.PROJECT_MANAGE left join org_info oi on oi.orgid = lci.PROJECT_DEPT left join lb_contract_status lcs on lcs.STATUS_CODE = lccs.plan_status left join code_library cl on cl.itemno = lci.PROJECT_INDUSTRY and cl.codeno = ''cust_kind'' where lci.businesstype = ''1'' and lccs.PLAN_STATUS = ''31'' and vlrp.penaltyover > 0 and lccs.PAYMENT_NUMBER not in (select payment_number from lc_occupy_rent_list where flow_name not in(''网银收款'',''保证金抵扣流程'',''罚息减免流程''))','业务合同号,合同编号,项目编号,产品编号,项目名称,投放编号,租金余额,罚息余额,承租人,内部行业,经销商SP,经销商,投放状态','','id@product_id@project_id@PROJECT_NAME@PAYMENT_NUMBER@contract_number','contract_number,orgname,customername','1','Single','rentover@3@penaltyover@3','','penaltyover@2@rentover@2','','contract_number@ @ @Contains@orgname@ @ @Contains@customername@ @ @Contains','SYS_Designer','','2017/06/26 08:37:31','SYS_Designer','2021/03/03 16:27:33',''); +-- 添加百融文件下载前等到时间配置 +Insert Into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('baiRong','00219010','1.基础配置','模板管理','百融超时配置','','','SYS_Designer',null,'2021/03/18 17:32:35','SYS_Designer','2021/03/18 17:32:35',''); +Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('baiRong','2500','毫秒配置','','0010','1','','','','','','','','','','','','SYS_Designer',null,'2021/03/18 17:32:35','SYS_Designer','2021/03/18 17:33:05','',''); + -- 生产环境已执行 ---------------------------------------------------------------- diff --git a/src_tenwa/com/tenwa/flow/Bigdata/BaiRongVerification.java b/src_tenwa/com/tenwa/flow/Bigdata/BaiRongVerification.java index f3e93f702..64b219047 100644 --- a/src_tenwa/com/tenwa/flow/Bigdata/BaiRongVerification.java +++ b/src_tenwa/com/tenwa/flow/Bigdata/BaiRongVerification.java @@ -8,6 +8,7 @@ import jbo.com.tenwa.lease.comm.LB_BAIRONG_BEFORELOAN; import jbo.com.tenwa.lease.comm.LB_BAIRONG_LOG; import jbo.com.tenwa.lease.comm.LB_BAIRONG_LOGIN; import jbo.com.tenwa.lease.comm.LB_BAIRONG_VERIFICATION; +import jbo.ui.system.CODE_LIBRARY; import net.sf.json.JSONObject; import org.apache.commons.lang.StringUtils; @@ -132,7 +133,7 @@ public class BaiRongVerification { } BizObject bj= manage.createQuery(" flow_unid=:flow_unid and certid=:certid ").setParameter("flow_unid", flowUnid).setParameter("certid", certid).getSingleResult(true); String codeStatus = bj == null ? "" : bj.getAttribute("code_status").toString(); - if(!(codeStatus.equals("00")||codeStatus.equals("100002 "))){ + if(!(codeStatus.equals("00")||codeStatus.equals("100002"))){ if(bj == null){ bj = manage.newObject(); } @@ -239,6 +240,9 @@ public class BaiRongVerification { if (!file.exists()) { file.mkdirs(); } + BizObjectManager clManage = JBOFactory.getBizObjectManager(CODE_LIBRARY.CLASS_NAME,tx); + BizObject cl = clManage.createQuery(" codeno='baiRong' ").getSingleResult(false); + Thread.currentThread().sleep( Long.parseLong( cl.getAttribute("itemno").getString() ) ); String downFile = HttpConnectionManager4.downFile(url, paramMap,filePath+"/"+swiftNumber+".pdf"); String logid = UUIDUtil.getUUID(); if(downFile.indexOf("下载成功")>=0){