This commit is contained in:
xiang2lin 2024-07-01 15:00:23 +08:00
parent bd18c8aa75
commit 5f748a699c
2 changed files with 30 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package com.hzya.frame.cbs8.service;
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
import com.hzya.frame.sysnew.messageManageLog.entity.SysMessageManageLogEntity;
/**
* @Description
@ -16,6 +17,11 @@ public interface ICbs8ExtService {
*/
SysExtensionApiEntity payApply(SysExtensionApiEntity entity);
/**
* 支付申请回调
* @param logEntity
*/
void payApplyCallBack(SysMessageManageLogEntity logEntity);
/**
* 代发代扣 支付申请
* @param entity

View File

@ -10,6 +10,8 @@ import com.hzya.frame.cbs8.util.CbsAccessToken;
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
import com.hzya.frame.stringutil.StringUtil;
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity;
import com.hzya.frame.sysnew.messageManageLog.entity.SysMessageManageLogEntity;
import com.hzya.frame.web.exception.BaseSystemException;
import org.apache.http.protocol.HTTP;
import org.slf4j.Logger;
@ -63,11 +65,33 @@ public class Cbs8ExtServiceImpl implements ICbs8ExtService {
String requestData = JSONObject.toJSONString(list);
//加密 签名
encrypAndsign(entity,requestData);
entity.setBodys(JSONObject.toJSONString(payRequestDTO));
}
}
return entity;
}
/**
* 支付申请回调
*
* @param logEntity
*/
@Override
public void payApplyCallBack(SysMessageManageLogEntity logEntity) {
//todo 这里要验证一下bodys里有没有数据
logger.info("回调方法里的参数:{}",JSONObject.toJSONString(logEntity));
//6记录系统日志
IntegrationTaskLivingDetailsEntity logTask = new IntegrationTaskLivingDetailsEntity();
//logTask.setRootAppPk(pay.getFormsonId());
//logTask.setRootAppBill(pay.getReferenceNum());
//对方接口返回信息
//logTask.setNewTransmitInfo(JSONObject.toJSONString(payResponseDTO));
logTask.setNewPushDate(new Date());
//调用接口请求参数
logTask.setRootAppNewData("");
//saveTaskLog();
}
/**
* 代发代扣 支付申请
*