From 3a0d9f04e584de363a516c5c59c00a268ff30ec5 Mon Sep 17 00:00:00 2001 From: gityjf <2211675158@qq.com> Date: Tue, 15 Jun 2021 15:30:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=A1=E6=89=A3=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/AllinpayPaymentRun.java | 48 +++++++++++++------ 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/src/com/tenwa/lease/app/allinpay/service/impl/AllinpayPaymentRun.java b/src/com/tenwa/lease/app/allinpay/service/impl/AllinpayPaymentRun.java index 9343f0007..d4362511d 100644 --- a/src/com/tenwa/lease/app/allinpay/service/impl/AllinpayPaymentRun.java +++ b/src/com/tenwa/lease/app/allinpay/service/impl/AllinpayPaymentRun.java @@ -1,5 +1,21 @@ package com.tenwa.lease.app.allinpay.service.impl; +import com.allinpay.xml.XmlParser; +import com.allinpay.xstruct.common.AipgRsp; +import com.allinpay.xstruct.common.InfoRsp; +import com.allinpay.xstruct.quickpay.FASTTRXRET; +import com.amarsoft.app.lc.util.DateAssistant; +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.amarsoft.are.util.StringFunction; +import com.tenwa.lease.app.allinpay.util.AllinpayProperties; +import com.tenwa.lease.app.allinpay.util.ConfigConstant; +import com.tenwa.reckon.util.UUIDUtil; +import jbo.com.tenwa.lease.comm.LB_BUCKLE_LOG; +import org.apache.log4j.Logger; + import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; @@ -11,19 +27,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; -import org.apache.log4j.Logger; - -import com.allinpay.xml.XmlParser; -import com.allinpay.xstruct.common.AipgRsp; -import com.allinpay.xstruct.common.InfoRsp; -import com.allinpay.xstruct.quickpay.FASTTRXRET; -import com.amarsoft.app.lc.util.DateAssistant; -import com.amarsoft.are.jbo.BizObject; -import com.amarsoft.are.jbo.BizObjectManager; -import com.amarsoft.are.jbo.JBOFactory; -import com.tenwa.lease.app.allinpay.util.AllinpayProperties; -import com.tenwa.lease.app.allinpay.util.ConfigConstant; -import com.tenwa.reckon.util.UUIDUtil; public class AllinpayPaymentRun implements Runnable { @@ -85,7 +88,7 @@ public class AllinpayPaymentRun implements Runnable { saveRequestTxt(sqlMap); sqlMap.put("FULLPATH", localFilePath); saveMessage(sqlMap); - + if("正在处理,处理成功".indexOf(sqlMap.get("STATUS"))==-1)saveBuckle(sqlMap); } catch (Exception e) { logger.error(">>>>>>>>>>>通联卡扣协议支付失败>>>>>>>>"); e.printStackTrace(); @@ -228,4 +231,21 @@ public class AllinpayPaymentRun implements Runnable { e.printStackTrace(); } } + + private void saveBuckle(Map map) throws JBOException { + BizObjectManager blog = JBOFactory.getBizObjectManager(LB_BUCKLE_LOG.CLASS_NAME); + BizObject blbo = blog.newObject(); + blbo.setAttributeValue("COLLECT_STATUS","未收款"); + blbo.setAttributeValue("COLLECT_MSG", map.get("STATUS")); + blbo.setAttributeValue(LB_BUCKLE_LOG.BATCH_SN, "TLCollect"); + blbo.setAttributeValue(LB_BUCKLE_LOG.BATCH_NO, "001"); + blbo.setAttributeValue(LB_BUCKLE_LOG.RENT_ID, map.get("UUID").split("-")[0]); + blbo.setAttributeValue(LB_BUCKLE_LOG.cut_money,"0.00"); + blbo.setAttributeValue(LB_BUCKLE_LOG.inputuserid, "syetem"); + blbo.setAttributeValue(LB_BUCKLE_LOG.inputorgid, "system"); + blbo.setAttributeValue(LB_BUCKLE_LOG.inputtime, StringFunction.getTodayNow()); + blbo.setAttributeValue(LB_BUCKLE_LOG.updatetime, System.currentTimeMillis()); + blbo.setAttributeValue(LB_BUCKLE_LOG.deduction_type, "通联扣款"); + blog.saveObject(blbo); + } }