cbs8 插件
This commit is contained in:
parent
20091505d8
commit
89e2f4326c
|
@ -3,6 +3,7 @@ package com.hzya.frame.plugin.cbs8.plugin;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.hzya.frame.base.PluginBaseEntity;
|
import com.hzya.frame.base.PluginBaseEntity;
|
||||||
import com.hzya.frame.plugin.cbs8.service.ICbsPluginService;
|
import com.hzya.frame.plugin.cbs8.service.ICbsPluginService;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
@ -96,8 +97,14 @@ public class PayApplyPluginInitializer extends PluginBaseEntity {
|
||||||
**/
|
**/
|
||||||
@Override
|
@Override
|
||||||
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
||||||
|
PaymentEntity paymentEntity;
|
||||||
|
if (null != requestJson){
|
||||||
|
requestJson.remove("jsonStr");
|
||||||
|
}
|
||||||
//支付申请
|
//支付申请
|
||||||
// cbsPluginService.applyPay(requestJson);
|
paymentEntity = new PaymentEntity();
|
||||||
|
paymentEntity.setOaId("5490849762671477371");
|
||||||
|
cbsPluginService.applyPay(paymentEntity);
|
||||||
return null;
|
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.cbs8.dto.res.TransactionDetailDTO;
|
||||||
import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity;
|
import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity;
|
||||||
import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity;
|
import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -20,9 +21,9 @@ public interface ICbsPluginService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 支付申请
|
* 支付申请
|
||||||
* @param requestJson
|
* @param entity
|
||||||
*/
|
*/
|
||||||
void applyPay(JSONObject requestJson)throws Exception;
|
void applyPay(PaymentEntity entity)throws Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询支付申请的交易结果
|
* 查询支付申请的交易结果
|
||||||
|
|
|
@ -60,12 +60,14 @@ public class CbsPluginServiceImpl implements ICbsPluginService {
|
||||||
/**
|
/**
|
||||||
* 支付申请
|
* 支付申请
|
||||||
*
|
*
|
||||||
* @param requestJson
|
* @param paymentEntity
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void applyPay(JSONObject requestJson) throws Exception{
|
public void applyPay(PaymentEntity paymentEntity) throws Exception{
|
||||||
//查询待支付的列表
|
//查询待支付的列表
|
||||||
PaymentEntity paymentEntity = new PaymentEntity();
|
if (null == paymentEntity){
|
||||||
|
paymentEntity = new PaymentEntity();
|
||||||
|
}
|
||||||
paymentEntity.setDataSourceCode(oa_data_source_code);
|
paymentEntity.setDataSourceCode(oa_data_source_code);
|
||||||
List<PaymentEntity> paymentList = paymentService.queryUnpaid(paymentEntity);
|
List<PaymentEntity> paymentList = paymentService.queryUnpaid(paymentEntity);
|
||||||
/* List<PaymentEntity> paymentList = new ArrayList<>();
|
/* List<PaymentEntity> paymentList = new ArrayList<>();
|
||||||
|
|
Loading…
Reference in New Issue