cbs8交易日志查询
This commit is contained in:
parent
48186afb82
commit
6a2691ff69
|
@ -3,6 +3,7 @@ package com.hzya.frame.plugin.cbs8.plugin;
|
|||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.plugin.cbs8.service.ICbsPluginService;
|
||||
import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -95,7 +96,15 @@ public class PayResultPluginInitializer extends PluginBaseEntity {
|
|||
**/
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
||||
cbsPluginService.queryResult(requestJson);
|
||||
CbsLogEntity cbsLogEntity = null;
|
||||
if (null != requestJson){
|
||||
requestJson.remove("jsonStr");
|
||||
cbsLogEntity = JSONObject.parseObject(requestJson.toString(),CbsLogEntity.class);
|
||||
}
|
||||
if (null == cbsLogEntity){
|
||||
cbsLogEntity = new CbsLogEntity();
|
||||
}
|
||||
cbsPluginService.queryResult(cbsLogEntity);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@ import com.hzya.frame.cbs8.dto.res.PayResponseDTO;
|
|||
import com.hzya.frame.cbs8.dto.res.TransactionDetailDTO;
|
||||
import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity;
|
||||
import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity;
|
||||
import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity;
|
||||
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -27,10 +28,10 @@ public interface ICbsPluginService {
|
|||
|
||||
/**
|
||||
* 查询支付申请的交易结果
|
||||
* @param requestJson
|
||||
* @param cbsLogEntity
|
||||
* @throws Exception
|
||||
*/
|
||||
void queryResult(JSONObject requestJson)throws Exception;
|
||||
void queryResult(CbsLogEntity cbsLogEntity)throws Exception;
|
||||
|
||||
/**
|
||||
* 电子回单查询 并上传OA
|
||||
|
|
|
@ -107,12 +107,14 @@ public class CbsPluginServiceImpl implements ICbsPluginService {
|
|||
/**
|
||||
* 查询支付申请的交易结果
|
||||
*
|
||||
* @param requestJson
|
||||
* @param cbsLogEntity
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void queryResult(JSONObject requestJson) throws Exception {
|
||||
CbsLogEntity cbsLogEntity = new CbsLogEntity();
|
||||
public void queryResult(CbsLogEntity cbsLogEntity) throws Exception {
|
||||
if (null == cbsLogEntity){
|
||||
cbsLogEntity = new CbsLogEntity();
|
||||
}
|
||||
// 1、查询支付中的日志
|
||||
List<CbsLogEntity> inPayList = cbsLogService.queryInPayment(cbsLogEntity);
|
||||
if (CollectionUtils.isNotEmpty(inPayList)){
|
||||
|
|
Loading…
Reference in New Issue