修改百融下载等待时间

This commit is contained in:
tangfutang 2021-03-19 09:51:11 +08:00
parent a1170e7181
commit 235de47f6c
2 changed files with 9 additions and 1 deletions

View File

@ -46,6 +46,10 @@ LEFT JOIN lc_rent_income_temp_transfer lcfi ON lcf.PAYMENT_NUMBER = lcfi.payment
WHERE plan_date<DATE_FORMAT(NOW(),''%Y/%m/%d'')
) t where penalty_over>0 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','','');
-- 生产环境已执行 ----------------------------------------------------------------

View File

@ -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){