添加卡扣日志
This commit is contained in:
parent
a733090a8e
commit
3a0d9f04e5
@ -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<String, String> 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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user