Merge branches 'dev' and 'yuecheng-project' of http://192.168.2.237:3000/root/kangarooDataCenterV3 into yuecheng-project
This commit is contained in:
commit
e23ca7ef21
|
@ -87,6 +87,12 @@
|
||||||
<profile.active>ydc</profile.active>
|
<profile.active>ydc</profile.active>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>yc</id> <!--越城区-->
|
||||||
|
<properties>
|
||||||
|
<profile.active>yc</profile.active>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
<build>
|
<build>
|
||||||
<finalName>kangarooDataCenterV3</finalName>
|
<finalName>kangarooDataCenterV3</finalName>
|
||||||
|
|
|
@ -0,0 +1,111 @@
|
||||||
|
package com.hzya.frame.plugin.cbs8.plugin;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.base.PluginBaseEntity;
|
||||||
|
import com.hzya.frame.cbs8.dto.req.AgentPayResultRequestDTO;
|
||||||
|
import com.hzya.frame.cbs8.dto.res.AgentPayResultResDTO;
|
||||||
|
import com.hzya.frame.plugin.cbs8.service.ICbsPluginService;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
import org.checkerframework.checker.units.qual.A;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/18 17:22
|
||||||
|
**/
|
||||||
|
public class AgentPayResultPluginInitializer extends PluginBaseEntity {
|
||||||
|
Logger logger = LoggerFactory.getLogger(AgentPayResultPluginInitializer.class);
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ICbsPluginService cbsPluginService;
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 插件初始化方法
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-02 10:48
|
||||||
|
* @Param []
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void initialize() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件销毁方法
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void destroy() {
|
||||||
|
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的ID
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginId() {
|
||||||
|
return "CBS8AgentPayResultPlugin";
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的名称
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginName() {
|
||||||
|
return "cbs8代发代扣详情查询插件";
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的显示值
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginLabel() {
|
||||||
|
return "cbs8代发代扣详情查询插件";
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 插件类型 1、场景插件
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-02 14:01
|
||||||
|
* @Param []
|
||||||
|
* @return java.lang.String
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginType() {
|
||||||
|
return "1";
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 执行业务代码
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-07 11:20
|
||||||
|
* @param requestJson 执行业务代码的参数
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
||||||
|
//1、查询代发代扣交易未完成代
|
||||||
|
//2、调用cbs接口
|
||||||
|
AgentPayResultRequestDTO agentPayResultRequestDTO = new AgentPayResultRequestDTO();
|
||||||
|
agentPayResultRequestDTO.setBusNum("");
|
||||||
|
AgentPayResultResDTO agentPayResultResDTO = cbsPluginService.agentPayResult(agentPayResultRequestDTO);
|
||||||
|
//更新OA表单
|
||||||
|
//记录日志
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,101 @@
|
||||||
|
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.web.entity.JsonResultEntity;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 电子回单定时任务
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/17 14:03
|
||||||
|
**/
|
||||||
|
public class ElecBillPluginInitializer extends PluginBaseEntity {
|
||||||
|
|
||||||
|
Logger logger = LoggerFactory.getLogger(getClass());
|
||||||
|
@Autowired
|
||||||
|
private ICbsPluginService cbsPluginService;
|
||||||
|
/***
|
||||||
|
* 插件初始化方法
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-02 10:48
|
||||||
|
* @Param []
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void initialize() {
|
||||||
|
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件销毁方法
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void destroy() {
|
||||||
|
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的ID
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginId() {
|
||||||
|
return "CBS8ElecBillPlugin";
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的名称
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginName() {
|
||||||
|
return "cbs8电子回单插件";
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的显示值
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginLabel() {
|
||||||
|
return "cbs8电子回单插件";
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 插件类型 1、场景插件
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-02 14:01
|
||||||
|
* @Param []
|
||||||
|
* @return java.lang.String
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginType() {
|
||||||
|
return "1";
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 执行业务代码
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-07 11:20
|
||||||
|
* @param requestJson 执行业务代码的参数
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
||||||
|
cbsPluginService.elecBillUpload(requestJson);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,128 @@
|
||||||
|
package com.hzya.frame.plugin.cbs8.plugin;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.base.PluginBaseEntity;
|
||||||
|
import com.hzya.frame.cbs8.dto.res.PayResponseDTO;
|
||||||
|
import com.hzya.frame.plugin.cbs8.service.ICbsPluginService;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.service.IAgentPaymentService;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/18 14:03
|
||||||
|
**/
|
||||||
|
public class PayApplyAgentPluginInitializer extends PluginBaseEntity {
|
||||||
|
Logger logger = LoggerFactory.getLogger(PayApplyAgentPluginInitializer.class);
|
||||||
|
@Autowired
|
||||||
|
private ICbsPluginService cbsPluginService;
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IAgentPaymentService agentPaymentService;
|
||||||
|
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 插件初始化方法
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-02 10:48
|
||||||
|
* @Param []
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void initialize() {
|
||||||
|
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件销毁方法
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void destroy() {
|
||||||
|
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的ID
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginId() {
|
||||||
|
return "CBS8PayApplyAgentPlugin";
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的名称
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginName() {
|
||||||
|
return "cbs8代发代扣插件";
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的显示值
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginLabel() {
|
||||||
|
return "cbs8代发代扣插件";
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 插件类型 1、场景插件
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-02 14:01
|
||||||
|
* @Param []
|
||||||
|
* @return java.lang.String
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginType() {
|
||||||
|
return "1";
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 执行业务代码
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-07 11:20
|
||||||
|
* @param requestJson 执行业务代码的参数
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
||||||
|
//1、查询代支付的
|
||||||
|
AgentPaymentEntity agentPaymentEntity = new AgentPaymentEntity();
|
||||||
|
List<AgentPaymentEntity> agentPaymentList = agentPaymentService.queryUnpaid(agentPaymentEntity);
|
||||||
|
if (CollectionUtils.isNotEmpty(agentPaymentList)){
|
||||||
|
for (AgentPaymentEntity paymentEntity : agentPaymentList) {
|
||||||
|
AgentPaymentDetailEntity detailEntity = new AgentPaymentDetailEntity();
|
||||||
|
detailEntity.setFormmainId(paymentEntity.getId());
|
||||||
|
List<AgentPaymentDetailEntity> agentPaymentDetailList = agentPaymentService.queryDetails(detailEntity);
|
||||||
|
if (CollectionUtils.isNotEmpty(agentPaymentDetailList)){
|
||||||
|
//调用代发代扣接口
|
||||||
|
PayResponseDTO payResponseDTO = cbsPluginService.applyAgentPay(paymentEntity, agentPaymentDetailList);
|
||||||
|
//更新OA表单
|
||||||
|
//记录日志
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,103 @@
|
||||||
|
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.web.entity.JsonResultEntity;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 经办支付申请
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/7 13:42
|
||||||
|
**/
|
||||||
|
public class PayApplyPluginInitializer extends PluginBaseEntity {
|
||||||
|
Logger logger = LoggerFactory.getLogger(PayApplyPluginInitializer.class);
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ICbsPluginService cbsPluginService;
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 插件初始化方法
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-02 10:48
|
||||||
|
* @Param []
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void initialize() {
|
||||||
|
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件销毁方法
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void destroy() {
|
||||||
|
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的ID
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginId() {
|
||||||
|
return "CBS8PayApplyPlugin";
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的名称
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginName() {
|
||||||
|
return "cbs8支付申请插件";
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的显示值
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginLabel() {
|
||||||
|
return "cbs8支付申请插件";
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 插件类型 1、场景插件
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-02 14:01
|
||||||
|
* @Param []
|
||||||
|
* @return java.lang.String
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginType() {
|
||||||
|
return "1";
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 执行业务代码
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-07 11:20
|
||||||
|
* @param requestJson 执行业务代码的参数
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
||||||
|
//支付申请
|
||||||
|
// cbsPluginService.applyPay(requestJson);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,101 @@
|
||||||
|
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.web.entity.JsonResultEntity;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 查询支付结果
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/14 16:24
|
||||||
|
**/
|
||||||
|
public class PayResultPluginInitializer extends PluginBaseEntity {
|
||||||
|
Logger logger = LoggerFactory.getLogger(PayResultPluginInitializer.class);
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ICbsPluginService cbsPluginService;
|
||||||
|
/***
|
||||||
|
* 插件初始化方法
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-02 10:48
|
||||||
|
* @Param []
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void initialize() {
|
||||||
|
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件销毁方法
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void destroy() {
|
||||||
|
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的ID
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginId() {
|
||||||
|
return "CBS8PayResultPlugin";
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的名称
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginName() {
|
||||||
|
return "cbs8支付结果查询插件";
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的显示值
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginLabel() {
|
||||||
|
return "cbs8支付结果查询插件";
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 插件类型 1、场景插件
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-02 14:01
|
||||||
|
* @Param []
|
||||||
|
* @return java.lang.String
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginType() {
|
||||||
|
return "1";
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 执行业务代码
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-07 11:20
|
||||||
|
* @param requestJson 执行业务代码的参数
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
||||||
|
cbsPluginService.queryResult(requestJson);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,110 @@
|
||||||
|
package com.hzya.frame.plugin.cbs8.plugin;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.base.PluginBaseEntity;
|
||||||
|
import com.hzya.frame.cbs8.dto.req.TransactionDetailReqDTO;
|
||||||
|
import com.hzya.frame.cbs8.dto.res.TransactionDetailDTO;
|
||||||
|
import com.hzya.frame.cbs8.util.CBSUtil;
|
||||||
|
import com.hzya.frame.plugin.cbs8.service.ICbsPluginService;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 交易明细查询
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/17 16:03
|
||||||
|
**/
|
||||||
|
public class TransactionDetailPluginInitializer extends PluginBaseEntity {
|
||||||
|
Logger logger = LoggerFactory.getLogger(getClass());
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ICbsPluginService cbsPluginService;
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 插件初始化方法
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-02 10:48
|
||||||
|
* @Param []
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void initialize() {
|
||||||
|
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件销毁方法
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void destroy() {
|
||||||
|
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的ID
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginId() {
|
||||||
|
return "CBS8TransactionDetailQueryPlugin";
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的名称
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginName() {
|
||||||
|
return "cbs8交易明细查询插件";
|
||||||
|
}
|
||||||
|
|
||||||
|
/****
|
||||||
|
* 插件的显示值
|
||||||
|
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @date 2023-08-02 10:48
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginLabel() {
|
||||||
|
return "cbs8交易明细查询插件";
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 插件类型 1、场景插件
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-02 14:01
|
||||||
|
* @Param []
|
||||||
|
* @return java.lang.String
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public String getPluginType() {
|
||||||
|
return "1";
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 执行业务代码
|
||||||
|
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @Date 2023-08-07 11:20
|
||||||
|
* @param requestJson 执行业务代码的参数
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
||||||
|
TransactionDetailReqDTO transactionDetailReqDTO = new TransactionDetailReqDTO();
|
||||||
|
transactionDetailReqDTO.setCurrentPage(CBSUtil.DEFAULT_CURRENT_PAGE);
|
||||||
|
transactionDetailReqDTO.setPageSize(CBSUtil.DEFAULT_PAGE_SIZE);
|
||||||
|
List<TransactionDetailDTO> transactionDetailList = cbsPluginService.queryTransactionDetail(transactionDetailReqDTO);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.hzya.frame.plugin.cbs8.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.cbs8.dto.req.AgentPayResultRequestDTO;
|
||||||
|
import com.hzya.frame.cbs8.dto.req.TransactionDetailReqDTO;
|
||||||
|
import com.hzya.frame.cbs8.dto.res.AgentPayResultResDTO;
|
||||||
|
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 java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/17 08:46
|
||||||
|
**/
|
||||||
|
public interface ICbsPluginService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 支付申请
|
||||||
|
* @param requestJson
|
||||||
|
*/
|
||||||
|
void applyPay(JSONObject requestJson)throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询支付申请的交易结果
|
||||||
|
* @param requestJson
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
void queryResult(JSONObject requestJson)throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 电子回单查询 并上传OA
|
||||||
|
* @param requestJson
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
void elecBillUpload(JSONObject requestJson)throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询交易明细
|
||||||
|
* transactionDetailReqDTO.currentPage 、 transactionDetailReqDTO.pageSize 必填
|
||||||
|
* @param transactionDetailReqDTO
|
||||||
|
*/
|
||||||
|
List<TransactionDetailDTO> queryTransactionDetail(TransactionDetailReqDTO transactionDetailReqDTO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代发代扣 支付申请
|
||||||
|
* @param paymentEntity
|
||||||
|
* @param agentPaymentDetailList
|
||||||
|
*/
|
||||||
|
PayResponseDTO applyAgentPay(AgentPaymentEntity paymentEntity, List<AgentPaymentDetailEntity> agentPaymentDetailList);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代发代扣 结果详情查询
|
||||||
|
* @param agentPayResultRequestDTO
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
AgentPayResultResDTO agentPayResult(AgentPayResultRequestDTO agentPayResultRequestDTO);
|
||||||
|
}
|
|
@ -0,0 +1,276 @@
|
||||||
|
package com.hzya.frame.plugin.cbs8.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import cn.hutool.core.io.FileUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import cn.hutool.http.HttpUtil;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.cbs8.dto.req.*;
|
||||||
|
import com.hzya.frame.cbs8.dto.res.*;
|
||||||
|
import com.hzya.frame.cbs8.service.ICbs8Service;
|
||||||
|
import com.hzya.frame.cbs8.util.CBSUtil;
|
||||||
|
import com.hzya.frame.cbs8.util.PayState;
|
||||||
|
import com.hzya.frame.plugin.cbs8.service.ICbsPluginService;
|
||||||
|
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 com.hzya.frame.seeyon.cbs8.service.ICbsLogService;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.service.IPaymentService;
|
||||||
|
import com.hzya.frame.seeyon.entity.CtpAttachmentEntity;
|
||||||
|
import com.hzya.frame.seeyon.entity.CtpFileEntity;
|
||||||
|
import com.hzya.frame.seeyon.service.ICtpAttachmentService;
|
||||||
|
import com.hzya.frame.seeyon.util.RestUtil;
|
||||||
|
import com.hzya.frame.uuid.UUIDLong;
|
||||||
|
import com.hzya.frame.web.exception.BaseSystemException;
|
||||||
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/17 08:46
|
||||||
|
**/
|
||||||
|
public class CbsPluginServiceImpl implements ICbsPluginService {
|
||||||
|
|
||||||
|
Logger logger = LoggerFactory.getLogger(CbsPluginServiceImpl.class);
|
||||||
|
@Autowired
|
||||||
|
private ICbs8Service cbs8Service;
|
||||||
|
@Autowired
|
||||||
|
private IPaymentService paymentService;
|
||||||
|
@Autowired
|
||||||
|
private ICbsLogService cbsLogService;
|
||||||
|
@Autowired
|
||||||
|
private ICtpAttachmentService ctpAttachmentService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private RestUtil restUtil;
|
||||||
|
@Value("${cbs8.elec_path}")
|
||||||
|
private String elec_path;
|
||||||
|
@Value("${OA.data_source_code}")
|
||||||
|
private String oa_data_source_code;
|
||||||
|
/**
|
||||||
|
* 支付申请
|
||||||
|
*
|
||||||
|
* @param requestJson
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void applyPay(JSONObject requestJson) throws Exception{
|
||||||
|
//查询待支付的列表
|
||||||
|
PaymentEntity paymentEntity = new PaymentEntity();
|
||||||
|
paymentEntity.setDataSourceCode(oa_data_source_code);
|
||||||
|
List<PaymentEntity> paymentList = paymentService.queryUnpaid(paymentEntity);
|
||||||
|
/* List<PaymentEntity> paymentList = new ArrayList<>();
|
||||||
|
paymentEntity.setReferenceNum("CL202406140001");
|
||||||
|
paymentEntity.setPayAccount("655905707410000");
|
||||||
|
paymentEntity.setPayBankName("");
|
||||||
|
paymentEntity.setAmount("99");
|
||||||
|
paymentEntity.setRevAccount("123456778");
|
||||||
|
paymentEntity.setRevBankName("中国工商银行总行清算中心");
|
||||||
|
paymentEntity.setRevBankType("ICB");
|
||||||
|
paymentEntity.setRevAccountName("测试账户");
|
||||||
|
paymentEntity.setCnapsCode("102100099996");
|
||||||
|
paymentEntity.setPurpose("测试用途");
|
||||||
|
paymentEntity.setBusType("202");
|
||||||
|
paymentEntity.setCurrency("10");
|
||||||
|
paymentEntity.setPurpose("测试用途");
|
||||||
|
paymentList.add(paymentEntity);*/
|
||||||
|
if (CollectionUtils.isNotEmpty(paymentList)){
|
||||||
|
for (PaymentEntity pay : paymentList) {
|
||||||
|
//调用支付申请接口
|
||||||
|
PayResponseDTO payResponseDTO = cbs8Service.payApply(pay);
|
||||||
|
//4、更新OA表单
|
||||||
|
paymentService.updatePayState(pay);
|
||||||
|
//5、记录操作日志
|
||||||
|
cbsLogService.saveLog(new CbsLogEntity());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询支付申请的交易结果
|
||||||
|
*
|
||||||
|
* @param requestJson
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void queryResult(JSONObject requestJson) throws Exception {
|
||||||
|
CbsLogEntity cbsLogEntity = new CbsLogEntity();
|
||||||
|
// 1、查询支付中的日志
|
||||||
|
List<CbsLogEntity> inPayList = cbsLogService.queryInPayment(cbsLogEntity);
|
||||||
|
if (CollectionUtils.isNotEmpty(inPayList)){
|
||||||
|
for (CbsLogEntity entity : inPayList) {
|
||||||
|
try {
|
||||||
|
List<PayResultResDTO> payResultResList = cbs8Service.queryPayResult(new PayResultRequestDTO(entity.getBill_code()));
|
||||||
|
if (CollectionUtils.isNotEmpty(payResultResList)){
|
||||||
|
PayResultResDTO payResultResDTO = payResultResList.get(0);
|
||||||
|
//支付申请状态
|
||||||
|
String status = payResultResDTO.getStatus();
|
||||||
|
//支付状态
|
||||||
|
String pay_status = payResultResDTO.getPayStatus();
|
||||||
|
//不等于支付中的时候 更新支付状态
|
||||||
|
if (!PayState.p.getType().equals(pay_status)){
|
||||||
|
//如果支付状态为空,保存支付申请状态,如果支付状态不为空,则保存支付状态
|
||||||
|
PaymentEntity paymentEntity = new PaymentEntity();
|
||||||
|
paymentEntity.setOaId(entity.getOa_id());
|
||||||
|
List<PaymentEntity> paymentList = paymentService.query(paymentEntity);
|
||||||
|
if (CollectionUtils.isNotEmpty(paymentList)){
|
||||||
|
paymentEntity = paymentList.get(0);
|
||||||
|
if (StrUtil.isEmpty(pay_status)) {
|
||||||
|
//支付申请状态 支付状态和支付申请状态用一个
|
||||||
|
paymentEntity.setPayResult(PayState.payStateGetValue(status));
|
||||||
|
} else {
|
||||||
|
//支付状态 支付状态和支付申请状态用一个
|
||||||
|
paymentEntity.setPayResult(PayState.payStateGetValue(pay_status));
|
||||||
|
}
|
||||||
|
if (StrUtil.isNotEmpty(pay_status) && pay_status.equals(PayState.g.getType())) {
|
||||||
|
//支付时间
|
||||||
|
paymentEntity.setPayDate(CBSUtil.convertTimestampToString(payResultResDTO.getPayDate()));
|
||||||
|
}
|
||||||
|
//更新视图单据状态
|
||||||
|
paymentService.updatePayState(paymentEntity);
|
||||||
|
//更新日志表状态
|
||||||
|
entity.setPay_state(paymentEntity.getPayResult());
|
||||||
|
entity.setApply_state(PayState.payStateGetValue(status));
|
||||||
|
cbsLogService.update(entity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.error("查询交易结果出错",e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 电子回单查询 并上传OA
|
||||||
|
*
|
||||||
|
* @param requestJson
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void elecBillUpload(JSONObject requestJson) throws Exception {
|
||||||
|
//查询支付成功 没有电子回单的数据
|
||||||
|
PaymentEntity paymentEntity = new PaymentEntity();
|
||||||
|
List<PaymentEntity> paymentList = paymentService.queryElecIsNull(paymentEntity);
|
||||||
|
if (CollectionUtils.isNotEmpty(paymentList)) {
|
||||||
|
for (PaymentEntity pay : paymentList) {
|
||||||
|
try {
|
||||||
|
String payDate = DateUtil.format(DateUtil.parse(pay.getPayDate()), "yyyy-MM-dd");
|
||||||
|
//查询cbs电子回单
|
||||||
|
List<ElecResponseDTO> elecResList = cbs8Service.queryElecBill(new ElecRequestDTO(payDate,DateUtil.today(),pay.getReferenceNum()));
|
||||||
|
if (CollectionUtils.isNotEmpty(elecResList)){
|
||||||
|
ElecResponseDTO elecResponseDTO = elecResList.get(0);
|
||||||
|
String bucketFileUrl = elecResponseDTO.getBucketFileUrl();
|
||||||
|
String bucketFileName = elecResponseDTO.getBucketFileName();
|
||||||
|
//上传电子回单到OA
|
||||||
|
HttpUtil.downloadFile(bucketFileUrl, FileUtil.file(elec_path));//附件下载
|
||||||
|
String pdfUrl = elec_path + bucketFileName;
|
||||||
|
File file = new File(pdfUrl);
|
||||||
|
if (file.exists()) {
|
||||||
|
CtpFileEntity cpFileEntity = new CtpFileEntity();
|
||||||
|
cpFileEntity.setFile(file);
|
||||||
|
cpFileEntity.setDataSourceCode(oa_data_source_code);
|
||||||
|
JSONObject jsonObjectUpload = restUtil.fileUpload(file,"8000240005");
|
||||||
|
String file_url = jsonObjectUpload.getString("fileUrl");
|
||||||
|
if (null != jsonObjectUpload && StrUtil.isNotEmpty(file_url)) {
|
||||||
|
String sub_reference = String.valueOf(UUIDLong.longUUID());
|
||||||
|
pay.setReceipt(sub_reference);
|
||||||
|
//更新表单的电子回单值
|
||||||
|
paymentService.updateElec(pay);
|
||||||
|
//保存附件关系
|
||||||
|
CtpAttachmentEntity ctpAttachmentEntity = new CtpAttachmentEntity();
|
||||||
|
ctpAttachmentEntity.setFile_url(file_url);
|
||||||
|
ctpAttachmentService.saveAttachment(file_url, pay.getSummaryId(), sub_reference);
|
||||||
|
}
|
||||||
|
//删除本地临时文件
|
||||||
|
file.delete();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.error("电子回单查询出错",e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询交易明细
|
||||||
|
* transactionDetailReqDTO.currentPage 、 transactionDetailReqDTO.pageSize 必填
|
||||||
|
* @param transactionDetailReqDTO
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<TransactionDetailDTO> queryTransactionDetail(TransactionDetailReqDTO transactionDetailReqDTO) {
|
||||||
|
boolean hasNextPage = true;//是否有下一页
|
||||||
|
int currentPage = transactionDetailReqDTO.getCurrentPage();
|
||||||
|
int pageSize = transactionDetailReqDTO.getPageSize();
|
||||||
|
if (currentPage == 0){
|
||||||
|
currentPage = CBSUtil.DEFAULT_CURRENT_PAGE;//页码
|
||||||
|
}
|
||||||
|
if (pageSize == 0){
|
||||||
|
pageSize = CBSUtil.DEFAULT_PAGE_SIZE;//每页条数
|
||||||
|
transactionDetailReqDTO.setPageSize(pageSize);
|
||||||
|
}
|
||||||
|
List<TransactionDetailDTO> resultList = new ArrayList<>();
|
||||||
|
do{
|
||||||
|
transactionDetailReqDTO.setCurrentPage(currentPage);//页码
|
||||||
|
currentPage++;//页码自增
|
||||||
|
hasNextPage = false;//保护功能,防止出现死循环
|
||||||
|
CbsResDataDTO dataDTO = cbs8Service.queryTransactionDetail(transactionDetailReqDTO);
|
||||||
|
if (null != dataDTO){
|
||||||
|
hasNextPage = dataDTO.getHasNextPage();
|
||||||
|
List<TransactionDetailDTO> transactionDetailDTOList = CBSUtil.convertJsonArrayToList(dataDTO.getList(), TransactionDetailDTO.class);
|
||||||
|
resultList.addAll(transactionDetailDTOList);
|
||||||
|
}
|
||||||
|
}while (hasNextPage);
|
||||||
|
|
||||||
|
return resultList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代发代扣 支付申请
|
||||||
|
*
|
||||||
|
* @param paymentEntity
|
||||||
|
* @param agentPaymentDetailList
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public PayResponseDTO applyAgentPay(AgentPaymentEntity paymentEntity, List<AgentPaymentDetailEntity> agentPaymentDetailList) {
|
||||||
|
if (null != paymentEntity && CollectionUtils.isNotEmpty(agentPaymentDetailList)){
|
||||||
|
PaymentApplySubmitReqDTO paymentApplySubmitReqDTO = BeanUtil.copyProperties(paymentEntity,PaymentApplySubmitReqDTO.class);
|
||||||
|
List<PaymentApplyAgentDTO> paymentApplyAgentList = new ArrayList<>();
|
||||||
|
for (AgentPaymentDetailEntity detailEntity : agentPaymentDetailList) {
|
||||||
|
PaymentApplyAgentDTO detailDTO = BeanUtil.copyProperties(detailEntity,PaymentApplyAgentDTO.class);
|
||||||
|
paymentApplyAgentList.add(detailDTO);
|
||||||
|
}
|
||||||
|
PayResponseDTO payResponseDTO = cbs8Service.agentPayApply(paymentApplySubmitReqDTO,paymentApplyAgentList);
|
||||||
|
return payResponseDTO;
|
||||||
|
}else {
|
||||||
|
throw new BaseSystemException("参数不能为空");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代发代扣 结果详情查询
|
||||||
|
*
|
||||||
|
* @param agentPayResultRequestDTO
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AgentPayResultResDTO agentPayResult(AgentPayResultRequestDTO agentPayResultRequestDTO) {
|
||||||
|
if (null != agentPayResultRequestDTO && StrUtil.isNotEmpty(agentPayResultRequestDTO.getBusNum())){
|
||||||
|
AgentPayResultResDTO agentPayResultResDTO = cbs8Service.agentPayResult(agentPayResultRequestDTO);
|
||||||
|
return agentPayResultResDTO;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,24 +5,31 @@ logging:
|
||||||
root: info
|
root: info
|
||||||
encodings: UTF-8
|
encodings: UTF-8
|
||||||
file:
|
file:
|
||||||
# 日志保存路径
|
# 日志保存路径
|
||||||
path: /Users/apple/Desktop/log/local
|
path: /Users/apple/Desktop/log/local
|
||||||
spring:
|
spring:
|
||||||
|
flyway:
|
||||||
|
# 启动flyway migration, 默认为true
|
||||||
|
enabled: false
|
||||||
datasource:
|
datasource:
|
||||||
dynamic:
|
dynamic:
|
||||||
|
druid:
|
||||||
|
filters: stat,log4j2
|
||||||
datasource:
|
datasource:
|
||||||
master:
|
master:
|
||||||
# url: jdbc:mysql://hzya.ufyct.com:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
url: jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
|
||||||
# url: jdbc:mysql://hzya.ufyct.com:9096/businesscenterauto?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
username: hzyazt
|
||||||
# username: root
|
|
||||||
# password: bd993088e8a7c3dc5f44441617f9b4bf
|
|
||||||
# driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
|
||||||
url: jdbc:mysql://hzya.ufyct.com:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
|
||||||
username: root
|
|
||||||
password: 62e4295b615a30dbf3b8ee96f41c820b
|
password: 62e4295b615a30dbf3b8ee96f41c820b
|
||||||
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
driver-class-name: dm.jdbc.driver.DmDriver
|
||||||
|
# type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
# url: jdbc:mysql://hzya.ufyct.com:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||||
|
# username: root
|
||||||
|
# password: 62e4295b615a30dbf3b8ee96f41c820b
|
||||||
|
# driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||||
|
# url: jdbc:dm://hzya.ufyct.com:9040/businesscenter?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
|
||||||
|
|
||||||
savefile:
|
savefile:
|
||||||
# 文件保存路径
|
# 文件保存路径
|
||||||
path: /Users/apple/Desktop/log/local
|
path: /Users/apple/Desktop/log/local
|
||||||
ax:
|
ax:
|
||||||
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -0,0 +1,61 @@
|
||||||
|
#logging:
|
||||||
|
# #日志级别 指定目录级别
|
||||||
|
# level:
|
||||||
|
# root: info
|
||||||
|
# encodings: UTF-8
|
||||||
|
# file:
|
||||||
|
# # 日志保存路径
|
||||||
|
# path: /zt/log
|
||||||
|
#spring:
|
||||||
|
# flyway:
|
||||||
|
# # 启动flyway migration, 默认为true
|
||||||
|
# enabled: false
|
||||||
|
# datasource:
|
||||||
|
# dynamic:
|
||||||
|
# druid:
|
||||||
|
# filters: stat,log4j2
|
||||||
|
# datasource:
|
||||||
|
# master:
|
||||||
|
# url: jdbc:dm://10.75.51.82:5238?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
|
||||||
|
# username: businesscenter
|
||||||
|
# password: 6842568689469adad597d144ee104063
|
||||||
|
# driver-class-name: dm.jdbc.driver.DmDriver
|
||||||
|
#savefile:
|
||||||
|
# # 文件保存路径
|
||||||
|
# path: /zt/file
|
||||||
|
#ax:
|
||||||
|
# url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
||||||
|
logging:
|
||||||
|
#日志级别 指定目录级别
|
||||||
|
level:
|
||||||
|
root: warn
|
||||||
|
encodings: UTF-8
|
||||||
|
file:
|
||||||
|
# 日志保存路径
|
||||||
|
path: /home/webservice/zt/log
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
dynamic:
|
||||||
|
datasource:
|
||||||
|
master:
|
||||||
|
url: jdbc:mysql://hzya.ufyct.com:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||||
|
username: root
|
||||||
|
password: 62e4295b615a30dbf3b8ee96f41c820b
|
||||||
|
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||||
|
savefile:
|
||||||
|
# 文件保存路径
|
||||||
|
path: /home/webservice/zt/file
|
||||||
|
cbs8:
|
||||||
|
appId: 1P4AGrpz
|
||||||
|
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
|
||||||
|
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
|
||||||
|
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
|
||||||
|
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
|
||||||
|
# 这个私钥到时候上传到cbs,和下面到是同一对
|
||||||
|
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
|
||||||
|
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
|
||||||
|
cbs_public_key: 0469146F06BF3B01236E84632441E826
|
||||||
|
#电子回单下载临时存放位置
|
||||||
|
elec_path: /Users/xiangerlin/Downloads/
|
||||||
|
OA:
|
||||||
|
data_source_code: yc_oa
|
|
@ -0,0 +1,31 @@
|
||||||
|
#######################本地环境#######################
|
||||||
|
logging:
|
||||||
|
#日志级别 指定目录级别
|
||||||
|
level:
|
||||||
|
root: info
|
||||||
|
encodings: UTF-8
|
||||||
|
file:
|
||||||
|
# 日志保存路径
|
||||||
|
path: /Users/xiangerlin/work/app/logs/yuecheng
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
dynamic:
|
||||||
|
datasource:
|
||||||
|
master:
|
||||||
|
url: jdbc:mysql://hzya.ufyct.com:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||||
|
username: root
|
||||||
|
password: 62e4295b615a30dbf3b8ee96f41c820b
|
||||||
|
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||||
|
savefile:
|
||||||
|
# 文件保存路径
|
||||||
|
path: /Users/xiangerlin/work/app/logs/yuecheng
|
||||||
|
cbs8:
|
||||||
|
appId: 1P4AGrpz
|
||||||
|
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
|
||||||
|
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
|
||||||
|
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
|
||||||
|
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
|
||||||
|
# 这个私钥到时候上传到cbs,和下面到是同一对
|
||||||
|
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
|
||||||
|
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
|
||||||
|
cbs_public_key: 0469146F06BF3B01236E84632441E826F3067A6B93BC3839C836A06007869CD351FBBE388B51F742859388BBC1DE089923AAFBC69E448F15141DDF30EE6CE90185
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<plugin>
|
||||||
|
<id>CBS8PayApplyPlugin</id>
|
||||||
|
<name>cbs8插件</name>
|
||||||
|
<category>202406070001</category>
|
||||||
|
</plugin>
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||||
|
<beans default-autowire="byName">
|
||||||
|
<bean name="payApplyPluginInitializer" class="com.hzya.frame.plugin.cbs8.plugin.PayApplyPluginInitializer" />
|
||||||
|
<bean name="payResultPluginInitializer" class="com.hzya.frame.plugin.cbs8.plugin.PayResultPluginInitializer" />
|
||||||
|
<bean name="elecBillPluginInitializer" class="com.hzya.frame.plugin.cbs8.plugin.ElecBillPluginInitializer" />
|
||||||
|
<bean name="transactionDetailPluginInitializer" class="com.hzya.frame.plugin.cbs8.plugin.TransactionDetailPluginInitializer" />
|
||||||
|
<bean name="payApplyAgentPluginInitializer" class="com.hzya.frame.plugin.cbs8.plugin.PayApplyAgentPluginInitializer" />
|
||||||
|
<bean name="agentPayResultPluginInitializer" class="com.hzya.frame.plugin.cbs8.plugin.AgentPayResultPluginInitializer" />
|
||||||
|
</beans>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||||
|
<beans default-autowire="byName">
|
||||||
|
<bean name="cbsPluginService" class="com.hzya.frame.plugin.cbs8.service.impl.CbsPluginServiceImpl" />
|
||||||
|
</beans>
|
File diff suppressed because one or more lines are too long
|
@ -1,3 +0,0 @@
|
||||||
ALTER TABLE sys_data_source ADD COLUMN data_state char(1) DEFAULT NULL COMMENT '数据源状态 0校验失败 1校验成功';
|
|
||||||
UPDATE sys_data_source SET data_state = '1';
|
|
||||||
COMMIT;
|
|
|
@ -1,16 +1,31 @@
|
||||||
package com.hzya.frame;
|
package com.hzya.frame;
|
||||||
|
|
||||||
|
import cn.hutool.core.convert.Convert;
|
||||||
|
import cn.hutool.http.HttpRequest;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.hzya.frame.plugin.mdmDistribute.plugin.MdmModulePluginInitializer;
|
import com.hzya.frame.cbs8.dto.req.PayRequestDTO;
|
||||||
|
import com.hzya.frame.cbs8.dto.req.PayResultRequestDTO;
|
||||||
|
import com.hzya.frame.cbs8.dto.res.PayResultResDTO;
|
||||||
|
import com.hzya.frame.cbs8.service.ICbs8ExtService;
|
||||||
|
import com.hzya.frame.cbs8.service.ICbs8Service;
|
||||||
|
import com.hzya.frame.cbs8.util.CBSUtil;
|
||||||
|
import com.hzya.frame.cbs8.util.CbsAccessToken;
|
||||||
import com.hzya.frame.plugin.seeyonExt.plugin.SeeyonExtPluginInitializer;
|
import com.hzya.frame.plugin.seeyonExt.plugin.SeeyonExtPluginInitializer;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.service.IPaymentService;
|
||||||
|
import com.hzya.frame.stringutil.StringUtil;
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||||
import com.hzya.frame.util.AESUtil;
|
import com.hzya.frame.util.AESUtil;
|
||||||
|
import org.apache.http.protocol.HTTP;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
import org.springframework.test.context.junit4.SpringRunner;
|
import org.springframework.test.context.junit4.SpringRunner;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ClassName dsasas
|
* @ClassName dsasas
|
||||||
|
@ -25,7 +40,89 @@ public class temButtom {
|
||||||
@Resource
|
@Resource
|
||||||
SeeyonExtPluginInitializer seeyonExtPluginInitializer;
|
SeeyonExtPluginInitializer seeyonExtPluginInitializer;
|
||||||
@Resource
|
@Resource
|
||||||
MdmModulePluginInitializer mdmModulePluginInitializer;
|
ICbs8Service cs8Service;
|
||||||
|
@Resource
|
||||||
|
ICbs8ExtService cbs8ExtService;
|
||||||
|
@Autowired
|
||||||
|
private IPaymentService paymentService;
|
||||||
|
@Test
|
||||||
|
public void queryUnpaid(){
|
||||||
|
//查询待支付的列表
|
||||||
|
PaymentEntity paymentEntity = new PaymentEntity();
|
||||||
|
paymentEntity.setDataSourceCode("yc-test");
|
||||||
|
try {
|
||||||
|
List<PaymentEntity> paymentList = paymentService.queryUnpaid(paymentEntity);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
System.out.println("1111");
|
||||||
|
}
|
||||||
|
@Test
|
||||||
|
public void queryResultTest(){
|
||||||
|
// SysExtensionApiEntity sysExt = new SysExtensionApiEntity();
|
||||||
|
// sysExt.setBodys("{\"referenceNum\":\"CL202406140002\"}");
|
||||||
|
// cbs8ExtService.payResult(sysExt);
|
||||||
|
// System.out.println("11111");
|
||||||
|
List<PayResultResDTO> cl202406140002 = cs8Service.queryPayResult(new PayResultRequestDTO("CL202406140002"));
|
||||||
|
System.out.println("111");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void cbs8ExtTest(){
|
||||||
|
PaymentEntity paymentEntity = new PaymentEntity();
|
||||||
|
paymentEntity.setReferenceNum("CL202406140003");
|
||||||
|
paymentEntity.setPayAccount("655905707410000");
|
||||||
|
paymentEntity.setPayBankName("");
|
||||||
|
paymentEntity.setAmount("99.02");
|
||||||
|
paymentEntity.setRevAccount("123456778");
|
||||||
|
paymentEntity.setRevBankName("中国工商银行总行清算中心");
|
||||||
|
paymentEntity.setRevBankType("ICB");
|
||||||
|
paymentEntity.setRevAccountName("测试账户");
|
||||||
|
paymentEntity.setCnapsCode("102100099996");
|
||||||
|
paymentEntity.setPurpose("测试用途");
|
||||||
|
paymentEntity.setBusType("202");
|
||||||
|
paymentEntity.setCurrency("10");
|
||||||
|
if (null != paymentEntity){
|
||||||
|
PayRequestDTO payRequestDTO = new PayRequestDTO();
|
||||||
|
String ferenceNum = Convert.toStr(paymentEntity.getReferenceNumNew(),paymentEntity.getReferenceNum());
|
||||||
|
payRequestDTO.setReferenceNum(ferenceNum);
|
||||||
|
payRequestDTO.setBusType(paymentEntity.getBusType());
|
||||||
|
payRequestDTO.setAmount(paymentEntity.getAmount());
|
||||||
|
payRequestDTO.setCurrency(paymentEntity.getCurrency());
|
||||||
|
payRequestDTO.setPayAccount(StringUtil.replaceBlank(paymentEntity.getPayAccount()));
|
||||||
|
payRequestDTO.setRevAccount(StringUtil.replaceBlank(paymentEntity.getRevAccount()));
|
||||||
|
payRequestDTO.setRevAccountName(StringUtil.replaceBlank(paymentEntity.getRevAccountName()));
|
||||||
|
payRequestDTO.setRevBankType(StringUtil.replaceBlank((paymentEntity.getRevBankType())));
|
||||||
|
payRequestDTO.setRevBankName(StringUtil.replaceBlank(paymentEntity.getRevBankName()));
|
||||||
|
payRequestDTO.setCnapsCode(StringUtil.replaceBlank((paymentEntity.getCnapsCode())));
|
||||||
|
payRequestDTO.setPurpose(paymentEntity.getPurpose());
|
||||||
|
payRequestDTO.setErpExtend1(paymentEntity.getPayType());
|
||||||
|
//集中支付模式
|
||||||
|
if (CBSUtil.CENTRALIZED_PAYMENT_TYPE.equals(payRequestDTO.getBusType())){
|
||||||
|
payRequestDTO.setBusiStep("1");
|
||||||
|
payRequestDTO.setApplyUnitCode(paymentEntity.getPayCompanyCode());
|
||||||
|
payRequestDTO.setPayAccount(null);
|
||||||
|
}
|
||||||
|
List<PayRequestDTO> list = new ArrayList<>();
|
||||||
|
list.add(payRequestDTO);
|
||||||
|
String requestData = JSONObject.toJSONString(list);
|
||||||
|
System.out.println("明文参数:"+requestData);
|
||||||
|
//签名
|
||||||
|
long timestamp = System.currentTimeMillis();
|
||||||
|
String sign = CBSUtil.sign(requestData,timestamp);
|
||||||
|
//加密
|
||||||
|
byte[] encryptedData = CBSUtil.encrypt(requestData);
|
||||||
|
Map<String,String> header = new HashMap();
|
||||||
|
header.put(CBSUtil.SIGN_HEADER_NAME,sign);
|
||||||
|
header.put(CBSUtil.TIMESTAMP_HEADER,Long.toString(timestamp));
|
||||||
|
header.put(HTTP.CONTENT_TYPE,CBSUtil.TARGET_CONTENT_TYPE);
|
||||||
|
header.put(CBSUtil.AUTHORIZATION,CBSUtil.BEARER+CbsAccessToken.getToken());
|
||||||
|
byte[] bodyByte = HttpRequest.post("https://cbs8-openapi-reprd.csuat.cmburl.cn/openapi/payment/openapi/v1/payment-apply-common").addHeaders(header).body(encryptedData).execute().bodyBytes();
|
||||||
|
String decrypt = CBSUtil.decrypt(bodyByte);
|
||||||
|
System.out.println(decrypt);
|
||||||
|
}
|
||||||
|
}
|
||||||
@Test
|
@Test
|
||||||
public void seeyonExtTest(){
|
public void seeyonExtTest(){
|
||||||
JSONObject jsonStr = new JSONObject();
|
JSONObject jsonStr = new JSONObject();
|
||||||
|
@ -39,17 +136,6 @@ public class temButtom {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void mdm(){
|
|
||||||
JSONObject jsonStr = new JSONObject();
|
|
||||||
jsonStr.put("integration_task_living_details_id","123123123123");
|
|
||||||
try {
|
|
||||||
mdmModulePluginInitializer.executeBusiness(jsonStr);
|
|
||||||
} catch (Exception e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test01() {
|
public void test01() {
|
||||||
String a = AESUtil.encrypt("hzya@1314");
|
String a = AESUtil.encrypt("hzya@1314");
|
||||||
|
|
|
@ -11,6 +11,7 @@ import org.apache.ibatis.session.SqlSessionFactory;
|
||||||
import org.mybatis.spring.SqlSessionFactoryBean;
|
import org.mybatis.spring.SqlSessionFactoryBean;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Lazy;
|
import org.springframework.context.annotation.Lazy;
|
||||||
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
|
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
@ -26,103 +27,10 @@ import java.util.Properties;
|
||||||
* @Date: 2020/3/31 10:25
|
* @Date: 2020/3/31 10:25
|
||||||
* 数据源工具类
|
* 数据源工具类
|
||||||
*/
|
*/
|
||||||
//@Component
|
@Component
|
||||||
//@Lazy(value = false)
|
|
||||||
public class DataSourceUtil {
|
public class DataSourceUtil {
|
||||||
//DATASOURCECODE
|
@Bean
|
||||||
public static final ThreadLocal<BaseEntity> myContextThreadLocal = new ThreadLocal<>();
|
public DatabaseIdProvider getDatabaseIdProvider() {
|
||||||
private static final Logger logger = LoggerFactory.getLogger(DataSourceUtil.class);
|
|
||||||
//SqlSessionFactory容器
|
|
||||||
private static final Map<String, SqlSessionFactory> SQLSESSIONFACTORYMAP = new HashMap<>();
|
|
||||||
//dataSource容器
|
|
||||||
private final Map<String, DruidDataSource> DATASOURCEMAP = new HashMap<>();
|
|
||||||
// 通过依赖注入获取 DynamicRoutingDataSource 对象
|
|
||||||
@Resource
|
|
||||||
private DynamicRoutingDataSource ds;
|
|
||||||
/****
|
|
||||||
* 根据dataSourceKey 打开 SqlSession ,如果获取不到SqlSessionFactory 会抛出异常
|
|
||||||
* @content:
|
|
||||||
* @author 👻👻👻👻👻👻👻👻 gjh
|
|
||||||
* @date 2024-02-22 14:50
|
|
||||||
* @param
|
|
||||||
* @return org.apache.ibatis.session.SqlSession
|
|
||||||
**/
|
|
||||||
|
|
||||||
public synchronized static SqlSession getSqlSession() {
|
|
||||||
String dsKey = "master"; // 根据业务逻辑确定要使用的数据源名称
|
|
||||||
BaseEntity entity = DataSourceUtil.myContextThreadLocal.get();
|
|
||||||
if(null != entity ){
|
|
||||||
dsKey = entity.getDataSourceCode();
|
|
||||||
}
|
|
||||||
// 通过 DynamicRoutingDataSource 获取当前数据源
|
|
||||||
// ds.getDataSource(dsKey);
|
|
||||||
|
|
||||||
SqlSessionFactory factory = getSqlSessionFactoryByCache(dsKey);
|
|
||||||
if (null == factory) {
|
|
||||||
throw new BaseSystemException("根据dataSourceKey获取SqlSessionFactory 失败!请联系管理员");
|
|
||||||
} else {
|
|
||||||
return factory.openSession();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/****
|
|
||||||
* 根据dataSourceKey获取缓存内的SqlSessionFactory,如果获取不到会抛出异常信息
|
|
||||||
* @content:
|
|
||||||
* @author 👻👻👻👻👻👻👻👻 gjh
|
|
||||||
* @date 2024-02-22 14:44
|
|
||||||
* @param
|
|
||||||
* @return org.apache.ibatis.session.SqlSessionFactory
|
|
||||||
**/
|
|
||||||
public static SqlSessionFactory getSqlSessionFactoryByCache(String dataSourceKey) {
|
|
||||||
SqlSessionFactory sqlSessionFactory = SQLSESSIONFACTORYMAP.get(dataSourceKey);
|
|
||||||
if (null == sqlSessionFactory) {
|
|
||||||
throw new BaseSystemException("根据当前dataSourceKey获取SqlSessionFactory失败,请联系系统管理员!dataSourceKey:" + dataSourceKey);
|
|
||||||
}
|
|
||||||
return sqlSessionFactory;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****
|
|
||||||
* 根据 dataSource 创建SqlSessionFactory,并放入map缓存 dataSourceKey
|
|
||||||
* @content:
|
|
||||||
* @author 👻👻👻👻👻👻👻👻 gjh
|
|
||||||
* @date 2024-02-22 14:38
|
|
||||||
* @param
|
|
||||||
* @return org.apache.ibatis.session.SqlSessionFactory
|
|
||||||
**/
|
|
||||||
public static SqlSessionFactory createSqlSessionFactoryToCache(String dataSourceKey, DataSource dataSource) {
|
|
||||||
SqlSessionFactory sqlSessionFactory = createSqlSessionFactory(dataSource);
|
|
||||||
SQLSESSIONFACTORYMAP.put(dataSourceKey, sqlSessionFactory);
|
|
||||||
return sqlSessionFactory;
|
|
||||||
}
|
|
||||||
|
|
||||||
//创建sqlSessionFactory
|
|
||||||
public static SqlSessionFactory createSqlSessionFactory(DataSource dataSource) throws BaseSystemException {
|
|
||||||
try {
|
|
||||||
if (null != dataSource) {
|
|
||||||
SqlSessionFactoryBean sqlSessionFactoryBean = new SqlSessionFactoryBean();
|
|
||||||
//数据源
|
|
||||||
sqlSessionFactoryBean.setDataSource(dataSource);
|
|
||||||
//mybatis的config文件
|
|
||||||
PathMatchingResourcePatternResolver configLocationResolver = new PathMatchingResourcePatternResolver();
|
|
||||||
sqlSessionFactoryBean.setConfigLocation(configLocationResolver.getResource("classpath:mybatis/mybatis-config.xml"));
|
|
||||||
//xml
|
|
||||||
PathMatchingResourcePatternResolver resourcePatternResolver = new PathMatchingResourcePatternResolver();
|
|
||||||
sqlSessionFactoryBean.setMapperLocations(resourcePatternResolver.getResources("classpath*:com/hzya/**/*.xml"));
|
|
||||||
sqlSessionFactoryBean.setDatabaseIdProvider(getDatabaseIdProvider());
|
|
||||||
|
|
||||||
return sqlSessionFactoryBean.getObject();
|
|
||||||
} else {
|
|
||||||
logger.info("======================创建sqlSessionFactory失败===========================");
|
|
||||||
throw new BaseSystemException("创建sqlSessionFactory失败");
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
logger.info("======================创建sqlSessionFactory失败===========================");
|
|
||||||
throw new BaseSystemException("创建sqlSessionFactory失败" + e.getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static DatabaseIdProvider getDatabaseIdProvider() {
|
|
||||||
//DBMS 后缀
|
//DBMS 后缀
|
||||||
//Oracle oracle
|
//Oracle oracle
|
||||||
//DB2 db2
|
//DB2 db2
|
||||||
|
@ -144,9 +52,4 @@ public class DataSourceUtil {
|
||||||
dbProvider.setProperties(setPro);
|
dbProvider.setProperties(setPro);
|
||||||
return dbProvider;
|
return dbProvider;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, DruidDataSource> getDataSourceMap() {
|
|
||||||
return DATASOURCEMAP;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
37
pom.xml
37
pom.xml
|
@ -29,7 +29,7 @@
|
||||||
<gson.version>2.8.5</gson.version>
|
<gson.version>2.8.5</gson.version>
|
||||||
<zxing.version>3.3.0</zxing.version>
|
<zxing.version>3.3.0</zxing.version>
|
||||||
<hutool.version>5.8.19</hutool.version>
|
<hutool.version>5.8.19</hutool.version>
|
||||||
<druid.version>1.1.22</druid.version>
|
<druid.version>1.2.0</druid.version>
|
||||||
<!-- <mybatis-spring-boot-starter.version>2.2.2</mybatis-spring-boot-starter.version>-->
|
<!-- <mybatis-spring-boot-starter.version>2.2.2</mybatis-spring-boot-starter.version>-->
|
||||||
<mybatis-plus-boot-starter.version>3.5.6</mybatis-plus-boot-starter.version>
|
<mybatis-plus-boot-starter.version>3.5.6</mybatis-plus-boot-starter.version>
|
||||||
<!-- <mysql-connector-j.version>8.0.33</mysql-connector-j.version>-->
|
<!-- <mysql-connector-j.version>8.0.33</mysql-connector-j.version>-->
|
||||||
|
@ -235,7 +235,8 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba</groupId>
|
<groupId>com.alibaba</groupId>
|
||||||
<artifactId>druid-spring-boot-starter</artifactId>
|
<artifactId>druid-spring-boot-starter</artifactId>
|
||||||
<version>${druid-spring-boot-starter.version}</version>
|
<version>1.2.23</version>
|
||||||
|
<!-- <version>${druid-spring-boot-starter.version}</version>-->
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
@ -244,13 +245,20 @@
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- <!– 添加dm8 jdbc jar 包依赖–>-->
|
<!-- 添加dm8 jdbc jar 包依赖-->
|
||||||
<!-- <dependency>-->
|
<!-- <dependency>-->
|
||||||
<!-- <groupId>com.dameng</groupId>-->
|
<!-- <groupId>com.dameng</groupId>-->
|
||||||
<!-- <artifactId>Dm8JdbcDriver18</artifactId>-->
|
<!-- <artifactId>DmJdbcDriver18</artifactId>-->
|
||||||
<!-- <version>8.1.1.49</version>-->
|
<!-- <version>8.1.1.193</version>-->
|
||||||
<!-- </dependency>-->
|
<!-- </dependency>-->
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.dameng</groupId>
|
||||||
|
<artifactId>Dm8JdbcDriver18</artifactId>
|
||||||
|
<version>8.1.1.49</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-beanutils</groupId>
|
<groupId>commons-beanutils</groupId>
|
||||||
|
@ -338,7 +346,21 @@
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-cache</artifactId>
|
<artifactId>spring-boot-starter-cache</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- postgresql驱动 -->
|
|
||||||
|
<!-- JimuReport 积木报表 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jeecgframework.jimureport</groupId>
|
||||||
|
<artifactId>jimureport-spring-boot-starter</artifactId>
|
||||||
|
<version>${jimureport.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- minio oss-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.minio</groupId>
|
||||||
|
<artifactId>minio</artifactId>
|
||||||
|
<version>${minio.version}</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<!-- postgresql驱动 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.postgresql</groupId>
|
<groupId>org.postgresql</groupId>
|
||||||
<artifactId>postgresql</artifactId>
|
<artifactId>postgresql</artifactId>
|
||||||
|
@ -369,6 +391,7 @@
|
||||||
<artifactId>flyway-mysql</artifactId>
|
<artifactId>flyway-mysql</artifactId>
|
||||||
<version>8.5.13</version>
|
<version>8.5.13</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -418,6 +441,7 @@
|
||||||
<directory>src/main/resources</directory>
|
<directory>src/main/resources</directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**/*.yml</include>
|
<include>**/*.yml</include>
|
||||||
|
<include>**/*.jar</include>
|
||||||
<include>**/*.properties</include>
|
<include>**/*.properties</include>
|
||||||
<include>**/*.xml</include>
|
<include>**/*.xml</include>
|
||||||
<include>**/*.xmreport</include>
|
<include>**/*.xmreport</include>
|
||||||
|
@ -436,6 +460,7 @@
|
||||||
<directory>src/</directory>
|
<directory>src/</directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**/*.yml</include>
|
<include>**/*.yml</include>
|
||||||
|
<include>**/*.jar</include>
|
||||||
<include>**/*.properties</include>
|
<include>**/*.properties</include>
|
||||||
<include>**/*.xml</include>
|
<include>**/*.xml</include>
|
||||||
<include>**/*.json</include>
|
<include>**/*.json</include>
|
||||||
|
|
|
@ -21,6 +21,36 @@
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
<version>${mysql-connector-java}</version>
|
<version>${mysql-connector-java}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.hzya.bip</groupId>
|
||||||
|
<artifactId>pubbaseapp_nccloud_rtLevel</artifactId>
|
||||||
|
<version>1</version>
|
||||||
|
<scope>system</scope>
|
||||||
|
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/pubbaseapp_nccloud_rtLevel-1.jar</systemPath>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.hzya.bipyonyoulog</groupId>
|
||||||
|
<artifactId>yonyoulog</artifactId>
|
||||||
|
<version>1</version>
|
||||||
|
<scope>system</scope>
|
||||||
|
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/yonyoulog.jar</systemPath>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.hzya.bcprov</groupId>
|
||||||
|
<artifactId>bcprov</artifactId>
|
||||||
|
<version>1</version>
|
||||||
|
<scope>system</scope>
|
||||||
|
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/bcprov-jdk15on-1.70.jar</systemPath>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.hzya.DataApiSdk</groupId>
|
||||||
|
<artifactId>DataApiSdk</artifactId>
|
||||||
|
<version>1</version>
|
||||||
|
<scope>system</scope>
|
||||||
|
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/DataApiSdk-jar-with-dependencies.jar</systemPath>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
package com.hzya.frame.bip.v3.v2207.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* com.hzya.frame.bip.v3.v2207.entity
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @date 2024-05 -27 11:24
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class BipTokenVo extends BaseEntity {
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.hzya.frame.bip.v3.v2207.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.entity.BipTokenVo;
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
|
||||||
|
import javax.servlet.ServletRequest;
|
||||||
|
import javax.servlet.ServletResponse;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
|
public interface IBipSsoService extends IBaseService<BipTokenVo,String>{
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content Bip单点统一认证接口
|
||||||
|
* @author laborer
|
||||||
|
* @date 2024/5/30 0030 13:45
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
String erpSso( HttpServletRequest request,String ticket)throws Exception;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 此方法获取sso动态加密,heade参数动态传入
|
||||||
|
* @author laborer
|
||||||
|
* @date 2024/5/27 0027 11:38
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
SysExtensionApiEntity ssoEncrypt(SysExtensionApiEntity entity);
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.hzya.frame.bip.v3.v2207.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.entity.BipTokenVo;
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||||
|
|
||||||
|
public interface IBipV32207BillService extends IBaseService<BipTokenVo,String>{
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 此方法获取BIPtoken,heade参数动态传入
|
||||||
|
* @author laborer
|
||||||
|
* @date 2024/5/27 0027 11:38
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
SysExtensionApiEntity getBipBill(SysExtensionApiEntity entity);
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.hzya.frame.bip.v3.v2207.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.entity.BipSupplierEntity;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.entity.BipTokenVo;
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
|
||||||
|
public interface IBipV32207TokenService extends IBaseService<BipTokenVo,String>{
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 此方法获取BIPtoken,heade参数动态传入
|
||||||
|
* @author laborer
|
||||||
|
* @date 2024/5/27 0027 11:38
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
SysExtensionApiEntity getBipToken(SysExtensionApiEntity entity);
|
||||||
|
}
|
|
@ -0,0 +1,119 @@
|
||||||
|
package com.hzya.frame.bip.v3.v2207.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import cn.hutool.http.HttpException;
|
||||||
|
import cn.hutool.http.HttpRequest;
|
||||||
|
import cn.hutool.http.HttpUtil;
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.entity.BipTokenVo;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.service.IBipSsoService;
|
||||||
|
import com.hzya.frame.iputil.IPUtil;
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||||
|
import nccloud.security.impl.SignatureTookKit;
|
||||||
|
import org.apache.commons.codec.binary.Base64;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import java.net.*;
|
||||||
|
import java.util.Enumeration;
|
||||||
|
import java.util.LinkedList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
@Service(value = "BipSsoServiceImpl")
|
||||||
|
public class BipSsoServiceImpl extends BaseService<BipTokenVo, String> implements IBipSsoService {
|
||||||
|
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||||
|
private final String BASEURL = "http://192.168.2.237:8099/seeyon/thirdpartyController.do?ticket=";
|
||||||
|
private final String ESBURL = "http://127.0.0.1:9081/kangarooDataCenterV3/entranceController/externalCallInterface";
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content Bip单点统一认证接口
|
||||||
|
* @author laborer
|
||||||
|
* @date 2024/5/30 0030 13:45
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String erpSso(HttpServletRequest request,String userCode)throws Exception {
|
||||||
|
logger.info("当前IP地址为"+ JSON.toJSONString(IPUtil.getIpAddress(request)));
|
||||||
|
String result = "";
|
||||||
|
boolean flag = true;
|
||||||
|
// logger.info("接收到致远OA认证参数的ticket:{}",ticket);
|
||||||
|
//通过ticket获取OA用户信息
|
||||||
|
// String userCode = HttpUtil.get(BASEURL+ticket);
|
||||||
|
logger.info("获取到的OA用户信息:{}",userCode);
|
||||||
|
String dsname = "ycjf";
|
||||||
|
String client_id = "OAREST";//第三方系统id
|
||||||
|
StringBuffer sb = new StringBuffer();
|
||||||
|
if(StrUtil.isNotEmpty(userCode)){
|
||||||
|
try {
|
||||||
|
logger.info("开始加密");
|
||||||
|
String security = genKey(userCode,userCode + (System.currentTimeMillis() + "").substring(0, 6));
|
||||||
|
logger.info("加密结束:{}",security);
|
||||||
|
sb.append("type=type_security&dsname="+dsname+"&usercode="+userCode+"&client_id="+client_id+"&security="+security);
|
||||||
|
String baseUrl = "http://10.75.51.78:8899/service/genThirdPartyAccessToken?"+sb.toString();
|
||||||
|
logger.info("请求BIPtokenbaseUrl:{}",baseUrl);
|
||||||
|
result = HttpRequest.post(baseUrl)
|
||||||
|
.header("Content-Type", "application/x-www-form-urlencoded")//头信息,多个头信息多次调用此方法即可
|
||||||
|
.header("Content-Length", "10000")//头信息,多个头信息多次调用此方法即可
|
||||||
|
.header("userid", "admin")//头信息,多个头信息多次调用此方法即可
|
||||||
|
.body("{}")//表单内容
|
||||||
|
.timeout(20000)//超时,毫秒
|
||||||
|
.execute().body();
|
||||||
|
logger.info("获取到的BIPtoken信息:{}",result);
|
||||||
|
} catch (HttpException e) {
|
||||||
|
flag=false;
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(flag){
|
||||||
|
String indexUR = "http://10.75.51.78:8899/nccloud/resources/uap/rbac/thirdpartylogin/main/index.html?accesstoken="+result+"&redirect_uri=http://10.75.51.78:8899/nccloud/resources/workbench/public/common/main/index.html#";
|
||||||
|
logger.info(indexUR);
|
||||||
|
return indexUR;
|
||||||
|
}else{
|
||||||
|
return "http://10.75.51.78:8899/nccloud/resources/uap/rbac/login/main/index.html";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 此方法获取sso动态加密,heade参数动态传入
|
||||||
|
* @author laborer
|
||||||
|
* @date 2024/5/27 0027 11:38
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SysExtensionApiEntity ssoEncrypt(SysExtensionApiEntity entity) {
|
||||||
|
try {
|
||||||
|
Map<String, String> headers = entity.getHeaders();
|
||||||
|
String userCode = headers.get("usercode");//用户编码
|
||||||
|
String dsname = headers.get("dsname");//数据源
|
||||||
|
String client_id = headers.get("client_id");//第三方系统id
|
||||||
|
StringBuffer sb = new StringBuffer();
|
||||||
|
String security = genKey(userCode,userCode + (System.currentTimeMillis() + "").substring(0, 6));
|
||||||
|
StringBuffer querys = new StringBuffer();
|
||||||
|
querys.append("type=type_security");
|
||||||
|
querys.append("&dsname="+dsname);
|
||||||
|
querys.append("&usercode="+userCode);
|
||||||
|
querys.append("&client_id="+client_id);
|
||||||
|
querys.append("&security="+security);
|
||||||
|
entity.setQuerys(querys.toString());
|
||||||
|
headers.put("Content-Type", "application/x-www-form-urlencoded");
|
||||||
|
headers.put("userid", "admin");
|
||||||
|
entity.setHeaders(headers);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
/**获取NCC的key*/
|
||||||
|
private static String genKey(String userid, String key) throws Exception {
|
||||||
|
return new Base64().encodeToString(SignatureTookKit.digestSign(userid.getBytes(), key.getBytes()));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,62 @@
|
||||||
|
package com.hzya.frame.bip.v3.v2207.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.entity.BipTokenVo;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.service.IBipV32207BillService;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.service.IBipV32207TokenService;
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||||
|
import com.hzya.frame.util.bipV3.Encryption;
|
||||||
|
import com.hzya.frame.util.bipV3.SHA256Util;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.net.URLEncoder;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
@Service(value = "BipV32207BillServiceImpl")
|
||||||
|
public class BipV32207BillServiceImpl extends BaseService<BipTokenVo, String> implements IBipV32207BillService {
|
||||||
|
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 此方法获取拼接单据动态加密,heade参数动态传入
|
||||||
|
* @author laborer
|
||||||
|
* @date 2024/5/27 0027 11:38
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SysExtensionApiEntity getBipBill(SysExtensionApiEntity entity) {
|
||||||
|
try {
|
||||||
|
Map<String, String> headers = entity.getHeaders();
|
||||||
|
String client_id = headers.get("client_id");
|
||||||
|
//token信息
|
||||||
|
String access_token = headers.get("access_token");
|
||||||
|
//公钥
|
||||||
|
String pubKey = headers.get("pubKey");
|
||||||
|
StringBuffer sb = new StringBuffer();
|
||||||
|
sb.append(client_id);
|
||||||
|
String parm = entity.getBodys();
|
||||||
|
if (StringUtils.isNotBlank(parm)) {
|
||||||
|
sb.append(parm);
|
||||||
|
}
|
||||||
|
sb.append(pubKey);
|
||||||
|
// 签名
|
||||||
|
String sign = SHA256Util.getSHA256(sb.toString(), pubKey);
|
||||||
|
StringBuffer querys = new StringBuffer();
|
||||||
|
querys.append("access_token="+access_token);
|
||||||
|
querys.append("&signature="+sign);
|
||||||
|
querys.append("&client_id="+client_id);
|
||||||
|
entity.setQuerys(querys.toString());
|
||||||
|
headers.put("signature",sign);
|
||||||
|
// headers.put("content-type","application/x-www-form-urlencoded");
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,92 @@
|
||||||
|
package com.hzya.frame.bip.v3.v2207.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.http.HttpRequest;
|
||||||
|
import cn.hutool.json.JSONUtil;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.alibaba.fastjson2.JSON;
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.base.PluginBaseEntity;
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.dao.IBipOrgsDao;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.dao.IBipOrgsDetailsDao;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.dao.IBipSupplierDao;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.dao.IBipSupplierDetailsDao;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.entity.*;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.service.IBipV32207Service;
|
||||||
|
import com.hzya.frame.bip.v3.v2207.service.IBipV32207TokenService;
|
||||||
|
import com.hzya.frame.dateutil.DateUtil;
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||||
|
import com.hzya.frame.util.PluginUtils;
|
||||||
|
import com.hzya.frame.util.bipV3.Encryption;
|
||||||
|
import com.hzya.frame.util.bipV3.SHA256Util;
|
||||||
|
import com.hzya.frame.util.oldNcc.CompressUtil;
|
||||||
|
import com.hzya.frame.util.oldNcc.Decryption;
|
||||||
|
import com.hzya.frame.web.entity.BaseResult;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.net.URLEncoder;
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
|
||||||
|
@Service(value = "bipV32207TokenService")
|
||||||
|
public class BipV32207TokenServiceImpl extends BaseService<BipTokenVo, String> implements IBipV32207TokenService {
|
||||||
|
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 此方法获取BIPtoken,heade参数动态传入
|
||||||
|
* @author laborer
|
||||||
|
* @date 2024/5/27 0027 11:38
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SysExtensionApiEntity getBipToken(SysExtensionApiEntity entity) {
|
||||||
|
try {
|
||||||
|
Map<String, String> headers = entity.getHeaders();
|
||||||
|
String client_id = headers.get("client_id");
|
||||||
|
Map<String, String> paramMap = new HashMap<String, String>();
|
||||||
|
// 密码模式认证
|
||||||
|
paramMap.put("grant_type", "client_credentials");
|
||||||
|
// 第三方应用id
|
||||||
|
paramMap.put("client_id", client_id);
|
||||||
|
// 第三方应用secret]
|
||||||
|
String client_secret = headers.get("client_secret");
|
||||||
|
// 账套编码
|
||||||
|
String busi_center = headers.get("busi_center");
|
||||||
|
//用户编码
|
||||||
|
String usercode = headers.get("usercode");
|
||||||
|
//数据库编码
|
||||||
|
String dsname = headers.get("dsname");
|
||||||
|
String pubKey = headers.get("pubKey");
|
||||||
|
// 第三方应用secret 公钥加密]
|
||||||
|
paramMap.put("client_secret", URLEncoder.encode(Encryption.pubEncrypt(pubKey, client_secret), "utf-8"));
|
||||||
|
// 账套编码
|
||||||
|
paramMap.put("biz_center", busi_center);
|
||||||
|
// // TODO 传递数据源和ncc登录用户
|
||||||
|
paramMap.put("dsname", dsname);
|
||||||
|
paramMap.put("usercode", usercode);
|
||||||
|
// 签名
|
||||||
|
String sign = SHA256Util.getSHA256(client_id + client_secret + pubKey,pubKey);
|
||||||
|
paramMap.put("signature", sign);
|
||||||
|
StringBuffer querys = new StringBuffer();
|
||||||
|
querys.append("biz_center="+busi_center);
|
||||||
|
querys.append("&grant_type="+"client_credentials");
|
||||||
|
querys.append("&signature="+sign);
|
||||||
|
querys.append("&dsname="+dsname);
|
||||||
|
querys.append("&client_secret="+URLEncoder.encode(Encryption.pubEncrypt(pubKey, client_secret), "utf-8"));
|
||||||
|
querys.append("&usercode="+usercode);
|
||||||
|
querys.append("&client_id="+client_id);
|
||||||
|
entity.setQuerys(querys.toString());
|
||||||
|
headers.put("content-type","application/x-www-form-urlencoded");
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.hzya.frame.bip.v3.v2207.util;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* com.hzya.frame.bip.v3.v2207.util
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @date 2024-05 -30 14:20
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class BipUtil {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.req;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 代发代扣请求参数
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/18 16:20
|
||||||
|
**/
|
||||||
|
public class AgentPayRequestDTO {
|
||||||
|
|
||||||
|
//代发表头
|
||||||
|
private PaymentApplySubmitReqDTO paymentApplySubmitReqDTO;
|
||||||
|
//代发明细
|
||||||
|
private List<PaymentApplyAgentDTO> paymentApplyAgentDTO;
|
||||||
|
|
||||||
|
public PaymentApplySubmitReqDTO getPaymentApplySubmitReqDTO() {
|
||||||
|
return paymentApplySubmitReqDTO;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPaymentApplySubmitReqDTO(PaymentApplySubmitReqDTO paymentApplySubmitReqDTO) {
|
||||||
|
this.paymentApplySubmitReqDTO = paymentApplySubmitReqDTO;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PaymentApplyAgentDTO> getPaymentApplyAgentDTO() {
|
||||||
|
return paymentApplyAgentDTO;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPaymentApplyAgentDTO(List<PaymentApplyAgentDTO> paymentApplyAgentDTO) {
|
||||||
|
this.paymentApplyAgentDTO = paymentApplyAgentDTO;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.req;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 代发代扣详情查询请求参数
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/18 17:40
|
||||||
|
**/
|
||||||
|
public class AgentPayResultRequestDTO {
|
||||||
|
|
||||||
|
//申请单编号。 代发代扣支付接口会返回这个单号的
|
||||||
|
private String busNum;
|
||||||
|
|
||||||
|
public String getBusNum() {
|
||||||
|
return busNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusNum(String busNum) {
|
||||||
|
this.busNum = busNum;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,134 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.req;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 电子回单查询请求参数
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/1/4 17:08
|
||||||
|
**/
|
||||||
|
public class ElecRequestDTO {
|
||||||
|
// 开始日期
|
||||||
|
private String startDate;
|
||||||
|
|
||||||
|
// 结束日期
|
||||||
|
private String endDate;
|
||||||
|
|
||||||
|
// 账号
|
||||||
|
private String accountNo;
|
||||||
|
|
||||||
|
// 币种列表
|
||||||
|
private List<String> currencyList;
|
||||||
|
|
||||||
|
// 银行类型列表
|
||||||
|
private List<String> bankTypeList;
|
||||||
|
|
||||||
|
// 回单文件状态 1-已取回 0-未取回
|
||||||
|
private String billStatus;
|
||||||
|
|
||||||
|
// 借贷 1-借 2-贷
|
||||||
|
private String loanType;
|
||||||
|
|
||||||
|
// 单位编码列表
|
||||||
|
private List<String> unitCodeList;
|
||||||
|
|
||||||
|
// 对账码列表
|
||||||
|
private List<String> checkCodeList;
|
||||||
|
|
||||||
|
// ERP业务参考号
|
||||||
|
private String settleBusinessReferenceCode;
|
||||||
|
|
||||||
|
public ElecRequestDTO(String settleBusinessReferenceCode) {
|
||||||
|
this.settleBusinessReferenceCode = settleBusinessReferenceCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ElecRequestDTO(String startDate, String endDate, String settleBusinessReferenceCode) {
|
||||||
|
this.startDate = startDate;
|
||||||
|
this.endDate = endDate;
|
||||||
|
this.settleBusinessReferenceCode = settleBusinessReferenceCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ElecRequestDTO() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStartDate() {
|
||||||
|
return startDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartDate(String startDate) {
|
||||||
|
this.startDate = startDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEndDate() {
|
||||||
|
return endDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndDate(String endDate) {
|
||||||
|
this.endDate = endDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAccountNo() {
|
||||||
|
return accountNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountNo(String accountNo) {
|
||||||
|
this.accountNo = accountNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getCurrencyList() {
|
||||||
|
return currencyList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrencyList(List<String> currencyList) {
|
||||||
|
this.currencyList = currencyList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getBankTypeList() {
|
||||||
|
return bankTypeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankTypeList(List<String> bankTypeList) {
|
||||||
|
this.bankTypeList = bankTypeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBillStatus() {
|
||||||
|
return billStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBillStatus(String billStatus) {
|
||||||
|
this.billStatus = billStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLoanType() {
|
||||||
|
return loanType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLoanType(String loanType) {
|
||||||
|
this.loanType = loanType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getUnitCodeList() {
|
||||||
|
return unitCodeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUnitCodeList(List<String> unitCodeList) {
|
||||||
|
this.unitCodeList = unitCodeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getCheckCodeList() {
|
||||||
|
return checkCodeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheckCodeList(List<String> checkCodeList) {
|
||||||
|
this.checkCodeList = checkCodeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSettleBusinessReferenceCode() {
|
||||||
|
return settleBusinessReferenceCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSettleBusinessReferenceCode(String settleBusinessReferenceCode) {
|
||||||
|
this.settleBusinessReferenceCode = settleBusinessReferenceCode;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,272 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.req;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 经办支付请求DTO
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/1/3 09:02
|
||||||
|
**/
|
||||||
|
public class PayRequestDTO {
|
||||||
|
private String referenceNum;//业务参考号,必填
|
||||||
|
private String busType;//业务类型 必填
|
||||||
|
private String amount;//金额 必填
|
||||||
|
private String currency;//币种编码,必填
|
||||||
|
private String payAccount;//付款账号,非集中支付模式必填
|
||||||
|
private String revAccount;//收款账号 必填
|
||||||
|
private String revAccountName;//收款方户名 必填
|
||||||
|
private String revBankType;//收款银行类型编码,必填
|
||||||
|
private String revBankName;//收款开户行名称
|
||||||
|
private String cnapsCode;//联行号 必填
|
||||||
|
private String purpose;//支付用途 必填
|
||||||
|
|
||||||
|
private String innerAccount;//内部账号
|
||||||
|
private String revBankArea;//收款银行地区名称
|
||||||
|
private String revProvince;//收款人省
|
||||||
|
private String revCity;//收款人市
|
||||||
|
private String bankNum;//收款地区码|银行号
|
||||||
|
private String summary;//该笔支付备注
|
||||||
|
private String expectTime;//期望支付时间
|
||||||
|
private String personalFlag;//公私标记 1对私 0对公
|
||||||
|
private String urgentTag;//加急,1加急0不加2特急
|
||||||
|
private String realTimeTag;//是否实时 1实时0落地
|
||||||
|
private String cityFlag;//同城标志 0同城1异地
|
||||||
|
private String payChannel;//支付渠道
|
||||||
|
private String busiStep;//业务步数 集中支付需要传1,其他不用传
|
||||||
|
private String applyUnitCode;//申请人单位号,集中支付必传
|
||||||
|
private String displayApplyUnitCode;//申请人单位号(前端显示),集中支付如果传了,会将其转化为applyUnitCode
|
||||||
|
|
||||||
|
private String erpExtend1;//客户备用字段1
|
||||||
|
private String erpExtend2;//客户备用字段2
|
||||||
|
private String erpExtend3;//客户备用字段3
|
||||||
|
|
||||||
|
public String getReferenceNum() {
|
||||||
|
return referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReferenceNum(String referenceNum) {
|
||||||
|
this.referenceNum = referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusType() {
|
||||||
|
return busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusType(String busType) {
|
||||||
|
this.busType = busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAmount() {
|
||||||
|
return amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(String amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrency() {
|
||||||
|
return currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrency(String currency) {
|
||||||
|
this.currency = currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayAccount() {
|
||||||
|
return payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayAccount(String payAccount) {
|
||||||
|
this.payAccount = payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevAccount() {
|
||||||
|
return revAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevAccount(String revAccount) {
|
||||||
|
this.revAccount = revAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevAccountName() {
|
||||||
|
return revAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevAccountName(String revAccountName) {
|
||||||
|
this.revAccountName = revAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevBankType() {
|
||||||
|
return revBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevBankType(String revBankType) {
|
||||||
|
this.revBankType = revBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevBankName() {
|
||||||
|
return revBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevBankName(String revBankName) {
|
||||||
|
this.revBankName = revBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCnapsCode() {
|
||||||
|
return cnapsCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCnapsCode(String cnapsCode) {
|
||||||
|
this.cnapsCode = cnapsCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPurpose() {
|
||||||
|
return purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPurpose(String purpose) {
|
||||||
|
this.purpose = purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInnerAccount() {
|
||||||
|
return innerAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInnerAccount(String innerAccount) {
|
||||||
|
this.innerAccount = innerAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevBankArea() {
|
||||||
|
return revBankArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevBankArea(String revBankArea) {
|
||||||
|
this.revBankArea = revBankArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevProvince() {
|
||||||
|
return revProvince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevProvince(String revProvince) {
|
||||||
|
this.revProvince = revProvince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevCity() {
|
||||||
|
return revCity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevCity(String revCity) {
|
||||||
|
this.revCity = revCity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankNum() {
|
||||||
|
return bankNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankNum(String bankNum) {
|
||||||
|
this.bankNum = bankNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSummary() {
|
||||||
|
return summary;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSummary(String summary) {
|
||||||
|
this.summary = summary;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExpectTime() {
|
||||||
|
return expectTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpectTime(String expectTime) {
|
||||||
|
this.expectTime = expectTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPersonalFlag() {
|
||||||
|
return personalFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPersonalFlag(String personalFlag) {
|
||||||
|
this.personalFlag = personalFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUrgentTag() {
|
||||||
|
return urgentTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUrgentTag(String urgentTag) {
|
||||||
|
this.urgentTag = urgentTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRealTimeTag() {
|
||||||
|
return realTimeTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRealTimeTag(String realTimeTag) {
|
||||||
|
this.realTimeTag = realTimeTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCityFlag() {
|
||||||
|
return cityFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCityFlag(String cityFlag) {
|
||||||
|
this.cityFlag = cityFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayChannel() {
|
||||||
|
return payChannel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayChannel(String payChannel) {
|
||||||
|
this.payChannel = payChannel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusiStep() {
|
||||||
|
return busiStep;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusiStep(String busiStep) {
|
||||||
|
this.busiStep = busiStep;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getApplyUnitCode() {
|
||||||
|
return applyUnitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApplyUnitCode(String applyUnitCode) {
|
||||||
|
this.applyUnitCode = applyUnitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDisplayApplyUnitCode() {
|
||||||
|
return displayApplyUnitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDisplayApplyUnitCode(String displayApplyUnitCode) {
|
||||||
|
this.displayApplyUnitCode = displayApplyUnitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend1() {
|
||||||
|
return erpExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend1(String erpExtend1) {
|
||||||
|
this.erpExtend1 = erpExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend2() {
|
||||||
|
return erpExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend2(String erpExtend2) {
|
||||||
|
this.erpExtend2 = erpExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend3() {
|
||||||
|
return erpExtend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend3(String erpExtend3) {
|
||||||
|
this.erpExtend3 = erpExtend3;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,44 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.req;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 查询交易结果请求参数
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/1/3 09:46
|
||||||
|
**/
|
||||||
|
public class PayResultRequestDTO {
|
||||||
|
public PayResultRequestDTO() {
|
||||||
|
}
|
||||||
|
public PayResultRequestDTO(String referenceNum) {
|
||||||
|
this.referenceNum = referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String referenceNum;//业务参考号,必填
|
||||||
|
private List<String> statusList;//状态
|
||||||
|
private List<String> payStatusList;//支付状态
|
||||||
|
|
||||||
|
public String getReferenceNum() {
|
||||||
|
return referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReferenceNum(String referenceNum) {
|
||||||
|
this.referenceNum = referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getStatusList() {
|
||||||
|
return statusList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatusList(List<String> statusList) {
|
||||||
|
this.statusList = statusList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getPayStatusList() {
|
||||||
|
return payStatusList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayStatusList(List<String> payStatusList) {
|
||||||
|
this.payStatusList = payStatusList;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,132 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.req;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 代发代扣明细
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/18 13:45
|
||||||
|
**/
|
||||||
|
public class PaymentApplyAgentDTO {
|
||||||
|
//每笔明细金额
|
||||||
|
private String dtlAmount;
|
||||||
|
//收款账号
|
||||||
|
private String dtlRevAccount;
|
||||||
|
//联行号 同行可不传,跨行必传
|
||||||
|
private String dtlCnapsCode;
|
||||||
|
//收款账户名称
|
||||||
|
private String dtlRevName;
|
||||||
|
//收款开户行 ,如果传的联行号能匹配到对应到开户行,cbs8会自动带出
|
||||||
|
private String dtlRevBankName;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//是否跨行 Y跨行 N同行
|
||||||
|
private String dtlBankFlag;
|
||||||
|
//明细用途
|
||||||
|
private String dtlPurpose;
|
||||||
|
//明细摘要
|
||||||
|
private String dtlRemark;
|
||||||
|
//收款账号银行号|地区码
|
||||||
|
private String dtlRevBankArea;
|
||||||
|
//收款开户地
|
||||||
|
private String dtlRevBankCity;
|
||||||
|
//明细序号,从1开始递增
|
||||||
|
private int dtlSeqNum;
|
||||||
|
//备用字段 一共6个
|
||||||
|
private String dtlExtend1;
|
||||||
|
|
||||||
|
public String getDtlAmount() {
|
||||||
|
return dtlAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlAmount(String dtlAmount) {
|
||||||
|
this.dtlAmount = dtlAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRevAccount() {
|
||||||
|
return dtlRevAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRevAccount(String dtlRevAccount) {
|
||||||
|
this.dtlRevAccount = dtlRevAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlCnapsCode() {
|
||||||
|
return dtlCnapsCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlCnapsCode(String dtlCnapsCode) {
|
||||||
|
this.dtlCnapsCode = dtlCnapsCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRevName() {
|
||||||
|
return dtlRevName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRevName(String dtlRevName) {
|
||||||
|
this.dtlRevName = dtlRevName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRevBankName() {
|
||||||
|
return dtlRevBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRevBankName(String dtlRevBankName) {
|
||||||
|
this.dtlRevBankName = dtlRevBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlBankFlag() {
|
||||||
|
return dtlBankFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlBankFlag(String dtlBankFlag) {
|
||||||
|
this.dtlBankFlag = dtlBankFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlPurpose() {
|
||||||
|
return dtlPurpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlPurpose(String dtlPurpose) {
|
||||||
|
this.dtlPurpose = dtlPurpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRemark() {
|
||||||
|
return dtlRemark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRemark(String dtlRemark) {
|
||||||
|
this.dtlRemark = dtlRemark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRevBankArea() {
|
||||||
|
return dtlRevBankArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRevBankArea(String dtlRevBankArea) {
|
||||||
|
this.dtlRevBankArea = dtlRevBankArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRevBankCity() {
|
||||||
|
return dtlRevBankCity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRevBankCity(String dtlRevBankCity) {
|
||||||
|
this.dtlRevBankCity = dtlRevBankCity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getDtlSeqNum() {
|
||||||
|
return dtlSeqNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlSeqNum(int dtlSeqNum) {
|
||||||
|
this.dtlSeqNum = dtlSeqNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlExtend1() {
|
||||||
|
return dtlExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlExtend1(String dtlExtend1) {
|
||||||
|
this.dtlExtend1 = dtlExtend1;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,182 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.req;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 批量代发代扣 203代发 201代扣
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/18 11:58
|
||||||
|
**/
|
||||||
|
public class PaymentApplySubmitReqDTO {
|
||||||
|
//业务参考号
|
||||||
|
private String referenceNum;
|
||||||
|
/**
|
||||||
|
* 业务类型
|
||||||
|
* 201-代扣
|
||||||
|
* 203-代发
|
||||||
|
* 代发工资传203
|
||||||
|
*/
|
||||||
|
private String busType;
|
||||||
|
//总金额 小数位2位
|
||||||
|
private String amount;
|
||||||
|
//币种
|
||||||
|
private String currency;
|
||||||
|
//付款账号
|
||||||
|
private String payAccount;
|
||||||
|
//用途
|
||||||
|
private String purpose;
|
||||||
|
// 以上是必填字段
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//备注
|
||||||
|
private String summary;
|
||||||
|
//期望支付时间
|
||||||
|
private String expectTime;
|
||||||
|
//公私标识 1对私 0对公
|
||||||
|
private String personalFlag;
|
||||||
|
//加急标志 1加急 0不加急
|
||||||
|
private String urgentTag;
|
||||||
|
//是否实时 1实时 0落地
|
||||||
|
private String realTimeTag;
|
||||||
|
/**
|
||||||
|
* 同城标志 0同城 1异地
|
||||||
|
* 收/付账号所属同一个城市为同城,否则为异地
|
||||||
|
*/
|
||||||
|
private String cityFlag;
|
||||||
|
//银行备用字段 一共8个
|
||||||
|
private String bankExtend1;
|
||||||
|
|
||||||
|
//客户备用字段1
|
||||||
|
private String erpExtend1;
|
||||||
|
//客户备用字段1
|
||||||
|
private String erpExtend2;
|
||||||
|
//客户备用字段1
|
||||||
|
private String erpExtend3;
|
||||||
|
|
||||||
|
public String getReferenceNum() {
|
||||||
|
return referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReferenceNum(String referenceNum) {
|
||||||
|
this.referenceNum = referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusType() {
|
||||||
|
return busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusType(String busType) {
|
||||||
|
this.busType = busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAmount() {
|
||||||
|
return amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(String amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrency() {
|
||||||
|
return currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrency(String currency) {
|
||||||
|
this.currency = currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayAccount() {
|
||||||
|
return payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayAccount(String payAccount) {
|
||||||
|
this.payAccount = payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPurpose() {
|
||||||
|
return purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPurpose(String purpose) {
|
||||||
|
this.purpose = purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSummary() {
|
||||||
|
return summary;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSummary(String summary) {
|
||||||
|
this.summary = summary;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExpectTime() {
|
||||||
|
return expectTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpectTime(String expectTime) {
|
||||||
|
this.expectTime = expectTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPersonalFlag() {
|
||||||
|
return personalFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPersonalFlag(String personalFlag) {
|
||||||
|
this.personalFlag = personalFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUrgentTag() {
|
||||||
|
return urgentTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUrgentTag(String urgentTag) {
|
||||||
|
this.urgentTag = urgentTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRealTimeTag() {
|
||||||
|
return realTimeTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRealTimeTag(String realTimeTag) {
|
||||||
|
this.realTimeTag = realTimeTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCityFlag() {
|
||||||
|
return cityFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCityFlag(String cityFlag) {
|
||||||
|
this.cityFlag = cityFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankExtend1() {
|
||||||
|
return bankExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankExtend1(String bankExtend1) {
|
||||||
|
this.bankExtend1 = bankExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend1() {
|
||||||
|
return erpExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend1(String erpExtend1) {
|
||||||
|
this.erpExtend1 = erpExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend2() {
|
||||||
|
return erpExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend2(String erpExtend2) {
|
||||||
|
this.erpExtend2 = erpExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend3() {
|
||||||
|
return erpExtend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend3(String erpExtend3) {
|
||||||
|
this.erpExtend3 = erpExtend3;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,164 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.req;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 查询境内交易明细参数
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/1/3 09:55
|
||||||
|
**/
|
||||||
|
public class TransactionDetailReqDTO {
|
||||||
|
private int currentPage;//当前页码 从1开始
|
||||||
|
private int pageSize;//本次查询的记录数,最大1000条
|
||||||
|
private String startDate;//开始日期
|
||||||
|
private String endDate;//结束日期
|
||||||
|
private String dateType;//日期类型0:交易日期,1:起息日期
|
||||||
|
private List<String> accountNoList;//账户列表
|
||||||
|
private List<String> bankTypeList;//银行类型列表
|
||||||
|
private List<String> currencyList;//币种列表
|
||||||
|
private String detailedSources;//明细来源
|
||||||
|
private String currentFlag;//明细类型
|
||||||
|
private String loanType;//借贷类型 1:借 2:贷
|
||||||
|
private List<String> accountNatureList;//账户性质列表
|
||||||
|
private String bankSerialNumber;//银行流水号
|
||||||
|
private String transactionSerialNumber;//交易流水号
|
||||||
|
private List<String> unitCodeList ;//单位编码列表
|
||||||
|
private String erpSerialNumber ;//erp业务参考号
|
||||||
|
|
||||||
|
public TransactionDetailReqDTO() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public TransactionDetailReqDTO(String startDate, String endDate) {
|
||||||
|
this.startDate = startDate;
|
||||||
|
this.endDate = endDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStartDate() {
|
||||||
|
return startDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartDate(String startDate) {
|
||||||
|
this.startDate = startDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEndDate() {
|
||||||
|
return endDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndDate(String endDate) {
|
||||||
|
this.endDate = endDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDateType() {
|
||||||
|
return dateType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDateType(String dateType) {
|
||||||
|
this.dateType = dateType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getAccountNoList() {
|
||||||
|
return accountNoList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountNoList(List<String> accountNoList) {
|
||||||
|
this.accountNoList = accountNoList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getBankTypeList() {
|
||||||
|
return bankTypeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankTypeList(List<String> bankTypeList) {
|
||||||
|
this.bankTypeList = bankTypeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getCurrencyList() {
|
||||||
|
return currencyList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrencyList(List<String> currencyList) {
|
||||||
|
this.currencyList = currencyList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetailedSources() {
|
||||||
|
return detailedSources;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetailedSources(String detailedSources) {
|
||||||
|
this.detailedSources = detailedSources;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrentFlag() {
|
||||||
|
return currentFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrentFlag(String currentFlag) {
|
||||||
|
this.currentFlag = currentFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLoanType() {
|
||||||
|
return loanType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLoanType(String loanType) {
|
||||||
|
this.loanType = loanType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getAccountNatureList() {
|
||||||
|
return accountNatureList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountNatureList(List<String> accountNatureList) {
|
||||||
|
this.accountNatureList = accountNatureList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankSerialNumber() {
|
||||||
|
return bankSerialNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankSerialNumber(String bankSerialNumber) {
|
||||||
|
this.bankSerialNumber = bankSerialNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTransactionSerialNumber() {
|
||||||
|
return transactionSerialNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTransactionSerialNumber(String transactionSerialNumber) {
|
||||||
|
this.transactionSerialNumber = transactionSerialNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getUnitCodeList() {
|
||||||
|
return unitCodeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUnitCodeList(List<String> unitCodeList) {
|
||||||
|
this.unitCodeList = unitCodeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpSerialNumber() {
|
||||||
|
return erpSerialNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpSerialNumber(String erpSerialNumber) {
|
||||||
|
this.erpSerialNumber = erpSerialNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getCurrentPage() {
|
||||||
|
return currentPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrentPage(int currentPage) {
|
||||||
|
this.currentPage = currentPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPageSize() {
|
||||||
|
return pageSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPageSize(int pageSize) {
|
||||||
|
this.pageSize = pageSize;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,280 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.res;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 代发代扣查询详情
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/19 09:02
|
||||||
|
**/
|
||||||
|
public class AgentPayQueryDTO {
|
||||||
|
// 申请单编号
|
||||||
|
private String busNum;
|
||||||
|
|
||||||
|
// 代发/代扣明细序号
|
||||||
|
private String dtlSeqNum;
|
||||||
|
|
||||||
|
// 金额
|
||||||
|
private String dtlAmount; // 考虑到金额计算精度,建议使用BigDecimal
|
||||||
|
|
||||||
|
// 收款人名称
|
||||||
|
private String dtlRevName;
|
||||||
|
|
||||||
|
// 收款人账号
|
||||||
|
private String dtlRevAccount;
|
||||||
|
|
||||||
|
// 收款人开户行
|
||||||
|
private String dtlRevBankName;
|
||||||
|
|
||||||
|
// 银行号
|
||||||
|
private String dtlBankNum;
|
||||||
|
|
||||||
|
// 联行号
|
||||||
|
private String dtlCnapsCode;
|
||||||
|
|
||||||
|
// 是否跨行(Y:开户行是招商银行。N:开户行是他行。为空默认为招行)
|
||||||
|
private String dtlBankFlag;
|
||||||
|
|
||||||
|
// 地区名称
|
||||||
|
private String dtlRevBankArea;
|
||||||
|
|
||||||
|
// 注释
|
||||||
|
private String dtlRemark;
|
||||||
|
|
||||||
|
// 状态
|
||||||
|
private String dtlStatus;
|
||||||
|
|
||||||
|
// 错误信息
|
||||||
|
private String dtlErrorMessage;
|
||||||
|
|
||||||
|
// 他行开户地
|
||||||
|
private String dtlRevBankCity;
|
||||||
|
|
||||||
|
// 备用字段1-6
|
||||||
|
private String dtlExtend1;
|
||||||
|
private String dtlExtend2;
|
||||||
|
private String dtlExtend3;
|
||||||
|
private String dtlExtend4;
|
||||||
|
private String dtlExtend5;
|
||||||
|
private String dtlExtend6;
|
||||||
|
|
||||||
|
// ERP备注1-3
|
||||||
|
private String dtlErpComment1;
|
||||||
|
private String dtlErpComment2;
|
||||||
|
private String dtlErpComment3;
|
||||||
|
|
||||||
|
// 用途
|
||||||
|
private String dtlPurpose;
|
||||||
|
|
||||||
|
// 银行支付时间
|
||||||
|
private String dtlPayTime;
|
||||||
|
|
||||||
|
// 实际扣款金额
|
||||||
|
private String dtlActualAmount;
|
||||||
|
|
||||||
|
public String getBusNum() {
|
||||||
|
return busNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusNum(String busNum) {
|
||||||
|
this.busNum = busNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlSeqNum() {
|
||||||
|
return dtlSeqNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlSeqNum(String dtlSeqNum) {
|
||||||
|
this.dtlSeqNum = dtlSeqNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlAmount() {
|
||||||
|
return dtlAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlAmount(String dtlAmount) {
|
||||||
|
this.dtlAmount = dtlAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRevName() {
|
||||||
|
return dtlRevName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRevName(String dtlRevName) {
|
||||||
|
this.dtlRevName = dtlRevName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRevAccount() {
|
||||||
|
return dtlRevAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRevAccount(String dtlRevAccount) {
|
||||||
|
this.dtlRevAccount = dtlRevAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRevBankName() {
|
||||||
|
return dtlRevBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRevBankName(String dtlRevBankName) {
|
||||||
|
this.dtlRevBankName = dtlRevBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlBankNum() {
|
||||||
|
return dtlBankNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlBankNum(String dtlBankNum) {
|
||||||
|
this.dtlBankNum = dtlBankNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlCnapsCode() {
|
||||||
|
return dtlCnapsCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlCnapsCode(String dtlCnapsCode) {
|
||||||
|
this.dtlCnapsCode = dtlCnapsCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlBankFlag() {
|
||||||
|
return dtlBankFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlBankFlag(String dtlBankFlag) {
|
||||||
|
this.dtlBankFlag = dtlBankFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRevBankArea() {
|
||||||
|
return dtlRevBankArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRevBankArea(String dtlRevBankArea) {
|
||||||
|
this.dtlRevBankArea = dtlRevBankArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRemark() {
|
||||||
|
return dtlRemark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRemark(String dtlRemark) {
|
||||||
|
this.dtlRemark = dtlRemark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlStatus() {
|
||||||
|
return dtlStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlStatus(String dtlStatus) {
|
||||||
|
this.dtlStatus = dtlStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlErrorMessage() {
|
||||||
|
return dtlErrorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlErrorMessage(String dtlErrorMessage) {
|
||||||
|
this.dtlErrorMessage = dtlErrorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRevBankCity() {
|
||||||
|
return dtlRevBankCity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRevBankCity(String dtlRevBankCity) {
|
||||||
|
this.dtlRevBankCity = dtlRevBankCity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlExtend1() {
|
||||||
|
return dtlExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlExtend1(String dtlExtend1) {
|
||||||
|
this.dtlExtend1 = dtlExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlExtend2() {
|
||||||
|
return dtlExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlExtend2(String dtlExtend2) {
|
||||||
|
this.dtlExtend2 = dtlExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlExtend3() {
|
||||||
|
return dtlExtend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlExtend3(String dtlExtend3) {
|
||||||
|
this.dtlExtend3 = dtlExtend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlExtend4() {
|
||||||
|
return dtlExtend4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlExtend4(String dtlExtend4) {
|
||||||
|
this.dtlExtend4 = dtlExtend4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlExtend5() {
|
||||||
|
return dtlExtend5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlExtend5(String dtlExtend5) {
|
||||||
|
this.dtlExtend5 = dtlExtend5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlExtend6() {
|
||||||
|
return dtlExtend6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlExtend6(String dtlExtend6) {
|
||||||
|
this.dtlExtend6 = dtlExtend6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlErpComment1() {
|
||||||
|
return dtlErpComment1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlErpComment1(String dtlErpComment1) {
|
||||||
|
this.dtlErpComment1 = dtlErpComment1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlErpComment2() {
|
||||||
|
return dtlErpComment2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlErpComment2(String dtlErpComment2) {
|
||||||
|
this.dtlErpComment2 = dtlErpComment2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlErpComment3() {
|
||||||
|
return dtlErpComment3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlErpComment3(String dtlErpComment3) {
|
||||||
|
this.dtlErpComment3 = dtlErpComment3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlPurpose() {
|
||||||
|
return dtlPurpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlPurpose(String dtlPurpose) {
|
||||||
|
this.dtlPurpose = dtlPurpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlPayTime() {
|
||||||
|
return dtlPayTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlPayTime(String dtlPayTime) {
|
||||||
|
this.dtlPayTime = dtlPayTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlActualAmount() {
|
||||||
|
return dtlActualAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlActualAmount(String dtlActualAmount) {
|
||||||
|
this.dtlActualAmount = dtlActualAmount;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,450 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.res;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 代发代扣 返回参数对象
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/19 08:53
|
||||||
|
**/
|
||||||
|
public class AgentPayResultResDTO {
|
||||||
|
// 支付的业务类型
|
||||||
|
private String busType;
|
||||||
|
|
||||||
|
// 申请单编号
|
||||||
|
private String busNum;
|
||||||
|
|
||||||
|
// 付款账户
|
||||||
|
private String payAccount;
|
||||||
|
|
||||||
|
// 付款账户名称
|
||||||
|
private String payAccountName;
|
||||||
|
|
||||||
|
// 付款账户开户行
|
||||||
|
private String payBankName;
|
||||||
|
|
||||||
|
// 付款银行类型
|
||||||
|
private String payBankType;
|
||||||
|
|
||||||
|
// 币种
|
||||||
|
private String currency;
|
||||||
|
|
||||||
|
// 金额
|
||||||
|
private String amount;
|
||||||
|
|
||||||
|
// 收款账户
|
||||||
|
private String revAccount;
|
||||||
|
|
||||||
|
// 收款账户名称
|
||||||
|
private String revAccountName;
|
||||||
|
|
||||||
|
// 收款开户行
|
||||||
|
private String revBankName;
|
||||||
|
|
||||||
|
// 收款银行类型
|
||||||
|
private String revBankType;
|
||||||
|
|
||||||
|
// 收款人省
|
||||||
|
private String revProvince;
|
||||||
|
|
||||||
|
// 对账码集合(假设为String列表)
|
||||||
|
private List<String> checkCodeList;
|
||||||
|
|
||||||
|
// 收款人市
|
||||||
|
private String revCity;
|
||||||
|
|
||||||
|
// 支付渠道
|
||||||
|
private String payChannel;
|
||||||
|
|
||||||
|
// 付款单提示信息/银行返回信息
|
||||||
|
private String errorMsg;
|
||||||
|
|
||||||
|
// 支付申请状态
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
// 经办人ID
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
// 经办人名称
|
||||||
|
private String createByName;
|
||||||
|
|
||||||
|
// 用途
|
||||||
|
private String purpose;
|
||||||
|
|
||||||
|
// 摘要/备注
|
||||||
|
private String summary;
|
||||||
|
|
||||||
|
// 期望支付时间
|
||||||
|
private String expectTime;
|
||||||
|
|
||||||
|
// 支付时间
|
||||||
|
private String payDate;
|
||||||
|
|
||||||
|
// 支付状态
|
||||||
|
private String payStatus;
|
||||||
|
|
||||||
|
// 客户备用字段1
|
||||||
|
private String erpExtend1;
|
||||||
|
|
||||||
|
// 客户备用字段2
|
||||||
|
private String erpExtend2;
|
||||||
|
|
||||||
|
// 客户备用字段3
|
||||||
|
private String erpExtend3;
|
||||||
|
|
||||||
|
// 计划流水号
|
||||||
|
private String planNumber;
|
||||||
|
|
||||||
|
// 资金预算编号
|
||||||
|
private String planItemCode;
|
||||||
|
|
||||||
|
// 预算项名称
|
||||||
|
private String planItemName;
|
||||||
|
|
||||||
|
// 预算所属单位编码
|
||||||
|
private String planUnitCode;
|
||||||
|
|
||||||
|
// 预算所属单位名称
|
||||||
|
private String planUnitName;
|
||||||
|
|
||||||
|
// 单位编码(前端展示)
|
||||||
|
private String displayUnitCode;
|
||||||
|
|
||||||
|
// 预算单位编码(前端展示)
|
||||||
|
private String displayPlanUnitCode;
|
||||||
|
|
||||||
|
// 经办用户单位编码(前端展示)
|
||||||
|
private String displayOperaterOrgCode;
|
||||||
|
|
||||||
|
// 付方单位编码(前端展示)
|
||||||
|
private String displayPayOrgCode;
|
||||||
|
|
||||||
|
// 客商编号
|
||||||
|
private String revCustomerCode;
|
||||||
|
|
||||||
|
// 结算方式
|
||||||
|
private String payType;
|
||||||
|
|
||||||
|
//代发代扣详情
|
||||||
|
private List<AgentPayQueryDTO> agentDetails;
|
||||||
|
|
||||||
|
public String getBusType() {
|
||||||
|
return busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusType(String busType) {
|
||||||
|
this.busType = busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusNum() {
|
||||||
|
return busNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusNum(String busNum) {
|
||||||
|
this.busNum = busNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayAccount() {
|
||||||
|
return payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayAccount(String payAccount) {
|
||||||
|
this.payAccount = payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayAccountName() {
|
||||||
|
return payAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayAccountName(String payAccountName) {
|
||||||
|
this.payAccountName = payAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayBankName() {
|
||||||
|
return payBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayBankName(String payBankName) {
|
||||||
|
this.payBankName = payBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayBankType() {
|
||||||
|
return payBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayBankType(String payBankType) {
|
||||||
|
this.payBankType = payBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrency() {
|
||||||
|
return currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrency(String currency) {
|
||||||
|
this.currency = currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAmount() {
|
||||||
|
return amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(String amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevAccount() {
|
||||||
|
return revAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevAccount(String revAccount) {
|
||||||
|
this.revAccount = revAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevAccountName() {
|
||||||
|
return revAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevAccountName(String revAccountName) {
|
||||||
|
this.revAccountName = revAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevBankName() {
|
||||||
|
return revBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevBankName(String revBankName) {
|
||||||
|
this.revBankName = revBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevBankType() {
|
||||||
|
return revBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevBankType(String revBankType) {
|
||||||
|
this.revBankType = revBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevProvince() {
|
||||||
|
return revProvince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevProvince(String revProvince) {
|
||||||
|
this.revProvince = revProvince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getCheckCodeList() {
|
||||||
|
return checkCodeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheckCodeList(List<String> checkCodeList) {
|
||||||
|
this.checkCodeList = checkCodeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevCity() {
|
||||||
|
return revCity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevCity(String revCity) {
|
||||||
|
this.revCity = revCity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayChannel() {
|
||||||
|
return payChannel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayChannel(String payChannel) {
|
||||||
|
this.payChannel = payChannel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErrorMsg() {
|
||||||
|
return errorMsg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErrorMsg(String errorMsg) {
|
||||||
|
this.errorMsg = errorMsg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(String status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateBy() {
|
||||||
|
return createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateBy(String createBy) {
|
||||||
|
this.createBy = createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateByName() {
|
||||||
|
return createByName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateByName(String createByName) {
|
||||||
|
this.createByName = createByName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPurpose() {
|
||||||
|
return purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPurpose(String purpose) {
|
||||||
|
this.purpose = purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSummary() {
|
||||||
|
return summary;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSummary(String summary) {
|
||||||
|
this.summary = summary;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExpectTime() {
|
||||||
|
return expectTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpectTime(String expectTime) {
|
||||||
|
this.expectTime = expectTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayDate() {
|
||||||
|
return payDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayDate(String payDate) {
|
||||||
|
this.payDate = payDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayStatus() {
|
||||||
|
return payStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayStatus(String payStatus) {
|
||||||
|
this.payStatus = payStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend1() {
|
||||||
|
return erpExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend1(String erpExtend1) {
|
||||||
|
this.erpExtend1 = erpExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend2() {
|
||||||
|
return erpExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend2(String erpExtend2) {
|
||||||
|
this.erpExtend2 = erpExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend3() {
|
||||||
|
return erpExtend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend3(String erpExtend3) {
|
||||||
|
this.erpExtend3 = erpExtend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlanNumber() {
|
||||||
|
return planNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanNumber(String planNumber) {
|
||||||
|
this.planNumber = planNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlanItemCode() {
|
||||||
|
return planItemCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanItemCode(String planItemCode) {
|
||||||
|
this.planItemCode = planItemCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlanItemName() {
|
||||||
|
return planItemName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanItemName(String planItemName) {
|
||||||
|
this.planItemName = planItemName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlanUnitCode() {
|
||||||
|
return planUnitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanUnitCode(String planUnitCode) {
|
||||||
|
this.planUnitCode = planUnitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlanUnitName() {
|
||||||
|
return planUnitName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanUnitName(String planUnitName) {
|
||||||
|
this.planUnitName = planUnitName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDisplayUnitCode() {
|
||||||
|
return displayUnitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDisplayUnitCode(String displayUnitCode) {
|
||||||
|
this.displayUnitCode = displayUnitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDisplayPlanUnitCode() {
|
||||||
|
return displayPlanUnitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDisplayPlanUnitCode(String displayPlanUnitCode) {
|
||||||
|
this.displayPlanUnitCode = displayPlanUnitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDisplayOperaterOrgCode() {
|
||||||
|
return displayOperaterOrgCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDisplayOperaterOrgCode(String displayOperaterOrgCode) {
|
||||||
|
this.displayOperaterOrgCode = displayOperaterOrgCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDisplayPayOrgCode() {
|
||||||
|
return displayPayOrgCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDisplayPayOrgCode(String displayPayOrgCode) {
|
||||||
|
this.displayPayOrgCode = displayPayOrgCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevCustomerCode() {
|
||||||
|
return revCustomerCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevCustomerCode(String revCustomerCode) {
|
||||||
|
this.revCustomerCode = revCustomerCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayType() {
|
||||||
|
return payType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayType(String payType) {
|
||||||
|
this.payType = payType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<AgentPayQueryDTO> getAgentDetails() {
|
||||||
|
return agentDetails;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgentDetails(List<AgentPayQueryDTO> agentDetails) {
|
||||||
|
this.agentDetails = agentDetails;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,458 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.res;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description data节点
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/1/2 09:26
|
||||||
|
**/
|
||||||
|
public class CbsResDataDTO {
|
||||||
|
|
||||||
|
|
||||||
|
private List<JSONObject> list;//明细数据
|
||||||
|
//------- 交易明细字段-----
|
||||||
|
private int endRow;
|
||||||
|
private Boolean hasNextPage;//是否有下一页
|
||||||
|
private Boolean hasPreviousPage;//是否有前一页
|
||||||
|
@JSONField(name = "isFirstPage")
|
||||||
|
private Boolean hasFirstPage;
|
||||||
|
@JSONField(name = "isLastPage")
|
||||||
|
private Boolean hasLastPage;
|
||||||
|
private int navigateFirstPage;
|
||||||
|
private int navigateLastPage;
|
||||||
|
private int navigatePages;
|
||||||
|
private int nextPage;
|
||||||
|
private int pageNum;
|
||||||
|
private int pageSize;
|
||||||
|
private int pages;
|
||||||
|
private int prePage;
|
||||||
|
private int size;
|
||||||
|
private int startRow;
|
||||||
|
private int total;
|
||||||
|
//------- 交易明细字段-----
|
||||||
|
|
||||||
|
//------经办支付返回参数------
|
||||||
|
private String busNum;//申请单编号
|
||||||
|
private String errorCode;//错误编码
|
||||||
|
private String errorMsg;//错误信息
|
||||||
|
private String freezeFlowNum;//内部户冻结流水号
|
||||||
|
private String recordNum;//批量经办序号
|
||||||
|
private String referenceNum;//业务参考号
|
||||||
|
private Boolean successed;//是否成功
|
||||||
|
//------经办支付返回参数------
|
||||||
|
|
||||||
|
|
||||||
|
//------查询交易结果返回参数-------
|
||||||
|
|
||||||
|
private String busType;//支付业务类型
|
||||||
|
private String payAccount;//付款账号
|
||||||
|
private String payAccountName;//付款户名
|
||||||
|
private String payBankName;//付款开户行名称
|
||||||
|
private String payBankType;//付款银行类型
|
||||||
|
private String currency;//币种
|
||||||
|
private String amount;//金额
|
||||||
|
private String revAccount;//收款账户
|
||||||
|
private String revAccountName;//收款账户名
|
||||||
|
private String revBankName;//收款开户行
|
||||||
|
private String revBankType;//收款银行类型
|
||||||
|
private String payChannel;//支付渠道
|
||||||
|
|
||||||
|
private String status;//支付申请单状态
|
||||||
|
private String payStatus;//支付状态
|
||||||
|
private String payDate;//支付时间
|
||||||
|
private String planNumber;//计划流水号
|
||||||
|
private String planItemCode;//资金预算编号
|
||||||
|
private String planItemName;//预算名称
|
||||||
|
private String erpExtend1;//客户备用字段1
|
||||||
|
private String erpExtend2;//客户备用字段1
|
||||||
|
private String erpExtend3;//客户备用字段1
|
||||||
|
|
||||||
|
//------查询交易结果返回参数-------
|
||||||
|
|
||||||
|
|
||||||
|
public List<JSONObject> getList() {
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setList(List<JSONObject> list) {
|
||||||
|
this.list = list;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getEndRow() {
|
||||||
|
return endRow;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndRow(int endRow) {
|
||||||
|
this.endRow = endRow;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getHasNextPage() {
|
||||||
|
return hasNextPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHasNextPage(Boolean hasNextPage) {
|
||||||
|
this.hasNextPage = hasNextPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getHasPreviousPage() {
|
||||||
|
return hasPreviousPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHasPreviousPage(Boolean hasPreviousPage) {
|
||||||
|
this.hasPreviousPage = hasPreviousPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getHasFirstPage() {
|
||||||
|
return hasFirstPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHasFirstPage(Boolean hasFirstPage) {
|
||||||
|
this.hasFirstPage = hasFirstPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getHasLastPage() {
|
||||||
|
return hasLastPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHasLastPage(Boolean hasLastPage) {
|
||||||
|
this.hasLastPage = hasLastPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getNavigateFirstPage() {
|
||||||
|
return navigateFirstPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNavigateFirstPage(int navigateFirstPage) {
|
||||||
|
this.navigateFirstPage = navigateFirstPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getNavigateLastPage() {
|
||||||
|
return navigateLastPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNavigateLastPage(int navigateLastPage) {
|
||||||
|
this.navigateLastPage = navigateLastPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getNavigatePages() {
|
||||||
|
return navigatePages;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNavigatePages(int navigatePages) {
|
||||||
|
this.navigatePages = navigatePages;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getNextPage() {
|
||||||
|
return nextPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNextPage(int nextPage) {
|
||||||
|
this.nextPage = nextPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPageNum() {
|
||||||
|
return pageNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPageNum(int pageNum) {
|
||||||
|
this.pageNum = pageNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPageSize() {
|
||||||
|
return pageSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPageSize(int pageSize) {
|
||||||
|
this.pageSize = pageSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPages() {
|
||||||
|
return pages;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPages(int pages) {
|
||||||
|
this.pages = pages;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPrePage() {
|
||||||
|
return prePage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrePage(int prePage) {
|
||||||
|
this.prePage = prePage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getSize() {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSize(int size) {
|
||||||
|
this.size = size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getStartRow() {
|
||||||
|
return startRow;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartRow(int startRow) {
|
||||||
|
this.startRow = startRow;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTotal() {
|
||||||
|
return total;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTotal(int total) {
|
||||||
|
this.total = total;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusNum() {
|
||||||
|
return busNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusNum(String busNum) {
|
||||||
|
this.busNum = busNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErrorCode() {
|
||||||
|
return errorCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErrorCode(String errorCode) {
|
||||||
|
this.errorCode = errorCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErrorMsg() {
|
||||||
|
return errorMsg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErrorMsg(String errorMsg) {
|
||||||
|
this.errorMsg = errorMsg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFreezeFlowNum() {
|
||||||
|
return freezeFlowNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFreezeFlowNum(String freezeFlowNum) {
|
||||||
|
this.freezeFlowNum = freezeFlowNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRecordNum() {
|
||||||
|
return recordNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRecordNum(String recordNum) {
|
||||||
|
this.recordNum = recordNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReferenceNum() {
|
||||||
|
return referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReferenceNum(String referenceNum) {
|
||||||
|
this.referenceNum = referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getSuccessed() {
|
||||||
|
return successed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuccessed(Boolean successed) {
|
||||||
|
this.successed = successed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusType() {
|
||||||
|
return busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusType(String busType) {
|
||||||
|
this.busType = busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayAccount() {
|
||||||
|
return payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayAccount(String payAccount) {
|
||||||
|
this.payAccount = payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayAccountName() {
|
||||||
|
return payAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayAccountName(String payAccountName) {
|
||||||
|
this.payAccountName = payAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayBankName() {
|
||||||
|
return payBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayBankName(String payBankName) {
|
||||||
|
this.payBankName = payBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayBankType() {
|
||||||
|
return payBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayBankType(String payBankType) {
|
||||||
|
this.payBankType = payBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrency() {
|
||||||
|
return currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrency(String currency) {
|
||||||
|
this.currency = currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAmount() {
|
||||||
|
return amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(String amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevAccount() {
|
||||||
|
return revAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevAccount(String revAccount) {
|
||||||
|
this.revAccount = revAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevAccountName() {
|
||||||
|
return revAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevAccountName(String revAccountName) {
|
||||||
|
this.revAccountName = revAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevBankName() {
|
||||||
|
return revBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevBankName(String revBankName) {
|
||||||
|
this.revBankName = revBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevBankType() {
|
||||||
|
return revBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevBankType(String revBankType) {
|
||||||
|
this.revBankType = revBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayChannel() {
|
||||||
|
return payChannel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayChannel(String payChannel) {
|
||||||
|
this.payChannel = payChannel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(String status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayStatus() {
|
||||||
|
return payStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayStatus(String payStatus) {
|
||||||
|
this.payStatus = payStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayDate() {
|
||||||
|
return payDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayDate(String payDate) {
|
||||||
|
this.payDate = payDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlanNumber() {
|
||||||
|
return planNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanNumber(String planNumber) {
|
||||||
|
this.planNumber = planNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlanItemCode() {
|
||||||
|
return planItemCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanItemCode(String planItemCode) {
|
||||||
|
this.planItemCode = planItemCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlanItemName() {
|
||||||
|
return planItemName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanItemName(String planItemName) {
|
||||||
|
this.planItemName = planItemName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend1() {
|
||||||
|
return erpExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend1(String erpExtend1) {
|
||||||
|
this.erpExtend1 = erpExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend2() {
|
||||||
|
return erpExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend2(String erpExtend2) {
|
||||||
|
this.erpExtend2 = erpExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend3() {
|
||||||
|
return erpExtend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend3(String erpExtend3) {
|
||||||
|
this.erpExtend3 = erpExtend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 把json字符串转换成指定范型的list
|
||||||
|
* @param json
|
||||||
|
* @param list
|
||||||
|
* @param clazz
|
||||||
|
* @param <T>
|
||||||
|
*/
|
||||||
|
private static <T> void adaptAndAddToList(String json, List<Object> list, Class<T> clazz) {
|
||||||
|
JSONObject jsonObject = JSON.parseObject(json);
|
||||||
|
|
||||||
|
if (jsonObject.containsKey("list")) {
|
||||||
|
JSONArray listArray = jsonObject.getJSONArray("list");
|
||||||
|
for (Object item : listArray) {
|
||||||
|
JSONObject itemObject = (JSONObject) item;
|
||||||
|
// 适配不同类型的节点
|
||||||
|
list.add(JSON.toJavaObject(itemObject, clazz));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,44 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.res;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description cbs响应DTO
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/1/2 09:25
|
||||||
|
**/
|
||||||
|
public class CbsResponseDTO {
|
||||||
|
//private List<CbsResDataDTO> data;//数据
|
||||||
|
private List<JSONObject> data;//数据
|
||||||
|
private String code;//0表示成功
|
||||||
|
private String msg;//消息
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public String getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCode(String code) {
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMsg() {
|
||||||
|
return msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMsg(String msg) {
|
||||||
|
this.msg = msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<JSONObject> getData() {
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setData(List<JSONObject> data) {
|
||||||
|
this.data = data;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,305 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.res;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 电子回单查询返回参数
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/1/4 17:13
|
||||||
|
**/
|
||||||
|
public class ElecResponseDTO {
|
||||||
|
|
||||||
|
// 账号
|
||||||
|
private String accountNo;
|
||||||
|
|
||||||
|
// 账号名称
|
||||||
|
private String accountName;
|
||||||
|
|
||||||
|
// 银行类型
|
||||||
|
private String bankType;
|
||||||
|
|
||||||
|
// 银行类型名称
|
||||||
|
private String bankTypeName;
|
||||||
|
|
||||||
|
// 开户行
|
||||||
|
private String openingBank;
|
||||||
|
|
||||||
|
// 交易日期
|
||||||
|
private String transactionDate;
|
||||||
|
|
||||||
|
// 电子回单文件状态
|
||||||
|
private String electronicBillStatus;
|
||||||
|
|
||||||
|
// 电子回单文件名称
|
||||||
|
private String billFileName;
|
||||||
|
|
||||||
|
// 回单文件下载地址
|
||||||
|
private String bucketFileUrl;
|
||||||
|
|
||||||
|
// 回单文件名称
|
||||||
|
private String bucketFileName;
|
||||||
|
|
||||||
|
// 回单类型
|
||||||
|
private String electronicBillType;
|
||||||
|
|
||||||
|
// 银行流水号
|
||||||
|
private String bankSerialNumber;
|
||||||
|
|
||||||
|
// 回单编号
|
||||||
|
private String printInstanceNumber;
|
||||||
|
|
||||||
|
// 币种
|
||||||
|
private String currency;
|
||||||
|
|
||||||
|
// 币种名称
|
||||||
|
private String currencyName;
|
||||||
|
|
||||||
|
// 借贷类型
|
||||||
|
private String loanType;
|
||||||
|
|
||||||
|
// 交易金额
|
||||||
|
private String transactionAmount;
|
||||||
|
|
||||||
|
// 对方账号
|
||||||
|
private String oppositeAccount;
|
||||||
|
|
||||||
|
// 对方账户名
|
||||||
|
private String oppositeAccountName;
|
||||||
|
|
||||||
|
// 对方开户地
|
||||||
|
private String oppositeOpeningPlace;
|
||||||
|
|
||||||
|
// 对方开户行
|
||||||
|
private String oppositeOpeningBank;
|
||||||
|
|
||||||
|
// 摘要
|
||||||
|
private String digest;
|
||||||
|
|
||||||
|
// 用途
|
||||||
|
private String purpose;
|
||||||
|
|
||||||
|
// 账户性质
|
||||||
|
private String accountNatureCode;
|
||||||
|
|
||||||
|
// 对账码
|
||||||
|
private String checkCode;
|
||||||
|
|
||||||
|
// 单位编码
|
||||||
|
private String unitCode;
|
||||||
|
|
||||||
|
// ERP业务参考号
|
||||||
|
private String settleBusinessReferenceCode;
|
||||||
|
public String getAccountNo() {
|
||||||
|
return accountNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountNo(String accountNo) {
|
||||||
|
this.accountNo = accountNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAccountName() {
|
||||||
|
return accountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountName(String accountName) {
|
||||||
|
this.accountName = accountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankType() {
|
||||||
|
return bankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankType(String bankType) {
|
||||||
|
this.bankType = bankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankTypeName() {
|
||||||
|
return bankTypeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankTypeName(String bankTypeName) {
|
||||||
|
this.bankTypeName = bankTypeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOpeningBank() {
|
||||||
|
return openingBank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpeningBank(String openingBank) {
|
||||||
|
this.openingBank = openingBank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTransactionDate() {
|
||||||
|
return transactionDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTransactionDate(String transactionDate) {
|
||||||
|
this.transactionDate = transactionDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getElectronicBillStatus() {
|
||||||
|
return electronicBillStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setElectronicBillStatus(String electronicBillStatus) {
|
||||||
|
this.electronicBillStatus = electronicBillStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBillFileName() {
|
||||||
|
return billFileName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBillFileName(String billFileName) {
|
||||||
|
this.billFileName = billFileName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBucketFileUrl() {
|
||||||
|
return bucketFileUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBucketFileUrl(String bucketFileUrl) {
|
||||||
|
this.bucketFileUrl = bucketFileUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBucketFileName() {
|
||||||
|
return bucketFileName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBucketFileName(String bucketFileName) {
|
||||||
|
this.bucketFileName = bucketFileName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getElectronicBillType() {
|
||||||
|
return electronicBillType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setElectronicBillType(String electronicBillType) {
|
||||||
|
this.electronicBillType = electronicBillType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankSerialNumber() {
|
||||||
|
return bankSerialNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankSerialNumber(String bankSerialNumber) {
|
||||||
|
this.bankSerialNumber = bankSerialNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPrintInstanceNumber() {
|
||||||
|
return printInstanceNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrintInstanceNumber(String printInstanceNumber) {
|
||||||
|
this.printInstanceNumber = printInstanceNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrency() {
|
||||||
|
return currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrency(String currency) {
|
||||||
|
this.currency = currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrencyName() {
|
||||||
|
return currencyName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrencyName(String currencyName) {
|
||||||
|
this.currencyName = currencyName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLoanType() {
|
||||||
|
return loanType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLoanType(String loanType) {
|
||||||
|
this.loanType = loanType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTransactionAmount() {
|
||||||
|
return transactionAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTransactionAmount(String transactionAmount) {
|
||||||
|
this.transactionAmount = transactionAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOppositeAccount() {
|
||||||
|
return oppositeAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOppositeAccount(String oppositeAccount) {
|
||||||
|
this.oppositeAccount = oppositeAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOppositeAccountName() {
|
||||||
|
return oppositeAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOppositeAccountName(String oppositeAccountName) {
|
||||||
|
this.oppositeAccountName = oppositeAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOppositeOpeningPlace() {
|
||||||
|
return oppositeOpeningPlace;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOppositeOpeningPlace(String oppositeOpeningPlace) {
|
||||||
|
this.oppositeOpeningPlace = oppositeOpeningPlace;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOppositeOpeningBank() {
|
||||||
|
return oppositeOpeningBank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOppositeOpeningBank(String oppositeOpeningBank) {
|
||||||
|
this.oppositeOpeningBank = oppositeOpeningBank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDigest() {
|
||||||
|
return digest;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDigest(String digest) {
|
||||||
|
this.digest = digest;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPurpose() {
|
||||||
|
return purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPurpose(String purpose) {
|
||||||
|
this.purpose = purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAccountNatureCode() {
|
||||||
|
return accountNatureCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountNatureCode(String accountNatureCode) {
|
||||||
|
this.accountNatureCode = accountNatureCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheckCode() {
|
||||||
|
return checkCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheckCode(String checkCode) {
|
||||||
|
this.checkCode = checkCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUnitCode() {
|
||||||
|
return unitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUnitCode(String unitCode) {
|
||||||
|
this.unitCode = unitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSettleBusinessReferenceCode() {
|
||||||
|
return settleBusinessReferenceCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSettleBusinessReferenceCode(String settleBusinessReferenceCode) {
|
||||||
|
this.settleBusinessReferenceCode = settleBusinessReferenceCode;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,73 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.res;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 经办支付接口返回参数中的data节点
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/1/3 14:35
|
||||||
|
**/
|
||||||
|
public class PayResponseDTO {
|
||||||
|
|
||||||
|
private String busNum;//申请单编号
|
||||||
|
private String errorCode;//错误编码
|
||||||
|
private String errorMsg;//错误信息
|
||||||
|
private String freezeFlowNum;//内部户冻结流水号
|
||||||
|
private String recordNum;//批量经办序号
|
||||||
|
private String referenceNum;//业务参考号
|
||||||
|
private Boolean successed;//是否成功
|
||||||
|
|
||||||
|
public String getBusNum() {
|
||||||
|
return busNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusNum(String busNum) {
|
||||||
|
this.busNum = busNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErrorCode() {
|
||||||
|
return errorCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErrorCode(String errorCode) {
|
||||||
|
this.errorCode = errorCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErrorMsg() {
|
||||||
|
return errorMsg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErrorMsg(String errorMsg) {
|
||||||
|
this.errorMsg = errorMsg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFreezeFlowNum() {
|
||||||
|
return freezeFlowNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFreezeFlowNum(String freezeFlowNum) {
|
||||||
|
this.freezeFlowNum = freezeFlowNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRecordNum() {
|
||||||
|
return recordNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRecordNum(String recordNum) {
|
||||||
|
this.recordNum = recordNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReferenceNum() {
|
||||||
|
return referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReferenceNum(String referenceNum) {
|
||||||
|
this.referenceNum = referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getSuccessed() {
|
||||||
|
return successed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuccessed(Boolean successed) {
|
||||||
|
this.successed = successed;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,890 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.res;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 交易结果查询data节点响应的参数
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/1/3 15:45
|
||||||
|
**/
|
||||||
|
public class PayResultResDTO {
|
||||||
|
|
||||||
|
private String payDate;//支付日期
|
||||||
|
private String accountFlag;
|
||||||
|
|
||||||
|
private String agentDetails;
|
||||||
|
|
||||||
|
private String amount;
|
||||||
|
|
||||||
|
private String bankExtend1;
|
||||||
|
|
||||||
|
private String bankExtend10;
|
||||||
|
|
||||||
|
private String bankExtend11;
|
||||||
|
|
||||||
|
private String bankExtend2;
|
||||||
|
|
||||||
|
private String bankExtend3;
|
||||||
|
|
||||||
|
private String bankExtend4;
|
||||||
|
|
||||||
|
private String bankExtend5;
|
||||||
|
|
||||||
|
private String bankExtend6;
|
||||||
|
|
||||||
|
private String bankExtend7;
|
||||||
|
|
||||||
|
private String bankExtend8;
|
||||||
|
|
||||||
|
private String bankExtend9;
|
||||||
|
|
||||||
|
private String bankInterfaceType;
|
||||||
|
|
||||||
|
private String bankNum;
|
||||||
|
|
||||||
|
private String bankVersion;
|
||||||
|
|
||||||
|
private String batchNum;
|
||||||
|
|
||||||
|
private String busNum;
|
||||||
|
|
||||||
|
private String busType;
|
||||||
|
|
||||||
|
private String checkCodeList;
|
||||||
|
|
||||||
|
private String cityFlag;
|
||||||
|
|
||||||
|
private String cnapsCode;
|
||||||
|
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
private String createByName;
|
||||||
|
|
||||||
|
private String createTime;
|
||||||
|
|
||||||
|
private String currency;
|
||||||
|
|
||||||
|
private String dealPeopleList;
|
||||||
|
|
||||||
|
private String detailNum;
|
||||||
|
|
||||||
|
private String erpExtend1;
|
||||||
|
|
||||||
|
private String erpExtend2;
|
||||||
|
|
||||||
|
private String erpExtend3;
|
||||||
|
|
||||||
|
private String errorMsg;
|
||||||
|
|
||||||
|
private String expectTime;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private String extend1;
|
||||||
|
|
||||||
|
private String extend2;
|
||||||
|
|
||||||
|
private String extend3;
|
||||||
|
|
||||||
|
private String extend4;
|
||||||
|
|
||||||
|
private String extend5;
|
||||||
|
|
||||||
|
private String freezeFlowNum;
|
||||||
|
|
||||||
|
private String freezeStatus;
|
||||||
|
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
private String innerAccount;
|
||||||
|
|
||||||
|
private String innerAccountName;
|
||||||
|
|
||||||
|
private String inputType;
|
||||||
|
|
||||||
|
private String isDeleted;
|
||||||
|
|
||||||
|
private String isSaveRev;
|
||||||
|
|
||||||
|
private String lastPrintTime;
|
||||||
|
|
||||||
|
private String lastPrintUser;
|
||||||
|
|
||||||
|
private String operaterOrgCode;
|
||||||
|
|
||||||
|
private String operaterOrgCodeList;
|
||||||
|
|
||||||
|
private String operaterOrgName;
|
||||||
|
|
||||||
|
private String payAccount;
|
||||||
|
|
||||||
|
private String payAccountName;
|
||||||
|
|
||||||
|
private String payAccountSeq;
|
||||||
|
|
||||||
|
private String payBankName;
|
||||||
|
|
||||||
|
private String payBankType;
|
||||||
|
|
||||||
|
private String payChannel;
|
||||||
|
|
||||||
|
private String payOrgCode;
|
||||||
|
|
||||||
|
private String payOrgName;
|
||||||
|
|
||||||
|
private String payStatus;// 支付状态
|
||||||
|
|
||||||
|
private String paymentApplyUnionDTO;
|
||||||
|
|
||||||
|
private String personalFlag;
|
||||||
|
|
||||||
|
private String printTimes;
|
||||||
|
|
||||||
|
private String procInstId;
|
||||||
|
|
||||||
|
private String procStatus;
|
||||||
|
|
||||||
|
private String projectCode;
|
||||||
|
|
||||||
|
private String purpose;
|
||||||
|
|
||||||
|
private String realName;
|
||||||
|
|
||||||
|
private String realRevAccount;
|
||||||
|
|
||||||
|
private String realTimeTag;
|
||||||
|
|
||||||
|
private String referenceNum;
|
||||||
|
|
||||||
|
private String revAccount;
|
||||||
|
|
||||||
|
private String revAccountName;
|
||||||
|
|
||||||
|
private String revAccountSeq;
|
||||||
|
|
||||||
|
private String revBankArea;
|
||||||
|
|
||||||
|
private String revBankName;
|
||||||
|
|
||||||
|
private String revBankType;
|
||||||
|
|
||||||
|
private String revCity;
|
||||||
|
|
||||||
|
private String revProvince;
|
||||||
|
|
||||||
|
private String status;//支付申请状态
|
||||||
|
|
||||||
|
private String summary;
|
||||||
|
|
||||||
|
private String unitCode;
|
||||||
|
|
||||||
|
private String unitName;
|
||||||
|
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
private String updateTime;
|
||||||
|
|
||||||
|
private String urgentTag;
|
||||||
|
|
||||||
|
public String getAccountFlag() {
|
||||||
|
return accountFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountFlag(String accountFlag) {
|
||||||
|
this.accountFlag = accountFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgentDetails() {
|
||||||
|
return agentDetails;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgentDetails(String agentDetails) {
|
||||||
|
this.agentDetails = agentDetails;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAmount() {
|
||||||
|
return amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(String amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankExtend1() {
|
||||||
|
return bankExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankExtend1(String bankExtend1) {
|
||||||
|
this.bankExtend1 = bankExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankExtend10() {
|
||||||
|
return bankExtend10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankExtend10(String bankExtend10) {
|
||||||
|
this.bankExtend10 = bankExtend10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankExtend11() {
|
||||||
|
return bankExtend11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankExtend11(String bankExtend11) {
|
||||||
|
this.bankExtend11 = bankExtend11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankExtend2() {
|
||||||
|
return bankExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankExtend2(String bankExtend2) {
|
||||||
|
this.bankExtend2 = bankExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankExtend3() {
|
||||||
|
return bankExtend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankExtend3(String bankExtend3) {
|
||||||
|
this.bankExtend3 = bankExtend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankExtend4() {
|
||||||
|
return bankExtend4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankExtend4(String bankExtend4) {
|
||||||
|
this.bankExtend4 = bankExtend4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankExtend5() {
|
||||||
|
return bankExtend5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankExtend5(String bankExtend5) {
|
||||||
|
this.bankExtend5 = bankExtend5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankExtend6() {
|
||||||
|
return bankExtend6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankExtend6(String bankExtend6) {
|
||||||
|
this.bankExtend6 = bankExtend6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankExtend7() {
|
||||||
|
return bankExtend7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankExtend7(String bankExtend7) {
|
||||||
|
this.bankExtend7 = bankExtend7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankExtend8() {
|
||||||
|
return bankExtend8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankExtend8(String bankExtend8) {
|
||||||
|
this.bankExtend8 = bankExtend8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankExtend9() {
|
||||||
|
return bankExtend9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankExtend9(String bankExtend9) {
|
||||||
|
this.bankExtend9 = bankExtend9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankInterfaceType() {
|
||||||
|
return bankInterfaceType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankInterfaceType(String bankInterfaceType) {
|
||||||
|
this.bankInterfaceType = bankInterfaceType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankNum() {
|
||||||
|
return bankNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankNum(String bankNum) {
|
||||||
|
this.bankNum = bankNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankVersion() {
|
||||||
|
return bankVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankVersion(String bankVersion) {
|
||||||
|
this.bankVersion = bankVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBatchNum() {
|
||||||
|
return batchNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBatchNum(String batchNum) {
|
||||||
|
this.batchNum = batchNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusNum() {
|
||||||
|
return busNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusNum(String busNum) {
|
||||||
|
this.busNum = busNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusType() {
|
||||||
|
return busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusType(String busType) {
|
||||||
|
this.busType = busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheckCodeList() {
|
||||||
|
return checkCodeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheckCodeList(String checkCodeList) {
|
||||||
|
this.checkCodeList = checkCodeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCityFlag() {
|
||||||
|
return cityFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCityFlag(String cityFlag) {
|
||||||
|
this.cityFlag = cityFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCnapsCode() {
|
||||||
|
return cnapsCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCnapsCode(String cnapsCode) {
|
||||||
|
this.cnapsCode = cnapsCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateBy() {
|
||||||
|
return createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateBy(String createBy) {
|
||||||
|
this.createBy = createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateByName() {
|
||||||
|
return createByName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateByName(String createByName) {
|
||||||
|
this.createByName = createByName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(String createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrency() {
|
||||||
|
return currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrency(String currency) {
|
||||||
|
this.currency = currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDealPeopleList() {
|
||||||
|
return dealPeopleList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDealPeopleList(String dealPeopleList) {
|
||||||
|
this.dealPeopleList = dealPeopleList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetailNum() {
|
||||||
|
return detailNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetailNum(String detailNum) {
|
||||||
|
this.detailNum = detailNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend1() {
|
||||||
|
return erpExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend1(String erpExtend1) {
|
||||||
|
this.erpExtend1 = erpExtend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend2() {
|
||||||
|
return erpExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend2(String erpExtend2) {
|
||||||
|
this.erpExtend2 = erpExtend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpExtend3() {
|
||||||
|
return erpExtend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpExtend3(String erpExtend3) {
|
||||||
|
this.erpExtend3 = erpExtend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErrorMsg() {
|
||||||
|
return errorMsg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErrorMsg(String errorMsg) {
|
||||||
|
this.errorMsg = errorMsg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExpectTime() {
|
||||||
|
return expectTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpectTime(String expectTime) {
|
||||||
|
this.expectTime = expectTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExtend1() {
|
||||||
|
return extend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExtend1(String extend1) {
|
||||||
|
this.extend1 = extend1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExtend2() {
|
||||||
|
return extend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExtend2(String extend2) {
|
||||||
|
this.extend2 = extend2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExtend3() {
|
||||||
|
return extend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExtend3(String extend3) {
|
||||||
|
this.extend3 = extend3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExtend4() {
|
||||||
|
return extend4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExtend4(String extend4) {
|
||||||
|
this.extend4 = extend4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExtend5() {
|
||||||
|
return extend5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExtend5(String extend5) {
|
||||||
|
this.extend5 = extend5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFreezeFlowNum() {
|
||||||
|
return freezeFlowNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFreezeFlowNum(String freezeFlowNum) {
|
||||||
|
this.freezeFlowNum = freezeFlowNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFreezeStatus() {
|
||||||
|
return freezeStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFreezeStatus(String freezeStatus) {
|
||||||
|
this.freezeStatus = freezeStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInnerAccount() {
|
||||||
|
return innerAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInnerAccount(String innerAccount) {
|
||||||
|
this.innerAccount = innerAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInnerAccountName() {
|
||||||
|
return innerAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInnerAccountName(String innerAccountName) {
|
||||||
|
this.innerAccountName = innerAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInputType() {
|
||||||
|
return inputType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInputType(String inputType) {
|
||||||
|
this.inputType = inputType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIsDeleted() {
|
||||||
|
return isDeleted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsDeleted(String isDeleted) {
|
||||||
|
this.isDeleted = isDeleted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIsSaveRev() {
|
||||||
|
return isSaveRev;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsSaveRev(String isSaveRev) {
|
||||||
|
this.isSaveRev = isSaveRev;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLastPrintTime() {
|
||||||
|
return lastPrintTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLastPrintTime(String lastPrintTime) {
|
||||||
|
this.lastPrintTime = lastPrintTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLastPrintUser() {
|
||||||
|
return lastPrintUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLastPrintUser(String lastPrintUser) {
|
||||||
|
this.lastPrintUser = lastPrintUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOperaterOrgCode() {
|
||||||
|
return operaterOrgCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperaterOrgCode(String operaterOrgCode) {
|
||||||
|
this.operaterOrgCode = operaterOrgCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOperaterOrgCodeList() {
|
||||||
|
return operaterOrgCodeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperaterOrgCodeList(String operaterOrgCodeList) {
|
||||||
|
this.operaterOrgCodeList = operaterOrgCodeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOperaterOrgName() {
|
||||||
|
return operaterOrgName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperaterOrgName(String operaterOrgName) {
|
||||||
|
this.operaterOrgName = operaterOrgName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayAccount() {
|
||||||
|
return payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayAccount(String payAccount) {
|
||||||
|
this.payAccount = payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayAccountName() {
|
||||||
|
return payAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayAccountName(String payAccountName) {
|
||||||
|
this.payAccountName = payAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayAccountSeq() {
|
||||||
|
return payAccountSeq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayAccountSeq(String payAccountSeq) {
|
||||||
|
this.payAccountSeq = payAccountSeq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayBankName() {
|
||||||
|
return payBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayBankName(String payBankName) {
|
||||||
|
this.payBankName = payBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayBankType() {
|
||||||
|
return payBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayBankType(String payBankType) {
|
||||||
|
this.payBankType = payBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayChannel() {
|
||||||
|
return payChannel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayChannel(String payChannel) {
|
||||||
|
this.payChannel = payChannel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayOrgCode() {
|
||||||
|
return payOrgCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayOrgCode(String payOrgCode) {
|
||||||
|
this.payOrgCode = payOrgCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayOrgName() {
|
||||||
|
return payOrgName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayOrgName(String payOrgName) {
|
||||||
|
this.payOrgName = payOrgName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayStatus() {
|
||||||
|
return payStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayStatus(String payStatus) {
|
||||||
|
this.payStatus = payStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPaymentApplyUnionDTO() {
|
||||||
|
return paymentApplyUnionDTO;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPaymentApplyUnionDTO(String paymentApplyUnionDTO) {
|
||||||
|
this.paymentApplyUnionDTO = paymentApplyUnionDTO;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPersonalFlag() {
|
||||||
|
return personalFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPersonalFlag(String personalFlag) {
|
||||||
|
this.personalFlag = personalFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPrintTimes() {
|
||||||
|
return printTimes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrintTimes(String printTimes) {
|
||||||
|
this.printTimes = printTimes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcInstId() {
|
||||||
|
return procInstId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcInstId(String procInstId) {
|
||||||
|
this.procInstId = procInstId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcStatus() {
|
||||||
|
return procStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcStatus(String procStatus) {
|
||||||
|
this.procStatus = procStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProjectCode() {
|
||||||
|
return projectCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProjectCode(String projectCode) {
|
||||||
|
this.projectCode = projectCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPurpose() {
|
||||||
|
return purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPurpose(String purpose) {
|
||||||
|
this.purpose = purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRealName() {
|
||||||
|
return realName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRealName(String realName) {
|
||||||
|
this.realName = realName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRealRevAccount() {
|
||||||
|
return realRevAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRealRevAccount(String realRevAccount) {
|
||||||
|
this.realRevAccount = realRevAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRealTimeTag() {
|
||||||
|
return realTimeTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRealTimeTag(String realTimeTag) {
|
||||||
|
this.realTimeTag = realTimeTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReferenceNum() {
|
||||||
|
return referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReferenceNum(String referenceNum) {
|
||||||
|
this.referenceNum = referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevAccount() {
|
||||||
|
return revAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevAccount(String revAccount) {
|
||||||
|
this.revAccount = revAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevAccountName() {
|
||||||
|
return revAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevAccountName(String revAccountName) {
|
||||||
|
this.revAccountName = revAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevAccountSeq() {
|
||||||
|
return revAccountSeq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevAccountSeq(String revAccountSeq) {
|
||||||
|
this.revAccountSeq = revAccountSeq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevBankArea() {
|
||||||
|
return revBankArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevBankArea(String revBankArea) {
|
||||||
|
this.revBankArea = revBankArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevBankName() {
|
||||||
|
return revBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevBankName(String revBankName) {
|
||||||
|
this.revBankName = revBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevBankType() {
|
||||||
|
return revBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevBankType(String revBankType) {
|
||||||
|
this.revBankType = revBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevCity() {
|
||||||
|
return revCity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevCity(String revCity) {
|
||||||
|
this.revCity = revCity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevProvince() {
|
||||||
|
return revProvince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevProvince(String revProvince) {
|
||||||
|
this.revProvince = revProvince;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(String status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSummary() {
|
||||||
|
return summary;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSummary(String summary) {
|
||||||
|
this.summary = summary;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUnitCode() {
|
||||||
|
return unitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUnitCode(String unitCode) {
|
||||||
|
this.unitCode = unitCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUnitName() {
|
||||||
|
return unitName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUnitName(String unitName) {
|
||||||
|
this.unitName = unitName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateBy() {
|
||||||
|
return updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateBy(String updateBy) {
|
||||||
|
this.updateBy = updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateTime() {
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(String updateTime) {
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUrgentTag() {
|
||||||
|
return urgentTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUrgentTag(String urgentTag) {
|
||||||
|
this.urgentTag = urgentTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayDate() {
|
||||||
|
return payDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayDate(String payDate) {
|
||||||
|
this.payDate = payDate;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,207 @@
|
||||||
|
package com.hzya.frame.cbs8.dto.res;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 境内账户交易明细
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2023/12/29 16:40
|
||||||
|
**/
|
||||||
|
public class TransactionDetailDTO{
|
||||||
|
private String accountNo;//银行账号
|
||||||
|
private String accountName;//银行名称
|
||||||
|
private String bankType;//银行类型
|
||||||
|
private String openBank;//开户行名称
|
||||||
|
private String bankTransactionDate;//交易日期
|
||||||
|
private String bankSerialNumber;//银行流水号
|
||||||
|
private String transactionSerialNumber;//交易流水号
|
||||||
|
private String currency;//币种
|
||||||
|
private String loanType;//借贷类型
|
||||||
|
private String incurredAmount;//发生额
|
||||||
|
private String accountBalance;//交易后余额
|
||||||
|
private String purpose;//用途
|
||||||
|
private String digest;//摘要
|
||||||
|
private String oppositeAccount;//对方账号
|
||||||
|
private String oppositeName;//对方户名
|
||||||
|
private String oppositeOpeningBank;//对方开户行
|
||||||
|
private String associatedCustomerNumber;//关联客户号
|
||||||
|
private String merchantNumber;//客商编号
|
||||||
|
private String merchantName;//客商名称
|
||||||
|
private String transactionCode;//交易代码
|
||||||
|
private String remark;//备注
|
||||||
|
private String erpSerialNumber;//erp业务参考号
|
||||||
|
|
||||||
|
public String getAccountNo() {
|
||||||
|
return accountNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountNo(String accountNo) {
|
||||||
|
this.accountNo = accountNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAccountName() {
|
||||||
|
return accountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountName(String accountName) {
|
||||||
|
this.accountName = accountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankType() {
|
||||||
|
return bankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankType(String bankType) {
|
||||||
|
this.bankType = bankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOpenBank() {
|
||||||
|
return openBank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpenBank(String openBank) {
|
||||||
|
this.openBank = openBank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankTransactionDate() {
|
||||||
|
return bankTransactionDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankTransactionDate(String bankTransactionDate) {
|
||||||
|
this.bankTransactionDate = bankTransactionDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankSerialNumber() {
|
||||||
|
return bankSerialNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankSerialNumber(String bankSerialNumber) {
|
||||||
|
this.bankSerialNumber = bankSerialNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTransactionSerialNumber() {
|
||||||
|
return transactionSerialNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTransactionSerialNumber(String transactionSerialNumber) {
|
||||||
|
this.transactionSerialNumber = transactionSerialNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrency() {
|
||||||
|
return currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrency(String currency) {
|
||||||
|
this.currency = currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLoanType() {
|
||||||
|
return loanType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLoanType(String loanType) {
|
||||||
|
this.loanType = loanType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIncurredAmount() {
|
||||||
|
return incurredAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIncurredAmount(String incurredAmount) {
|
||||||
|
this.incurredAmount = incurredAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAccountBalance() {
|
||||||
|
return accountBalance;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccountBalance(String accountBalance) {
|
||||||
|
this.accountBalance = accountBalance;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPurpose() {
|
||||||
|
return purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPurpose(String purpose) {
|
||||||
|
this.purpose = purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDigest() {
|
||||||
|
return digest;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDigest(String digest) {
|
||||||
|
this.digest = digest;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOppositeAccount() {
|
||||||
|
return oppositeAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOppositeAccount(String oppositeAccount) {
|
||||||
|
this.oppositeAccount = oppositeAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOppositeName() {
|
||||||
|
return oppositeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOppositeName(String oppositeName) {
|
||||||
|
this.oppositeName = oppositeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOppositeOpeningBank() {
|
||||||
|
return oppositeOpeningBank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOppositeOpeningBank(String oppositeOpeningBank) {
|
||||||
|
this.oppositeOpeningBank = oppositeOpeningBank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAssociatedCustomerNumber() {
|
||||||
|
return associatedCustomerNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAssociatedCustomerNumber(String associatedCustomerNumber) {
|
||||||
|
this.associatedCustomerNumber = associatedCustomerNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMerchantNumber() {
|
||||||
|
return merchantNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMerchantNumber(String merchantNumber) {
|
||||||
|
this.merchantNumber = merchantNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMerchantName() {
|
||||||
|
return merchantName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMerchantName(String merchantName) {
|
||||||
|
this.merchantName = merchantName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTransactionCode() {
|
||||||
|
return transactionCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTransactionCode(String transactionCode) {
|
||||||
|
this.transactionCode = transactionCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark() {
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark) {
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErpSerialNumber() {
|
||||||
|
return erpSerialNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErpSerialNumber(String erpSerialNumber) {
|
||||||
|
this.erpSerialNumber = erpSerialNumber;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,60 @@
|
||||||
|
package com.hzya.frame.cbs8.service;
|
||||||
|
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/7 14:20
|
||||||
|
**/
|
||||||
|
public interface ICbs8ExtService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 支付经办
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
SysExtensionApiEntity payApply(SysExtensionApiEntity entity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代发代扣 支付申请
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
SysExtensionApiEntity agentPayApply(SysExtensionApiEntity entity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 交易结果查询
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
SysExtensionApiEntity payResult(SysExtensionApiEntity entity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 交易明细查询
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
SysExtensionApiEntity transactionDetailQuery(SysExtensionApiEntity entity);
|
||||||
|
/**
|
||||||
|
* 代发代扣
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
SysExtensionApiEntity payApplyAgent(SysExtensionApiEntity entity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代发代扣结果查询
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
SysExtensionApiEntity payApplyAgentResult(SysExtensionApiEntity entity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 电子回单查询
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
SysExtensionApiEntity elecQuery(SysExtensionApiEntity entity);
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,66 @@
|
||||||
|
package com.hzya.frame.cbs8.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.cbs8.dto.req.*;
|
||||||
|
import com.hzya.frame.cbs8.dto.res.*;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description cbs8接口
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/6 15:30
|
||||||
|
**/
|
||||||
|
public interface ICbs8Service {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 支付申请
|
||||||
|
* @param paymentEntity
|
||||||
|
*/
|
||||||
|
PayResponseDTO payApply(PaymentEntity paymentEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过业务参考号查询交易结果 3.2.6
|
||||||
|
* @param resultRequestDTO
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
List<PayResultResDTO> queryPayResult(PayResultRequestDTO resultRequestDTO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询电子回单
|
||||||
|
* @param elecRequestDTO
|
||||||
|
* startDate 开始日期 - 必填
|
||||||
|
* endDate 结束日期 -必填
|
||||||
|
* billStatus 回单状态 1-已取回 0-未取回 ,只有已取回的才能下载
|
||||||
|
* settleBusinessReferenceCode 业务参考号
|
||||||
|
* @return List<ElecResponseDTO>
|
||||||
|
* bucketFileUrl 回单下载地址
|
||||||
|
* billFileName 回单文件名称
|
||||||
|
* settleBusinessReferenceCode 业务参考号
|
||||||
|
*/
|
||||||
|
List<ElecResponseDTO> queryElecBill(ElecRequestDTO elecRequestDTO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询交易明细
|
||||||
|
* @param transactionDetailReqDTO
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
CbsResDataDTO queryTransactionDetail(TransactionDetailReqDTO transactionDetailReqDTO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代发代扣 支付申请
|
||||||
|
* @param paymentApplySubmitReqDTO
|
||||||
|
* @param paymentApplyAgentList
|
||||||
|
*/
|
||||||
|
PayResponseDTO agentPayApply(PaymentApplySubmitReqDTO paymentApplySubmitReqDTO, List<PaymentApplyAgentDTO> paymentApplyAgentList);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代发代扣 详情查询
|
||||||
|
* @param agentPayResultRequestDTO
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
AgentPayResultResDTO agentPayResult(AgentPayResultRequestDTO agentPayResultRequestDTO);
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,215 @@
|
||||||
|
package com.hzya.frame.cbs8.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.convert.Convert;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import cn.hutool.http.HttpRequest;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.cbs8.dto.req.*;
|
||||||
|
import com.hzya.frame.cbs8.service.ICbs8ExtService;
|
||||||
|
import com.hzya.frame.cbs8.util.CBSUtil;
|
||||||
|
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.web.exception.BaseSystemException;
|
||||||
|
import org.apache.http.protocol.HTTP;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Base64;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/7 14:20
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Service(value = "cbs8Ext")
|
||||||
|
public class Cbs8ExtServiceImpl implements ICbs8ExtService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 支付经办
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SysExtensionApiEntity payApply(SysExtensionApiEntity entity) {
|
||||||
|
String bodys = entity.getBodys();
|
||||||
|
if (StrUtil.isNotEmpty(bodys)){
|
||||||
|
PaymentEntity paymentEntity = JSONObject.parseObject(bodys,PaymentEntity.class);
|
||||||
|
if (null != paymentEntity){
|
||||||
|
PayRequestDTO payRequestDTO = new PayRequestDTO();
|
||||||
|
String ferenceNum = Convert.toStr(paymentEntity.getReferenceNumNew(),paymentEntity.getReferenceNum());
|
||||||
|
payRequestDTO.setReferenceNum(ferenceNum);
|
||||||
|
payRequestDTO.setBusType(paymentEntity.getBusType());
|
||||||
|
payRequestDTO.setAmount(paymentEntity.getAmount());
|
||||||
|
payRequestDTO.setCurrency(paymentEntity.getCurrency());
|
||||||
|
payRequestDTO.setPayAccount(StringUtil.replaceBlank(paymentEntity.getPayAccount()));
|
||||||
|
payRequestDTO.setRevAccount(StringUtil.replaceBlank(paymentEntity.getRevAccount()));
|
||||||
|
payRequestDTO.setRevAccountName(StringUtil.replaceBlank(paymentEntity.getRevAccountName()));
|
||||||
|
payRequestDTO.setRevBankType(StringUtil.replaceBlank((paymentEntity.getRevBankType())));
|
||||||
|
payRequestDTO.setRevBankName(StringUtil.replaceBlank(paymentEntity.getRevBankName()));
|
||||||
|
payRequestDTO.setCnapsCode(StringUtil.replaceBlank((paymentEntity.getCnapsCode())));
|
||||||
|
payRequestDTO.setPurpose(paymentEntity.getPurpose());
|
||||||
|
payRequestDTO.setErpExtend1(paymentEntity.getPayType());
|
||||||
|
//集中支付模式
|
||||||
|
if (CBSUtil.CENTRALIZED_PAYMENT_TYPE.equals(payRequestDTO.getBusType())){
|
||||||
|
payRequestDTO.setBusiStep("1");
|
||||||
|
payRequestDTO.setApplyUnitCode(paymentEntity.getPayCompanyCode());
|
||||||
|
payRequestDTO.setPayAccount(null);
|
||||||
|
}
|
||||||
|
String requestData = JSONObject.toJSONString(payRequestDTO);
|
||||||
|
//加密 签名
|
||||||
|
encrypAndsign(entity,requestData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代发代扣 支付申请
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SysExtensionApiEntity agentPayApply(SysExtensionApiEntity entity) {
|
||||||
|
String boyds = entity.getBodys();
|
||||||
|
if (StrUtil.isNotEmpty(boyds)){
|
||||||
|
AgentPayRequestDTO agentPayRequest = JSONObject.parseObject(boyds,AgentPayRequestDTO.class);
|
||||||
|
String requestData = JSONObject.toJSONString(agentPayRequest);
|
||||||
|
//加密签名
|
||||||
|
encrypAndsign(entity, requestData);
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 交易结果查询
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SysExtensionApiEntity payResult(SysExtensionApiEntity entity) {
|
||||||
|
String bodys = entity.getBodys();
|
||||||
|
if (StrUtil.isNotEmpty(bodys)){
|
||||||
|
PayResultRequestDTO payResultRequest = JSONObject.parseObject(bodys,PayResultRequestDTO.class);
|
||||||
|
if (null != payResultRequest && StrUtil.isNotEmpty(payResultRequest.getReferenceNum())){
|
||||||
|
String requestData = JSONObject.toJSONString(payResultRequest);
|
||||||
|
//加密 签名
|
||||||
|
encrypAndsign(entity,requestData);
|
||||||
|
}else {
|
||||||
|
throw new BaseSystemException("业务参考号不能为空!!!!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 交易明细查询
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SysExtensionApiEntity transactionDetailQuery(SysExtensionApiEntity entity) {
|
||||||
|
String bodys = entity.getBodys();
|
||||||
|
if (StrUtil.isEmpty(bodys)){
|
||||||
|
TransactionDetailReqDTO transactionDetailReqDTO = JSONObject.parseObject(bodys,TransactionDetailReqDTO.class);
|
||||||
|
String requestData = JSONObject.toJSONString(transactionDetailReqDTO);
|
||||||
|
////加密签名
|
||||||
|
encrypAndsign(entity, requestData);
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代发代扣
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SysExtensionApiEntity payApplyAgent(SysExtensionApiEntity entity) {
|
||||||
|
String bodys = entity.getBodys();
|
||||||
|
if (StrUtil.isNotEmpty(bodys)){
|
||||||
|
AgentPayRequestDTO agentPayRequest = JSONObject.parseObject(bodys,AgentPayRequestDTO.class);
|
||||||
|
String requestData = JSONObject.toJSONString(agentPayRequest);
|
||||||
|
////加密签名
|
||||||
|
encrypAndsign(entity, requestData);
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代发代扣结果查询
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SysExtensionApiEntity payApplyAgentResult(SysExtensionApiEntity entity) {
|
||||||
|
String bodys = entity.getBodys();
|
||||||
|
if (StrUtil.isNotEmpty(bodys)){
|
||||||
|
AgentPayResultRequestDTO agentPayResultRequestDTO = JSONObject.parseObject(bodys,AgentPayResultRequestDTO.class);
|
||||||
|
String requestData = JSONObject.toJSONString(agentPayResultRequestDTO);
|
||||||
|
encrypAndsign(entity,requestData);
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 电子回单查询
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SysExtensionApiEntity elecQuery(SysExtensionApiEntity entity) {
|
||||||
|
String bodys = entity.getBodys();
|
||||||
|
if (StrUtil.isNotEmpty(bodys)){
|
||||||
|
ElecRequestDTO elecRequestDTO = JSONObject.parseObject(bodys,ElecRequestDTO.class);
|
||||||
|
String requestData = JSONObject.toJSONString(elecRequestDTO);
|
||||||
|
//加密 签名
|
||||||
|
encrypAndsign(entity,requestData);
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 请求头
|
||||||
|
* @param sign
|
||||||
|
* @param timestamp
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
private Map<String,String> headersValueOf(String sign, long timestamp){
|
||||||
|
Map<String,String> header = new HashMap();
|
||||||
|
header.put(CBSUtil.SIGN_HEADER_NAME,sign);
|
||||||
|
header.put(CBSUtil.TIMESTAMP_HEADER,Long.toString(timestamp));
|
||||||
|
header.put(HTTP.CONTENT_TYPE,CBSUtil.TARGET_CONTENT_TYPE);
|
||||||
|
header.put(CBSUtil.AUTHORIZATION,CBSUtil.BEARER+ CbsAccessToken.getToken());
|
||||||
|
return header;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 加密 签名
|
||||||
|
* @param entity 接口转发参数对象
|
||||||
|
* @param requestData 请求参数json字符串
|
||||||
|
*/
|
||||||
|
private void encrypAndsign(SysExtensionApiEntity entity, String requestData) {
|
||||||
|
//签名
|
||||||
|
long timestamp = System.currentTimeMillis();
|
||||||
|
String sign = CBSUtil.sign(requestData,timestamp);
|
||||||
|
//加密
|
||||||
|
byte[] encryptedData = CBSUtil.encrypt(requestData);
|
||||||
|
Map<String,String> header = headersValueOf(sign,timestamp);
|
||||||
|
entity.setBodys(Base64.getEncoder().encodeToString(encryptedData));
|
||||||
|
entity.setHeaders(header);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,248 @@
|
||||||
|
package com.hzya.frame.cbs8.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import cn.hutool.core.map.MapBuilder;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import cn.hutool.http.HttpRequest;
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||||
|
import com.hzya.frame.cbs8.dto.req.*;
|
||||||
|
import com.hzya.frame.cbs8.dto.res.*;
|
||||||
|
import com.hzya.frame.cbs8.service.ICbs8Service;
|
||||||
|
import com.hzya.frame.cbs8.util.CBSUtil;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.service.IPaymentService;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Base64;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description cbs8接口
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/7 14:44
|
||||||
|
**/
|
||||||
|
@Service
|
||||||
|
public class Cbs8ServiceImpl implements ICbs8Service {
|
||||||
|
Logger logger = LoggerFactory.getLogger(getClass());
|
||||||
|
@Autowired
|
||||||
|
private IPaymentService paymentService;
|
||||||
|
@Override
|
||||||
|
public PayResponseDTO payApply(PaymentEntity paymentEntity) {
|
||||||
|
Map<String, String> headerMap = MapBuilder.<String, String>create(true)
|
||||||
|
.put("apiCode", "8000260001")
|
||||||
|
.put("publicKey","ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj")
|
||||||
|
.put("secretKey","7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")
|
||||||
|
.put("appId","800026")
|
||||||
|
.build();
|
||||||
|
String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterfaceToESB").addHeaders(headerMap).body(JSONObject.toJSONString(paymentEntity)).timeout(60000).execute().body();
|
||||||
|
//解密响应报文
|
||||||
|
String result = decryptResBody(body);
|
||||||
|
PayResponseDTO payResponseDTO = JSONObject.parseObject(result,PayResponseDTO.class);
|
||||||
|
return payResponseDTO;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过业务参考号查询交易结果 3.2.6
|
||||||
|
*
|
||||||
|
* @param resultRequestDTO
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<PayResultResDTO> queryPayResult(PayResultRequestDTO resultRequestDTO) {
|
||||||
|
Map<String, String> headerMap = MapBuilder.<String, String>create(true)
|
||||||
|
.put("apiCode", "8000260002")
|
||||||
|
.put("publicKey","ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj")
|
||||||
|
.put("secretKey","7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")
|
||||||
|
.put("appId","800026")
|
||||||
|
.build();
|
||||||
|
String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterfaceToESB").addHeaders(headerMap).body(JSONObject.toJSONString(resultRequestDTO)).timeout(60000).execute().body();
|
||||||
|
String result = decryptResBody(body);
|
||||||
|
CbsResponseDTO cbsResponseDTO = JSONObject.parseObject(result, CbsResponseDTO.class);
|
||||||
|
if (CollectionUtils.isNotEmpty(cbsResponseDTO.getData())){
|
||||||
|
List<JSONObject> dataList = cbsResponseDTO.getData();
|
||||||
|
List<PayResultResDTO> payResultList = CBSUtil.convertJsonArrayToList(dataList, PayResultResDTO.class);
|
||||||
|
return payResultList;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询电子回单
|
||||||
|
*
|
||||||
|
* @param elecRequestDTO startDate 开始日期 - 必填
|
||||||
|
* endDate 结束日期 -必填
|
||||||
|
* billStatus 回单状态 1-已取回 0-未取回 ,只有已取回的才能下载
|
||||||
|
* settleBusinessReferenceCode 业务参考号
|
||||||
|
* @return List<ElecResponseDTO>
|
||||||
|
* bucketFileUrl 回单下载地址
|
||||||
|
* billFileName 回单文件名称
|
||||||
|
* settleBusinessReferenceCode 业务参考号
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ElecResponseDTO> queryElecBill(ElecRequestDTO elecRequestDTO) {
|
||||||
|
if (null == elecRequestDTO){
|
||||||
|
elecRequestDTO = new ElecRequestDTO();
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(elecRequestDTO.getStartDate())){
|
||||||
|
elecRequestDTO.setStartDate(DateUtil.today());
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(elecRequestDTO.getEndDate())){
|
||||||
|
elecRequestDTO.setEndDate(DateUtil.today());
|
||||||
|
}
|
||||||
|
String params = JSON.toJSONString(elecRequestDTO, SerializerFeature.WRITE_MAP_NULL_FEATURES, SerializerFeature.QuoteFieldNames);
|
||||||
|
logger.info("电子回单查询请求参数为:{}", params);
|
||||||
|
Map<String, String> headerMap = MapBuilder.<String, String>create(true)
|
||||||
|
.put("apiCode", "8000260005")
|
||||||
|
.put("publicKey","ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj")
|
||||||
|
.put("secretKey","7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")
|
||||||
|
.put("appId","800026")
|
||||||
|
.build();
|
||||||
|
String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterfaceToESB").addHeaders(headerMap).body(params).timeout(60000).execute().body();
|
||||||
|
String result = decryptResBody(body);
|
||||||
|
if (StrUtil.isNotEmpty(result)){
|
||||||
|
CbsResponseDTO cbsResponseDTO = JSONObject.parseObject(result, CbsResponseDTO.class);
|
||||||
|
if (null != cbsResponseDTO){
|
||||||
|
if (CollectionUtils.isNotEmpty(cbsResponseDTO.getData())){
|
||||||
|
List<JSONObject> dataList = cbsResponseDTO.getData();
|
||||||
|
if (CollectionUtils.isNotEmpty(dataList)){
|
||||||
|
JSONObject jsonObject = dataList.get(0);
|
||||||
|
CbsResDataDTO dataDTO = JSON.toJavaObject(jsonObject, CbsResDataDTO.class);
|
||||||
|
List<ElecResponseDTO> elecResponseDTOList = CBSUtil.convertJsonArrayToList(dataDTO.getList(), ElecResponseDTO.class);
|
||||||
|
return elecResponseDTOList;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询交易明细
|
||||||
|
*
|
||||||
|
* @param transactionDetailReqDTO
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CbsResDataDTO queryTransactionDetail(TransactionDetailReqDTO transactionDetailReqDTO) {
|
||||||
|
//页码
|
||||||
|
int currentPage = transactionDetailReqDTO.getCurrentPage();
|
||||||
|
//每页条数
|
||||||
|
int pageSize = transactionDetailReqDTO.getPageSize();
|
||||||
|
if (currentPage == 0){
|
||||||
|
currentPage = CBSUtil.DEFAULT_CURRENT_PAGE;
|
||||||
|
}
|
||||||
|
if (pageSize == 0){
|
||||||
|
pageSize = CBSUtil.DEFAULT_PAGE_SIZE;
|
||||||
|
transactionDetailReqDTO.setPageSize(pageSize);
|
||||||
|
}
|
||||||
|
String params = JSON.toJSONString(transactionDetailReqDTO);
|
||||||
|
Map<String, String> headerMap = MapBuilder.<String, String>create(true)
|
||||||
|
.put("apiCode", "8000260006")
|
||||||
|
.put("publicKey","ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj")
|
||||||
|
.put("secretKey","7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")
|
||||||
|
.put("appId","800026")
|
||||||
|
.build();
|
||||||
|
String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterfaceToESB").addHeaders(headerMap).body(params).timeout(60000).execute().body();
|
||||||
|
String result = decryptResBody(body);
|
||||||
|
if (StrUtil.isNotEmpty(result)){
|
||||||
|
CbsResponseDTO cbsResponseDTO = JSONObject.parseObject(result, CbsResponseDTO.class);
|
||||||
|
if (null != cbsResponseDTO){
|
||||||
|
if (CollectionUtils.isNotEmpty(cbsResponseDTO.getData())){
|
||||||
|
List<JSONObject> list = cbsResponseDTO.getData();
|
||||||
|
if (CollectionUtils.isNotEmpty(list)){
|
||||||
|
JSONObject jsonObject = list.get(0);
|
||||||
|
CbsResDataDTO dataDTO = JSON.toJavaObject(jsonObject, CbsResDataDTO.class);
|
||||||
|
return dataDTO;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代发代扣 支付申请
|
||||||
|
* @param paymentApplySubmitReqDTO
|
||||||
|
* @param paymentApplyAgentList
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public PayResponseDTO agentPayApply(PaymentApplySubmitReqDTO paymentApplySubmitReqDTO, List<PaymentApplyAgentDTO> paymentApplyAgentList) {
|
||||||
|
AgentPayRequestDTO param = new AgentPayRequestDTO();
|
||||||
|
param.setPaymentApplySubmitReqDTO(paymentApplySubmitReqDTO);
|
||||||
|
param.setPaymentApplyAgentDTO(paymentApplyAgentList);
|
||||||
|
String params = JSON.toJSONString(param);
|
||||||
|
Map<String, String> headerMap = MapBuilder.<String, String>create(true)
|
||||||
|
.put("apiCode", "8000260003")
|
||||||
|
.put("publicKey","ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj")
|
||||||
|
.put("secretKey","7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")
|
||||||
|
.put("appId","800026")
|
||||||
|
.build();
|
||||||
|
String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterfaceToESB").addHeaders(headerMap).body(params).timeout(60000).execute().body();
|
||||||
|
String result = decryptResBody(body);
|
||||||
|
if (StrUtil.isNotEmpty(result)){
|
||||||
|
CbsResponseDTO cbsResponseDTO = JSONObject.parseObject(result, CbsResponseDTO.class);
|
||||||
|
List<JSONObject> dataList = cbsResponseDTO.getData();
|
||||||
|
if (CollectionUtils.isNotEmpty(dataList)){
|
||||||
|
JSONObject o = dataList.get(0);
|
||||||
|
PayResponseDTO payResponseDTO = JSON.toJavaObject(o, PayResponseDTO.class);
|
||||||
|
return payResponseDTO;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代发代扣 详情查询
|
||||||
|
*
|
||||||
|
* @param agentPayResultRequestDTO
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AgentPayResultResDTO agentPayResult(AgentPayResultRequestDTO agentPayResultRequestDTO) {
|
||||||
|
Map<String, String> headerMap = MapBuilder.<String, String>create(true)
|
||||||
|
.put("apiCode", "8000260004")
|
||||||
|
.put("publicKey","ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj")
|
||||||
|
.put("secretKey","7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")
|
||||||
|
.put("appId","800026")
|
||||||
|
.build();
|
||||||
|
String params = JSON.toJSONString(agentPayResultRequestDTO);
|
||||||
|
String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterfaceToESB").addHeaders(headerMap).body(params).timeout(60000).execute().body();
|
||||||
|
//解密报文
|
||||||
|
String result = decryptResBody(body);
|
||||||
|
if (StrUtil.isNotEmpty(result)){
|
||||||
|
CbsResponseDTO cbsResponseDTO = JSONObject.parseObject(result, CbsResponseDTO.class);
|
||||||
|
List<JSONObject> dataList = cbsResponseDTO.getData();
|
||||||
|
if (CollectionUtils.isNotEmpty(dataList)){
|
||||||
|
JSONObject o = dataList.get(0);
|
||||||
|
AgentPayResultResDTO agentPayResultResDTO = JSON.toJavaObject(o, AgentPayResultResDTO.class);
|
||||||
|
return agentPayResultResDTO;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 解密响应报文
|
||||||
|
* @param body
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
private String decryptResBody(String body){
|
||||||
|
if (StrUtil.isNotEmpty(body)){
|
||||||
|
JsonResultEntity resultEntity = JSONObject.parseObject(body,JsonResultEntity.class);
|
||||||
|
String bodyBase64 = String.valueOf(resultEntity.getAttribute());
|
||||||
|
byte[] bodyBytes = Base64.getDecoder().decode(bodyBase64);
|
||||||
|
//解密报文
|
||||||
|
String result = CBSUtil.decrypt(bodyBytes);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,187 @@
|
||||||
|
package com.hzya.frame.cbs8.util;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.NumberUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.alibaba.fastjson.TypeReference;
|
||||||
|
import org.apache.commons.codec.binary.Base64;
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/7 15:38
|
||||||
|
**/
|
||||||
|
@Component
|
||||||
|
public class CBSUtil {
|
||||||
|
/**
|
||||||
|
* 集中支付模式
|
||||||
|
*/
|
||||||
|
public static final String CENTRALIZED_PAYMENT_TYPE = "401";
|
||||||
|
/**
|
||||||
|
* 分页查询 最大条数
|
||||||
|
*/
|
||||||
|
public static final int MAX_PAGE_SIZE = 1000;
|
||||||
|
/**
|
||||||
|
* 默认分页查询条数
|
||||||
|
*/
|
||||||
|
public static final int DEFAULT_PAGE_SIZE = 100;
|
||||||
|
/**
|
||||||
|
* 默认页码
|
||||||
|
*/
|
||||||
|
public static final int DEFAULT_CURRENT_PAGE = 1;
|
||||||
|
static Logger logger = LogManager.getLogger(CBSUtil.class);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 请求参数格式
|
||||||
|
*/
|
||||||
|
public static String TARGET_CONTENT_TYPE = "application/json";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 签名请求头参数名
|
||||||
|
*/
|
||||||
|
public static String SIGN_HEADER_NAME = "X-MBCLOUD-API-SIGN";
|
||||||
|
/**
|
||||||
|
* 时间戳请求头参数名
|
||||||
|
*/
|
||||||
|
public static String TIMESTAMP_HEADER = "X-MBCLOUD-TIMESTAMP";
|
||||||
|
|
||||||
|
public static String ENCRYPTION_ENABLED_HEADER_NAME = "X-MBCLOUD-ENCRYPTION-ENABLED";
|
||||||
|
|
||||||
|
public static String X_MBCLOUD_COMPRESS = "X-Mbcloud-Compress";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 请求头token参数名
|
||||||
|
*/
|
||||||
|
public static String AUTHORIZATION = "Authorization";
|
||||||
|
|
||||||
|
/**
|
||||||
|
*token前缀
|
||||||
|
*/
|
||||||
|
public static String BEARER = "Bearer ";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 财资管理云公钥(平台公钥)
|
||||||
|
*/
|
||||||
|
public static String bodyEncryptionKey;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企业私钥(加密)
|
||||||
|
*/
|
||||||
|
public static String signEncryptionPrivateKey;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企业私钥(解密)
|
||||||
|
*/
|
||||||
|
public static String bodyDecryptionKey;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 财资管理云公钥(平台公钥)
|
||||||
|
*/
|
||||||
|
@Value("${cbs8.cbs_public_key}")
|
||||||
|
public void setBodyEncryptionKey(String bodyEncryptionKey) {
|
||||||
|
CBSUtil.bodyEncryptionKey = bodyEncryptionKey;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 企业私钥(解密)
|
||||||
|
*/
|
||||||
|
@Value("${cbs8.ya_private_key}")
|
||||||
|
public void setSignEncryptionPrivateKey(String signEncryptionPrivateKey) {
|
||||||
|
CBSUtil.signEncryptionPrivateKey = signEncryptionPrivateKey;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 企业私钥(解密)
|
||||||
|
*/
|
||||||
|
@Value("${cbs8.ya_private_key}")
|
||||||
|
public void setBodyDecryptionKey(String bodyDecryptionKey) {
|
||||||
|
CBSUtil.bodyDecryptionKey = bodyDecryptionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
//将json数组转为list
|
||||||
|
public static <T> List<T> convertJsonArrayToList(List<JSONObject> list, Class<T> clazz) {
|
||||||
|
String jsonArray = JSON.toJSONString(list);
|
||||||
|
List<T> result = JSON.parseObject(jsonArray, new TypeReference<List<T>>(clazz) {});
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 将时间戳转换成日期字符串
|
||||||
|
* @param timestamp
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static String convertTimestampToString(String timestamp) {
|
||||||
|
if (StrUtil.isNotEmpty(timestamp) && NumberUtil.isNumber(timestamp)){
|
||||||
|
// 创建SimpleDateFormat对象,指定日期时间格式
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||||
|
// 将时间戳转换为Date对象
|
||||||
|
Date date = new Date(Long.valueOf(timestamp));
|
||||||
|
|
||||||
|
// 使用SimpleDateFormat格式化Date对象,得到字符串表示
|
||||||
|
return sdf.format(date);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 签名
|
||||||
|
* @param requestData
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static String sign(String requestData){
|
||||||
|
long timestamp = System.currentTimeMillis();
|
||||||
|
return sign(requestData,timestamp);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 签名
|
||||||
|
* @param requestData
|
||||||
|
* @param timestamp
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static String sign(String requestData,long timestamp){
|
||||||
|
|
||||||
|
// 请求数据拼接: 报文体+时间戳
|
||||||
|
byte[] requestDataBytes = requestData.getBytes(StandardCharsets.UTF_8);
|
||||||
|
byte[] timestampBytes = ("×tamp=" + timestamp).getBytes(StandardCharsets.UTF_8);
|
||||||
|
byte[] newBytes = new byte[requestDataBytes.length + timestampBytes.length];
|
||||||
|
System.arraycopy(requestDataBytes, 0, newBytes, 0, requestDataBytes.length);
|
||||||
|
System.arraycopy(timestampBytes, 0, newBytes, requestDataBytes.length, timestampBytes.length);
|
||||||
|
|
||||||
|
// 生成签名
|
||||||
|
byte[] signature = SM2Util.sign(signEncryptionPrivateKey, newBytes);
|
||||||
|
String sign = Base64.encodeBase64String(SM2Util.encodeDERSignature(signature));
|
||||||
|
logger.info("签名:{}", sign);
|
||||||
|
return sign;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 加密
|
||||||
|
* @param requestData
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static byte[] encrypt(String requestData){
|
||||||
|
byte[] encrypt = SM2Util.encrypt(bodyEncryptionKey, requestData.getBytes(StandardCharsets.UTF_8));
|
||||||
|
return encrypt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String decrypt(byte[] cipherData){
|
||||||
|
try {
|
||||||
|
byte[] decrypt = SM2Util.decrypt(bodyDecryptionKey, cipherData);
|
||||||
|
String text = new String(decrypt);
|
||||||
|
return text;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.error("解密失败",e);
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,140 @@
|
||||||
|
package com.hzya.frame.cbs8.util;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import cn.hutool.http.HttpRequest;
|
||||||
|
import cn.hutool.json.JSONUtil;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.web.action.ApplicationContextUtil;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.data.relational.core.sql.In;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.PostConstruct;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description cbs token
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/7 15:56
|
||||||
|
**/
|
||||||
|
@Component
|
||||||
|
public class CbsAccessToken {
|
||||||
|
|
||||||
|
private static final Logger logger = LoggerFactory.getLogger(CbsAccessToken.class);
|
||||||
|
@Value("${cbs8.appId}")
|
||||||
|
private String app_id;
|
||||||
|
@Value("${cbs8.appSecret}")
|
||||||
|
private String app_secret;
|
||||||
|
@Value("${cbs8.url}")
|
||||||
|
private String app_url;
|
||||||
|
|
||||||
|
private static String appId;
|
||||||
|
private static String appSecret;
|
||||||
|
private static String url;
|
||||||
|
@PostConstruct
|
||||||
|
public void init() {
|
||||||
|
appId = app_id;
|
||||||
|
appSecret = app_secret;
|
||||||
|
url = app_url;
|
||||||
|
}
|
||||||
|
//刷新token用
|
||||||
|
private static final String BEARER = "Bearer ";
|
||||||
|
/**
|
||||||
|
* 过期时间
|
||||||
|
*/
|
||||||
|
private Long expiryTime ;
|
||||||
|
private String token;
|
||||||
|
|
||||||
|
private CbsAccessToken(){
|
||||||
|
|
||||||
|
}
|
||||||
|
private static CbsAccessToken cbsAccessToken = new CbsAccessToken();
|
||||||
|
|
||||||
|
|
||||||
|
public static CbsAccessToken getInstance() {
|
||||||
|
if (null == cbsAccessToken.token){
|
||||||
|
initToken();
|
||||||
|
}else {
|
||||||
|
//判断token有没有过期
|
||||||
|
if (System.currentTimeMillis() >= cbsAccessToken.expiryTime){
|
||||||
|
initToken();
|
||||||
|
}else {
|
||||||
|
refreshToken();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return cbsAccessToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getToken(){
|
||||||
|
return getInstance().token;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 获取token
|
||||||
|
*/
|
||||||
|
private static void initToken(){
|
||||||
|
CbsAccessToken ct = (CbsAccessToken) ApplicationContextUtil.getBeanByName("cbsAccessToken");
|
||||||
|
logger.info("开始获取cbstoken");
|
||||||
|
Map<String,String> param = new HashMap<>();
|
||||||
|
param.put("app_id",ct.appId);
|
||||||
|
param.put("app_secret",ct.appSecret);
|
||||||
|
param.put("grant_type","client_credentials");
|
||||||
|
String res = HttpRequest.post(ct.url+"/openapi/app/v1/app/token").body(JSONObject.toJSONString(param)).execute().body();
|
||||||
|
logger.info("获取cbstoken结果",res);
|
||||||
|
if (StrUtil.isNotEmpty(res) && JSONUtil.isTypeJSON(res)){
|
||||||
|
JSONObject tokenObject = JSONObject.parseObject(res);
|
||||||
|
String code = tokenObject.getString("code");//0表示成功
|
||||||
|
if ("0".equals(code)){
|
||||||
|
JSONObject dataObj = tokenObject.getJSONObject("data");
|
||||||
|
if (null != dataObj){
|
||||||
|
String token = dataObj.getString("token");
|
||||||
|
//过期时间 单位是秒 30分钟有效
|
||||||
|
Integer expires = dataObj.getInteger("expires");
|
||||||
|
cbsAccessToken.token = token;
|
||||||
|
//提前5分钟让token失效 所以这里设置成过期时间为当前时间+25分钟
|
||||||
|
cbsAccessToken.expiryTime = System.currentTimeMillis()+1000*60*25L;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 刷新token
|
||||||
|
*/
|
||||||
|
private static void refreshToken(){
|
||||||
|
CbsAccessToken ct = (CbsAccessToken) ApplicationContextUtil.getBeanByName("cbsAccessToken");
|
||||||
|
//token不为空,并且没过期 刷新token
|
||||||
|
if (null != cbsAccessToken.token && System.currentTimeMillis() < cbsAccessToken.expiryTime ){
|
||||||
|
String res = HttpRequest.get(ct.url + "/openapi/app/v1/app/refresh-token").header("Authorization", BEARER + cbsAccessToken.token).execute().body();
|
||||||
|
logger.info("刷新cbstoken结果",res);
|
||||||
|
if (StrUtil.isNotEmpty(res) && JSONUtil.isTypeJSON(res)){
|
||||||
|
JSONObject tokenObject = JSONObject.parseObject(res);
|
||||||
|
String code = tokenObject.getString("code");//0表示成功
|
||||||
|
if ("0".equals(code)){
|
||||||
|
JSONObject dataObj = tokenObject.getJSONObject("data");
|
||||||
|
if (null != dataObj){
|
||||||
|
//续期的token
|
||||||
|
String token = dataObj.getString("token");
|
||||||
|
//新token过期时间 单位是秒 30分钟有效
|
||||||
|
Integer expires = dataObj.getInteger("expires");
|
||||||
|
cbsAccessToken.token = token;
|
||||||
|
//提前5分钟让token失效 所以这里设置成过期时间为当前时间+25分钟
|
||||||
|
cbsAccessToken.expiryTime = System.currentTimeMillis()+1000*60*25L;
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
initToken();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
initToken();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println("第1次取token:"+getToken());
|
||||||
|
System.out.println("第2次取token:"+getToken());
|
||||||
|
System.out.println("第3次取token:"+getToken());
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,71 @@
|
||||||
|
package com.hzya.frame.cbs8.util;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author:hecan
|
||||||
|
* @Description:支付类型(支付状态)
|
||||||
|
* @params:
|
||||||
|
* @return:
|
||||||
|
* @Date: 2023/3/14 15:05
|
||||||
|
*/
|
||||||
|
public enum PayState {
|
||||||
|
a("a","待提交直联"),
|
||||||
|
b("b","已提交直联"),
|
||||||
|
c("c","银行已受理"),
|
||||||
|
d("d","银行未受理"),
|
||||||
|
e("e","可疑"),
|
||||||
|
f("f","待人工确认"),
|
||||||
|
g("g","支付成功"),
|
||||||
|
h("h","支付失败"),
|
||||||
|
i("i","部分成功"),
|
||||||
|
j("j","退票"),
|
||||||
|
k("k","取消支付"),
|
||||||
|
n("n","其他"),
|
||||||
|
p("p","支付中"),
|
||||||
|
q("q","待支付"),
|
||||||
|
one("1","待处理"),
|
||||||
|
two("2","审批中"),
|
||||||
|
three("3","处理失败"),
|
||||||
|
four("4","审批通过"),
|
||||||
|
five("5","审批撤销"),
|
||||||
|
six("6","审批拒绝"),
|
||||||
|
seven("7","待发送审批"),
|
||||||
|
eight("8","集中受理中"),
|
||||||
|
nine("9","审批退回"),
|
||||||
|
ten("10","未处理");
|
||||||
|
|
||||||
|
|
||||||
|
//类型
|
||||||
|
private String type;
|
||||||
|
//值
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
PayState(String type, String value){
|
||||||
|
this.type=type;
|
||||||
|
this.value=value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValue(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String payStateGetValue(String type){
|
||||||
|
for (PayState payState : PayState.values()){
|
||||||
|
if(payState.getType()==type||payState.getType().equals(type)){
|
||||||
|
return payState.getValue().toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,231 @@
|
||||||
|
package com.hzya.frame.cbs8.util;
|
||||||
|
|
||||||
|
import org.bouncycastle.asn1.*;
|
||||||
|
import org.bouncycastle.crypto.engines.SM2Engine;
|
||||||
|
import org.bouncycastle.crypto.params.*;
|
||||||
|
import org.bouncycastle.crypto.signers.SM2Signer;
|
||||||
|
import org.bouncycastle.jce.ECNamedCurveTable;
|
||||||
|
import org.bouncycastle.jce.spec.ECParameterSpec;
|
||||||
|
import org.bouncycastle.math.ec.ECCurve;
|
||||||
|
import org.bouncycastle.math.ec.ECPoint;
|
||||||
|
import org.bouncycastle.util.encoders.Hex;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import java.io.ByteArrayInputStream;
|
||||||
|
import java.math.BigInteger;
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
|
import java.security.SecureRandom;
|
||||||
|
import java.util.Base64;
|
||||||
|
import java.util.Enumeration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author: xiang2lin
|
||||||
|
* @time: 2024/6/14
|
||||||
|
* @description: SM2加解密工具类
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class SM2Util {
|
||||||
|
static Logger logger = LoggerFactory.getLogger(SM2Util.class);
|
||||||
|
private SM2Util() {
|
||||||
|
throw new IllegalStateException("Utility class");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final String STD_NAME = "sm2p256v1";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SM2加密算法
|
||||||
|
*
|
||||||
|
* @param publicKey 公钥
|
||||||
|
* @param data 明文数据
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static byte[] encrypt(String publicKey, byte[] data) {
|
||||||
|
ECPublicKeyParameters ecPublicKeyParameters = encodePublicKey(Hex.decode(publicKey));
|
||||||
|
SM2Engine engine = new SM2Engine();
|
||||||
|
engine.init(true, new ParametersWithRandom(ecPublicKeyParameters, new SecureRandom()));
|
||||||
|
|
||||||
|
byte[] bytes = null;
|
||||||
|
try {
|
||||||
|
byte[] cipherText = engine.processBlock(data, 0, data.length);
|
||||||
|
bytes = C1C2C3ToC1C3C2(cipherText);
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.warn("SM2加密时出现异常:" + e.getMessage());
|
||||||
|
}
|
||||||
|
return bytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SM2解密算法
|
||||||
|
*
|
||||||
|
* @param privateKey 私钥
|
||||||
|
* @param cipherData 密文数据
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static byte[] decrypt(String privateKey, byte[] cipherData) {
|
||||||
|
ECPrivateKeyParameters ecPrivateKeyParameters = encodePrivateKey(Hex.decode(privateKey));
|
||||||
|
SM2Engine engine = new SM2Engine();
|
||||||
|
engine.init(false, ecPrivateKeyParameters);
|
||||||
|
|
||||||
|
byte[] bytes = null;
|
||||||
|
try {
|
||||||
|
cipherData = C1C3C2ToC1C2C3(cipherData);
|
||||||
|
bytes = engine.processBlock(cipherData, 0, cipherData.length);
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.warn("SM2解密时出现异常:" + e.getMessage());
|
||||||
|
}
|
||||||
|
return bytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 签名算法
|
||||||
|
*
|
||||||
|
* @param privateKey 私钥
|
||||||
|
* @param data 明文数据
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static byte[] sign(String privateKey, byte[] data) {
|
||||||
|
ECPrivateKeyParameters ecPrivateKeyParameters = encodePrivateKey(hexToByte(privateKey));
|
||||||
|
SM2Signer signer = new SM2Signer();
|
||||||
|
ParametersWithID parameters = new ParametersWithID(ecPrivateKeyParameters, "1234567812345678".getBytes());
|
||||||
|
signer.init(true, parameters);
|
||||||
|
signer.update(data, 0, data.length);
|
||||||
|
|
||||||
|
byte[] signature = null;
|
||||||
|
try {
|
||||||
|
signature = decodeDERSignature(signer.generateSignature());
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.warn("SM2签名时出现异常:" + e.getMessage());
|
||||||
|
}
|
||||||
|
return signature;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static byte[] hexToByte(String hex)
|
||||||
|
throws IllegalArgumentException {
|
||||||
|
if (hex.length() % 2 != 0) {
|
||||||
|
throw new IllegalArgumentException();
|
||||||
|
}
|
||||||
|
char[] arr = hex.toCharArray();
|
||||||
|
byte[] b = new byte[hex.length() / 2];
|
||||||
|
for (int i = 0, j = 0, l = hex.length(); i < l; i++, j++) {
|
||||||
|
String swap = "" + arr[i++] + arr[i];
|
||||||
|
int byteInt = Integer.parseInt(swap, 16) & 0xFF;
|
||||||
|
b[j] = BigInteger.valueOf(byteInt).byteValue();
|
||||||
|
}
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static byte[] C1C2C3ToC1C3C2(byte[] cipherText) throws Exception {
|
||||||
|
if (cipherText != null && cipherText.length >= 97) {
|
||||||
|
byte[] bytes = new byte[cipherText.length];
|
||||||
|
System.arraycopy(cipherText, 0, bytes, 0, 65);
|
||||||
|
System.arraycopy(cipherText, cipherText.length - 32, bytes, 65, 32);
|
||||||
|
System.arraycopy(cipherText, 65, bytes, 97, cipherText.length - 97);
|
||||||
|
return bytes;
|
||||||
|
} else {
|
||||||
|
throw new Exception("SM2 cipher text error, must be more than 96 bytes and in the format C1||C3||C2.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static byte[] C1C3C2ToC1C2C3(byte[] cipherText) throws Exception {
|
||||||
|
if (cipherText != null && cipherText.length >= 97) {
|
||||||
|
byte[] bytes = new byte[cipherText.length];
|
||||||
|
System.arraycopy(cipherText, 0, bytes, 0, 65);
|
||||||
|
System.arraycopy(cipherText, 97, bytes, 65, cipherText.length - 97);
|
||||||
|
System.arraycopy(cipherText, 65, bytes, cipherText.length - 32, 32);
|
||||||
|
return bytes;
|
||||||
|
} else {
|
||||||
|
throw new Exception("SM2 cipher text error, must be more than 96 bytes and in the format C1||C3||C2.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static ECPublicKeyParameters encodePublicKey(byte[] value) {
|
||||||
|
byte[] x = new byte[32];
|
||||||
|
byte[] y = new byte[32];
|
||||||
|
System.arraycopy(value, 1, x, 0, 32);
|
||||||
|
System.arraycopy(value, 33, y, 0, 32);
|
||||||
|
BigInteger X = new BigInteger(1, x);
|
||||||
|
BigInteger Y = new BigInteger(1, y);
|
||||||
|
ECPoint Q = getSM2Curve().createPoint(X, Y);
|
||||||
|
return new ECPublicKeyParameters(Q, getECDomainParameters());
|
||||||
|
}
|
||||||
|
|
||||||
|
private static ECCurve getSM2Curve() {
|
||||||
|
ECParameterSpec spec = ECNamedCurveTable.getParameterSpec(STD_NAME);
|
||||||
|
return spec.getCurve();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static ECPrivateKeyParameters encodePrivateKey(byte[] value) {
|
||||||
|
BigInteger d = new BigInteger(1, value);
|
||||||
|
return new ECPrivateKeyParameters(d, getECDomainParameters());
|
||||||
|
}
|
||||||
|
|
||||||
|
private static ECDomainParameters getECDomainParameters() {
|
||||||
|
ECParameterSpec spec = ECNamedCurveTable.getParameterSpec(STD_NAME);
|
||||||
|
return new ECDomainParameters(spec.getCurve(), spec.getG(), spec.getN(), spec.getH(), spec.getSeed());
|
||||||
|
}
|
||||||
|
|
||||||
|
private static byte[] decodeDERSignature(byte[] signature) {
|
||||||
|
ASN1InputStream stream = new ASN1InputStream(new ByteArrayInputStream(signature));
|
||||||
|
|
||||||
|
byte[] bytes = new byte[64];
|
||||||
|
try {
|
||||||
|
ASN1Sequence primitive = (ASN1Sequence) stream.readObject();
|
||||||
|
Enumeration enumeration = primitive.getObjects();
|
||||||
|
BigInteger R = ((ASN1Integer) enumeration.nextElement()).getValue();
|
||||||
|
BigInteger S = ((ASN1Integer) enumeration.nextElement()).getValue();
|
||||||
|
byte[] r = format(R.toByteArray());
|
||||||
|
byte[] s = format(S.toByteArray());
|
||||||
|
System.arraycopy(r, 0, bytes, 0, 32);
|
||||||
|
System.arraycopy(s, 0, bytes, 32, 32);
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.warn("decodeDERSignature时出现异常:" + e.getMessage());
|
||||||
|
}
|
||||||
|
return bytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static byte[] encodeDERSignature(byte[] signature) {
|
||||||
|
byte[] r = new byte[32];
|
||||||
|
byte[] s = new byte[32];
|
||||||
|
System.arraycopy(signature, 0, r, 0, 32);
|
||||||
|
System.arraycopy(signature, 32, s, 0, 32);
|
||||||
|
ASN1EncodableVector vector = new ASN1EncodableVector();
|
||||||
|
vector.add(new ASN1Integer(new BigInteger(1, r)));
|
||||||
|
vector.add(new ASN1Integer(new BigInteger(1, s)));
|
||||||
|
|
||||||
|
byte[] encoded = null;
|
||||||
|
try {
|
||||||
|
encoded = (new DERSequence(vector)).getEncoded();
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.warn("encodeDERSignature时出现异常:" + e.getMessage());
|
||||||
|
}
|
||||||
|
return encoded;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static byte[] format(byte[] value) {
|
||||||
|
if (value.length == 32) {
|
||||||
|
return value;
|
||||||
|
} else {
|
||||||
|
byte[] bytes = new byte[32];
|
||||||
|
if (value.length > 32) {
|
||||||
|
System.arraycopy(value, value.length - 32, bytes, 0, 32);
|
||||||
|
} else {
|
||||||
|
System.arraycopy(value, 0, bytes, 32 - value.length, value.length);
|
||||||
|
}
|
||||||
|
return bytes;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
String requestData = "hello啊";
|
||||||
|
byte[] encrypt = encrypt("0452d60e72f6a3050d2f8e8f4505f874ef345e15da38fda8dd64b9e756b7231c056dff1674c4826ada424cc78ea36fd58afc50bcefb5d721bf25b179efac2ebb17", requestData.getBytes(StandardCharsets.UTF_8));
|
||||||
|
String temp = new String(encrypt);
|
||||||
|
byte[] decrypt = decrypt("c3509b6df8bdaf84c464daa1b6fa11a8fca77b0e4a6f076ee68487f288278a85", encrypt);
|
||||||
|
System.out.println("解密完成"+new String(decrypt));
|
||||||
|
|
||||||
|
String encodeToString = Base64.getEncoder().encodeToString(encrypt);
|
||||||
|
byte[] decode = Base64.getDecoder().decode(encodeToString);
|
||||||
|
byte[] decrypt1 = decrypt("c3509b6df8bdaf84c464daa1b6fa11a8fca77b0e4a6f076ee68487f288278a85", decode);
|
||||||
|
System.out.println("解密完成1"+new String(decrypt1));
|
||||||
|
}
|
||||||
|
}
|
|
@ -74,7 +74,7 @@ WHERE
|
||||||
|
|
||||||
|
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="sevenerrornum" resultType="com.hzya.frame.home.entity.HomeEntity" parameterType="com.hzya.frame.home.entity.HomeEntity">
|
<select id="sevenerrornum" databaseId="mysql" resultType="com.hzya.frame.home.entity.HomeEntity" parameterType="com.hzya.frame.home.entity.HomeEntity">
|
||||||
SELECT
|
SELECT
|
||||||
count( id ) as abnormalNum,
|
count( id ) as abnormalNum,
|
||||||
DATE_FORMAT( create_time, '%Y-%m-%d' ) as name
|
DATE_FORMAT( create_time, '%Y-%m-%d' ) as name
|
||||||
|
@ -90,7 +90,23 @@ WHERE
|
||||||
'%Y-%m-%d')
|
'%Y-%m-%d')
|
||||||
</select>
|
</select>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="sevensuccessnum" resultType="com.hzya.frame.home.entity.HomeEntity" parameterType="com.hzya.frame.home.entity.HomeEntity">
|
<select id="sevenerrornum" databaseId="oracle" resultType="com.hzya.frame.home.entity.HomeEntity" parameterType="com.hzya.frame.home.entity.HomeEntity">
|
||||||
|
SELECT
|
||||||
|
count( id ) as abnormalNum,
|
||||||
|
DATE_FORMAT( create_time, '%Y-%m-%d' ) as name
|
||||||
|
FROM
|
||||||
|
sys_message_manage_log
|
||||||
|
WHERE sts = 'Y' and status = '4' and
|
||||||
|
create_time between add_days( NOW(), -6 ) AND NOW()
|
||||||
|
GROUP BY
|
||||||
|
DATE_FORMAT( create_time, '%Y-%m-%d' )
|
||||||
|
ORDER BY
|
||||||
|
DATE_FORMAT(
|
||||||
|
create_time,
|
||||||
|
'%Y-%m-%d')
|
||||||
|
</select>
|
||||||
|
<!-- 查询 采用==查询 -->
|
||||||
|
<select id="sevensuccessnum" databaseId="mysql" resultType="com.hzya.frame.home.entity.HomeEntity" parameterType="com.hzya.frame.home.entity.HomeEntity">
|
||||||
SELECT
|
SELECT
|
||||||
count( id ) as normalNum,
|
count( id ) as normalNum,
|
||||||
DATE_FORMAT( create_time, '%Y-%m-%d' ) as name
|
DATE_FORMAT( create_time, '%Y-%m-%d' ) as name
|
||||||
|
@ -105,5 +121,21 @@ WHERE
|
||||||
create_time,
|
create_time,
|
||||||
'%Y-%m-%d')
|
'%Y-%m-%d')
|
||||||
</select>
|
</select>
|
||||||
|
<!-- 查询 采用==查询 -->
|
||||||
|
<select id="sevensuccessnum" databaseId="oracle" resultType="com.hzya.frame.home.entity.HomeEntity" parameterType="com.hzya.frame.home.entity.HomeEntity">
|
||||||
|
SELECT
|
||||||
|
count( id ) as normalNum,
|
||||||
|
DATE_FORMAT( create_time, '%Y-%m-%d' ) as name
|
||||||
|
FROM
|
||||||
|
sys_message_manage_log_success
|
||||||
|
WHERE sts = 'Y' and status = '3' and
|
||||||
|
create_time between add_days( NOW(), -6 ) AND NOW()
|
||||||
|
GROUP BY
|
||||||
|
DATE_FORMAT( create_time, '%Y-%m-%d' )
|
||||||
|
ORDER BY
|
||||||
|
DATE_FORMAT(
|
||||||
|
create_time,
|
||||||
|
'%Y-%m-%d')
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,8 @@ public class MdmModuleDaoImpl extends MybatisGenericDao<MdmModuleEntity, String>
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MdmModuleEntity getByMdmCode(Long mdmCode) {
|
public MdmModuleEntity getByMdmCode(Long mdmCode) {
|
||||||
MdmModuleEntity mdmModuleEntity = (MdmModuleEntity) super.selectOne(getSqlIdPrifx() + "getByMdmCode",mdmCode);
|
MdmModuleEntity mdmModuleEntity = (MdmModuleEntity) super.selectOne(getSqlIdPrifx() + "getByMdmCode",mdmCode);
|
||||||
|
|
|
@ -21,6 +21,24 @@ public class MdmModuleSourceEntity extends BaseEntity {
|
||||||
/** 公司id */
|
/** 公司id */
|
||||||
private String companyId;
|
private String companyId;
|
||||||
private String pluginCode;//插件编码
|
private String pluginCode;//插件编码
|
||||||
|
private String appType;//应用类型
|
||||||
|
private String dbCode;//数据源编码
|
||||||
|
|
||||||
|
public String getAppType() {
|
||||||
|
return appType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAppType(String appType) {
|
||||||
|
this.appType = appType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDbCode() {
|
||||||
|
return dbCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDbCode(String dbCode) {
|
||||||
|
this.dbCode = dbCode;
|
||||||
|
}
|
||||||
|
|
||||||
public String getPluginCode() {
|
public String getPluginCode() {
|
||||||
return pluginCode;
|
return pluginCode;
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="appType" column="app_type" jdbcType="VARCHAR"/>
|
||||||
|
<result property="dbCode" column="db_code" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<!-- 查询的字段-->
|
<!-- 查询的字段-->
|
||||||
<sql id = "MdmModuleSourceEntity_Base_Column_List">
|
<sql id = "MdmModuleSourceEntity_Base_Column_List">
|
||||||
|
@ -138,10 +140,26 @@
|
||||||
|
|
||||||
<!-- 根据数据来源内类型是插件的应用类型做分组 -->
|
<!-- 根据数据来源内类型是插件的应用类型做分组 -->
|
||||||
<select id="queryMdmModuleSourceentityGroupByType" resultMap="get-MdmModuleSourceEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity">
|
<select id="queryMdmModuleSourceentityGroupByType" resultMap="get-MdmModuleSourceEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity">
|
||||||
select plugin_code,plugin_name,source_name,source_code
|
SELECT
|
||||||
from mdm_module_source source
|
plug.plugin_code,
|
||||||
left join sys_application_plugin plug on plug.id=source.source_code
|
plug.plugin_name,
|
||||||
where source_type='1' and source.sts='Y' and plug.sts='Y'
|
source.source_name,
|
||||||
|
source.source_code ,
|
||||||
|
application.app_type,
|
||||||
|
applicationdatabase.source_code as db_code
|
||||||
|
FROM
|
||||||
|
mdm_module_source source
|
||||||
|
LEFT JOIN sys_application_plugin plug ON plug.id = source.source_code
|
||||||
|
LEFT JOIN sys_application application ON source.source_name = application.id
|
||||||
|
left join sys_application_database applicationdatabase on applicationdatabase.app_id = source.source_name
|
||||||
|
WHERE
|
||||||
|
source.source_type = '1'
|
||||||
|
AND source.sts = 'Y'
|
||||||
|
AND plug.sts = 'Y'
|
||||||
|
and application.sts = 'Y'
|
||||||
|
AND applicationdatabase.sts = 'Y'
|
||||||
|
AND applicationdatabase.db_status = '1'
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.dao;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description cbs8支付日志
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/14 17:30
|
||||||
|
**/
|
||||||
|
public interface ICbsLogDao extends IBaseDao<CbsLogEntity,String> {
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.dao;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* oa集成cbs
|
||||||
|
*/
|
||||||
|
public interface IPaymentDao extends IBaseDao<PaymentEntity,String> {
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.dao.impl;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.dao.ICbsLogDao;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/14 17:31
|
||||||
|
**/
|
||||||
|
@Repository()
|
||||||
|
public class CbsLogDaoImpl extends MybatisGenericDao<CbsLogEntity,String> implements ICbsLogDao {
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.dao.impl;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.dao.IPaymentDao;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description oa集成cbs
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/6 16:28
|
||||||
|
**/
|
||||||
|
@Repository("OAPaymentDaoImpl")
|
||||||
|
public class PaymentDaoImpl extends MybatisGenericDao<PaymentEntity,String> implements IPaymentDao {
|
||||||
|
}
|
|
@ -0,0 +1,91 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 代发代扣明细表
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/18 14:58
|
||||||
|
**/
|
||||||
|
public class AgentPaymentDetailEntity extends BaseEntity {
|
||||||
|
private String dtlAmount;
|
||||||
|
//收款账号
|
||||||
|
private String dtlRevAccount;
|
||||||
|
//联行号 同行可不传,跨行必传
|
||||||
|
private String dtlCnapsCode;
|
||||||
|
//收款账户名称
|
||||||
|
private String dtlRevName;
|
||||||
|
//收款开户行 ,如果传的联行号能匹配到对应到开户行,cbs8会自动带出
|
||||||
|
private String dtlRevBankName;
|
||||||
|
//主表id
|
||||||
|
private String formmainId;
|
||||||
|
//表名
|
||||||
|
private String tabName;
|
||||||
|
|
||||||
|
//明细序号,从1开始递增
|
||||||
|
private int dtlSeqNum;
|
||||||
|
|
||||||
|
public String getDtlAmount() {
|
||||||
|
return dtlAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlAmount(String dtlAmount) {
|
||||||
|
this.dtlAmount = dtlAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRevAccount() {
|
||||||
|
return dtlRevAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRevAccount(String dtlRevAccount) {
|
||||||
|
this.dtlRevAccount = dtlRevAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlCnapsCode() {
|
||||||
|
return dtlCnapsCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlCnapsCode(String dtlCnapsCode) {
|
||||||
|
this.dtlCnapsCode = dtlCnapsCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRevName() {
|
||||||
|
return dtlRevName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRevName(String dtlRevName) {
|
||||||
|
this.dtlRevName = dtlRevName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDtlRevBankName() {
|
||||||
|
return dtlRevBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlRevBankName(String dtlRevBankName) {
|
||||||
|
this.dtlRevBankName = dtlRevBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFormmainId() {
|
||||||
|
return formmainId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormmainId(String formmainId) {
|
||||||
|
this.formmainId = formmainId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTabName() {
|
||||||
|
return tabName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTabName(String tabName) {
|
||||||
|
this.tabName = tabName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getDtlSeqNum() {
|
||||||
|
return dtlSeqNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDtlSeqNum(int dtlSeqNum) {
|
||||||
|
this.dtlSeqNum = dtlSeqNum;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,97 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 代发代扣 主表
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/18 14:44
|
||||||
|
**/
|
||||||
|
public class AgentPaymentEntity extends BaseEntity {
|
||||||
|
|
||||||
|
//业务参考号
|
||||||
|
private String referenceNum;
|
||||||
|
/**
|
||||||
|
* 业务类型
|
||||||
|
* 201-代扣
|
||||||
|
* 203-代发
|
||||||
|
* 代发工资传203
|
||||||
|
*/
|
||||||
|
private String busType;
|
||||||
|
//总金额 小数位2位
|
||||||
|
private String amount;
|
||||||
|
//币种
|
||||||
|
private String currency;
|
||||||
|
//付款账号
|
||||||
|
private String payAccount;
|
||||||
|
//用途
|
||||||
|
private String purpose;
|
||||||
|
|
||||||
|
|
||||||
|
private String tableName;//表名称
|
||||||
|
private String billName;//单据名称
|
||||||
|
|
||||||
|
public String getReferenceNum() {
|
||||||
|
return referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReferenceNum(String referenceNum) {
|
||||||
|
this.referenceNum = referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusType() {
|
||||||
|
return busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusType(String busType) {
|
||||||
|
this.busType = busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAmount() {
|
||||||
|
return amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(String amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrency() {
|
||||||
|
return currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrency(String currency) {
|
||||||
|
this.currency = currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayAccount() {
|
||||||
|
return payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayAccount(String payAccount) {
|
||||||
|
this.payAccount = payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPurpose() {
|
||||||
|
return purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPurpose(String purpose) {
|
||||||
|
this.purpose = purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTableName() {
|
||||||
|
return tableName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTableName(String tableName) {
|
||||||
|
this.tableName = tableName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBillName() {
|
||||||
|
return billName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBillName(String billName) {
|
||||||
|
this.billName = billName;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,151 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description cbs支付日志
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/14 17:16
|
||||||
|
**/
|
||||||
|
public class CbsLogEntity extends BaseEntity {
|
||||||
|
//流程标题
|
||||||
|
private String title;
|
||||||
|
//请款主体
|
||||||
|
private String pay_company;
|
||||||
|
//收款人
|
||||||
|
private String payee;
|
||||||
|
//金额
|
||||||
|
private String amount;
|
||||||
|
//cbs申请单号
|
||||||
|
private String cbs_apply_code;
|
||||||
|
//日志表id
|
||||||
|
private String id;
|
||||||
|
//oa单据id
|
||||||
|
private String oa_id;
|
||||||
|
//oa单据号
|
||||||
|
private String bill_code;
|
||||||
|
//英文表名
|
||||||
|
private String tab_name_en;
|
||||||
|
//中文表名
|
||||||
|
private String tab_name_ch;
|
||||||
|
//支付状态
|
||||||
|
private String pay_state;
|
||||||
|
//支付信息
|
||||||
|
private String message;
|
||||||
|
//支付申请状态
|
||||||
|
private String apply_state;
|
||||||
|
//成功标记
|
||||||
|
private String successed;
|
||||||
|
|
||||||
|
public String getOa_id() {
|
||||||
|
return oa_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOa_id(String oa_id) {
|
||||||
|
this.oa_id = oa_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBill_code() {
|
||||||
|
return bill_code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBill_code(String bill_code) {
|
||||||
|
this.bill_code = bill_code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTab_name_en() {
|
||||||
|
return tab_name_en;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTab_name_en(String tab_name_en) {
|
||||||
|
this.tab_name_en = tab_name_en;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTab_name_ch() {
|
||||||
|
return tab_name_ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTab_name_ch(String tab_name_ch) {
|
||||||
|
this.tab_name_ch = tab_name_ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPay_state() {
|
||||||
|
return pay_state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPay_state(String pay_state) {
|
||||||
|
this.pay_state = pay_state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMessage() {
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMessage(String message) {
|
||||||
|
this.message = message;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getApply_state() {
|
||||||
|
return apply_state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApply_state(String apply_state) {
|
||||||
|
this.apply_state = apply_state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSuccessed() {
|
||||||
|
return successed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuccessed(String successed) {
|
||||||
|
this.successed = successed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle() {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitle(String title) {
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPay_company() {
|
||||||
|
return pay_company;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPay_company(String pay_company) {
|
||||||
|
this.pay_company = pay_company;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayee() {
|
||||||
|
return payee;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayee(String payee) {
|
||||||
|
this.payee = payee;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAmount() {
|
||||||
|
return amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(String amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCbs_apply_code() {
|
||||||
|
return cbs_apply_code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCbs_apply_code(String cbs_apply_code) {
|
||||||
|
this.cbs_apply_code = cbs_apply_code;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,115 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity">
|
||||||
|
<resultMap id="get-CbsLogEntity-result" type="com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="oa_id" column="oa_id" />
|
||||||
|
<result property="bill_code" column="bill_code" />
|
||||||
|
<result property="tab_name_en" column="tab_name_en" />
|
||||||
|
<result property="tab_name_ch" column="tab_name_ch" />
|
||||||
|
<result property="pay_state" column="pay_state" />
|
||||||
|
<result property="message" column="message" />
|
||||||
|
<result property="apply_state" column="apply_state" />
|
||||||
|
<result property="successed" column="successed" />
|
||||||
|
<result property="title" column="title" />
|
||||||
|
<result property="pay_company" column="pay_company" />
|
||||||
|
<result property="payee" column="payee" />
|
||||||
|
<result property="amount" column="amount" />
|
||||||
|
<result property="cbs_apply_code" column="cbs_apply_code" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="CbsLogEntity_Base_Column_List">
|
||||||
|
id,
|
||||||
|
field0001 as oa_id,
|
||||||
|
field0002 as bill_code,
|
||||||
|
field0003 as tab_name_en,
|
||||||
|
field0004 as tab_name_ch,
|
||||||
|
field0005 as pay_state,
|
||||||
|
field0006 as message,
|
||||||
|
field0007 as apply_state,
|
||||||
|
field0008 as successed,
|
||||||
|
field0009 as title,
|
||||||
|
field0010 as pay_company,
|
||||||
|
field0011 as payee,
|
||||||
|
field0012 as amount,
|
||||||
|
field0013 as cbs_apply_code
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<!-- 查询推送失败,用户手动发起请求 采用==查询 -->
|
||||||
|
<select id="CbsLogEntity_list_base" resultMap="get-CbsLogEntity-result" parameterType="com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity">
|
||||||
|
select
|
||||||
|
<include refid="CbsLogEntity_Base_Column_List"/>
|
||||||
|
from
|
||||||
|
formmain_1283
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="oa_id != null and oa_id !='' "> field0001 = #{oa_id} </if>
|
||||||
|
<if test="id != null and id !='' "> and id = #{id} </if>
|
||||||
|
<if test="bill_code != null and bill_code !='' "> and field0002 = #{bill_code} </if>
|
||||||
|
<if test="tab_name_en != null and tab_name_en !='' "> and field0003 = #{tab_name_en} </if>
|
||||||
|
<if test="tab_name_ch != null and tab_name_ch !='' "> and field0004 = #{tab_name_ch} </if>
|
||||||
|
<if test="pay_state != null and pay_state !='' "> and field0005 = #{pay_state} </if>
|
||||||
|
<if test="message != null and message !='' "> and field0006 = #{message} </if>
|
||||||
|
<if test="apply_state != null and apply_state !='' "> and field0007 = #{apply_state} </if>
|
||||||
|
<if test="successed != null and successed !='' "> and field0008 = #{successed} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="CbsLogEntity_list_like" resultMap="get-CbsLogEntity-result" parameterType="com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity">
|
||||||
|
select
|
||||||
|
<include refid="CbsLogEntity_Base_Column_List"/>
|
||||||
|
from
|
||||||
|
formmain_1283
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="oa_id != null and oa_id !='' "> field0001 = #{oa_id} </if>
|
||||||
|
<if test="id != null and id !='' "> and id = #{id} </if>
|
||||||
|
<if test="bill_code != null and bill_code !='' "> and field0002 like '${bill_code}%' </if>
|
||||||
|
<if test="tab_name_en != null and tab_name_en !='' "> and field0003 like '${tab_name_en}%' </if>
|
||||||
|
<if test="tab_name_ch != null and tab_name_ch !='' "> and field0004 like '${tab_name_ch}%' </if>
|
||||||
|
<if test="pay_state != null and pay_state !='' "> and field0005 like '${pay_state}%' </if>
|
||||||
|
<if test="message != null and message !='' "> and field0006 like '${message}%' </if>
|
||||||
|
<if test="apply_state != null and apply_state !='' "> and field0007 like '${apply_state}%' </if>
|
||||||
|
<if test="successed != null and successed !='' "> and field0008 = #{successed} </if>
|
||||||
|
<if test="title != null and title !='' "> and field0009 like '${title}%' </if>
|
||||||
|
<if test="pay_company != null and pay_company !='' "> and field0010 like '${pay_company}%' </if>
|
||||||
|
<if test="payee != null and payee !='' "> and field0011 like '${payee}%' </if>
|
||||||
|
<if test="amount != null and amount !='' "> and field0012 like '${amount}%' </if>
|
||||||
|
<if test="cbs_apply_code != null and cbs_apply_code !='' "> and field0013 like '${cbs_apply_code}%' </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="CbsLogEntity_list_base_in_payment" resultMap="get-CbsLogEntity-result" parameterType="com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity">
|
||||||
|
select
|
||||||
|
<include refid="CbsLogEntity_Base_Column_List"/>
|
||||||
|
from
|
||||||
|
formmain_1283
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="oa_id != null and oa_id !='' "> field0001 = #{oa_id} </if>
|
||||||
|
<if test="id != null and id !='' "> and id = #{id} </if>
|
||||||
|
<if test="bill_code != null and bill_code !='' "> and field0002 = #{bill_code} </if>
|
||||||
|
<if test="tab_name_en != null and tab_name_en !='' "> and field0003 = #{tab_name_en} </if>
|
||||||
|
<if test="tab_name_ch != null and tab_name_ch !='' "> and field0004 = #{tab_name_ch} </if>
|
||||||
|
<if test="pay_state != null and pay_state !='' "> and field0005 = #{pay_state} </if>
|
||||||
|
<if test="message != null and message !='' "> and field0006 = #{message} </if>
|
||||||
|
<if test="apply_state != null and apply_state !='' "> and field0007 = #{apply_state} </if>
|
||||||
|
<if test="successed != null and successed !='' "> and field0008 = #{successed} </if>
|
||||||
|
and (field0005='支付中'
|
||||||
|
or field0005 not in ('审批撤销','审批拒绝','处理失败','退票','支付成功','取消支付','修改支付','支付失败','推送失败','网银支付',''))
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<!--修改视图支付状态-->
|
||||||
|
<update id="CbsLogEntity_update" parameterType="com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity">
|
||||||
|
update formmain_1283 set
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="pay_state != null and pay_state !='' ">field0005 =#{pay_state},</if>
|
||||||
|
field0006 =#{message},
|
||||||
|
<if test="apply_state != null and apply_state !='' ">field0007 =#{apply_state},</if>
|
||||||
|
<if test="successed != null and successed !='' ">field0008 =#{successed}</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,300 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/6 16:17
|
||||||
|
**/
|
||||||
|
public class PaymentEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String oaId;//主表id
|
||||||
|
private String payCompany;//付款公司
|
||||||
|
private String title;//流程标题
|
||||||
|
private String tableName;//表名称
|
||||||
|
private String billName;//单据名称
|
||||||
|
private String referenceNum;//业务参考号 唯一id
|
||||||
|
private String referenceNumNew;//重试的时候生成新的业务参考号
|
||||||
|
private String busType;//业务类型
|
||||||
|
private String payResultField;//支付结果字段
|
||||||
|
private String payDateField;//打款日期字段
|
||||||
|
private String receiptFiled;//电子回单字段
|
||||||
|
private String summaryId;//summaryid
|
||||||
|
private String startDate;//单据日期
|
||||||
|
private String finishedflag;//流程状态
|
||||||
|
private String payDate;//打款日期
|
||||||
|
private String payResult;//支付结果
|
||||||
|
private String payAccount;//付款账号
|
||||||
|
private String payBankName;//付款开户银行
|
||||||
|
private String amount;//金额
|
||||||
|
private String purpose;//支付用途
|
||||||
|
private String revAccount;//收款账号
|
||||||
|
private String revBankName;//收款开户行名称
|
||||||
|
private String revBankType;//收款银行类型
|
||||||
|
private String revAccountName;//收款账户名称
|
||||||
|
private String cnapsCode;//联行号
|
||||||
|
private String receipt;//电子回单
|
||||||
|
private String currency;//币种 数字
|
||||||
|
private String currencyName;//币种 中文
|
||||||
|
private String currencyCode;//币种编码
|
||||||
|
private String personalFlag;//公私标记
|
||||||
|
private String payType;//付款类别
|
||||||
|
private String payCompanyCode;//付款公司编码
|
||||||
|
|
||||||
|
public String getOaId() {
|
||||||
|
return oaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOaId(String oaId) {
|
||||||
|
this.oaId = oaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayCompany() {
|
||||||
|
return payCompany;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayCompany(String payCompany) {
|
||||||
|
this.payCompany = payCompany;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle() {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitle(String title) {
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTableName() {
|
||||||
|
return tableName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTableName(String tableName) {
|
||||||
|
this.tableName = tableName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBillName() {
|
||||||
|
return billName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBillName(String billName) {
|
||||||
|
this.billName = billName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReferenceNum() {
|
||||||
|
return referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReferenceNum(String referenceNum) {
|
||||||
|
this.referenceNum = referenceNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReferenceNumNew() {
|
||||||
|
return referenceNumNew;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReferenceNumNew(String referenceNumNew) {
|
||||||
|
this.referenceNumNew = referenceNumNew;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusType() {
|
||||||
|
return busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusType(String busType) {
|
||||||
|
this.busType = busType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayResultField() {
|
||||||
|
return payResultField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayResultField(String payResultField) {
|
||||||
|
this.payResultField = payResultField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayDateField() {
|
||||||
|
return payDateField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayDateField(String payDateField) {
|
||||||
|
this.payDateField = payDateField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReceiptFiled() {
|
||||||
|
return receiptFiled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReceiptFiled(String receiptFiled) {
|
||||||
|
this.receiptFiled = receiptFiled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSummaryId() {
|
||||||
|
return summaryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSummaryId(String summaryId) {
|
||||||
|
this.summaryId = summaryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStartDate() {
|
||||||
|
return startDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartDate(String startDate) {
|
||||||
|
this.startDate = startDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFinishedflag() {
|
||||||
|
return finishedflag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFinishedflag(String finishedflag) {
|
||||||
|
this.finishedflag = finishedflag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayDate() {
|
||||||
|
return payDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayDate(String payDate) {
|
||||||
|
this.payDate = payDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayResult() {
|
||||||
|
return payResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayResult(String payResult) {
|
||||||
|
this.payResult = payResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayAccount() {
|
||||||
|
return payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayAccount(String payAccount) {
|
||||||
|
this.payAccount = payAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayBankName() {
|
||||||
|
return payBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayBankName(String payBankName) {
|
||||||
|
this.payBankName = payBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAmount() {
|
||||||
|
return amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(String amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPurpose() {
|
||||||
|
return purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPurpose(String purpose) {
|
||||||
|
this.purpose = purpose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevAccount() {
|
||||||
|
return revAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevAccount(String revAccount) {
|
||||||
|
this.revAccount = revAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevBankName() {
|
||||||
|
return revBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevBankName(String revBankName) {
|
||||||
|
this.revBankName = revBankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevBankType() {
|
||||||
|
return revBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevBankType(String revBankType) {
|
||||||
|
this.revBankType = revBankType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRevAccountName() {
|
||||||
|
return revAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRevAccountName(String revAccountName) {
|
||||||
|
this.revAccountName = revAccountName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCnapsCode() {
|
||||||
|
return cnapsCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCnapsCode(String cnapsCode) {
|
||||||
|
this.cnapsCode = cnapsCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReceipt() {
|
||||||
|
return receipt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReceipt(String receipt) {
|
||||||
|
this.receipt = receipt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrency() {
|
||||||
|
return currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrency(String currency) {
|
||||||
|
this.currency = currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrencyName() {
|
||||||
|
return currencyName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrencyName(String currencyName) {
|
||||||
|
this.currencyName = currencyName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrencyCode() {
|
||||||
|
return currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrencyCode(String currencyCode) {
|
||||||
|
this.currencyCode = currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPersonalFlag() {
|
||||||
|
return personalFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPersonalFlag(String personalFlag) {
|
||||||
|
this.personalFlag = personalFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayType() {
|
||||||
|
return payType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayType(String payType) {
|
||||||
|
this.payType = payType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayCompanyCode() {
|
||||||
|
return payCompanyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayCompanyCode(String payCompanyCode) {
|
||||||
|
this.payCompanyCode = payCompanyCode;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,342 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.seeyon.cbs8.entity.PaymentEntity">
|
||||||
|
<resultMap id="get-PaymentEntity-result" type="com.hzya.frame.seeyon.cbs8.entity.PaymentEntity">
|
||||||
|
<result property="referenceNum" column="referenceNum" />
|
||||||
|
<result property="busType" column="busType" />
|
||||||
|
<result property="title" column="title" />
|
||||||
|
<result property="amount" column="amount" />
|
||||||
|
<result property="currency" column="currency" />
|
||||||
|
<result property="payAccount" column="payAccount" jdbcType="VARCHAR" />
|
||||||
|
<result property="revAccount" column="revAccount" />
|
||||||
|
<result property="revAccountName" column="revAccountName" />
|
||||||
|
<result property="revBankType" column="revBankType" />
|
||||||
|
<result property="revBankName" column="revBankName" />
|
||||||
|
<result property="cnapsCode" column="cnapsCode" />
|
||||||
|
<result property="purpose" column="purpose" />
|
||||||
|
<result property="personalFlag" column="personalFlag" />
|
||||||
|
<result property="tableName" column="tableName" />
|
||||||
|
<result property="oaId" column="oaId" />
|
||||||
|
<result property="payCompany" column="payCompany" />
|
||||||
|
<result property="billName" column="billName" />
|
||||||
|
<result property="payResultField" column="payResultField" />
|
||||||
|
<result property="payDateField" column="payDateField" />
|
||||||
|
<result property="receiptFiled" column="receiptFiled" />
|
||||||
|
<result property="summaryId" column="summaryId" />
|
||||||
|
<result property="startDate" column="startDate" />
|
||||||
|
<result property="finishedflag" column="finishedflag" />
|
||||||
|
<result property="payDate" column="payDate" />
|
||||||
|
<result property="payResult" column="payResult" />
|
||||||
|
<result property="payBankName" column="payBankName" />
|
||||||
|
<result property="receipt" column="receipt" />
|
||||||
|
<result property="payType" column="payType" />
|
||||||
|
<result property="payCompanyCode" column="payCompanyCode" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="PaymentEntity_Base_Column_List">
|
||||||
|
oaId,
|
||||||
|
payCompany,
|
||||||
|
payCompanyCode,
|
||||||
|
title,
|
||||||
|
tableName,
|
||||||
|
billName,
|
||||||
|
referenceNum,
|
||||||
|
busType,
|
||||||
|
payResultField,
|
||||||
|
payDateField,
|
||||||
|
receiptFiled,
|
||||||
|
summaryId,
|
||||||
|
startDate,
|
||||||
|
finishedflag,
|
||||||
|
payDate,
|
||||||
|
payResult,
|
||||||
|
payAccount,
|
||||||
|
payBankName,
|
||||||
|
amount,
|
||||||
|
purpose,
|
||||||
|
revAccount,
|
||||||
|
revBankName,
|
||||||
|
revBankType,
|
||||||
|
revAccountName,
|
||||||
|
cnapsCode,
|
||||||
|
receipt,
|
||||||
|
currency,
|
||||||
|
personalFlag,
|
||||||
|
payType
|
||||||
|
</sql>
|
||||||
|
<!-- 采用==查询 -->
|
||||||
|
<select id="PaymentEntity_list_base" resultMap="get-PaymentEntity-result" parameterType="com.hzya.frame.seeyon.cbs8.entity.PaymentEntity">
|
||||||
|
<!-- select
|
||||||
|
<include refid="PaymentEntity_Base_Column_List"/>
|
||||||
|
from
|
||||||
|
v_hzya_oa_cbs_all-->
|
||||||
|
-- 差旅费报销单
|
||||||
|
SELECT
|
||||||
|
formson_0210.id as oaId, -- 主表id
|
||||||
|
'formson_0210' as tableName, -- 表名
|
||||||
|
COL_SUMMARY.SUBJECT as title, -- 单据标题
|
||||||
|
unit.name as payCompany, -- 付款公司
|
||||||
|
'差旅费报销单' as billName,
|
||||||
|
'field0072' as payResultField, -- 支付结果字段
|
||||||
|
'field0073' as payDateField, -- 打款日期字段
|
||||||
|
'' as receiptFiled,-- 电子回单字段
|
||||||
|
COL_SUMMARY.id as summaryId,
|
||||||
|
formmain_0209.field0017||'-'||formson_0210.sort as referenceNum, -- 单据编号
|
||||||
|
formmain_0209.START_DATE as startDate, -- 单据日期
|
||||||
|
formmain_0209.FINISHEDFLAG as finishedflag, -- 流程状态
|
||||||
|
formson_0210.field0073 as payDate, -- 打款日期
|
||||||
|
formson_0210.field0072 as payResult, -- 支付结果
|
||||||
|
REGEXP_REPLACE(formmain_0209.field0042, '[[:space:]]', '') as payAccount, -- 付款账户
|
||||||
|
REGEXP_REPLACE(formmain_0209.field0041, '[[:space:]]', '') as payBankName, -- 付款开户行
|
||||||
|
formson_0210.field0031 as amount, -- 金额
|
||||||
|
formmain_0209.field0038 as purpose, -- 用途
|
||||||
|
formmain_0209.field0038 as cbsAbstract, -- 摘要
|
||||||
|
REGEXP_REPLACE(formson_0210.field0069, '[[:space:]]', '') as revAccount, -- 收款账户
|
||||||
|
formson_0210.field0068 as revBankName, -- 收款开户行
|
||||||
|
'' as revAccountName, -- 收款人
|
||||||
|
REGEXP_REPLACE(formson_0210.field0071, '[[:space:]]', '') as cnapsCode, -- 收款联行号
|
||||||
|
item.showvalue as personalFlag,-- 公私标记
|
||||||
|
'' as revBankType,-- 收款银行类型
|
||||||
|
'10' as currency,-- 币种
|
||||||
|
'' as busType,-- 业务类型
|
||||||
|
'' as receipt -- 电子回单
|
||||||
|
from
|
||||||
|
formson_0210
|
||||||
|
LEFT JOIN formmain_0209 ON formson_0210.FORMMAIN_ID = formmain_0209.id
|
||||||
|
LEFT JOIN COL_SUMMARY ON COL_SUMMARY.FORM_RECORDID = formmain_0209.id
|
||||||
|
LEFT JOIN CTP_AFFAIR ON CTP_AFFAIR.object_id = COL_SUMMARY.id
|
||||||
|
left join CTP_ENUM_ITEM item on item.id =formson_0210.field0070
|
||||||
|
left join ORG_UNIT unit on unit.id =formmain_0209.field0002
|
||||||
|
-- left join V_USER_VIEW_ALL us on us.staffid=formmain_0209.field0024
|
||||||
|
WHERE 1=1
|
||||||
|
-- and formson_0210.field0031>0
|
||||||
|
and CTP_AFFAIR.node_name = '发起者' and CTP_AFFAIR.COMPLETE_TIME is null and CTP_AFFAIR.STATE = 3
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="referenceNum != null and referenceNum !='' "> referenceNum = #{referenceNum} </if>
|
||||||
|
<if test="busType != null and busType !='' "> and busType = #{busType} </if>
|
||||||
|
<if test="amount != null and amount !='' ">and amount = #{amount} </if>
|
||||||
|
<if test="currency != null and currency !='' "> and currency = #{currency} </if>
|
||||||
|
<if test="payAccount != null and payAccount !='' ">and payAccount = #{payAccount} </if>
|
||||||
|
<if test="revAccount != null and revAccount !='' "> and revAccount = #{revAccount} </if>
|
||||||
|
<if test="revAccountName != null and revAccountName !='' "> and revAccountName = #{revAccountName} </if>
|
||||||
|
<if test="revBankType != null and revBankType !='' "> and revBankType = #{revBankType} </if>
|
||||||
|
<if test="revBankName != null and revBankName !='' ">and revBankName = #{revBankName} </if>
|
||||||
|
<if test="cnapsCode != null and cnapsCode !='' ">and cnapsCode = #{cnapsCode} </if>
|
||||||
|
<if test="purpose != null and purpose !='' "> and purpose = #{purpose} </if>
|
||||||
|
<if test="personalFlag != null and personalFlag !='' ">and personalFlag = #{personalFlag} </if>
|
||||||
|
<if test="tableName != null and tableName !='' "> and tableName = #{tableName} </if>
|
||||||
|
<if test="oaId != null and oaId !='' ">and oaId = #{oaId} </if>
|
||||||
|
<if test="payCompany != null and payCompany !='' "> and payCompany = #{payCompany} </if>
|
||||||
|
<if test="payCompanyCode != null and payCompanyCode !='' "> and payCompanyCode = #{payCompanyCode} </if>
|
||||||
|
<if test="title != null and title !='' "> and title = #{title} </if>
|
||||||
|
<if test="billName != null and billName !='' "> and billName = #{billName} </if>
|
||||||
|
<if test="payResult != null and payResult !='' ">and payResult = #{payResult} </if>
|
||||||
|
<if test="payBankName != null and payBankName !='' ">and payBankName = #{payBankName} </if>
|
||||||
|
<if test="payType != null and payType !='' "> and payType = #{payType} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询交易成功,且电子回单为空的,上传电子回单用 -->
|
||||||
|
<select id="PaymentEntity_list_base_elec_isnull" resultMap="get-PaymentEntity-result" parameterType="com.hzya.frame.seeyon.cbs8.entity.PaymentEntity">
|
||||||
|
<!-- select
|
||||||
|
<include refid="PaymentEntity_Base_Column_List"/>
|
||||||
|
from
|
||||||
|
v_hzya_oa_cbs_all-->
|
||||||
|
-- 差旅费报销单
|
||||||
|
SELECT
|
||||||
|
formson_0210.id as oaId, -- 主表id
|
||||||
|
'formson_0210' as tableName, -- 表名
|
||||||
|
COL_SUMMARY.SUBJECT as title, -- 单据标题
|
||||||
|
unit.name as payCompany, -- 付款公司
|
||||||
|
'差旅费报销单' as billName,
|
||||||
|
'field0072' as payResultField, -- 支付结果字段
|
||||||
|
'field0073' as payDateField, -- 打款日期字段
|
||||||
|
'' as receiptFiled,-- 电子回单字段
|
||||||
|
COL_SUMMARY.id as summaryId,
|
||||||
|
formmain_0209.field0017||'-'||formson_0210.sort as referenceNum, -- 单据编号
|
||||||
|
formmain_0209.START_DATE as startDate, -- 单据日期
|
||||||
|
formmain_0209.FINISHEDFLAG as finishedflag, -- 流程状态
|
||||||
|
formson_0210.field0073 as payDate, -- 打款日期
|
||||||
|
formson_0210.field0072 as payResult, -- 支付结果
|
||||||
|
REGEXP_REPLACE(formmain_0209.field0042, '[[:space:]]', '') as payAccount, -- 付款账户
|
||||||
|
REGEXP_REPLACE(formmain_0209.field0041, '[[:space:]]', '') as payBankName, -- 付款开户行
|
||||||
|
formson_0210.field0031 as amount, -- 金额
|
||||||
|
formmain_0209.field0038 as purpose, -- 用途
|
||||||
|
formmain_0209.field0038 as cbsAbstract, -- 摘要
|
||||||
|
REGEXP_REPLACE(formson_0210.field0069, '[[:space:]]', '') as revAccount, -- 收款账户
|
||||||
|
formson_0210.field0068 as revBankName, -- 收款开户行
|
||||||
|
'' as revAccountName, -- 收款人
|
||||||
|
REGEXP_REPLACE(formson_0210.field0071, '[[:space:]]', '') as cnapsCode, -- 收款联行号
|
||||||
|
item.showvalue as personalFlag,-- 公私标记
|
||||||
|
'' as revBankType,-- 收款银行类型
|
||||||
|
'10' as currency,-- 币种
|
||||||
|
'' as busType,-- 业务类型
|
||||||
|
'' as receipt -- 电子回单
|
||||||
|
from
|
||||||
|
formson_0210
|
||||||
|
LEFT JOIN formmain_0209 ON formson_0210.FORMMAIN_ID = formmain_0209.id
|
||||||
|
LEFT JOIN COL_SUMMARY ON COL_SUMMARY.FORM_RECORDID = formmain_0209.id
|
||||||
|
LEFT JOIN CTP_AFFAIR ON CTP_AFFAIR.object_id = COL_SUMMARY.id
|
||||||
|
left join CTP_ENUM_ITEM item on item.id =formson_0210.field0070
|
||||||
|
left join ORG_UNIT unit on unit.id =formmain_0209.field0002
|
||||||
|
-- left join V_USER_VIEW_ALL us on us.staffid=formmain_0209.field0024
|
||||||
|
WHERE 1=1
|
||||||
|
-- and formson_0210.field0031>0
|
||||||
|
and CTP_AFFAIR.node_name = '发起者' and CTP_AFFAIR.COMPLETE_TIME is null and CTP_AFFAIR.STATE = 3
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="referenceNum != null and referenceNum !='' "> referenceNum = #{referenceNum} </if>
|
||||||
|
<if test="busType != null and busType !='' "> and busType = #{busType} </if>
|
||||||
|
<if test="amount != null and amount !='' ">and amount = #{amount} </if>
|
||||||
|
<if test="currency != null and currency !='' "> and currency = #{currency} </if>
|
||||||
|
<if test="payAccount != null and payAccount !='' ">and payAccount = #{payAccount} </if>
|
||||||
|
<if test="revAccount != null and revAccount !='' "> and revAccount = #{revAccount} </if>
|
||||||
|
<if test="revAccountName != null and revAccountName !='' "> and revAccountName = #{revAccountName} </if>
|
||||||
|
<if test="revBankType != null and revBankType !='' "> and revBankType = #{revBankType} </if>
|
||||||
|
<if test="revBankName != null and revBankName !='' ">and revBankName = #{revBankName} </if>
|
||||||
|
<if test="cnapsCode != null and cnapsCode !='' ">and cnapsCode = #{cnapsCode} </if>
|
||||||
|
<if test="purpose != null and purpose !='' "> and purpose = #{purpose} </if>
|
||||||
|
<if test="personalFlag != null and personalFlag !='' ">and personalFlag = #{personalFlag} </if>
|
||||||
|
<if test="tableName != null and tableName !='' "> and tableName = #{tableName} </if>
|
||||||
|
<if test="oaId != null and oaId !='' ">and oaId = #{oaId} </if>
|
||||||
|
<if test="payCompany != null and payCompany !='' "> and payCompany = #{payCompany} </if>
|
||||||
|
<if test="payCompanyCode != null and payCompanyCode !='' "> and payCompanyCode = #{payCompanyCode} </if>
|
||||||
|
<if test="title != null and title !='' "> and title = #{title} </if>
|
||||||
|
<if test="billName != null and billName !='' "> and billName = #{billName} </if>
|
||||||
|
<if test="payBankName != null and payBankName !='' ">and payBankName = #{payBankName} </if>
|
||||||
|
<if test="payType != null and payType !='' "> and payType = #{payType} </if>
|
||||||
|
and receipt is null and personalFlag='0' and payResult = '支付成功'
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
<!-- 查询推送状态为null的,代表没有发送请求或者请求客户服务器没有返回的 采用==查询 -->
|
||||||
|
<select id="PaymentEntity_list_base_unpaid" resultMap="get-PaymentEntity-result" parameterType="com.hzya.frame.seeyon.cbs8.entity.PaymentEntity">
|
||||||
|
<!--select
|
||||||
|
<include refid="PaymentEntity_Base_Column_List"/>
|
||||||
|
from
|
||||||
|
v_hzya_oa_cbs-->
|
||||||
|
-- 差旅费报销单
|
||||||
|
SELECT
|
||||||
|
formson_0210.id as oaId, -- 主表id
|
||||||
|
'formson_0210' as tableName, -- 表名
|
||||||
|
COL_SUMMARY.SUBJECT as title, -- 单据标题
|
||||||
|
unit.name as payCompany, -- 付款公司
|
||||||
|
'差旅费报销单' as billName,
|
||||||
|
'field0072' as payResultField, -- 支付结果字段
|
||||||
|
'field0073' as payDateField, -- 打款日期字段
|
||||||
|
'' as receiptFiled,-- 电子回单字段
|
||||||
|
COL_SUMMARY.id as summaryId,
|
||||||
|
formmain_0209.field0017||'-'||formson_0210.sort as referenceNum, -- 单据编号
|
||||||
|
formmain_0209.START_DATE as startDate, -- 单据日期
|
||||||
|
formmain_0209.FINISHEDFLAG as finishedflag, -- 流程状态
|
||||||
|
formson_0210.field0073 as payDate, -- 打款日期
|
||||||
|
formson_0210.field0072 as payResult, -- 支付结果
|
||||||
|
REGEXP_REPLACE(formmain_0209.field0042, '[[:space:]]', '') as payAccount, -- 付款账户
|
||||||
|
REGEXP_REPLACE(formmain_0209.field0041, '[[:space:]]', '') as payBankName, -- 付款开户行
|
||||||
|
formson_0210.field0031 as amount, -- 金额
|
||||||
|
formmain_0209.field0038 as purpose, -- 用途
|
||||||
|
formmain_0209.field0038 as cbsAbstract, -- 摘要
|
||||||
|
REGEXP_REPLACE(formson_0210.field0069, '[[:space:]]', '') as revAccount, -- 收款账户
|
||||||
|
formson_0210.field0068 as revBankName, -- 收款开户行
|
||||||
|
'' as revAccountName, -- 收款人
|
||||||
|
REGEXP_REPLACE(formson_0210.field0071, '[[:space:]]', '') as cnapsCode, -- 收款联行号
|
||||||
|
item.showvalue as personalFlag,-- 公私标记
|
||||||
|
'' as revBankType,-- 收款银行类型
|
||||||
|
'10' as currency,-- 币种
|
||||||
|
'' as busType,-- 业务类型
|
||||||
|
'' as receipt -- 电子回单
|
||||||
|
from
|
||||||
|
formson_0210
|
||||||
|
LEFT JOIN formmain_0209 ON formson_0210.FORMMAIN_ID = formmain_0209.id
|
||||||
|
LEFT JOIN COL_SUMMARY ON COL_SUMMARY.FORM_RECORDID = formmain_0209.id
|
||||||
|
LEFT JOIN CTP_AFFAIR ON CTP_AFFAIR.object_id = COL_SUMMARY.id
|
||||||
|
left join CTP_ENUM_ITEM item on item.id =formson_0210.field0070
|
||||||
|
left join ORG_UNIT unit on unit.id =formmain_0209.field0002
|
||||||
|
-- left join V_USER_VIEW_ALL us on us.staffid=formmain_0209.field0024
|
||||||
|
WHERE 1=1
|
||||||
|
-- and formson_0210.field0031>0
|
||||||
|
and CTP_AFFAIR.node_name = '发起者' and CTP_AFFAIR.COMPLETE_TIME is null and CTP_AFFAIR.STATE = 3
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="referenceNum != null and referenceNum !='' "> referenceNum = #{referenceNum} </if>
|
||||||
|
<if test="busType != null and busType !='' "> and busType = #{busType} </if>
|
||||||
|
<if test="amount != null and amount !='' ">and amount = #{amount} </if>
|
||||||
|
<if test="currency != null and currency !='' "> and currency = #{currency} </if>
|
||||||
|
<if test="payAccount != null and payAccount !='' ">and payAccount = #{payAccount} </if>
|
||||||
|
<if test="revAccount != null and revAccount !='' "> and revAccount = #{revAccount} </if>
|
||||||
|
<if test="revAccountName != null and revAccountName !='' "> and revAccountName = #{revAccountName} </if>
|
||||||
|
<if test="revBankType != null and revBankType !='' "> and revBankType = #{revBankType} </if>
|
||||||
|
<if test="revBankName != null and revBankName !='' ">and revBankName = #{revBankName} </if>
|
||||||
|
<if test="cnapsCode != null and cnapsCode !='' ">and cnapsCode = #{cnapsCode} </if>
|
||||||
|
<if test="purpose != null and purpose !='' "> and purpose = #{purpose} </if>
|
||||||
|
<if test="personalFlag != null and personalFlag !='' ">and personalFlag = #{personalFlag} </if>
|
||||||
|
<if test="tableName != null and tableName !='' "> and tableName = #{tableName} </if>
|
||||||
|
<if test="oaId != null and oaId !='' ">and oaId = #{oaId} </if>
|
||||||
|
<if test="payCompany != null and payCompany !='' "> and payCompany = #{payCompany} </if>
|
||||||
|
<if test="payCompanyCode != null and payCompanyCode !='' "> and payCompanyCode = #{payCompanyCode} </if>
|
||||||
|
<if test="title != null and title !='' "> and title = #{title} </if>
|
||||||
|
<if test="billName != null and billName !='' "> and billName = #{billName} </if>
|
||||||
|
<if test="payResult != null and payResult !='' ">and payResult = #{payResult} </if>
|
||||||
|
<if test="payBankName != null and payBankName !='' ">and payBankName = #{payBankName} </if>
|
||||||
|
<if test="payType != null and payType !='' "> and payType = #{payType} </if>
|
||||||
|
<if test="finishedflag != null and finishedflag !='' "> and finishedflag = #{finishedflag} </if>
|
||||||
|
and payResult is null
|
||||||
|
and oaId not in (select field0001 from formmain_1283)
|
||||||
|
and startDate >= #{startDate}
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 查询未完成的 采用==查询 -->
|
||||||
|
<select id="PaymentEntity_list_base_in_payment" resultMap="get-PaymentEntity-result" parameterType="com.hzya.frame.seeyon.cbs8.entity.PaymentEntity">
|
||||||
|
select
|
||||||
|
<include refid="PaymentEntity_Base_Column_List"/>
|
||||||
|
from
|
||||||
|
v_hzya_oa_cbs
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="referenceNum != null and referenceNum !='' "> referenceNum = #{referenceNum} </if>
|
||||||
|
<if test="busType != null and busType !='' "> and busType = #{busType} </if>
|
||||||
|
<if test="amount != null and amount !='' ">and amount = #{amount} </if>
|
||||||
|
<if test="currency != null and currency !='' "> and currency = #{currency} </if>
|
||||||
|
<if test="payAccount != null and payAccount !='' ">and payAccount = #{payAccount} </if>
|
||||||
|
<if test="revAccount != null and revAccount !='' "> and revAccount = #{revAccount} </if>
|
||||||
|
<if test="revAccountName != null and revAccountName !='' "> and revAccountName = #{revAccountName} </if>
|
||||||
|
<if test="revBankType != null and revBankType !='' "> and revBankType = #{revBankType} </if>
|
||||||
|
<if test="revBankName != null and revBankName !='' ">and revBankName = #{revBankName} </if>
|
||||||
|
<if test="cnapsCode != null and cnapsCode !='' ">and cnapsCode = #{cnapsCode} </if>
|
||||||
|
<if test="purpose != null and purpose !='' "> and purpose = #{purpose} </if>
|
||||||
|
<if test="personalFlag != null and personalFlag !='' ">and personalFlag = #{personalFlag} </if>
|
||||||
|
<if test="tableName != null and tableName !='' "> and tableName = #{tableName} </if>
|
||||||
|
<if test="oaId != null and oaId !='' ">and oaId = #{oaId} </if>
|
||||||
|
<if test="payCompany != null and payCompany !='' "> and payCompany = #{payCompany} </if>
|
||||||
|
<if test="payCompanyCode != null and payCompanyCode !='' "> and payCompanyCode = #{payCompanyCode} </if>
|
||||||
|
<if test="title != null and title !='' "> and title = #{title} </if>
|
||||||
|
<if test="billName != null and billName !='' "> and billName = #{billName} </if>
|
||||||
|
<if test="payResult != null and payResult !='' ">and payResult = #{payResult} </if>
|
||||||
|
<if test="payBankName != null and payBankName !='' ">and payBankName = #{payBankName} </if>
|
||||||
|
<if test="payType != null and payType !='' "> and payType = #{payType} </if>
|
||||||
|
and (payResult='支付中'
|
||||||
|
or payResult not in ('审批撤销','审批拒绝','处理失败','退票','支付成功','取消支付','修改支付','支付失败'))
|
||||||
|
and personalFlag='0'
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--修改视图支付状态-->
|
||||||
|
<update id="PaymentEntity_update_payState" parameterType="com.hzya.frame.seeyon.cbs8.entity.PaymentEntity">
|
||||||
|
update ${tableName} set
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="payDate != null and payDate !='' ">${payDateField} =#{payDate},</if>
|
||||||
|
<if test="payResult != null and payResult !='' ">${payResultField} =#{payResult}</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{oaId}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<!--修改电子回单-->
|
||||||
|
<update id="PaymentEntity_update_electronic" parameterType="com.hzya.frame.seeyon.cbs8.entity.PaymentEntity">
|
||||||
|
update ${tableName} set ${receiptFiled}=#{receipt} where id = #{oaId} and ${receiptFiled} is null
|
||||||
|
</update>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.service;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description OA代发代扣
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/18 15:04
|
||||||
|
**/
|
||||||
|
public interface IAgentPaymentService extends IBaseService<AgentPaymentEntity,String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询待支付待代发代扣 主表
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
List<AgentPaymentEntity> queryUnpaid(AgentPaymentEntity entity) throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询明细表
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
List<AgentPaymentDetailEntity> queryDetails(AgentPaymentDetailEntity entity)throws Exception;
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description cbs8支付日志
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/14 17:22
|
||||||
|
**/
|
||||||
|
public interface ICbsLogService extends IBaseService<CbsLogEntity,String> {
|
||||||
|
/**
|
||||||
|
* 查询支付中的数据
|
||||||
|
* @param logEntity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<CbsLogEntity> queryInPayment(CbsLogEntity logEntity);
|
||||||
|
/**
|
||||||
|
* 保存日志,通过rest接口的形式
|
||||||
|
* @param logEntity
|
||||||
|
*/
|
||||||
|
void saveLog(CbsLogEntity logEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补推,从自己开发的页面或者APIpost
|
||||||
|
* 需要传oa表单id和表单编号
|
||||||
|
* @param entity
|
||||||
|
*/
|
||||||
|
void retry(CbsLogEntity entity);
|
||||||
|
/**
|
||||||
|
* 补推,从OA页面
|
||||||
|
* 只需要传日志表id就行
|
||||||
|
* @param jsonObject
|
||||||
|
*/
|
||||||
|
void resend(JSONObject jsonObject);
|
||||||
|
}
|
|
@ -0,0 +1,63 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.service;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description oa对接cbs
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/6 16:31
|
||||||
|
**/
|
||||||
|
public interface IPaymentService extends IBaseService<PaymentEntity,String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询待支付的数据 需要推送到CBS的
|
||||||
|
* 如果需要查询流程状态已结束的 需要调用方设置finishedflag=1
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
List<PaymentEntity> queryUnpaid(PaymentEntity entity)throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询交易成功的数据
|
||||||
|
* 内置了查询条件payResult = PayState.payStateGetValue("g"); 支付成功
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
List<PaymentEntity> querySuccess(PaymentEntity entity)throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询交易成功,且电子回单为空的
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
List<PaymentEntity> queryElecIsNull(PaymentEntity entity)throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询支付中的数据
|
||||||
|
* 内置了查询条件 payResult = '支付中' or payResult not in ('审批撤销','审批拒绝','处理失败','退票','支付成功','取消支付','修改支付','支付失败')
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
List<PaymentEntity> queryInPayment(PaymentEntity entity)throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新支付状态
|
||||||
|
* @param entity
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
void updatePayState(PaymentEntity entity)throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新电子回单字段
|
||||||
|
* @param entity
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
void updateElec(PaymentEntity entity)throws Exception;
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.service.impl;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.service.IAgentPaymentService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/18 15:06
|
||||||
|
**/
|
||||||
|
@Service(value = "cbs8AgentPaymentServiceImpl")
|
||||||
|
public class AgentPaymentServiceImpl extends BaseService<AgentPaymentEntity,String> implements IAgentPaymentService {
|
||||||
|
/**
|
||||||
|
* 查询待支付待代发代扣 主表
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<AgentPaymentEntity> queryUnpaid(AgentPaymentEntity entity) throws Exception {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询明细表
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<AgentPaymentDetailEntity> queryDetails(AgentPaymentDetailEntity entity) throws Exception {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,102 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.cbs8.util.PayState;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.dao.ICbsLogDao;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.service.ICbsLogService;
|
||||||
|
import com.hzya.frame.web.exception.BaseSystemException;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description cbs8支付日志
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/14 17:22
|
||||||
|
**/
|
||||||
|
@Service()
|
||||||
|
public class CbsLogServiceImpl extends BaseService<CbsLogEntity,String> implements ICbsLogService {
|
||||||
|
|
||||||
|
Logger log = LoggerFactory.getLogger(getClass());
|
||||||
|
|
||||||
|
private ICbsLogDao cbsLogDao;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setCbsLogDao(ICbsLogDao cbsLogDao) {
|
||||||
|
this.cbsLogDao = cbsLogDao;
|
||||||
|
this.dao = cbsLogDao;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询支付中的数据
|
||||||
|
*
|
||||||
|
* @param logEntity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<CbsLogEntity> queryInPayment(CbsLogEntity logEntity) {
|
||||||
|
List<CbsLogEntity> logList = cbsLogDao.queryList(logEntity, "CbsLogEntity_list_base_in_payment");
|
||||||
|
return logList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存日志,通过rest接口的形式
|
||||||
|
*
|
||||||
|
* @param logEntity
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void saveLog(CbsLogEntity logEntity) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补推,从自己开发的页面或者APIpost
|
||||||
|
* 需要传oa表单id和表单编号
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void retry(CbsLogEntity entity) {
|
||||||
|
PaymentEntity paymentEntity = new PaymentEntity();
|
||||||
|
paymentEntity.setOaId(entity.getOa_id());
|
||||||
|
paymentEntity.setReferenceNum(entity.getBill_code());
|
||||||
|
CbsLogEntity logEntity = new CbsLogEntity();
|
||||||
|
logEntity.setId(entity.getId());
|
||||||
|
logEntity = cbsLogDao.queryOne(logEntity);
|
||||||
|
String pay_state = logEntity.getPay_state();
|
||||||
|
if (PayState.h.getValue().equals(pay_state)
|
||||||
|
|| PayState.three.getValue().equals(pay_state)
|
||||||
|
|| PayState.k.getValue().equals(pay_state)
|
||||||
|
|| "推送失败".equals(pay_state)){
|
||||||
|
//todo 调用重试方法
|
||||||
|
}else {
|
||||||
|
throw new BaseSystemException("只允许补推支付失败的记录");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补推,从OA页面
|
||||||
|
* 只需要传日志表id就行
|
||||||
|
*
|
||||||
|
* @param jsonObject
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void resend(JSONObject jsonObject) {
|
||||||
|
if (null != jsonObject && StrUtil.isNotEmpty(jsonObject.getString("id"))){
|
||||||
|
String id = jsonObject.getString("id");
|
||||||
|
CbsLogEntity cbsLogEntity = new CbsLogEntity();
|
||||||
|
cbsLogEntity.setId(id);
|
||||||
|
cbsLogEntity =cbsLogDao.queryOne(cbsLogEntity);
|
||||||
|
if (null != cbsLogEntity && StrUtil.isNotEmpty(cbsLogEntity.getOa_id()) && StrUtil.isNotEmpty(cbsLogEntity.getBill_code())){
|
||||||
|
retry(cbsLogEntity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,112 @@
|
||||||
|
package com.hzya.frame.seeyon.cbs8.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.dao.IPaymentDao;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||||
|
import com.hzya.frame.seeyon.cbs8.service.IPaymentService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/6 16:34
|
||||||
|
**/
|
||||||
|
@Service("OAPaymentServiceImpl")
|
||||||
|
public class PaymentServiceImpl extends BaseService<PaymentEntity,String> implements IPaymentService {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private IPaymentDao paymentDao;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setPaymentDao(IPaymentDao paymentDao) {
|
||||||
|
this.paymentDao = paymentDao;
|
||||||
|
this.dao = paymentDao;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 查询待支付的数据 需要推送到CBS的
|
||||||
|
* 如果需要查询流程状态已结束的 需要调用方设置finishedflag=1
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<PaymentEntity> queryUnpaid(PaymentEntity entity) throws Exception {
|
||||||
|
List<PaymentEntity> list = paymentDao.queryList(entity, "com.hzya.frame.seeyon.cbs8.entity.PaymentEntity.PaymentEntity_list_base_unpaid");
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询交易成功的数据
|
||||||
|
* 内置了查询条件payResult = PayState.payStateGetValue("g"); 支付成功
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<PaymentEntity> querySuccess(PaymentEntity entity) throws Exception {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询交易成功,且电子回单为空的
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<PaymentEntity> queryElecIsNull(PaymentEntity entity) throws Exception {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询支付中的数据
|
||||||
|
* 内置了查询条件 payResult = '支付中' or payResult not in ('审批撤销','审批拒绝','处理失败','退票','支付成功','取消支付','修改支付','支付失败')
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<PaymentEntity> queryInPayment(PaymentEntity entity) throws Exception {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新支付状态
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public void updatePayState(PaymentEntity entity) throws Exception {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新电子回单字段
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public void updateElec(PaymentEntity entity) throws Exception {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -8,14 +8,14 @@ import java.util.List;
|
||||||
|
|
||||||
public interface ICtpAttachmentDao extends IBaseDao<CtpAttachmentEntity,String> {
|
public interface ICtpAttachmentDao extends IBaseDao<CtpAttachmentEntity,String> {
|
||||||
//更新数据
|
//更新数据
|
||||||
@DS("ht_oa_sqlserver")
|
@DS("#ctpAttachmentEntity.dataSourceCode")
|
||||||
int updateCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity);
|
int updateCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity);
|
||||||
|
|
||||||
//根据fiel_url查询附件业务记录,如果存在则更新,如果不存在则新增
|
//根据fiel_url查询附件业务记录,如果存在则更新,如果不存在则新增
|
||||||
@DS("ht_oa_sqlserver")
|
@DS("#ctpAttachmentEntity.dataSourceCode")
|
||||||
List<CtpAttachmentEntity> queryCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity);
|
List<CtpAttachmentEntity> queryCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity);
|
||||||
|
|
||||||
//新增
|
//新增
|
||||||
@DS("ht_oa_sqlserver")
|
@DS("#ctpAttachmentEntity.dataSourceCode")
|
||||||
CtpAttachmentEntity saveCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity);
|
CtpAttachmentEntity saveCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.hzya.frame.seeyon.dao;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.seeyon.entity.CtpFileEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description seeyon 附件对象
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/17 15:21
|
||||||
|
**/
|
||||||
|
public interface ICtpFileDao extends IBaseDao<CtpFileEntity,String> {
|
||||||
|
}
|
|
@ -11,19 +11,19 @@ import java.util.List;
|
||||||
@Repository(value = "ctpAttachmentDaoImpl")
|
@Repository(value = "ctpAttachmentDaoImpl")
|
||||||
public class
|
public class
|
||||||
CtpAttachmentDaoImpl extends MybatisGenericDao<CtpAttachmentEntity,String> implements ICtpAttachmentDao {
|
CtpAttachmentDaoImpl extends MybatisGenericDao<CtpAttachmentEntity,String> implements ICtpAttachmentDao {
|
||||||
@DS("ht_oa_sqlserver")
|
@DS("#ctpAttachmentEntity.dataSourceCode")
|
||||||
@Override
|
@Override
|
||||||
public int updateCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity) {
|
public int updateCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity) {
|
||||||
return super.update("com.hzya.frame.seeyon.dao.impl.CtpAttachmentDaoImpl.entity_update",ctpAttachmentEntity);
|
return super.update("com.hzya.frame.seeyon.dao.impl.CtpAttachmentDaoImpl.entity_update",ctpAttachmentEntity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@DS("ht_oa_sqlserver")
|
@DS("#ctpAttachmentEntity.dataSourceCode")
|
||||||
@Override
|
@Override
|
||||||
public List<CtpAttachmentEntity> queryCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity) {
|
public List<CtpAttachmentEntity> queryCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity) {
|
||||||
return (List<CtpAttachmentEntity>) super.selectList("com.hzya.frame.seeyon.dao.impl.CtpAttachmentDaoImpl.entity_list_base",ctpAttachmentEntity);
|
return (List<CtpAttachmentEntity>) super.selectList("com.hzya.frame.seeyon.dao.impl.CtpAttachmentDaoImpl.entity_list_base",ctpAttachmentEntity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@DS("ht_oa_sqlserver")
|
@DS("#ctpAttachmentEntity.dataSourceCode")
|
||||||
@Override
|
@Override
|
||||||
public CtpAttachmentEntity saveCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity) {
|
public CtpAttachmentEntity saveCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity) {
|
||||||
return super.save("com.hzya.frame.seeyon.dao.impl.CtpAttachmentDaoImpl.entity_insert",ctpAttachmentEntity);
|
return super.save("com.hzya.frame.seeyon.dao.impl.CtpAttachmentDaoImpl.entity_insert",ctpAttachmentEntity);
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.hzya.frame.seeyon.dao.impl;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.seeyon.dao.ICtpAttachmentDao;
|
||||||
|
import com.hzya.frame.seeyon.dao.ICtpFileDao;
|
||||||
|
import com.hzya.frame.seeyon.entity.CtpAttachmentEntity;
|
||||||
|
import com.hzya.frame.seeyon.entity.CtpFileEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/17 15:22
|
||||||
|
**/
|
||||||
|
@Repository()
|
||||||
|
public class CtpFileDaoImpl extends MybatisGenericDao<CtpFileEntity,String> implements ICtpFileDao {
|
||||||
|
}
|
|
@ -0,0 +1,113 @@
|
||||||
|
package com.hzya.frame.seeyon.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description OA附件表
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2021/10/29 08:56
|
||||||
|
**/
|
||||||
|
public class CtpFileEntity extends BaseEntity {
|
||||||
|
private String category;//应用类别
|
||||||
|
private String type;//类型
|
||||||
|
private String filename;//文件名
|
||||||
|
private String mime_type;//文件类型
|
||||||
|
private String create_date;
|
||||||
|
private String create_member;
|
||||||
|
private String file_size;//大小
|
||||||
|
private String description;//描述
|
||||||
|
private String update_date;
|
||||||
|
private String account_id;
|
||||||
|
|
||||||
|
|
||||||
|
private File file;//临时用
|
||||||
|
public String getCategory() {
|
||||||
|
return category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategory(String category) {
|
||||||
|
this.category = category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFilename() {
|
||||||
|
return filename;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFilename(String filename) {
|
||||||
|
this.filename = filename;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMime_type() {
|
||||||
|
return mime_type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMime_type(String mime_type) {
|
||||||
|
this.mime_type = mime_type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreate_date() {
|
||||||
|
return create_date;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreate_date(String create_date) {
|
||||||
|
this.create_date = create_date;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreate_member() {
|
||||||
|
return create_member;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreate_member(String create_member) {
|
||||||
|
this.create_member = create_member;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFile_size() {
|
||||||
|
return file_size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFile_size(String file_size) {
|
||||||
|
this.file_size = file_size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(String description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdate_date() {
|
||||||
|
return update_date;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdate_date(String update_date) {
|
||||||
|
this.update_date = update_date;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAccount_id() {
|
||||||
|
return account_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccount_id(String account_id) {
|
||||||
|
this.account_id = account_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public File getFile() {
|
||||||
|
return file;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFile(File file) {
|
||||||
|
this.file = file;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.seeyon.entity.CtpFileEntity">
|
||||||
|
<resultMap id="get-CtpFileEntity-result" type="com.hzya.frame.seeyon.entity.CtpFileEntity">
|
||||||
|
<!--主键 -->
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="category" column="category" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="filename" column="filename" />
|
||||||
|
<result property="mime_type" column="mime_type" />
|
||||||
|
<result property="create_date" column="create_date" />
|
||||||
|
<result property="create_member" column="create_member" />
|
||||||
|
<result property="file_size" column="file_size" />
|
||||||
|
<result property="description" column="description" />
|
||||||
|
<result property="update_date" column="update_date" />
|
||||||
|
<result property="account_id" column="account_id" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<sql id="CtpFileEntity_sql">
|
||||||
|
id,
|
||||||
|
category,
|
||||||
|
type,
|
||||||
|
filename,
|
||||||
|
mime_type,
|
||||||
|
create_date,
|
||||||
|
create_member,
|
||||||
|
file_size,
|
||||||
|
description,
|
||||||
|
update_date,
|
||||||
|
account_id
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 查询 采用==查询 -->
|
||||||
|
<select id="CtpFileEntity_list_base" resultMap="get-CtpFileEntity-result" parameterType="com.hzya.frame.seeyon.entity.CtpFileEntity">
|
||||||
|
select
|
||||||
|
<include refid="CtpFileEntity_sql"/>
|
||||||
|
from
|
||||||
|
ctp_file
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="id != null and id != ''">id = #{id}</if>
|
||||||
|
<if test="filename != null and filename != ''">and filename = #{filename}</if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,20 @@
|
||||||
|
package com.hzya.frame.seeyon.service;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.seeyon.entity.CtpAttachmentEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description seeyon 附件关系
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/17 15:30
|
||||||
|
**/
|
||||||
|
public interface ICtpAttachmentService extends IBaseService<CtpAttachmentEntity, String> {
|
||||||
|
/**
|
||||||
|
* 保存附件关系表
|
||||||
|
* @param fileUrl ctp_file id
|
||||||
|
* @param col_summary_id col_summary id
|
||||||
|
* @param sub_reference 随机uuid
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
CtpAttachmentEntity saveAttachment(String fileUrl, String col_summary_id, String sub_reference)throws Exception;
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.hzya.frame.seeyon.service;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.seeyon.entity.CtpFileEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description seeyon 附件
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/17 15:23
|
||||||
|
**/
|
||||||
|
public interface ICtpFileService extends IBaseService<CtpFileEntity, String> {
|
||||||
|
}
|
|
@ -55,6 +55,4 @@ public interface ISeeYonInterFace {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
JsonResultEntity thirdInterfaceSeeYonDefinitionRePush(JSONObject jsonObject) throws Exception;
|
JsonResultEntity thirdInterfaceSeeYonDefinitionRePush(JSONObject jsonObject) throws Exception;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,70 @@
|
||||||
|
package com.hzya.frame.seeyon.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.seeyon.dao.ICtpAttachmentDao;
|
||||||
|
import com.hzya.frame.seeyon.entity.CtpAttachmentEntity;
|
||||||
|
import com.hzya.frame.seeyon.entity.CtpFileEntity;
|
||||||
|
import com.hzya.frame.seeyon.service.ICtpAttachmentService;
|
||||||
|
import com.hzya.frame.seeyon.service.ICtpFileService;
|
||||||
|
import com.hzya.frame.uuid.UUIDLong;
|
||||||
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/17 15:31
|
||||||
|
**/
|
||||||
|
@Service(value = "ctpAttachmentService")
|
||||||
|
public class CtpAttachmentServiceImpl extends BaseService<CtpAttachmentEntity, String> implements ICtpAttachmentService {
|
||||||
|
|
||||||
|
private ICtpAttachmentDao ctpAttachmentDao;
|
||||||
|
@Autowired
|
||||||
|
private ICtpFileService ctpFileService;
|
||||||
|
@Autowired
|
||||||
|
public void setCtpAttachmentDao(ICtpAttachmentDao dao) {
|
||||||
|
this.ctpAttachmentDao = dao;
|
||||||
|
this.dao = dao;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存附件关系表
|
||||||
|
*
|
||||||
|
* @param fileUrl ctp_file id
|
||||||
|
* @param col_summary_id col_summary id
|
||||||
|
* @param sub_reference 随机uuid
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CtpAttachmentEntity saveAttachment(String fileUrl, String col_summary_id, String sub_reference)throws Exception {
|
||||||
|
//查一下附件
|
||||||
|
CtpFileEntity ctpFileEntity = new CtpFileEntity();
|
||||||
|
ctpFileEntity.setId(fileUrl);
|
||||||
|
ctpFileEntity.setDataSourceCode("");
|
||||||
|
List<CtpFileEntity> ctpFileList = ctpFileService.query(ctpFileEntity);
|
||||||
|
if (CollectionUtils.isNotEmpty(ctpFileList)){
|
||||||
|
CtpFileEntity ctpFile = ctpFileList.get(0);
|
||||||
|
if (null != ctpFile){
|
||||||
|
CtpAttachmentEntity ctpAttachmentEntity = new CtpAttachmentEntity();
|
||||||
|
ctpAttachmentEntity.setId(String.valueOf(UUIDLong.longUUID()));
|
||||||
|
ctpAttachmentEntity.setFile_url(ctpFile.getId());//ctp_file表的id
|
||||||
|
ctpAttachmentEntity.setAtt_reference(col_summary_id);//业务表单的id
|
||||||
|
ctpAttachmentEntity.setSub_reference(sub_reference);//这个字段要保存到业务表附件到字段上
|
||||||
|
ctpAttachmentEntity.setCategory("66");//这里写66 才可以显示图片
|
||||||
|
ctpAttachmentEntity.setFilename(ctpFile.getFilename());
|
||||||
|
ctpAttachmentEntity.setType(ctpFile.getType());
|
||||||
|
ctpAttachmentEntity.setMime_type(ctpFile.getMime_type());
|
||||||
|
ctpAttachmentEntity.setAttachment_size(ctpFile.getFile_size());
|
||||||
|
ctpAttachmentEntity.setCreatedate(new Date());
|
||||||
|
this.save(ctpAttachmentEntity);
|
||||||
|
return ctpAttachmentEntity;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package com.hzya.frame.seeyon.service.impl;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.seeyon.entity.CtpFileEntity;
|
||||||
|
import com.hzya.frame.seeyon.service.ICtpFileService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/17 15:24
|
||||||
|
**/
|
||||||
|
@Service()
|
||||||
|
public class CtpFileServiceImpl extends BaseService<CtpFileEntity, String> implements ICtpFileService {
|
||||||
|
}
|
|
@ -0,0 +1,127 @@
|
||||||
|
package com.hzya.frame.seeyon.util;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import cn.hutool.http.HttpRequest;
|
||||||
|
import cn.hutool.http.HttpUtil;
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.seeyon.entity.CtpFileEntity;
|
||||||
|
import com.hzya.frame.sysnew.application.api.entity.SysApplicationApiEntity;
|
||||||
|
import com.hzya.frame.sysnew.application.api.service.ISysApplicationApiService;
|
||||||
|
import com.hzya.frame.web.exception.BaseSystemException;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.util.HashMap;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 致远rest接口工具类
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/6/17 15:49
|
||||||
|
**/
|
||||||
|
@Component
|
||||||
|
public class RestUtil {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ISysApplicationApiService sysApplicationApiService;
|
||||||
|
static Logger logger = LoggerFactory.getLogger(RestUtil.class);
|
||||||
|
|
||||||
|
private RestUtil() {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 附件上传
|
||||||
|
* @param file 附件对象
|
||||||
|
* @param api_code 接口编码
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public JSONObject fileUpload(File file,String api_code) {
|
||||||
|
if (StrUtil.isNotEmpty(api_code)){
|
||||||
|
//1、查询附件上传api接口信息
|
||||||
|
SysApplicationApiEntity sysApp = getByCode(api_code);
|
||||||
|
if (null != sysApp){
|
||||||
|
String app_url = sysApp.getAppUrl();
|
||||||
|
String url = app_url+"/seeyon/rest/attachment?token=@token@";
|
||||||
|
String token = getToken(null,"8000240000");
|
||||||
|
url = url.replaceAll("@token@",token);
|
||||||
|
HashMap<String, Object> paramMap = new HashMap<>();
|
||||||
|
paramMap.put("file", file);
|
||||||
|
String result = HttpUtil.post(url, paramMap);
|
||||||
|
if (StrUtil.isNotBlank(result)) {
|
||||||
|
logger.info("附件上传结果"+result);
|
||||||
|
JSONObject jsonObject = JSONObject.parseObject(result);
|
||||||
|
String atts = jsonObject.get("atts").toString();
|
||||||
|
if (StrUtil.isNotEmpty(atts)) {
|
||||||
|
JSONArray jsonArray = JSONArray.parseArray(atts);
|
||||||
|
JSONObject res = (JSONObject) jsonArray.get(0);
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
throw new BaseSystemException("api_code不能为空");
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取token
|
||||||
|
* @param login_name
|
||||||
|
* @param api_code
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public String getToken(String login_name,String api_code){
|
||||||
|
if (StrUtil.isNotEmpty(api_code)){
|
||||||
|
SysApplicationApiEntity sysApp = getByCode(api_code);
|
||||||
|
if (null != sysApp){
|
||||||
|
HashMap<String, String> hashMap = new HashMap<>();
|
||||||
|
String app_url = sysApp.getAppUrl();
|
||||||
|
String url = app_url+"/seeyon/rest/token";
|
||||||
|
String headerIn = sysApp.getHeaderIn();
|
||||||
|
JSONArray headers = JSON.parseArray(headerIn);
|
||||||
|
for (int i = 0; i < headers.size(); i++) {
|
||||||
|
JSONObject object1 = headers.getJSONObject(i);
|
||||||
|
String parameterName = object1.getString("parameterName");
|
||||||
|
if ("userName".equals(parameterName) || "password".equals(parameterName) || "loginName".equals(parameterName)){
|
||||||
|
String example = object1.getString("example");
|
||||||
|
hashMap.put(parameterName,example);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (StrUtil.isNotEmpty(login_name)){
|
||||||
|
hashMap.put("loginName",login_name);
|
||||||
|
}
|
||||||
|
String result = HttpRequest.post(url).body(JSON.toJSONString(hashMap)).execute().body();
|
||||||
|
JSONObject jsonObject = JSONObject.parseObject(result);
|
||||||
|
if (null != jsonObject) {
|
||||||
|
logger.info("======token:{}======" ,jsonObject.getString("id"));
|
||||||
|
return jsonObject.getString("id");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
throw new BaseSystemException("api_code不能为空");
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
private SysApplicationApiEntity getByCode(String api_code){
|
||||||
|
if (StrUtil.isNotEmpty(api_code)){
|
||||||
|
SysApplicationApiEntity sysApp = new SysApplicationApiEntity();
|
||||||
|
sysApp.setApiCode(Long.valueOf(api_code));
|
||||||
|
sysApp = sysApplicationApiService.queryOne(sysApp);
|
||||||
|
if (null != sysApp && StrUtil.isNotEmpty(sysApp.getId())){
|
||||||
|
sysApp = sysApplicationApiService.get(sysApp.getId());
|
||||||
|
if (null != sysApp){
|
||||||
|
return sysApp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
throw new BaseSystemException("api_code不能为空");
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -56,7 +56,7 @@
|
||||||
<include refid="FileDownloadEntity_Base_Column_List" />
|
<include refid="FileDownloadEntity_Base_Column_List" />
|
||||||
from sys_file
|
from sys_file
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="id != null ">id=#{id}</if>
|
<if test="id != null and id !='' ">id=#{id}</if>
|
||||||
<if test="filename != null and filename !='' "> and filename = #{filename}</if>
|
<if test="filename != null and filename !='' "> and filename = #{filename}</if>
|
||||||
<if test="filesavename != null and filesavename !='' "> and filesavename = #{filesavename}</if>
|
<if test="filesavename != null and filesavename !='' "> and filesavename = #{filesavename}</if>
|
||||||
<if test="type != null and type !='' "> and type = #{type}</if>
|
<if test="type != null and type !='' "> and type = #{type}</if>
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.hzya.frame.sysnew.comparison.masterData.dao;
|
||||||
|
|
||||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
import com.hzya.frame.basedao.service.IBaseService;
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity;
|
||||||
import com.hzya.frame.sysnew.comparison.entity.ComparisonEntity;
|
import com.hzya.frame.sysnew.comparison.entity.ComparisonEntity;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -20,4 +21,5 @@ public interface IMasterDataDao extends IBaseService<ComparisonEntity, String> {
|
||||||
* **/
|
* **/
|
||||||
@DS("swu8c")
|
@DS("swu8c")
|
||||||
List<HashMap<String, Object>> queryArchives(String str);
|
List<HashMap<String, Object>> queryArchives(String str);
|
||||||
|
List<HashMap<String, Object>> queryArchivesByDataSource(String str , MdmModuleSourceEntity entity);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ package com.hzya.frame.sysnew.comparison.masterData.dao.impl;
|
||||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
import com.hzya.frame.execsql.service.IExecSqlService;
|
import com.hzya.frame.execsql.service.IExecSqlService;
|
||||||
|
import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity;
|
||||||
import com.hzya.frame.sysnew.comparison.entity.ComparisonEntity;
|
import com.hzya.frame.sysnew.comparison.entity.ComparisonEntity;
|
||||||
import com.hzya.frame.sysnew.comparison.masterData.dao.IMasterDataDao;
|
import com.hzya.frame.sysnew.comparison.masterData.dao.IMasterDataDao;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -28,4 +29,15 @@ public class MasterDataDaoImpl extends BaseService<ComparisonEntity, String> imp
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<HashMap<String, Object>> queryArchivesByDataSource(String str, MdmModuleSourceEntity entity) {
|
||||||
|
try {
|
||||||
|
List<HashMap<String, Object>> hashMaps = execSqlService.execSelectSql(str, "");
|
||||||
|
return hashMaps;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("U8C主数据档案用户档案没有需要同步中台的数据");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,24 @@ public class VoucherDetails {
|
||||||
private String localdebitamount;
|
private String localdebitamount;
|
||||||
private String pk_accsubj;
|
private String pk_accsubj;
|
||||||
private String pk_currtype;
|
private String pk_currtype;
|
||||||
|
private String debitquantity;
|
||||||
|
private String price;
|
||||||
|
|
||||||
|
public String getDebitquantity() {
|
||||||
|
return debitquantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDebitquantity(String debitquantity) {
|
||||||
|
this.debitquantity = debitquantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPrice() {
|
||||||
|
return price;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrice(String price) {
|
||||||
|
this.price = price;
|
||||||
|
}
|
||||||
|
|
||||||
public List<Ass> getAss() {
|
public List<Ass> getAss() {
|
||||||
return ass;
|
return ass;
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
||||||
|
version="4.0">
|
||||||
|
</web-app>
|
|
@ -1,4 +1,5 @@
|
||||||
package com.hzya.frame.webapp.web.init;
|
package com.hzya.frame.webapp.web.init;
|
||||||
|
import com.baomidou.dynamic.datasource.DynamicRoutingDataSource;
|
||||||
import com.hzya.frame.util.AESUtil;
|
import com.hzya.frame.util.AESUtil;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.flywaydb.core.Flyway;
|
import org.flywaydb.core.Flyway;
|
||||||
|
@ -7,10 +8,12 @@ import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
import javax.annotation.PostConstruct;
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
@Configuration
|
//@Configuration
|
||||||
@RequiredArgsConstructor
|
//@RequiredArgsConstructor
|
||||||
@EnableTransactionManagement
|
//@EnableTransactionManagement
|
||||||
public class FlywayConfig {
|
public class FlywayConfig {
|
||||||
|
|
||||||
@Value("${spring.flyway.enabled}")
|
@Value("${spring.flyway.enabled}")
|
||||||
|
@ -39,13 +42,21 @@ public class FlywayConfig {
|
||||||
private String username;
|
private String username;
|
||||||
@Value("${spring.datasource.dynamic.datasource.master.password}")
|
@Value("${spring.datasource.dynamic.datasource.master.password}")
|
||||||
private String password;
|
private String password;
|
||||||
|
@Resource
|
||||||
|
private DataSource dataSource;
|
||||||
|
|
||||||
@PostConstruct
|
|
||||||
|
//@PostConstruct
|
||||||
public void migrateOrder() {
|
public void migrateOrder() {
|
||||||
String pwd = AESUtil.decrypt(password);
|
String pwd = AESUtil.decrypt(password);
|
||||||
|
DynamicRoutingDataSource ds = (DynamicRoutingDataSource) dataSource;
|
||||||
|
DataSource dsDatasource = null;
|
||||||
|
|
||||||
|
dsDatasource = ds.getDataSource("master");
|
||||||
// 将路径转换
|
// 将路径转换
|
||||||
Flyway flyway = Flyway.configure()
|
Flyway flyway = Flyway.configure()
|
||||||
.dataSource(url,username,pwd)
|
//.dataSource(url,username,pwd)
|
||||||
|
.dataSource(dsDatasource)
|
||||||
.cleanDisabled(cleanDisabled)
|
.cleanDisabled(cleanDisabled)
|
||||||
.locations(locations)
|
.locations(locations)
|
||||||
.table(table)
|
.table(table)
|
||||||
|
|
Loading…
Reference in New Issue