添加卡扣日志

This commit is contained in:
gityjf 2021-06-21 17:30:14 +08:00
parent 534b54a3d8
commit 87d6627b6a

View File

@ -78,17 +78,22 @@ public class AllinpayPaymentRun implements Runnable {
mapXml.put("PROJECT_ID", sqlMap.get("PROJECT_ID"));
mapXml.put("CUST_USERID", sqlMap.get("PROJECT_ID"));
sqlMap = sendMessageByProxy(mapXml, sqlMap);
String rentId = map.get("UUID").split("-")[0];
if("正在处理".equals(sqlMap.get("STATUS"))){
BizObjectManager bomLRP = JBOFactory.getBizObjectManager("jbo.app.tenwa.calc.LC_RENT_PLAN");
String rentId = map.get("UUID").split("-")[0];
BizObject boLRP = bomLRP.createQuery("id=:id").setParameter("id", rentId).getSingleResult(true);
boLRP.setAttributeValue("batch_status", "process");
bomLRP.saveObject(boLRP);
}else if ("正在处理,处理成功".indexOf(sqlMap.get("STATUS"))==-1){
BizObjectManager bomLRP = JBOFactory.getBizObjectManager("jbo.app.tenwa.calc.LC_RENT_PLAN");
BizObject boLRP = bomLRP.createQuery("id=:id").setParameter("id", rentId).getSingleResult(true);
boLRP.setAttributeValue("collect_msg", sqlMap.get("STATUS"));
bomLRP.saveObject(boLRP);
saveBuckle(sqlMap);
}
saveRequestTxt(sqlMap);
sqlMap.put("FULLPATH", localFilePath);
saveMessage(sqlMap);
if("正在处理,处理成功".indexOf(sqlMap.get("STATUS"))==-1)saveBuckle(sqlMap);
} catch (Exception e) {
logger.error(">>>>>>>>>>>通联卡扣协议支付失败>>>>>>>>");
e.printStackTrace();
@ -238,6 +243,7 @@ public class AllinpayPaymentRun implements Runnable {
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_STATUS, "");
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");