修改结构
This commit is contained in:
parent
504c9e54c0
commit
cb58463319
|
@ -17,88 +17,27 @@
|
|||
<artifactId>webapp</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<!-- <!– 淘宝奇门sdk–>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.reabam.sdk</groupId>-->
|
||||
<!-- <artifactId>reabam-sdk-java</artifactId>-->
|
||||
<!-- <version>1.0</version>-->
|
||||
<!-- <scope>system</scope>-->
|
||||
<!-- <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/openapi-sdk-1.0.0.jar</systemPath>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.taobao.qmsdk</groupId>-->
|
||||
<!-- <artifactId>taobao-sdk-java-auto</artifactId>-->
|
||||
<!-- <version>1.1</version>-->
|
||||
<!-- <scope>system</scope>-->
|
||||
<!-- <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/taobao-sdk-java-auto-1.1.jar</systemPath>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
</dependencies>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>local</id> <!--本地环境-->
|
||||
<properties>
|
||||
<profile.active>local</profile.active>
|
||||
</properties>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>dev</id> <!--开发环境-->
|
||||
<properties>
|
||||
<profile.active>dev</profile.active>
|
||||
</properties>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>ax</id> <!--澳星-->
|
||||
<properties>
|
||||
<profile.active>ax</profile.active>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>hclocal</id> <!--何灿-->
|
||||
<properties>
|
||||
<profile.active>hclocal</profile.active>
|
||||
</properties>
|
||||
</profile>
|
||||
|
||||
|
||||
<profile>
|
||||
<id>llg</id> <!--吕磊钢-->
|
||||
<properties>
|
||||
<profile.active>llg</profile.active>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>zqtlocal</id> <!--曾庆拓-->
|
||||
<properties>
|
||||
<profile.active>zqtlocal</profile.active>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>yuqh</id> <!--于群辉-->
|
||||
<properties>
|
||||
<profile.active>yuqh</profile.active>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>xel</id> <!--相二林-->
|
||||
<properties>
|
||||
<profile.active>xel</profile.active>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>ydc</id> <!--英德赛-->
|
||||
<properties>
|
||||
<profile.active>ydc</profile.active>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>yc</id> <!--越城区-->
|
||||
<properties>
|
||||
<profile.active>yc</profile.active>
|
||||
</properties>
|
||||
</profile>
|
||||
|
||||
</profiles>
|
||||
<build>
|
||||
<finalName>kangarooDataCenterV3</finalName>
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
package com.hzya.frame.plugin.a8bill.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.plugin.a8bill.entity.PayBillEntity;
|
||||
|
||||
/**
|
||||
* 组织档案(mdm_org: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-07 18:30:04
|
||||
*/
|
||||
public interface IPayBillDao extends IBaseDao<PayBillEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
package com.hzya.frame.plugin.a8bill.dao.impl;
|
||||
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.plugin.a8bill.dao.IPayBillDao;
|
||||
import com.hzya.frame.plugin.a8bill.entity.PayBillEntity;
|
||||
|
||||
/**
|
||||
* 组织档案(MdmOrg)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-07 18:30:04
|
||||
*/
|
||||
public class PayBillDaoImpl extends MybatisGenericDao<PayBillEntity, String> implements IPayBillDao {
|
||||
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
package com.hzya.frame.plugin.a8bill.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* 付款单
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-07 18:30:04
|
||||
*/
|
||||
public class PayBillEntity extends BaseEntity {
|
||||
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
<?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.plugin.a8bill.dao.impl.PayBillDaoImpl">
|
||||
|
||||
<resultMap id="get-PayBillEntity-result" type="com.hzya.frame.plugin.a8bill.entity.PayBillEntity" >
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "PayBillEntity_Base_Column_List">
|
||||
id
|
||||
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
package com.hzya.frame.plugin.a8bill.plugin;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
|
||||
import com.hzya.frame.seeyon.paybill.service.IPayBillService;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
/**
|
||||
* 付款单(PayBill)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-07 18:30:05
|
||||
*/
|
||||
public class PayBillPluginInitializer extends PluginBaseEntity{
|
||||
Logger logger = LoggerFactory.getLogger(PayBillPluginInitializer.class);
|
||||
@Autowired
|
||||
private IPayBillService payBillService;
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginId() {
|
||||
return "PayBillPlugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginName() {
|
||||
return "PayBillPlugin插件";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginLabel() {
|
||||
return "PayBillPlugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginType() {
|
||||
return "1";
|
||||
}
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) {
|
||||
try {
|
||||
logger.info("======开始执行付款单据信息同步========");
|
||||
return payBillService.sendEngineerPayBillToBip(requestJson);
|
||||
}catch (Exception e){
|
||||
logger.info("======执行付款单据同步失败:{}========",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package com.hzya.frame.plugin.a8bill.plugin;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.seeyon.paybill.service.IPayBillService;
|
||||
import com.hzya.frame.seeyon.recbill.service.IRecBillService;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
/**
|
||||
* 收款单(RecBill)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-07 18:30:05
|
||||
*/
|
||||
public class RecBillPluginInitializer extends PluginBaseEntity{
|
||||
Logger logger = LoggerFactory.getLogger(RecBillPluginInitializer.class);
|
||||
@Autowired
|
||||
private IRecBillService recBillService;
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginId() {
|
||||
return "RecBillPluginInitializer";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginName() {
|
||||
return "RecBillPluginInitializer插件";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginLabel() {
|
||||
return "RecBillPluginInitializer";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginType() {
|
||||
return "1";
|
||||
}
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) {
|
||||
try {
|
||||
logger.info("======开始执行收款单据信息同步========");
|
||||
return recBillService.sendRecBillToBip(requestJson);
|
||||
}catch (Exception e){
|
||||
logger.info("======执行收款单据同步失败:{}========",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
package com.hzya.frame.plugin.a8bill.service;
|
||||
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.plugin.a8bill.entity.PayBillEntity;
|
||||
|
||||
/**
|
||||
* 付款单
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-07 18:30:05
|
||||
*/
|
||||
public interface IPayBillService extends IBaseService<PayBillEntity, String>{
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
package com.hzya.frame.plugin.a8bill.service.impl;
|
||||
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.plugin.a8bill.entity.PayBillEntity;
|
||||
import com.hzya.frame.plugin.a8bill.service.IPayBillService;
|
||||
|
||||
/**
|
||||
* private IMdmOrgDao mdmOrgDao;
|
||||
*
|
||||
* @Autowired
|
||||
* public void setMdmOrgDao(IMdmOrgDao dao) {
|
||||
* this.mdmOrgDao = dao;
|
||||
* this.dao = dao;
|
||||
* }
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-07 18:30:05
|
||||
*/
|
||||
public class PayBillServiceImpl extends BaseService<PayBillEntity, String> implements IPayBillService {
|
||||
|
||||
|
||||
}
|
|
@ -1,114 +0,0 @@
|
|||
package com.hzya.frame.plugin.cbs8.plugin;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.cbs8.dto.req.AgentPayResultRequestDTO;
|
||||
import com.hzya.frame.cbs8.dto.res.AgentPayQueryDTO;
|
||||
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;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @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("PA00034224062600011");
|
||||
AgentPayResultResDTO agentPayResultResDTO = cbsPluginService.agentPayResult(agentPayResultRequestDTO);
|
||||
//记录日志
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,101 +0,0 @@
|
|||
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;
|
||||
}
|
||||
}
|
|
@ -1,116 +0,0 @@
|
|||
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();
|
||||
agentPaymentEntity.setOaId("4442823497745714629");
|
||||
cbsPluginService.applyAgentPay(agentPaymentEntity);
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
package com.hzya.frame.plugin.cbs8.plugin;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.plugin.cbs8.service.ICbsPluginService;
|
||||
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||
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 {
|
||||
PaymentEntity paymentEntity = null;
|
||||
if (null != requestJson){
|
||||
requestJson.remove("jsonStr");
|
||||
paymentEntity = JSONObject.parseObject(requestJson.toString(),PaymentEntity.class);
|
||||
}
|
||||
if (null == paymentEntity)
|
||||
paymentEntity = new PaymentEntity();
|
||||
//支付申请
|
||||
paymentEntity.setOaId("8475071606892874568");
|
||||
cbsPluginService.applyPay(paymentEntity);
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,110 +0,0 @@
|
|||
package com.hzya.frame.plugin.cbs8.plugin;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.plugin.cbs8.service.ICbsPluginService;
|
||||
import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
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 {
|
||||
CbsLogEntity cbsLogEntity = null;
|
||||
if (null != requestJson){
|
||||
requestJson.remove("jsonStr");
|
||||
cbsLogEntity = JSONObject.parseObject(requestJson.toString(),CbsLogEntity.class);
|
||||
}
|
||||
if (null == cbsLogEntity){
|
||||
cbsLogEntity = new CbsLogEntity();
|
||||
}
|
||||
cbsPluginService.queryResult(cbsLogEntity);
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,126 +0,0 @@
|
|||
package com.hzya.frame.plugin.cbs8.plugin;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
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 = null;
|
||||
if (null != requestJson){
|
||||
requestJson.remove("jsonStr");
|
||||
transactionDetailReqDTO = JSONObject.parseObject(requestJson.toString(),TransactionDetailReqDTO.class);
|
||||
}
|
||||
if (null == transactionDetailReqDTO){
|
||||
transactionDetailReqDTO = new TransactionDetailReqDTO();
|
||||
}
|
||||
transactionDetailReqDTO.setCurrentPage(CBSUtil.DEFAULT_CURRENT_PAGE);
|
||||
transactionDetailReqDTO.setPageSize(CBSUtil.DEFAULT_PAGE_SIZE);
|
||||
transactionDetailReqDTO.setStartDate(DateUtil.today());
|
||||
transactionDetailReqDTO.setEndDate(DateUtil.today());
|
||||
transactionDetailReqDTO.setDateType("0");
|
||||
transactionDetailReqDTO.setLoanType("2");
|
||||
//1查询交易明细
|
||||
List<TransactionDetailDTO> transactionDetailList = cbsPluginService.queryTransactionDetail(transactionDetailReqDTO);
|
||||
//保存交易明细到OA底表
|
||||
cbsPluginService.saveTransactionDetail(transactionDetailList);
|
||||
return new JsonResultEntity("成功",true,transactionDetailList);
|
||||
//return null;
|
||||
}
|
||||
}
|
|
@ -1,76 +0,0 @@
|
|||
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 com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity;
|
||||
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description
|
||||
* @Author xiangerlin
|
||||
* @Date 2024/6/17 08:46
|
||||
**/
|
||||
public interface ICbsPluginService {
|
||||
|
||||
/**
|
||||
* 支付申请
|
||||
* @param entity
|
||||
*/
|
||||
void applyPay(PaymentEntity entity)throws Exception;
|
||||
|
||||
/**
|
||||
* 保存支付申请日志
|
||||
* @param entity
|
||||
* @throws Exception
|
||||
*/
|
||||
void savePayLog(PaymentEntity entity,PayResponseDTO payResponseDTO)throws Exception;
|
||||
|
||||
/**
|
||||
* 查询支付申请的交易结果
|
||||
* @param cbsLogEntity
|
||||
* @throws Exception
|
||||
*/
|
||||
void queryResult(CbsLogEntity cbsLogEntity)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
|
||||
*/
|
||||
void applyAgentPay(AgentPaymentEntity paymentEntity);
|
||||
|
||||
/**
|
||||
* 代发代扣 结果详情查询
|
||||
* @param agentPayResultRequestDTO
|
||||
* @return
|
||||
*/
|
||||
AgentPayResultResDTO agentPayResult(AgentPayResultRequestDTO agentPayResultRequestDTO);
|
||||
|
||||
/**
|
||||
* 保存交易明细到OA底表
|
||||
* @param transactionDetailList
|
||||
*/
|
||||
void saveTransactionDetail(List<TransactionDetailDTO> transactionDetailList);
|
||||
|
||||
}
|
|
@ -1,513 +0,0 @@
|
|||
package com.hzya.frame.plugin.cbs8.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import cn.hutool.core.map.MapBuilder;
|
||||
import cn.hutool.core.util.NumberUtil;
|
||||
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.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
||||
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.CurrencyEnum;
|
||||
import com.hzya.frame.cbs8.util.PayState;
|
||||
import com.hzya.frame.plugin.cbs8.service.ICbsPluginService;
|
||||
import com.hzya.frame.seeyon.cap4.form.dto.*;
|
||||
import com.hzya.frame.seeyon.cbs8.entity.*;
|
||||
import com.hzya.frame.seeyon.cbs8.service.*;
|
||||
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.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @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 ITransactionDetailService transactionDetailService;
|
||||
@Autowired
|
||||
private IAgentPaymentService agentPaymentService;
|
||||
@Autowired
|
||||
private IAgentPaymentDetailService agentPaymentDetailService;
|
||||
|
||||
@Autowired
|
||||
private RestUtil restUtil;
|
||||
@Value("${cbs8.elec_path:}")
|
||||
private String elec_path;
|
||||
@Value("${OA.data_source_code:}")
|
||||
private String oa_data_source_code;
|
||||
/**
|
||||
* 支付申请
|
||||
*
|
||||
* @param paymentEntity
|
||||
*/
|
||||
@Override
|
||||
public void applyPay(PaymentEntity paymentEntity) throws Exception{
|
||||
//查询待支付的列表
|
||||
if (null == 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);
|
||||
boolean successed = payResponseDTO.getSuccessed();
|
||||
if (successed){
|
||||
pay.setPayResult(PayState.p.getValue());
|
||||
}else {
|
||||
pay.setPayResult("推送失败");
|
||||
}
|
||||
//4、更新OA表单
|
||||
pay.setDataSourceCode(oa_data_source_code);
|
||||
pay.setApplyCode(payResponseDTO.getBusNum());
|
||||
paymentService.updatePayState(pay);
|
||||
//5、记录操作日志
|
||||
savePayLog(pay,payResponseDTO);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存支付申请日志
|
||||
*
|
||||
* @param entity
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void savePayLog(PaymentEntity entity,PayResponseDTO payResponseDTO) throws Exception {
|
||||
//4. 保存日志
|
||||
CbsLogEntity cbsLogEntity = new CbsLogEntity();
|
||||
cbsLogEntity.setTitle(entity.getTitle());
|
||||
cbsLogEntity.setPay_company(entity.getPayCompany());
|
||||
cbsLogEntity.setPayee(entity.getRevAccountName());
|
||||
cbsLogEntity.setAmount(entity.getAmount());
|
||||
cbsLogEntity.setOa_id(entity.getOaId());
|
||||
cbsLogEntity.setBill_code(Convert.toStr(entity.getReferenceNumNew(),entity.getReferenceNum()));
|
||||
cbsLogEntity.setTab_name_ch(entity.getBillName());
|
||||
cbsLogEntity.setTab_name_en(entity.getTableName());
|
||||
Boolean successed = payResponseDTO.getSuccessed();
|
||||
if (successed){
|
||||
cbsLogEntity.setPay_state(PayState.p.getValue());
|
||||
cbsLogEntity.setApply_state(PayState.two.getValue());
|
||||
cbsLogEntity.setCbs_apply_code(payResponseDTO.getBusNum());
|
||||
cbsLogEntity.setSuccessed("true");
|
||||
entity.setPayResult(PayState.p.getValue());
|
||||
}else {
|
||||
cbsLogEntity.setPay_state("推送失败");
|
||||
cbsLogEntity.setMessage(payResponseDTO.getErrorMsg());
|
||||
cbsLogEntity.setSuccessed("false");
|
||||
entity.setPayResult("推送失败");
|
||||
}
|
||||
cbsLogService.saveLog(cbsLogEntity);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询支付申请的交易结果
|
||||
*
|
||||
* @param cbsLogEntity
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public void queryResult(CbsLogEntity cbsLogEntity) throws Exception {
|
||||
if (null == cbsLogEntity){
|
||||
cbsLogEntity = new CbsLogEntity();
|
||||
}
|
||||
cbsLogEntity.setDataSourceCode(oa_data_source_code);
|
||||
// 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());
|
||||
paymentEntity.setApplyCode(entity.getCbs_apply_code());
|
||||
paymentEntity.setDataSourceCode(oa_data_source_code);
|
||||
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()));
|
||||
}
|
||||
//更新视图单据状态
|
||||
paymentEntity.setDataSourceCode(oa_data_source_code);
|
||||
paymentService.updatePayState(paymentEntity);
|
||||
//更新日志表状态
|
||||
entity.setPay_state(paymentEntity.getPayResult());
|
||||
entity.setApply_state(PayState.payStateGetValue(status));
|
||||
entity.setDataSourceCode(oa_data_source_code);
|
||||
cbsLogService.updateLog(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);
|
||||
paymentEntity.setPayDate("2024-06-20");
|
||||
paymentEntity.setReferenceNum("41");
|
||||
List<PaymentEntity> paymentList = Arrays.asList(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
|
||||
|
||||
*/
|
||||
@Override
|
||||
public void applyAgentPay(AgentPaymentEntity paymentEntity) {
|
||||
try {
|
||||
if (null != paymentEntity ){
|
||||
paymentEntity.setDataSourceCode(oa_data_source_code);
|
||||
List<AgentPaymentEntity> agentPaymentList = agentPaymentService.queryUnpaid(paymentEntity);
|
||||
if (CollectionUtils.isNotEmpty(agentPaymentList)){
|
||||
for (AgentPaymentEntity agentPay : agentPaymentList) {
|
||||
AgentPaymentDetailEntity detailEntity = new AgentPaymentDetailEntity();
|
||||
detailEntity.setFormmainId(agentPay.getOaId());
|
||||
detailEntity.setDataSourceCode(oa_data_source_code);
|
||||
List<AgentPaymentDetailEntity> agentPaymentDetailList = agentPaymentService.queryDetails(detailEntity);
|
||||
if (CollectionUtils.isNotEmpty(agentPaymentDetailList)){
|
||||
PaymentApplySubmitReqDTO paymentApplySubmitReqDTO = BeanUtil.copyProperties(agentPay,PaymentApplySubmitReqDTO.class);
|
||||
List<PaymentApplyAgentDTO> paymentApplyAgentList = new ArrayList<>();
|
||||
for (AgentPaymentDetailEntity detail : agentPaymentDetailList) {
|
||||
PaymentApplyAgentDTO detailDTO = BeanUtil.copyProperties(detail,PaymentApplyAgentDTO.class);
|
||||
paymentApplyAgentList.add(detailDTO);
|
||||
}
|
||||
//招行这里要传203
|
||||
paymentApplySubmitReqDTO.setBankExtend5("203");
|
||||
PayResponseDTO payResponseDTO = cbs8Service.agentPayApply(paymentApplySubmitReqDTO,paymentApplyAgentList);
|
||||
if (null != payResponseDTO){
|
||||
Boolean successed = payResponseDTO.getSuccessed();
|
||||
AgentPaymentEntity pay = new AgentPaymentEntity();
|
||||
pay.setOaId(paymentEntity.getOaId());
|
||||
pay.setDataSourceCode(oa_data_source_code);
|
||||
if (successed){
|
||||
//更新申请单号到OA
|
||||
pay.setApplyCode(payResponseDTO.getBusNum());
|
||||
pay.setPayResult("审批中");
|
||||
}else {
|
||||
pay.setPayResult(payResponseDTO.getErrorMsg());
|
||||
}
|
||||
agentPaymentService.updateResult(pay);
|
||||
System.out.println(JSONObject.toJSONString(payResponseDTO));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}else {
|
||||
throw new BaseSystemException("参数不能为空");
|
||||
}
|
||||
}catch (Exception e){
|
||||
logger.error("代发代扣出错:{}",e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 代发代扣 结果详情查询
|
||||
*
|
||||
* @param agentPayResultRequestDTO
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public AgentPayResultResDTO agentPayResult(AgentPayResultRequestDTO agentPayResultRequestDTO) {
|
||||
try {
|
||||
if (null != agentPayResultRequestDTO && StrUtil.isNotEmpty(agentPayResultRequestDTO.getBusNum())){
|
||||
AgentPayResultResDTO agentPayResultResDTO = cbs8Service.agentPayResult(agentPayResultRequestDTO);
|
||||
//更新OA表单
|
||||
String busNum = agentPayResultResDTO.getBusNum();
|
||||
if (StringUtils.isNotEmpty(busNum)){
|
||||
AgentPaymentEntity agentPaymentEntity = new AgentPaymentEntity();
|
||||
agentPaymentEntity.setApplyCode(busNum);
|
||||
agentPaymentEntity.setDataSourceCode(oa_data_source_code);
|
||||
AgentPaymentEntity entity = agentPaymentService.queryByApplyCode(agentPaymentEntity);
|
||||
String pay_status = agentPayResultResDTO.getPayStatus();
|
||||
String status = agentPayResultResDTO.getStatus();
|
||||
if (null != entity){
|
||||
AgentPaymentEntity result = new AgentPaymentEntity();
|
||||
result.setOaId(entity.getOaId());
|
||||
result.setDataSourceCode(oa_data_source_code);
|
||||
//更新主表
|
||||
if (StrUtil.isEmpty(pay_status)) {
|
||||
result.setPayResult(PayState.payStateGetValue(status));//支付申请状态 支付状态和支付申请状态用一个
|
||||
} else {
|
||||
result.setPayResult(PayState.payStateGetValue(pay_status));//支付状态 支付状态和支付申请状态用一个
|
||||
}
|
||||
agentPaymentService.updateResult(result);
|
||||
//更新明细表
|
||||
List<AgentPayQueryDTO> agentDetails = agentPayResultResDTO.getAgentDetails();
|
||||
for (AgentPayQueryDTO d : agentDetails) {
|
||||
AgentPaymentDetailEntity detail = new AgentPaymentDetailEntity();
|
||||
detail.setFormmainId(entity.getOaId());
|
||||
detail.setDtlAmount(d.getDtlAmount());
|
||||
detail.setDtlCnapsCode(d.getDtlCnapsCode());
|
||||
detail.setDtlRevName(d.getDtlRevName());
|
||||
detail.setDtlSeqNum(Integer.valueOf(d.getDtlSeqNum()));
|
||||
detail.setPayResult(PayState.payStateGetValue(d.getDtlStatus()));
|
||||
detail.setPayDate(CBSUtil.convertTimestampToString(d.getDtlPayTime()));
|
||||
detail.setDataSourceCode(oa_data_source_code);
|
||||
agentPaymentDetailService.updatePayResult(detail);
|
||||
}
|
||||
}
|
||||
}
|
||||
return agentPayResultResDTO;
|
||||
}
|
||||
}catch (Exception e){
|
||||
logger.error("代发代扣详情结果查询出错{}",e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存交易明细到OA底表
|
||||
*
|
||||
* @param transactionlList
|
||||
*/
|
||||
@Override
|
||||
public void saveTransactionDetail(List<TransactionDetailDTO> transactionlList) {
|
||||
if (CollectionUtils.isNotEmpty(transactionlList)){
|
||||
//过滤已经保存过的数据
|
||||
//收款档案表的数据
|
||||
TransactionDetailEntity transactionDetailEntity = new TransactionDetailEntity();
|
||||
transactionDetailEntity.setBankTransactionDate(DateUtil.lastWeek().toDateStr());
|
||||
transactionDetailEntity.setDataSourceCode(oa_data_source_code);
|
||||
List<TransactionDetailEntity> transactionDetailList = transactionDetailService.querySerialNumber(transactionDetailEntity);
|
||||
//过滤已经保存的数据
|
||||
if (CollectionUtils.isNotEmpty(transactionDetailList)){
|
||||
//过滤transactionlList 去除已经存在transactionDetailList中的数据,条件为transactionSerialNumber相等
|
||||
if (CollectionUtils.isNotEmpty(transactionlList)){
|
||||
transactionlList = transactionlList.stream()
|
||||
.filter(item -> transactionDetailList.stream()
|
||||
.noneMatch(detailItem -> item.getTransactionSerialNumber().equals(detailItem.getTransactionSerialNumber())))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
if (CollectionUtils.isNotEmpty(transactionlList)){
|
||||
//保存到OA底表
|
||||
for (TransactionDetailDTO dto : transactionlList) {
|
||||
TransactionDetailEntity transactionDetail = new TransactionDetailEntity();
|
||||
BeanUtil.copyProperties(dto,transactionDetail);
|
||||
transactionDetail.setCurrency(CurrencyEnum.getChineseNameByCode(dto.getCurrency()));
|
||||
if (NumberUtil.isNumber(dto.getBankTransactionDate())){//如果是时间戳 转换成日期字符串
|
||||
transactionDetail.setBankTransactionDate(CBSUtil.convertTimestampToString(dto.getBankTransactionDate()));
|
||||
}
|
||||
transactionDetailService.restSave(transactionDetail);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//这个方法没用,用的是8.0批量保存方式,我没有测试
|
||||
private void saveTransactionDetailTemp(List<TransactionDetailDTO> transactionDetailList) {
|
||||
if (CollectionUtils.isNotEmpty(transactionDetailList)){
|
||||
//过滤已经保存过的数据
|
||||
for (TransactionDetailDTO dto : transactionDetailList) {
|
||||
List<FormDataDTO> dataList = new ArrayList<>();
|
||||
FormDTO formDTO = new FormDTO();
|
||||
formDTO.setFormCode("formmain_0233");
|
||||
formDTO.setLoginName("yonyou");
|
||||
formDTO.setRightId("6603635988997229999.-8611088937958683581");
|
||||
String field0001=dto.getAccountNo();//我方银行账号
|
||||
String field0002=dto.getAccountName();//我方户名
|
||||
String field0003=dto.getOpenBank();//我方开户行
|
||||
String field0004=dto.getBankType();//我方银行类型
|
||||
String field0005=dto.getTransactionSerialNumber();//交易流水号
|
||||
String field0006=dto.getBankTransactionDate();//交易日期
|
||||
String field0007=dto.getBankSerialNumber();//银行流水号
|
||||
String field0008=dto.getCurrency();//币种
|
||||
String field0009=dto.getIncurredAmount();//收款金额
|
||||
String field0010=dto.getPurpose();//用途
|
||||
String field0011=dto.getDigest();//摘要
|
||||
String field0012=dto.getOppositeAccount();//对方账号
|
||||
String field0013=dto.getOppositeName();//对方户名
|
||||
String field0014=dto.getOppositeOpeningBank();//对方开户行
|
||||
String field0015=dto.getRemark();//备注
|
||||
//fields
|
||||
List<RecordFieldDTO> fields = new ArrayList<>();
|
||||
fields.add(new RecordFieldDTO("field0001",field0001,field0001));
|
||||
fields.add(new RecordFieldDTO("field0002",field0002,field0002));
|
||||
fields.add(new RecordFieldDTO("field0003",field0003,field0003));
|
||||
fields.add(new RecordFieldDTO("field0004",field0004,field0004));
|
||||
fields.add(new RecordFieldDTO("field0005",field0005,field0005));
|
||||
fields.add(new RecordFieldDTO("field0006",field0006,field0006));
|
||||
fields.add(new RecordFieldDTO("field0007",field0007,field0007));
|
||||
fields.add(new RecordFieldDTO("field0008",field0008,field0008));
|
||||
fields.add(new RecordFieldDTO("field0009",field0009,field0009));
|
||||
fields.add(new RecordFieldDTO("field0010",field0010,field0010));
|
||||
fields.add(new RecordFieldDTO("field0011",field0011,field0011));
|
||||
fields.add(new RecordFieldDTO("field0012",field0012,field0012));
|
||||
fields.add(new RecordFieldDTO("field0013",field0013,field0013));
|
||||
fields.add(new RecordFieldDTO("field0014",field0014,field0014));
|
||||
fields.add(new RecordFieldDTO("field0015",field0015,field0015));
|
||||
//masterTable
|
||||
MasterTableDTO masterTableDTO = new MasterTableDTO();
|
||||
masterTableDTO.setName("formmain_1284");
|
||||
RecordDTO recordDTO = new RecordDTO();
|
||||
recordDTO.setId(UUIDLong.longUUID());
|
||||
recordDTO.setFields(fields);
|
||||
masterTableDTO.setRecord(recordDTO);
|
||||
//dataList
|
||||
FormDataDTO formDataDTO = new FormDataDTO();
|
||||
formDataDTO.setMasterTable(masterTableDTO);
|
||||
dataList.add(formDataDTO);
|
||||
formDTO.setDataList(dataList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
package com.hzya.frame.plugin.masterData.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
|
||||
|
||||
/**
|
||||
* 客户档案(mdm_customer: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public interface IMdmDao extends IBaseDao<MdmEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
package com.hzya.frame.plugin.masterData.dao.impl;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
|
||||
import com.hzya.frame.plugin.masterData.dao.IMdmDao;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* 客户档案(MdmCustomer)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public class MdmDaoImpl extends MybatisGenericDao<MdmEntity, String> implements IMdmDao {
|
||||
|
||||
}
|
||||
|
|
@ -1,186 +0,0 @@
|
|||
package com.hzya.frame.plugin.masterData.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
* 客户档案(MdmCustomer)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public class MdmEntity extends BaseEntity {
|
||||
|
||||
/** 单据规则 */
|
||||
private String documentRule;
|
||||
/** 单据规则流水号 */
|
||||
private Long documentRuleNum;
|
||||
/** 数据状态 Y正常 N删除 F修改 */
|
||||
private String dataStatus;
|
||||
/** 新增数据状态 0待下发 1已下发 */
|
||||
private String addStatus;
|
||||
/** 修改数据状态 0待下发 1已下发 */
|
||||
private String updateStatus;
|
||||
/** 删除数据状态 0待下发 1已下发 */
|
||||
private String deleteStatus;
|
||||
/** 公司id */
|
||||
private String companyId;
|
||||
/** 客户编码 */
|
||||
private String code;
|
||||
/** 客户类型 */
|
||||
private String custprop;
|
||||
/** 客户状态 */
|
||||
private String custstate;
|
||||
/** 启用状态 */
|
||||
private String enablestate;
|
||||
/** 客户名称 */
|
||||
private String name;
|
||||
/** 国家/地区 */
|
||||
private String pkCountry;
|
||||
/** 客户基本分类 */
|
||||
private String pkCustclass;
|
||||
/** 所属集团 */
|
||||
private String pkGroup;
|
||||
/** 所属组织 */
|
||||
private String pkOrg;
|
||||
/** 纳税人登记号 */
|
||||
private String taxpayerid;
|
||||
|
||||
|
||||
public String getDocumentRule() {
|
||||
return documentRule;
|
||||
}
|
||||
|
||||
public void setDocumentRule(String documentRule) {
|
||||
this.documentRule = documentRule;
|
||||
}
|
||||
|
||||
public Long getDocumentRuleNum() {
|
||||
return documentRuleNum;
|
||||
}
|
||||
|
||||
public void setDocumentRuleNum(Long documentRuleNum) {
|
||||
this.documentRuleNum = documentRuleNum;
|
||||
}
|
||||
|
||||
public String getDataStatus() {
|
||||
return dataStatus;
|
||||
}
|
||||
|
||||
public void setDataStatus(String dataStatus) {
|
||||
this.dataStatus = dataStatus;
|
||||
}
|
||||
|
||||
public String getAddStatus() {
|
||||
return addStatus;
|
||||
}
|
||||
|
||||
public void setAddStatus(String addStatus) {
|
||||
this.addStatus = addStatus;
|
||||
}
|
||||
|
||||
public String getUpdateStatus() {
|
||||
return updateStatus;
|
||||
}
|
||||
|
||||
public void setUpdateStatus(String updateStatus) {
|
||||
this.updateStatus = updateStatus;
|
||||
}
|
||||
|
||||
public String getDeleteStatus() {
|
||||
return deleteStatus;
|
||||
}
|
||||
|
||||
public void setDeleteStatus(String deleteStatus) {
|
||||
this.deleteStatus = deleteStatus;
|
||||
}
|
||||
|
||||
public String getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
||||
public void setCompanyId(String companyId) {
|
||||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCustprop() {
|
||||
return custprop;
|
||||
}
|
||||
|
||||
public void setCustprop(String custprop) {
|
||||
this.custprop = custprop;
|
||||
}
|
||||
|
||||
public String getCuststate() {
|
||||
return custstate;
|
||||
}
|
||||
|
||||
public void setCuststate(String custstate) {
|
||||
this.custstate = custstate;
|
||||
}
|
||||
|
||||
public String getEnablestate() {
|
||||
return enablestate;
|
||||
}
|
||||
|
||||
public void setEnablestate(String enablestate) {
|
||||
this.enablestate = enablestate;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPkCountry() {
|
||||
return pkCountry;
|
||||
}
|
||||
|
||||
public void setPkCountry(String pkCountry) {
|
||||
this.pkCountry = pkCountry;
|
||||
}
|
||||
|
||||
public String getPkCustclass() {
|
||||
return pkCustclass;
|
||||
}
|
||||
|
||||
public void setPkCustclass(String pkCustclass) {
|
||||
this.pkCustclass = pkCustclass;
|
||||
}
|
||||
|
||||
public String getPkGroup() {
|
||||
return pkGroup;
|
||||
}
|
||||
|
||||
public void setPkGroup(String pkGroup) {
|
||||
this.pkGroup = pkGroup;
|
||||
}
|
||||
|
||||
public String getPkOrg() {
|
||||
return pkOrg;
|
||||
}
|
||||
|
||||
public void setPkOrg(String pkOrg) {
|
||||
this.pkOrg = pkOrg;
|
||||
}
|
||||
|
||||
public String getTaxpayerid() {
|
||||
return taxpayerid;
|
||||
}
|
||||
|
||||
public void setTaxpayerid(String taxpayerid) {
|
||||
this.taxpayerid = taxpayerid;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,375 +0,0 @@
|
|||
<?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.plugin.masterData.dao.impl.MdmDaoImpl">
|
||||
|
||||
<resultMap id="get-MdmCustomerEntity-result" type="com.hzya.frame.plugin.masterData.entity.MdmEntity" >
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="documentRule" column="document_rule" jdbcType="VARCHAR"/>
|
||||
<result property="documentRuleNum" column="document_rule_num" jdbcType="INTEGER"/>
|
||||
<result property="dataStatus" column="data_status" jdbcType="VARCHAR"/>
|
||||
<result property="addStatus" column="add_status" jdbcType="VARCHAR"/>
|
||||
<result property="updateStatus" column="update_status" jdbcType="VARCHAR"/>
|
||||
<result property="deleteStatus" column="delete_status" jdbcType="VARCHAR"/>
|
||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||
<result property="code" column="code" jdbcType="VARCHAR"/>
|
||||
<result property="custprop" column="custprop" jdbcType="VARCHAR"/>
|
||||
<result property="custstate" column="custstate" jdbcType="VARCHAR"/>
|
||||
<result property="enablestate" column="enablestate" jdbcType="VARCHAR"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="pkCountry" column="pk_country" jdbcType="VARCHAR"/>
|
||||
<result property="pkCustclass" column="pk_custclass" jdbcType="VARCHAR"/>
|
||||
<result property="pkGroup" column="pk_group" jdbcType="VARCHAR"/>
|
||||
<result property="pkOrg" column="pk_org" jdbcType="VARCHAR"/>
|
||||
<result property="taxpayerid" column="taxpayerid" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "MdmCustomerEntity_Base_Column_List">
|
||||
id
|
||||
,document_rule
|
||||
,document_rule_num
|
||||
,data_status
|
||||
,add_status
|
||||
,update_status
|
||||
,delete_status
|
||||
,sorts
|
||||
,create_user_id
|
||||
,create_time
|
||||
,modify_user_id
|
||||
,modify_time
|
||||
,sts
|
||||
,org_id
|
||||
,company_id
|
||||
,code
|
||||
,custprop
|
||||
,custstate
|
||||
,enablestate
|
||||
,name
|
||||
,pk_country
|
||||
,pk_custclass
|
||||
,pk_group
|
||||
,pk_org
|
||||
,taxpayerid
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-MdmCustomerEntity-result" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity">
|
||||
select
|
||||
<include refid="MdmCustomerEntity_Base_Column_List" />
|
||||
from mdm_customer
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="documentRule != null and documentRule != ''"> and document_rule = #{documentRule} </if>
|
||||
<if test="documentRuleNum != null"> and document_rule_num = #{documentRuleNum} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status = #{dataStatus} </if>
|
||||
<if test="addStatus != null and addStatus != ''"> and add_status = #{addStatus} </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> and update_status = #{updateStatus} </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> and delete_status = #{deleteStatus} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="custprop != null and custprop != ''"> and custprop = #{custprop} </if>
|
||||
<if test="custstate != null and custstate != ''"> and custstate = #{custstate} </if>
|
||||
<if test="enablestate != null and enablestate != ''"> and enablestate = #{enablestate} </if>
|
||||
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> and pk_country = #{pkCountry} </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> and pk_custclass = #{pkCustclass} </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> and pk_group = #{pkGroup} </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> and pk_org = #{pkOrg} </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity">
|
||||
select count(1) from mdm_customer
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="documentRule != null and documentRule != ''"> and document_rule = #{documentRule} </if>
|
||||
<if test="documentRuleNum != null"> and document_rule_num = #{documentRuleNum} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status = #{dataStatus} </if>
|
||||
<if test="addStatus != null and addStatus != ''"> and add_status = #{addStatus} </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> and update_status = #{updateStatus} </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> and delete_status = #{deleteStatus} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="custprop != null and custprop != ''"> and custprop = #{custprop} </if>
|
||||
<if test="custstate != null and custstate != ''"> and custstate = #{custstate} </if>
|
||||
<if test="enablestate != null and enablestate != ''"> and enablestate = #{enablestate} </if>
|
||||
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> and pk_country = #{pkCountry} </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> and pk_custclass = #{pkCustclass} </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> and pk_group = #{pkGroup} </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> and pk_org = #{pkOrg} </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-MdmCustomerEntity-result" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity">
|
||||
select
|
||||
<include refid="MdmCustomerEntity_Base_Column_List" />
|
||||
from mdm_customer
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||
<if test="documentRule != null and documentRule != ''"> and document_rule like concat('%',#{documentRule},'%') </if>
|
||||
<if test="documentRuleNum != null"> and document_rule_num like concat('%',#{documentRuleNum},'%') </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status like concat('%',#{dataStatus},'%') </if>
|
||||
<if test="addStatus != null and addStatus != ''"> and add_status like concat('%',#{addStatus},'%') </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> and update_status like concat('%',#{updateStatus},'%') </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> and delete_status like concat('%',#{deleteStatus},'%') </if>
|
||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||
<if test="code != null and code != ''"> and code like concat('%',#{code},'%') </if>
|
||||
<if test="custprop != null and custprop != ''"> and custprop like concat('%',#{custprop},'%') </if>
|
||||
<if test="custstate != null and custstate != ''"> and custstate like concat('%',#{custstate},'%') </if>
|
||||
<if test="enablestate != null and enablestate != ''"> and enablestate like concat('%',#{enablestate},'%') </if>
|
||||
<if test="name != null and name != ''"> and name like concat('%',#{name},'%') </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> and pk_country like concat('%',#{pkCountry},'%') </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> and pk_custclass like concat('%',#{pkCustclass},'%') </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> and pk_group like concat('%',#{pkGroup},'%') </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> and pk_org like concat('%',#{pkOrg},'%') </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid like concat('%',#{taxpayerid},'%') </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="MdmCustomerentity_list_or" resultMap="get-MdmCustomerEntity-result" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity">
|
||||
select
|
||||
<include refid="MdmCustomerEntity_Base_Column_List" />
|
||||
from mdm_customer
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||
<if test="documentRule != null and documentRule != ''"> or document_rule = #{documentRule} </if>
|
||||
<if test="documentRuleNum != null"> or document_rule_num = #{documentRuleNum} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> or data_status = #{dataStatus} </if>
|
||||
<if test="addStatus != null and addStatus != ''"> or add_status = #{addStatus} </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> or update_status = #{updateStatus} </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> or delete_status = #{deleteStatus} </if>
|
||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||
<if test="code != null and code != ''"> or code = #{code} </if>
|
||||
<if test="custprop != null and custprop != ''"> or custprop = #{custprop} </if>
|
||||
<if test="custstate != null and custstate != ''"> or custstate = #{custstate} </if>
|
||||
<if test="enablestate != null and enablestate != ''"> or enablestate = #{enablestate} </if>
|
||||
<if test="name != null and name != ''"> or name = #{name} </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> or pk_country = #{pkCountry} </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> or pk_custclass = #{pkCustclass} </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> or pk_group = #{pkGroup} </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> or pk_org = #{pkOrg} </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> or taxpayerid = #{taxpayerid} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into mdm_customer(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
<if test="documentRule != null and documentRule != ''"> document_rule , </if>
|
||||
<if test="documentRuleNum != null"> document_rule_num , </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> data_status , </if>
|
||||
<if test="addStatus != null and addStatus != ''"> add_status , </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> update_status , </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> delete_status , </if>
|
||||
<if test="sorts != null"> sorts , </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||
<if test="create_time != null"> create_time , </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||
<if test="modify_time != null"> modify_time , </if>
|
||||
<if test="sts != null and sts != ''"> sts , </if>
|
||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||
<if test="code != null and code != ''"> code , </if>
|
||||
<if test="custprop != null and custprop != ''"> custprop , </if>
|
||||
<if test="custstate != null and custstate != ''"> custstate , </if>
|
||||
<if test="enablestate != null and enablestate != ''"> enablestate , </if>
|
||||
<if test="name != null and name != ''"> name , </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> pk_country , </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> pk_custclass , </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> pk_group , </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> pk_org , </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> taxpayerid , </if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> #{id} ,</if>
|
||||
<if test="documentRule != null and documentRule != ''"> #{documentRule} ,</if>
|
||||
<if test="documentRuleNum != null"> #{documentRuleNum} ,</if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> #{dataStatus} ,</if>
|
||||
<if test="addStatus != null and addStatus != ''"> #{addStatus} ,</if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> #{updateStatus} ,</if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> #{deleteStatus} ,</if>
|
||||
<if test="sorts != null"> #{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||
<if test="create_time != null"> #{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||
<if test="code != null and code != ''"> #{code} ,</if>
|
||||
<if test="custprop != null and custprop != ''"> #{custprop} ,</if>
|
||||
<if test="custstate != null and custstate != ''"> #{custstate} ,</if>
|
||||
<if test="enablestate != null and enablestate != ''"> #{enablestate} ,</if>
|
||||
<if test="name != null and name != ''"> #{name} ,</if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> #{pkCountry} ,</if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> #{pkCustclass} ,</if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> #{pkGroup} ,</if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> #{pkOrg} ,</if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> #{taxpayerid} ,</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into mdm_customer(document_rule, document_rule_num, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, code, custprop, custstate, enablestate, name, pk_country, pk_custclass, pk_group, pk_org, taxpayerid, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.documentRule},#{entity.documentRuleNum},#{entity.dataStatus},#{entity.addStatus},#{entity.updateStatus},#{entity.deleteStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.code},#{entity.custprop},#{entity.custstate},#{entity.enablestate},#{entity.name},#{entity.pkCountry},#{entity.pkCustclass},#{entity.pkGroup},#{entity.pkOrg},#{entity.taxpayerid}, 'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into mdm_customer(document_rule, document_rule_num, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, code, custprop, custstate, enablestate, name, pk_country, pk_custclass, pk_group, pk_org, taxpayerid)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.documentRule},#{entity.documentRuleNum},#{entity.dataStatus},#{entity.addStatus},#{entity.updateStatus},#{entity.deleteStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.code},#{entity.custprop},#{entity.custstate},#{entity.enablestate},#{entity.name},#{entity.pkCountry},#{entity.pkCustclass},#{entity.pkGroup},#{entity.pkOrg},#{entity.taxpayerid})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
document_rule = values(document_rule),
|
||||
document_rule_num = values(document_rule_num),
|
||||
data_status = values(data_status),
|
||||
add_status = values(add_status),
|
||||
update_status = values(update_status),
|
||||
delete_status = values(delete_status),
|
||||
create_user_id = values(create_user_id),
|
||||
create_time = values(create_time),
|
||||
modify_user_id = values(modify_user_id),
|
||||
modify_time = values(modify_time),
|
||||
sts = values(sts),
|
||||
org_id = values(org_id),
|
||||
company_id = values(company_id),
|
||||
code = values(code),
|
||||
custprop = values(custprop),
|
||||
custstate = values(custstate),
|
||||
enablestate = values(enablestate),
|
||||
name = values(name),
|
||||
pk_country = values(pk_country),
|
||||
pk_custclass = values(pk_custclass),
|
||||
pk_group = values(pk_group),
|
||||
pk_org = values(pk_org),
|
||||
taxpayerid = values(taxpayerid)</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity" >
|
||||
update mdm_customer set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="documentRule != null and documentRule != ''"> document_rule = #{documentRule},</if>
|
||||
<if test="documentRuleNum != null"> document_rule_num = #{documentRuleNum},</if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> data_status = #{dataStatus},</if>
|
||||
<if test="addStatus != null and addStatus != ''"> add_status = #{addStatus},</if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> update_status = #{updateStatus},</if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> delete_status = #{deleteStatus},</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||
<if test="code != null and code != ''"> code = #{code},</if>
|
||||
<if test="custprop != null and custprop != ''"> custprop = #{custprop},</if>
|
||||
<if test="custstate != null and custstate != ''"> custstate = #{custstate},</if>
|
||||
<if test="enablestate != null and enablestate != ''"> enablestate = #{enablestate},</if>
|
||||
<if test="name != null and name != ''"> name = #{name},</if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> pk_country = #{pkCountry},</if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> pk_custclass = #{pkCustclass},</if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> pk_group = #{pkGroup},</if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> pk_org = #{pkOrg},</if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> taxpayerid = #{taxpayerid},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity" >
|
||||
update mdm_customer set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity" >
|
||||
update mdm_customer set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="documentRule != null and documentRule != ''"> and document_rule = #{documentRule} </if>
|
||||
<if test="documentRuleNum != null"> and document_rule_num = #{documentRuleNum} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status = #{dataStatus} </if>
|
||||
<if test="addStatus != null and addStatus != ''"> and add_status = #{addStatus} </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> and update_status = #{updateStatus} </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> and delete_status = #{deleteStatus} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="custprop != null and custprop != ''"> and custprop = #{custprop} </if>
|
||||
<if test="custstate != null and custstate != ''"> and custstate = #{custstate} </if>
|
||||
<if test="enablestate != null and enablestate != ''"> and enablestate = #{enablestate} </if>
|
||||
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> and pk_country = #{pkCountry} </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> and pk_custclass = #{pkCustclass} </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> and pk_group = #{pkGroup} </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> and pk_org = #{pkOrg} </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from mdm_customer where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
package com.hzya.frame.plugin.masterData.plugin;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.sysnew.comparison.masterData.service.IMasterDataService;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
/**
|
||||
* 主数据同步
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public class MdmPluginInitializer extends PluginBaseEntity{
|
||||
Logger logger = LoggerFactory.getLogger(MdmPluginInitializer.class);
|
||||
@Autowired
|
||||
private IMasterDataService masterDataService;
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginId() {
|
||||
return "MdmCustomerPlugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginName() {
|
||||
return "MdmCustomerPlugin插件";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginLabel() {
|
||||
return "MdmCustomerPlugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginType() {
|
||||
return "1";
|
||||
}
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) {
|
||||
try {
|
||||
logger.info("======开始执行主数据信息同步========");
|
||||
return masterDataService.queryArchives(requestJson);
|
||||
}catch (Exception e){
|
||||
logger.info("======执行主数据同步失败:{}========",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
package com.hzya.frame.plugin.masterData.service;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
/**
|
||||
* 客户档案(MdmCustomer)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public interface IMdmService extends IBaseService<MdmEntity, String>{
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
package com.hzya.frame.plugin.masterData.service.impl;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
|
||||
import com.hzya.frame.plugin.masterData.dao.IMdmDao;
|
||||
import com.hzya.frame.plugin.masterData.service.IMdmService;
|
||||
import com.hzya.frame.plugin.masterData.service.IMdmService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
/**
|
||||
* 客户档案(MdmCustomer)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public class MdmServiceImpl extends BaseService<MdmEntity, String> implements IMdmService {
|
||||
|
||||
private IMdmDao mdmCustomerDao;
|
||||
|
||||
@Autowired
|
||||
public void setMdmCustomerDao(IMdmDao dao) {
|
||||
this.mdmCustomerDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
}
|
|
@ -1,138 +0,0 @@
|
|||
package com.hzya.frame.plugin.seeyonExt.plugin;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.seeyon.service.ISeeYonInterFace;
|
||||
import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity;
|
||||
import com.hzya.frame.sysnew.integtationTaskLivingDetails.service.IIntegrationTaskLivingDetailsService;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
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.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description
|
||||
* @Author xiangerlin
|
||||
* @Date 2024/5/15 08:34
|
||||
**/
|
||||
public class SeeyonExtPluginInitializer extends PluginBaseEntity {
|
||||
Logger logger = LoggerFactory.getLogger(SeeyonExtPluginInitializer.class);
|
||||
@Autowired
|
||||
private IIntegrationTaskLivingDetailsService taskLivingDetailsService;
|
||||
@Autowired
|
||||
private ISeeYonInterFace seeyInterFace;
|
||||
/***
|
||||
* 插件初始化方法
|
||||
* @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 "SeeyonExtPlugin";
|
||||
}
|
||||
|
||||
/****
|
||||
* 插件的名称
|
||||
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @date 2023-08-02 10:48
|
||||
* @return void
|
||||
**/
|
||||
@Override
|
||||
public String getPluginName() {
|
||||
return "seeyonExt插件";
|
||||
}
|
||||
|
||||
/****
|
||||
* 插件的显示值
|
||||
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @date 2023-08-02 10:48
|
||||
* @return void
|
||||
**/
|
||||
@Override
|
||||
public String getPluginLabel() {
|
||||
return "seeyonExt插件";
|
||||
}
|
||||
|
||||
/***
|
||||
* 插件类型 1、场景插件
|
||||
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-08-02 14:01
|
||||
* @Param []
|
||||
* @return java.lang.String
|
||||
**/
|
||||
@Override
|
||||
public String getPluginType() {
|
||||
return "1";
|
||||
}
|
||||
|
||||
/***
|
||||
* seeyonExt 重试专用插件
|
||||
* @Since 3.0
|
||||
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-08-07 11:20
|
||||
* @param requestJson 执行业务代码的参数
|
||||
* @return void
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
||||
try {
|
||||
//重试方法
|
||||
if (null != requestJson){
|
||||
//JSONObject jsonStr = requestJson.getJSONObject("jsonStr");
|
||||
//如果这个id不为空,说明是重试的
|
||||
String id = requestJson.getString("integration_task_living_details_id");
|
||||
if (StrUtil.isNotEmpty(id)){
|
||||
//查询日志表
|
||||
IntegrationTaskLivingDetailsEntity taskDetailEntity = taskLivingDetailsService.get(id);
|
||||
if (null != taskDetailEntity && JSONUtil.isTypeJSON(taskDetailEntity.getRootAppPk())){
|
||||
//拿到这张表的源系统ID
|
||||
JSONObject jsonObject = JSONObject.parseObject(taskDetailEntity.getRootAppPk());
|
||||
Map<String,String>extData = new HashMap<>();
|
||||
extData.put("integration_task_living_details_id",id);//把日志id放到hzyaExtData中,下游方法从这个对象里取
|
||||
jsonObject.put("hzyaExtData",extData);
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("jsonStr", JSON.toJSONString(jsonObject));
|
||||
//调用seeyon标准重试方法
|
||||
seeyInterFace.thirdInterfaceSeeYonDefinitionRePush(param);
|
||||
}
|
||||
}
|
||||
}
|
||||
logger.info("执行成功");
|
||||
return BaseResult.getSuccessMessageEntity("执行成功");
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("执行成功");
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
package com.hzya.frame.plugin.sysMessageManageLogBack.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
public class SysESBMessageManageLogEntity extends BaseEntity {
|
||||
|
||||
private String name;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
package com.hzya.frame.plugin.sysMessageManageLogBack.plugin;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* 消息管理日志(SysMessageManageLog)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-03-08 10:22:00
|
||||
*/
|
||||
public class SysMessageManageLogPluginInitializer extends PluginBaseEntity {
|
||||
Logger logger = LoggerFactory.getLogger(SysMessageManageLogPluginInitializer.class);
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginId() {
|
||||
return "SysMessageManageLogPlugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginName() {
|
||||
return "ESB消息日志备份";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginLabel() {
|
||||
return "ESB消息日志备份";
|
||||
}
|
||||
@Override
|
||||
public String getPluginType() {
|
||||
return "1";
|
||||
}
|
||||
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
||||
try {
|
||||
logger.info("执行成功");
|
||||
return BaseResult.getSuccessMessageEntity("执行成功");
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("执行成功");
|
||||
}
|
||||
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
package com.hzya.frame.plugin.sysMessageManageLogBack.service;
|
||||
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.plugin.sysMessageManageLogBack.entity.SysESBMessageManageLogEntity;
|
||||
|
||||
/**
|
||||
* 消息管理日志(SysMessageManageLog)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-03-08 10:22:00
|
||||
*/
|
||||
public interface ISysESBMessageManageLogService extends IBaseService<SysESBMessageManageLogEntity, String> {
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
package com.hzya.frame.plugin.sysMessageManageLogBack.service.impl;
|
||||
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.plugin.sysMessageManageLogBack.entity.SysESBMessageManageLogEntity;
|
||||
import com.hzya.frame.plugin.sysMessageManageLogBack.service.ISysESBMessageManageLogService;
|
||||
|
||||
/**
|
||||
* 消息管理日志(SysMessageManageLog)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-03-08 10:22:00
|
||||
*/
|
||||
public class SysESBMessageManageLogServiceImpl extends BaseService<SysESBMessageManageLogEntity, String> implements ISysESBMessageManageLogService {
|
||||
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
#######################澳星环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: GBK
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: E:\yongansystem\log
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://127.0.0.1:3306/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: E:\yongansystem\file
|
||||
zt:
|
||||
url: http://127.0.0.1:9081/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -1,27 +0,0 @@
|
|||
#######################本地环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: D:\yongansystem\kangarooDataCenter\v3\logs
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
# url: jdbc:mysql://ufidahz.com.cn: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
|
||||
# username: root
|
||||
# password: bd993088e8a7c3dc5f44441617f9b4bf
|
||||
# driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
url: jdbc:mysql://ufidahz.com.cn: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: D:\yongansystem\kangarooDataCenter\v3\logs
|
||||
zt:
|
||||
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -1,23 +0,0 @@
|
|||
#######################本地环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: /Users/apple/Desktop/log/local
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://ufidahz.com.cn: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/apple/Desktop/log/local
|
||||
zt:
|
||||
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -1,35 +0,0 @@
|
|||
#######################本地环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: /Users/xiangerlin/work/app/logs/dev
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://ufidahz.com.cn: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/file/dev
|
||||
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
|
||||
#电子回单下载临时存放位置
|
||||
elec_path: /Users/xiangerlin/Downloads/
|
||||
OA:
|
||||
data_source_code: yc-test
|
|
@ -1,90 +0,0 @@
|
|||
#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
|
||||
#公司mysql
|
||||
#ax:
|
||||
# url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
||||
#logging:
|
||||
# #日志级别 指定目录级别warn
|
||||
# level:
|
||||
# root: info
|
||||
# encodings: UTF-8
|
||||
# file:
|
||||
# # 日志保存路径
|
||||
# path: /home/webservice/zt/log
|
||||
#spring:
|
||||
# datasource:
|
||||
# dynamic:
|
||||
# datasource:
|
||||
# master:
|
||||
# url: jdbc:mysql://ufidahz.com.cn: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
|
||||
|
||||
|
||||
#公司服务器达梦
|
||||
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://ufidahz.com.cn:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
|
||||
username: hzyazt
|
||||
password: 62e4295b615a30dbf3b8ee96f41c820b
|
||||
driver-class-name: dm.jdbc.driver.DmDriver
|
||||
savefile:
|
||||
# 文件保存路径
|
||||
path: /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: /zt/elecfile
|
||||
OA:
|
||||
data_source_code: yc_oa
|
|
@ -1,21 +0,0 @@
|
|||
#######################本地环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: /Users/xiangerlin/work/app/logs/ydc
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://ufidahz.com.cn: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
|
||||
username: root
|
||||
password: bd993088e8a7c3dc5f44441617f9b4bf
|
||||
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
savefile:
|
||||
# 文件保存路径
|
||||
path: /Users/xiangerlin/work/app/logs/ydc
|
|
@ -1,31 +0,0 @@
|
|||
#######################本地环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: /Users/xiangerlin/work/app/logs/yuecheng
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://ufidahz.com.cn: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
|
|
@ -1,23 +0,0 @@
|
|||
#######################本地环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: E:\yongansystem\log
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://ufidahz.com.cn: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
|
||||
username: root
|
||||
password: bd993088e8a7c3dc5f44441617f9b4bf
|
||||
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
savefile:
|
||||
# 文件保存路径
|
||||
path: E:\yongansystem\log
|
||||
zt:
|
||||
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -1,39 +0,0 @@
|
|||
#######################zqtlocal环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: D:/local/logs/
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://ufidahz.com.cn: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: D:/local/upload/
|
||||
pluginpath : D:/local/plugin/
|
||||
tomcatpath: E:\apache-tomcat-9.0.27\webapps\kangarooDataCenterV3\WEB-INF\classes\
|
||||
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
|
||||
zt:
|
||||
url: http://127.0.0.1:9082/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -125,4 +125,4 @@ jeecg :
|
|||
minio_pass: ??
|
||||
bucketName: ??
|
||||
data:
|
||||
use: true
|
||||
use: false
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<plugin>
|
||||
<id>CBS8PayApplyPlugin</id>
|
||||
<name>cbs8插件</name>
|
||||
<category>202406070001</category>
|
||||
</plugin>
|
|
@ -1,10 +0,0 @@
|
|||
<?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>
|
|
@ -1,5 +0,0 @@
|
|||
<?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>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<plugin>
|
||||
<id>MdmPlugin</id>
|
||||
<name>MdmPlugin插件</name>
|
||||
<category>90000001</category>
|
||||
</plugin>
|
|
@ -1,5 +0,0 @@
|
|||
<?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="mdmCustomerDao" class="com.hzya.frame.plugin.masterData.dao.impl.MdmDaoImpl" />
|
||||
</beans>
|
|
@ -1,5 +0,0 @@
|
|||
<?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="mdmCustomerInitializer" class="com.hzya.frame.plugin.masterData.plugin.MdmPluginInitializer" />
|
||||
</beans>
|
|
@ -1,5 +0,0 @@
|
|||
<?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="mdmCustomerService" class="com.hzya.frame.plugin.masterData.service.impl.MdmServiceImpl" />
|
||||
</beans>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<plugin>
|
||||
<id>PayBillPlugin</id>
|
||||
<name>OA付款单插件</name>
|
||||
<category>202406210001</category>
|
||||
</plugin>
|
|
@ -1,6 +0,0 @@
|
|||
<?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="PayBillPluginInitializer" class="com.hzya.frame.plugin.a8bill.plugin.PayBillPluginInitializer" />
|
||||
<bean name="RecBillPluginInitializer" class="com.hzya.frame.plugin.a8bill.plugin.RecBillPluginInitializer" />
|
||||
</beans>
|
|
@ -1,5 +0,0 @@
|
|||
<?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="PayBillPluginService" class="com.hzya.frame.plugin.a8bill.service.impl.PayBillServiceImpl" />
|
||||
</beans>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<plugin>
|
||||
<id>SeeyonExtPlugin</id>
|
||||
<name>seeyonExt插件</name>
|
||||
<category>202405150001</category>
|
||||
</plugin>
|
|
@ -1,5 +0,0 @@
|
|||
<?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="seeyonExtPluginInitializer" class="com.hzya.frame.plugin.seeyonExt.plugin.SeeyonExtPluginInitializer" />
|
||||
</beans>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<plugin>
|
||||
<id>SysMessageManageLogPlugin</id>
|
||||
<name>SysMessageManageLogPlugin插件</name>
|
||||
<category>202403080010</category>
|
||||
</plugin>
|
|
@ -1,4 +0,0 @@
|
|||
<?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">
|
||||
</beans>
|
|
@ -1,5 +0,0 @@
|
|||
<?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="sysMessageManageLogInitializer" class="com.hzya.frame.plugin.sysMessageManageLogBack.plugin.SysMessageManageLogPluginInitializer" />
|
||||
</beans>
|
|
@ -1,5 +0,0 @@
|
|||
<?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="sysESBMessageManageLogService" class="com.hzya.frame.plugin.sysMessageManageLogBack.service.impl.SysESBMessageManageLogServiceImpl" />
|
||||
</beans>
|
|
@ -1,24 +0,0 @@
|
|||
INSERT INTO sys_application (id, app_logo, app_status, name, version_number, access_mode, affiliation_field, manufacturer, app_introduction, client_path, app_id, system_address, web_path, program_path, public_key, secret_key, interface_address, interface_status, app_type, db_status, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('70d24970f0e8429485220fff1e331e50', NULL, '1', '东进环思', '1.0', '[\"2\",\"1\"]', '1', '环丝应用(东进环思)', '环丝应用(东进环思)', NULL, 800033, NULL, NULL, NULL, 'ZJYA0iD/DtdYCBYE1AqHlz4All0gLb96p8G1xNjdGz4tDZlCe7eDIk+3zDUT+v578prj', 'nL860JIPqIuB0jUsJE5RZLcyZfi8ArRSz6rk0h69TDbkf3Qq0Jstwk9FIgbGa6ejj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=', NULL, '2', '1', '2', 25, NULL, 'Y', '2024-07-16 10:14:05', '1', '2024-07-16 10:14:05', '1');
|
||||
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('0be0862057b249c5b3b902f9d2e18744', 8000330000, NULL, '1', '70d24970f0e8429485220fff1e331e50', '770605aa7fdd4673960b488ee37538ad', '客商档案新增', '中台—环思,客商档案同步环思', '2', NULL, '1', '1', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"f7c387b0-d5d3-48d3-9aa6-c84e9b12a06d\",\"parameterName\":\"body\",\"first\":true}]', '[]', 252, '1', '2024-07-16 10:53:07', '1', '2024-07-16 10:53:07', 'Y', NULL, NULL, NULL, '2', '1', '1', '1');
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('362bc0ef8a0e4a8fbb015e7ff241147b', 8000330002, NULL, '1', '70d24970f0e8429485220fff1e331e50', 'a02cccd7bac94d7ba2a42bf684d9ab4c', '物料分类新增', '中台—环思,物料分类同步环思', '2', NULL, '1', '1', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"0c291ae8-7bc7-46ad-8954-4f9b1cf03454\",\"parameterName\":\"body\",\"first\":true}]', '[]', 254, '1', '2024-07-16 10:54:57', '1', '2024-07-16 10:54:57', 'Y', NULL, NULL, NULL, '2', '1', '1', '1');
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('3c40a2e4a5a7444d9cdb28b9c8e4e1a9', 8000330003, NULL, '1', '70d24970f0e8429485220fff1e331e50', 'a02cccd7bac94d7ba2a42bf684d9ab4c', '物料分类修改', '中台—环思,物料分类同步环思\n', '2', NULL, '1', '1', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"f3b82e1a-1fea-4804-bbbc-17ea51a78871\",\"parameterName\":\"body\",\"first\":true}]', '[]', 255, '1', '2024-07-16 10:55:21', '1', '2024-07-16 10:55:21', 'Y', NULL, NULL, NULL, '2', '1', '1', '1');
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('5d89843a48c248649dfc351913666f6e', 8000330001, NULL, '1', '70d24970f0e8429485220fff1e331e50', '770605aa7fdd4673960b488ee37538ad', '客商档案修改', '中台—环思,客商档案同步环思\n', '2', NULL, '1', '1', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"376565d7-604b-4451-9ce9-c8593b925b11\",\"parameterName\":\"body\",\"first\":true}]', '[]', 253, '1', '2024-07-16 10:53:33', '1', '2024-07-16 10:53:33', 'Y', NULL, NULL, NULL, '2', '1', '1', '1');
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('72a4da1a75394bf282260a755dd5b083', 8000330005, NULL, '1', '70d24970f0e8429485220fff1e331e50', '3b0732a8f5fc443d984c06b9fbde6459', '物料档案修改', '中台—环思,物料档案同步环思', '2', NULL, '1', '1', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"9d3ef246-32bd-47ec-9acf-79f8bd83824f\",\"parameterName\":\"body\",\"first\":true}]', '[]', 257, '1', '2024-07-16 10:56:23', '1', '2024-07-16 10:56:23', 'Y', NULL, NULL, NULL, '2', '1', '1', '1');
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('c9a1fa17652f4d4fabe9d9656b0998ea', 8000330004, NULL, '1', '70d24970f0e8429485220fff1e331e50', '3b0732a8f5fc443d984c06b9fbde6459', '物料档案新增', '中台—环思,物料档案同步环思\n', '2', NULL, '1', '1', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"70c43e7b-ce2e-4746-a358-26151c933a4d\",\"parameterName\":\"body\",\"first\":true}]', '[]', 256, '1', '2024-07-16 10:56:03', '1', '2024-07-16 10:56:03', 'Y', NULL, NULL, NULL, '2', '1', '1', '1');
|
||||
|
||||
INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('3b0732a8f5fc443d984c06b9fbde6459', '70d24970f0e8429485220fff1e331e50', '物料档案', 82, NULL, 'Y', '2024-07-16 10:55:32', '1', '2024-07-16 10:55:32', '1');
|
||||
INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('770605aa7fdd4673960b488ee37538ad', '70d24970f0e8429485220fff1e331e50', '客商档案', 80, NULL, 'Y', '2024-07-16 10:52:27', '1', '2024-07-16 10:52:27', '1');
|
||||
INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('a02cccd7bac94d7ba2a42bf684d9ab4c', '70d24970f0e8429485220fff1e331e50', '物料分类', 81, NULL, 'Y', '2024-07-16 10:54:23', '1', '2024-07-16 10:54:23', '1');
|
||||
|
||||
update sys_application_api set extension_api = '2' where extension_api is null;
|
||||
update sys_application_api set return_success_field = 'status' where return_success_field is null;
|
||||
update sys_application_api set return_success_value = '200' where return_success_value is null;
|
||||
update sys_application_api set return_msg = 'msg' where return_msg is null;
|
||||
|
||||
|
||||
|
||||
|
||||
commit;
|
||||
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
INSERT INTO sys_application (id, app_logo, app_status, name, version_number, access_mode, affiliation_field, manufacturer, app_introduction, client_path, app_id, system_address, web_path, program_path, public_key, secret_key, interface_address, interface_status, app_type, db_status, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('ae67183945fe48a890a5bedde34a23e8', NULL, '1', '宁波银行财资大管家', 'V1.0', '[\"1\",\"2\",\"3\",\"4\"]', '1', '宁波银行', '东进新材料对接宁波财资大管家', NULL, 800036, NULL, NULL, NULL, 'ZJYAA9Z/jWMe1rC+Sjh8NVMRtwVMb5Bn0DbmIEsgpVlR3C9Ce7eDIk+3zDUT+v578prj', 'B8sgQwEaskwM7BQj1XLvu3kdKD3xm7Lyd4FWsPaFQk5v+UtQLCkzVzLlCZ9Bdyv2j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=', 'http://127.0.0.1:9999/', '1', '3', '2', 23, NULL, 'Y', '2024-07-17 09:05:35', '1', '2024-07-17 09:05:35', '1');
|
||||
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('a7490cf7c5a641f68a6deb84df941d57', 8000360000, NULL, '1', 'ae67183945fe48a890a5bedde34a23e8', '58105ccc4b4b4fbf89312f85b09ea9f6', '单笔转账接口', '单笔转账接口', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":0,\"concreteType\":\"String\",\"id\":\"8db68afc-64ff-4dac-b581-168b0b15ec59\",\"parameterName\":\"yatl\",\"required\":true,\"example\":\"ningboBankTreasuryServiceImpl\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":1,\"concreteType\":\"String\",\"id\":\"9a51135c-3c31-408d-8188-e0e8def2a2ea\",\"parameterName\":\"yadj\",\"required\":true,\"example\":\"sendNbBank\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":2,\"concreteType\":\"String\",\"id\":\"450138d7-fc93-4963-b891-beee640e1faa\",\"parameterName\":\"appKey\",\"required\":true,\"example\":\"54b3e05c-7983-4e6c-8920-f9ab8a0004a6\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":3,\"concreteType\":\"String\",\"description\":\"商户私钥\",\"id\":\"811d51c8-07a2-4245-b01f-a2f0de56db68\",\"parameterName\":\"privateKey\",\"required\":true,\"example\":\"MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgTt6OadouxxxSDg/0SZdOIBqtnFGKrpwmL+quEUf+hfSgCgYIKoEcz1UBgi2hRANCAAQGHNN2NO7btp+w1248yk98E0asGC8sG0bmIzdom4M0xp3vc4IfXjmZ8omUz4oVcjzAuyMSSpJM6uPLcU1SH4HZ\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":4,\"concreteType\":\"String\",\"id\":\"8da0ab8c-c518-439b-a241-0d66cd96ca21\",\"parameterName\":\"publicUrl\",\"required\":true,\"example\":\"http://cz-test.nbcb.com.cn:7070/nbcb/api\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":5,\"concreteType\":\"String\",\"description\":\"开放平台公钥\",\"id\":\"dee6fb29-61aa-4fd8-905c-e15904c5a35a\",\"parameterName\":\"publicKey\",\"required\":true,\"example\":\"MFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAEXAt6fxeKlpREIyXoT3jDwGU7L6JkKrzdOKP1cMB14rtNwwlyaUGLrtuHVoArAHP3x7XN2rUw0GxSngYQwOAsjQ==\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":6,\"concreteType\":\"String\",\"description\":\"财资客户号\",\"id\":\"6d499c86-b66b-40e2-8f0f-48ea392478f5\",\"parameterName\":\"custId\",\"required\":true,\"example\":\"0000112058\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":7,\"concreteType\":\"String\",\"id\":\"b791597e-a44e-4c43-840e-daf35aa4856f\",\"parameterName\":\"productID\",\"required\":true,\"example\":\"tmsSettle\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":8,\"concreteType\":\"String\",\"id\":\"80dfdc20-38a6-4191-8c98-e32ff4c683d1\",\"parameterName\":\"serviceID\",\"required\":true,\"example\":\"singleTransfer\"}]', '[]', '1', '[{\"index\":0,\"id\":\"159491c8-a097-4df4-9abf-98f777b4f2c5\",\"parameterName\":\"body\",\"first\":true}]', '[]', 244, '1', '2024-07-17 09:05:35', '1', '2024-07-17 09:05:35', 'Y', NULL, 'ningboBankTreasuryServiceImpl', 'doChangeData', '1', 'retCode', '0000', 'retMsg');
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('ecdaa2fb5a754aab984ea94fed80a840', 8000360001, NULL, '1', 'ae67183945fe48a890a5bedde34a23e8', 'e6d546212791410593f758e289733361', '交易结果接口', '交易结果接口', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":0,\"parameterName\":\"yatl\",\"id\":\"08d57d17-352f-4eb5-ab35-0c8f8d37c54f\",\"required\":true,\"example\":\"ningboBankTreasuryServiceImpl\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":1,\"parameterName\":\"yadj\",\"id\":\"c0412200-27c5-42ad-bd92-3d60cf5fae05\",\"required\":true,\"example\":\"sendNbBank\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"appKey\",\"id\":\"e4be39d4-016f-4048-85a7-4751a0b45221\",\"required\":true,\"example\":\"54b3e05c-7983-4e6c-8920-f9ab8a0004a6\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":3,\"description\":\"商户私钥\",\"parameterName\":\"privateKey\",\"id\":\"8027bd40-b0db-4040-9e1c-7971eb2c4480\",\"required\":true,\"example\":\"MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgTt6OadouxxxSDg/0SZdOIBqtnFGKrpwmL+quEUf+hfSgCgYIKoEcz1UBgi2hRANCAAQGHNN2NO7btp+w1248yk98E0asGC8sG0bmIzdom4M0xp3vc4IfXjmZ8omUz4oVcjzAuyMSSpJM6uPLcU1SH4HZ\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":4,\"parameterName\":\"publicUrl\",\"id\":\"89c7052d-8a90-4a22-bc95-a10b656d7ad6\",\"required\":true,\"example\":\"http://cz-test.nbcb.com.cn:7070/nbcb/api\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":5,\"description\":\"开放平台公钥\",\"parameterName\":\"publicKey\",\"id\":\"c96236b3-ed05-437a-ab01-829e8052dee9\",\"required\":true,\"example\":\"MFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAEXAt6fxeKlpREIyXoT3jDwGU7L6JkKrzdOKP1cMB14rtNwwlyaUGLrtuHVoArAHP3x7XN2rUw0GxSngYQwOAsjQ==\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":6,\"description\":\"财资客户号\",\"parameterName\":\"custId\",\"id\":\"bddeecac-2ca0-498a-9063-3655c50b8089\",\"required\":true,\"example\":\"0000112058\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":7,\"concreteType\":\"String\",\"id\":\"b2785506-3c80-47f7-a211-8ccb9ce35a34\",\"parameterName\":\"productID\",\"required\":true,\"example\":\"tmsSettle\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":8,\"concreteType\":\"String\",\"id\":\"eb20bd5c-19e2-413b-8c4d-3ce5272bc691\",\"parameterName\":\"serviceID\",\"required\":true,\"example\":\"querySingleTransferResult\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"流水号\",\"parameterName\":\"serialNo\",\"id\":\"6b973918-89bf-43b4-b9db-436928dff463\",\"required\":true,\"example\":\"Api20230607003\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"726732fd-30ec-4aec-a572-590a3d9bca68\",\"parameterName\":\"body\",\"first\":true,\"required\":true}]', '[]', 245, '1', '2024-07-17 09:05:35', '1', '2024-07-17 09:05:35', 'Y', NULL, 'ningboBankTreasuryServiceImpl', 'doChangeData', '1', 'retCode', '0000', 'retMsg');
|
||||
|
||||
INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('58105ccc4b4b4fbf89312f85b09ea9f6', 'ae67183945fe48a890a5bedde34a23e8', '转账', 77, NULL, 'Y', '2024-07-17 09:05:35', '1', '2024-07-17 09:05:35', '1');
|
||||
INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('e6d546212791410593f758e289733361', 'ae67183945fe48a890a5bedde34a23e8', '交易结果', 78, NULL, 'Y', '2024-07-17 09:05:35', '1', '2024-07-17 09:05:35', '1');
|
||||
|
||||
update sys_application_api set extension_api = '2' where extension_api is null;
|
||||
update sys_application_api set return_success_field = 'status' where return_success_field is null;
|
||||
update sys_application_api set return_success_value = '200' where return_success_value is null;
|
||||
update sys_application_api set return_msg = 'msg' where return_msg is null;
|
||||
|
||||
|
||||
commit;
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
|
@ -1,35 +0,0 @@
|
|||
INSERT INTO sys_application (id, app_logo, app_status, name, version_number, access_mode, affiliation_field, manufacturer, app_introduction, client_path, app_id, system_address, web_path, program_path, public_key, secret_key, interface_address, interface_status, app_type, db_status, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('53936623a8bd451fb7f5fed09cb36fab', NULL, '1', '东进致远OA', '8.2', '[\"1\"]', '11', '致远', '越城区发展集团致远OA', 'http://ufidahz.com.cn:9955/', 800034, NULL, 'http://ufidahz.com.cn:9955/', 'http://ufidahz.com.cn:9955/', 'ZJYATW/MfYZX7zF0eAh4DJXbyTLwUtwSoSz5Y/o1ksAaN/dCe7eDIk+3zDUT+v578prj', '+5BUkLQh3iX3VHgEt5bE2IPh+ZeebGvDaEspsvVu739Ar6sFnwg+fpPod4t6XhoTj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=', 'http://115.239.174.22:9999', '1', '1', '1', 17, NULL, 'Y', '2024-07-16 10:15:14', '1', '2024-07-16 10:17:56', '1');
|
||||
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('23499f05d50b495d989208e124469eff', 8000340004, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '33406ee83887421bb1cdeb728606dcbf', '按登录名取人员信息', '按登录名取人员信息', '2', NULL, '1', '/seeyon/rest/orgMember', '1', '2', '10000', '100', '[]', '[]', '1', '[{\"id\":\"c8620cd3-7ee3-47a9-8b1d-88d26f7c21d8\",\"parameterName\":\"body\",\"first\":true}]', '[]', 228, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, NULL, NULL, '2', 'enabled', 'true', 'enabled');
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('539a319b80224ce6a39106324bb68ef9', 8000340005, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '81333abd92ac40d7b15b080d6d3750a9', '附件上传', '假的', '2', NULL, '1', '/seeyon/rest/attachment', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"03521015-0cf3-4b9f-b0d6-41d13b5578e4\",\"parameterName\":\"body\",\"first\":true}]', '[]', 235, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, NULL, NULL, '1', '1', '1', '1');
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('6cc3ea97cec24265810efced08509203', 8000340007, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '27eae7084739493c97f2da86ba5f434b', '支付申请明细日志', 'OA付款推到CBS的支付申请日志', '2', '6f561dd4a5a74bba850cc37e5c287e92', '1', '/seeyon/rest/form/import/formmain_0232', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"cc04b232-1755-49ab-b5bd-451ed4e7a9cf\",\"parameterName\":\"token\"}]', '[]', '1', '[{\"index\":0,\"id\":\"e167aa7a-43c0-476c-ae0d-9fc75752fc77\",\"parameterName\":\"body\",\"first\":true}]', '[]', 237, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, 'CbsLogServiceImpl', 'getTokenExt', '1', '1', '1', '1');
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('8aa016962a474a54a4a8efc60f284fa3', 8000340006, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '27eae7084739493c97f2da86ba5f434b', 'CBS收款记录', '保存CBS收款记录到OA底表\n调用的是xml格式的接口', '2', '6f561dd4a5a74bba850cc37e5c287e92', '1', '/seeyon/rest/form/import/formmain_0233', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"3a5e0ff5-7790-4402-9e93-a175f35a6630\",\"parameterName\":\"token\"}]', '[]', '1', '[{\"id\":\"a09d407c-df44-46fa-ab3c-cf99f1332b17\",\"parameterName\":\"body\",\"first\":true}]', '[]', 236, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, 'CbsLogServiceImpl', 'getTokenExt', '1', '1', '1', '1');
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('9f047fd9a30246b48d12844da5ab59d5', 8000340003, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '27eae7084739493c97f2da86ba5f434b', '无流程表单批量新增', NULL, '2', NULL, '1', '/seeyon/rest/cap4/form/soap/batch-add', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"ad5f0b02-d555-4f65-8856-6afbab270870\",\"parameterName\":\"body\",\"first\":true}]', '[]', 221, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, NULL, NULL, '2', 'code', '0', 'code');
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('c75bab671dc94be68bf4498d49a93951', 8000340002, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '3b45cc93711c49c6a150d3b6aeddc60f', '流程表单发起', '流程表单发起', '2', NULL, '1', '/seeyon/rest/bpm/process/start', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"c25f517e-b8b8-4fcb-9466-6952ff754a1c\",\"parameterName\":\"body\",\"first\":true}]', '[]', 220, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, NULL, NULL, '2', 'code', '0', 'code');
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('c7ac1418cb0a4061ade501ee5614630d', 8000340000, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '75200bc1ee464e86accf4022c71cc16c', 'token', '获取oatoken', '2', NULL, '1', '/seeyon/rest/token', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"description\":\"hzya_rest\",\"id\":\"a7f634e6-4325-409f-9d4d-c05418153f13\",\"parameterName\":\"userName\",\"example\":\"hzya_rest\"},{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"id\":\"f34ec8a4-10ca-4af5-8895-0bc650f92516\",\"parameterName\":\"password\",\"example\":\"5339d0e3-b23b-45d6-b301-c59de8bd447a\"},{\"parameterType\":\"fundamental\",\"index\":2,\"concreteType\":\"String\",\"description\":\"hzya_rest\",\"id\":\"4435d5e8-20d1-4b39-9286-77589e338c1e\",\"parameterName\":\"loginName\",\"example\":\"hzya_rest\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"description\":\"hzyaRest\",\"id\":\"37d4be39-a313-4776-9b80-214bb73666aa\",\"parameterName\":\"userName\",\"example\":\"hzyaRest\"},{\"parameterType\":\"fundamental\",\"index\":2,\"concreteType\":\"String\",\"description\":\"0c92d077-03ea-4d58-92c2-c743dae957d1\",\"id\":\"9fb64713-6645-429d-b377-66f4bc72e968\",\"parameterName\":\"password\",\"example\":\"0c92d077-03ea-4d58-92c2-c743dae957d1\"},{\"parameterType\":\"fundamental\",\"index\":3,\"concreteType\":\"String\",\"description\":\"xel\",\"id\":\"16789d17-bc77-4fd5-9ca9-5dbbbed2d59b\",\"parameterName\":\"loginName\",\"example\":\"xel\"}],\"index\":0,\"concreteType\":\"Object\",\"id\":\"8aef3b7b-e4b7-4465-b0c5-88ecc5f84200\",\"parameterName\":\"body\",\"first\":true}]', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"85f455c0-eed0-4292-8130-a52c242974ec\",\"parameterName\":\"userName\"},{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"id\":\"902fce32-f09d-4ce6-ac88-a06ef1950963\",\"parameterName\":\"id\"}]', 214, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, NULL, NULL, '2', 'userName', 'hzyaRest', 'id不为空说明成功');
|
||||
INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('f3778b38d03048249e9d063abbcacc5c', 8000340001, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '3b45cc93711c49c6a150d3b6aeddc60f', '更新表单', '更新表单', '1', NULL, '1', '/seeyon/rest/businessResource/updateForm', '1', '1', '10000', '100', '[{\"parameterType\":\"authport\",\"index\":0,\"concreteType\":\"String\",\"id\":\"fdc278ea-8981-4db0-92b4-0b067d740ab6\",\"parameterName\":\"token\",\"example\":[\"id\"]}]', '[]', '1', '[]', '[]', 215, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, NULL, NULL, '2', 'code', '0', '0表示成功');
|
||||
|
||||
INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('27eae7084739493c97f2da86ba5f434b', '53936623a8bd451fb7f5fed09cb36fab', '无流程表单', 65, NULL, 'Y', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', '1');
|
||||
INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('33406ee83887421bb1cdeb728606dcbf', '53936623a8bd451fb7f5fed09cb36fab', '组织架构', 70, NULL, 'Y', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', '1');
|
||||
INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('3b45cc93711c49c6a150d3b6aeddc60f', '53936623a8bd451fb7f5fed09cb36fab', '流程表单', 64, NULL, 'Y', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', '1');
|
||||
INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('75200bc1ee464e86accf4022c71cc16c', '53936623a8bd451fb7f5fed09cb36fab', 'token', 63, NULL, 'Y', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', '1');
|
||||
INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('81333abd92ac40d7b15b080d6d3750a9', '53936623a8bd451fb7f5fed09cb36fab', '附件', 66, NULL, 'Y', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', '1');
|
||||
INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('ced72ee34965400cbac80b8944fb9eda', '53936623a8bd451fb7f5fed09cb36fab', '销售合同', 84, NULL, 'Y', '2024-07-16 11:03:40', '1', '2024-07-16 11:03:40', '1');
|
||||
|
||||
INSERT INTO sys_application_database (id, app_id, source_code, source_name, source_type, source_ip, source_port, login_name, password, db_name, service_name, db_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('21a9e85a5dfc497a9fdd5b2e084b57ec', '53936623a8bd451fb7f5fed09cb36fab', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', 19, '1', '2024-07-16 10:17:56', '1', '2024-07-16 10:17:56', 'Y', NULL);
|
||||
|
||||
INSERT INTO sys_application_plugin (id, app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('9378e84eacb94edaafcc09f3469b37e1', '53936623a8bd451fb7f5fed09cb36fab', 'OA用户档案', 'MdmCustomerPlugin', '1.0', NULL, '2024-06-24 00:00:00', '1', 11, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL);
|
||||
INSERT INTO sys_application_plugin (id, app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('98929ef5049f455db40fad55b7127b21', '53936623a8bd451fb7f5fed09cb36fab', 'OA付款单同步BIP', 'PayBillPlugin', '1', NULL, '2024-06-25 00:00:00', '1', 16, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL);
|
||||
INSERT INTO sys_application_plugin (id, app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('a58d30d71f5943e9b114001ff36c69c3', '53936623a8bd451fb7f5fed09cb36fab', 'OA客户档案', 'MdmCustomerPlugin', '1.0', NULL, '2024-06-24 00:00:00', '1', 13, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL);
|
||||
INSERT INTO sys_application_plugin (id, app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('d2032b6aff7345b69553e6d0ca07c65c', '53936623a8bd451fb7f5fed09cb36fab', 'OA银行档案', 'MdmCustomerPlugin', '1.0', NULL, '2024-06-25 00:00:00', '1', 14, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL);
|
||||
|
||||
|
||||
update sys_application_api set extension_api = '2' where extension_api is null;
|
||||
update sys_application_api set return_success_field = 'status' where return_success_field is null;
|
||||
update sys_application_api set return_success_value = '200' where return_success_value is null;
|
||||
update sys_application_api set return_msg = 'msg' where return_msg is null;
|
||||
|
||||
|
||||
commit;
|
||||
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
package com.hzya.frame;
|
||||
|
||||
import com.hzya.frame.demo.service.TestService;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.sql.SQLException;
|
||||
|
||||
@SpringBootTest
|
||||
class SpringTransactionalApplicationTests {
|
||||
|
||||
|
||||
@Resource
|
||||
private TestService testService;
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
@Test
|
||||
void testS() throws SQLException {
|
||||
}
|
||||
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
package com.hzya.frame;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.nc.service.impl.NcInterfaceServiceImpl;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @Content
|
||||
* @Author 👻👻👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-07-19 10:54
|
||||
* @Version 1.0
|
||||
*/
|
||||
@SpringBootTest
|
||||
public class Test01 {
|
||||
@Resource
|
||||
private NcInterfaceServiceImpl ncInterfaceService;
|
||||
|
||||
@Test
|
||||
public void test01() {
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
ncInterfaceService.updateUser(jsonObject);
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
|
@ -1,57 +0,0 @@
|
|||
package com.hzya.frame;
|
||||
|
||||
import org.springframework.data.annotation.Id;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
public class TestUser implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3258839839160856614L;
|
||||
@Id
|
||||
private String id;
|
||||
private String name;
|
||||
private String code;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TestUser{" +
|
||||
"id='" + id + '\'' +
|
||||
", name='" + name + '\'' +
|
||||
", code='" + code + '\'' +
|
||||
'}';
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public TestUser() {
|
||||
}
|
||||
|
||||
public TestUser(String id, String name, String code) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,45 +1,11 @@
|
|||
package com.hzya.frame;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
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.cbs8.plugin.PayApplyPluginInitializer;
|
||||
import com.hzya.frame.plugin.cbs8.plugin.PayResultPluginInitializer;
|
||||
import com.hzya.frame.plugin.cbs8.plugin.TransactionDetailPluginInitializer;
|
||||
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.mongodb.client.result.UpdateResult;
|
||||
import org.apache.http.protocol.HTTP;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.mongodb.core.MongoTemplate;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.data.mongodb.core.query.Query;
|
||||
import org.springframework.data.mongodb.core.query.Update;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.Serializable;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @ClassName dsasas
|
||||
* @Description
|
||||
|
@ -50,132 +16,6 @@ import java.util.*;
|
|||
@SpringBootTest(classes = {WebappApplication.class})
|
||||
public class temButtom {
|
||||
|
||||
@Resource
|
||||
SeeyonExtPluginInitializer seeyonExtPluginInitializer;
|
||||
@Resource
|
||||
ICbs8Service cs8Service;
|
||||
@Resource
|
||||
ICbs8ExtService cbs8ExtService;
|
||||
@Autowired
|
||||
private IPaymentService paymentService;
|
||||
@Autowired
|
||||
private PayApplyPluginInitializer payApplyPluginInitializer;
|
||||
|
||||
@Autowired
|
||||
private TransactionDetailPluginInitializer transactionDetailPluginInitializer;
|
||||
@Autowired
|
||||
private PayResultPluginInitializer payResultPluginInitializer;
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
public void cbs8PluginTest(){
|
||||
try {
|
||||
//支付申请 测试通过
|
||||
//payApplyPluginInitializer.executeBusiness(new JSONObject());
|
||||
//查询交易明细 测试通过
|
||||
//transactionDetailPluginInitializer.executeBusiness(new JSONObject());
|
||||
//交易结果查询 未测试 (OA没有日志底表,无法测试)
|
||||
payResultPluginInitializer.executeBusiness(new JSONObject());
|
||||
//电子回单测试 通过apipost测试过了,可以取到cbs电子回单,只是没法上传到OA
|
||||
//
|
||||
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
@Test
|
||||
public void queryUnpaid(){
|
||||
//查询待支付的列表
|
||||
PaymentEntity paymentEntity = new PaymentEntity();
|
||||
paymentEntity.setDataSourceCode("yc-test");
|
||||
try {
|
||||
List<PaymentEntity> paymentList = paymentService.queryUnpaid(paymentEntity);
|
||||
System.out.println(paymentList);
|
||||
} 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
|
||||
public void seeyonExtTest(){
|
||||
JSONObject jsonStr = new JSONObject();
|
||||
jsonStr.put("integration_task_living_details_id","4276973516873482804");
|
||||
JSONObject requestJson = new JSONObject();
|
||||
requestJson.put("jsonStr", JSON.toJSONString(jsonStr));
|
||||
try {
|
||||
seeyonExtPluginInitializer.executeBusiness(requestJson);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test01() {
|
||||
String a = AESUtil.encrypt("hzya@1314");
|
||||
|
@ -184,109 +24,7 @@ public class temButtom {
|
|||
System.out.println(b);
|
||||
}
|
||||
|
||||
@Resource
|
||||
private MongoTemplate mongoTemplate;
|
||||
|
||||
@Test
|
||||
public void mongodbTest() {
|
||||
boolean flag = true;
|
||||
TestUser testUser = new TestUser("1","张三","U001");
|
||||
for (int i = 0; i < 20; i++) {
|
||||
int a = i+4;
|
||||
TestUser user = new TestUser(String.valueOf(a),"张三"+a,"U00"+a);
|
||||
//mongoTemplate.insert(user,"user");
|
||||
}
|
||||
//新增数据
|
||||
//mongoTemplate.insert(testUser,"user");
|
||||
System.out.println(testUser.toString());
|
||||
|
||||
|
||||
//新增或修改数据
|
||||
testUser.setName("李四");
|
||||
//mongoTemplate.save(testUser,"user");
|
||||
System.out.println(testUser.toString());
|
||||
|
||||
//批量新增
|
||||
TestUser testUser1 = new TestUser("2","王武","U002");
|
||||
TestUser testUser2 = new TestUser("3","赵六","U003");
|
||||
List<TestUser> testUsers = new ArrayList<>();
|
||||
testUsers.add(testUser1);
|
||||
testUsers.add(testUser2);
|
||||
//mongoTemplate.insert(testUsers,"user");
|
||||
|
||||
//修改数据
|
||||
Query query= new Query(Criteria.where("id").is(testUser1.getId()));
|
||||
//更新值
|
||||
Update update= new Update().set("name", testUser1.getName()+"up").set("code", testUser1.getCode());
|
||||
//更新查询满足条件的文档数据(全部)
|
||||
//UpdateResult result = mongoTemplate.updateMulti(query, update, TestUser.class,"user");
|
||||
//if(result!=null){
|
||||
// System.out.println("更新条数:" + result.getMatchedCount());
|
||||
//}
|
||||
|
||||
//删除数据
|
||||
Query query1 = new Query(Criteria.where("_id").is(testUser1.getId()));
|
||||
//List<TestUser> result1= mongoTemplate.findAllAndRemove(query1, TestUser.class,"user");
|
||||
//System.out.println("删除的文档数据:" + result1.toString());
|
||||
|
||||
//查询所有
|
||||
//List<TestUser> list = mongoTemplate.findAll(TestUser.class, "user");
|
||||
//System.out.println(list.toString());
|
||||
|
||||
|
||||
//根据id查询,注意是文档的id,不是数据行的id
|
||||
//TestUser result2 = mongoTemplate.findById("1", TestUser.class,"user");
|
||||
//System.out.println("查询结果:" + result2.toString());
|
||||
|
||||
//查询一条数据
|
||||
Query query2 = new Query(Criteria.where("name").is("赵六"));
|
||||
TestUser result3 = mongoTemplate.findOne(query2, TestUser.class,"user");
|
||||
System.out.println("查询结果:" + result3.toString());
|
||||
|
||||
//模糊查询
|
||||
Query query9 = new Query(Criteria.where("name").regex("张三"));
|
||||
List<TestUser> result9 = mongoTemplate.find(query9, TestUser.class,"user");
|
||||
System.out.println("查询结果:" + result9.toString());
|
||||
//查询列表单个查询条件
|
||||
Query query4 = new Query(Criteria.where("name").is(testUser.getName()));
|
||||
List<TestUser> result4 = mongoTemplate.find(query4, TestUser.class,"user");
|
||||
System.out.println("查询结果:" + result4.toString());
|
||||
|
||||
// 查询列表多个查询条件
|
||||
Criteria criteriaUserName = Criteria.where("name").is(testUser.getName());
|
||||
Criteria criteriaPassWord = Criteria.where("code").is(testUser.getCode());
|
||||
// 创建条件对象,将上面条件进行 AND 关联
|
||||
Criteria criteria = new Criteria().andOperator(criteriaUserName, criteriaPassWord);
|
||||
// 创建查询对象,然后将条件对象添加到其中
|
||||
Query query5 = new Query(criteria);
|
||||
List<TestUser> result5 = mongoTemplate.find(query5, TestUser.class,"user");
|
||||
System.out.println("查询结果:" + result5.toString());
|
||||
|
||||
// 创建条件对象,将上面条件进行 OR 关联
|
||||
Criteria criteria1 = new Criteria().orOperator(criteriaUserName, criteriaPassWord);
|
||||
// 创建查询对象,然后将条件对象添加到其中
|
||||
Query query6 = new Query(criteria1);
|
||||
List<TestUser> result6 = mongoTemplate.find(query6, TestUser.class,"user");
|
||||
System.out.println("查询结果:" + result6.toString());
|
||||
|
||||
// 创建条件对象条件进行 in 关联
|
||||
List<String> ids = Arrays.asList("1", "2");
|
||||
// 创建条件
|
||||
Criteria criteria7 = Criteria.where("id").in(ids);
|
||||
// 创建查询对象,然后将条件对象添加到其中
|
||||
Query query7 = new Query(criteria7);
|
||||
List<TestUser> result7 = mongoTemplate.find(query7, TestUser.class,"user");
|
||||
System.out.println("查询结果:" + result7.toString());
|
||||
|
||||
//从第一行开始,查询2条数据返回
|
||||
Query query8 = new Query(Criteria.where("name").is(testUser.getName())).with(Sort.by("code")).limit(2).skip(0);
|
||||
List<TestUser> result8 = mongoTemplate.find(query8, TestUser.class,"user");
|
||||
System.out.println("查询结果:" + result8.toString());
|
||||
|
||||
Query query10 = new Query(Criteria.where("name").is(testUser.getName()));
|
||||
long count = mongoTemplate.count(query10,"user");
|
||||
System.out.println("统计结果:" + count);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/**
|
||||
* @Content
|
||||
* @Author 👻👻👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-07-18 13:57
|
||||
* @Version 1.0
|
||||
*/
|
||||
public class Test {
|
||||
}
|
|
@ -21,43 +21,15 @@
|
|||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>${mysql-connector-java}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.hzya.bip</groupId>
|
||||
<artifactId>pubbaseapp_nccloud_rtLevel</artifactId>
|
||||
<version>1</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${basedir}/src/main/resources/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/resources/lib/yonyoulog.jar</systemPath>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.hzya.bcprov</groupId>
|
||||
<artifactId>bcprov</artifactId>
|
||||
<version>1</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${basedir}/src/main/resources/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/resources/lib/DataApiSdk-jar-with-dependencies.jar</systemPath>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.hzya.openBasicSDK</groupId>
|
||||
<artifactId>openBasicSDK</artifactId>
|
||||
<version>1</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${basedir}/src/main/resources/lib/openBasicSDK-2.1.230630.jar</systemPath>
|
||||
</dependency>
|
||||
<!-- service下的lib 写法-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.hzya.openBasicSDK</groupId>-->
|
||||
<!-- <artifactId>openBasicSDK</artifactId>-->
|
||||
<!-- <version>1</version>-->
|
||||
<!-- <scope>system</scope>-->
|
||||
<!-- <systemPath>${basedir}/src/main/resources/lib/openBasicSDK-2.1.230630.jar</systemPath>-->
|
||||
<!-- </dependency>-->
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.bip.v3.v2207.entity.BipOrgsEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface IBipOrgsDao extends IBaseDao<BipOrgsEntity, String> {
|
||||
|
||||
/**
|
||||
* 查询BIP业务单元
|
||||
* @param BipOrgsEntity
|
||||
* @return
|
||||
*/
|
||||
List<BipOrgsEntity> thirdInterfaceGetOrgs(BipOrgsEntity BipOrgsEntity);
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.bip.v3.v2207.entity.BipOrgsDetailsEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface IBipOrgsDetailsDao extends IBaseDao<BipOrgsDetailsEntity, String> {
|
||||
|
||||
/**
|
||||
* 查询BIP业务单元银行账户
|
||||
* @param BipOrgsDetailsEntity
|
||||
* @return
|
||||
*/
|
||||
List<BipOrgsDetailsEntity> thirdInterfaceGetOrgsDetails(BipOrgsDetailsEntity BipOrgsDetailsEntity);
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.dao;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.bip.v3.v2207.entity.BipSupplierEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface IBipSupplierDao extends IBaseDao<BipSupplierEntity, String> {
|
||||
|
||||
/**
|
||||
* 查询BIP供应商
|
||||
* @param bipSupplierEntity
|
||||
* @return
|
||||
*/
|
||||
List<BipSupplierEntity> thirdInterfaceGetSupplier(BipSupplierEntity bipSupplierEntity);
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.bip.v3.v2207.entity.BipSupplierDetailsEntity;
|
||||
import com.hzya.frame.bip.v3.v2207.entity.BipSupplierEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface IBipSupplierDetailsDao extends IBaseDao<BipSupplierDetailsEntity, String> {
|
||||
|
||||
/**
|
||||
* 查询BIP供应商明细
|
||||
* @param bipSupplierDetailsEntity
|
||||
* @return
|
||||
*/
|
||||
List<BipSupplierDetailsEntity> thirdInterfaceGetSupplierDetails(BipSupplierDetailsEntity bipSupplierDetailsEntity);
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.dao.impl;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.bip.v3.v2207.dao.IBipOrgsDao;
|
||||
import com.hzya.frame.bip.v3.v2207.dao.IBipSupplierDao;
|
||||
import com.hzya.frame.bip.v3.v2207.entity.BipOrgsEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository("bipOrgsDaoImpl")
|
||||
public class BipOrgsDaoImpl extends MybatisGenericDao<BipOrgsEntity,String> implements IBipOrgsDao {
|
||||
/**
|
||||
* 查询BIP业务单元
|
||||
* @param BipOrgsEntity
|
||||
* @return
|
||||
*/
|
||||
@DS("oracle91")
|
||||
@Override
|
||||
public List<BipOrgsEntity> thirdInterfaceGetOrgs(BipOrgsEntity BipOrgsEntity) {
|
||||
return super.query("com.hzya.frame.bip.v3.v2207.dao.impl.BipOrgsDaoImpl.thirdInterfaceGetOrgs",BipOrgsEntity);
|
||||
}
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.dao.impl;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.bip.v3.v2207.dao.IBipOrgsDetailsDao;
|
||||
import com.hzya.frame.bip.v3.v2207.dao.IBipSupplierDetailsDao;
|
||||
import com.hzya.frame.bip.v3.v2207.entity.BipOrgsDetailsEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository("bipOrgsDetailsDaoImpl")
|
||||
public class BipOrgsDetailsDaoImpl extends MybatisGenericDao<BipOrgsDetailsEntity,String> implements IBipOrgsDetailsDao {
|
||||
@DS("oracle91")
|
||||
@Override
|
||||
public List<BipOrgsDetailsEntity> thirdInterfaceGetOrgsDetails(BipOrgsDetailsEntity bipOrgsDetailsEntity) {
|
||||
return super.query("com.hzya.frame.bip.v3.v2207.dao.impl.BipOrgsDetailsDaoImpl.thirdInterfaceGetOrgsDetails",bipOrgsDetailsEntity);
|
||||
}
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.dao.impl;
|
||||
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.bip.v3.v2207.dao.IBipSupplierDao;
|
||||
import com.hzya.frame.bip.v3.v2207.entity.BipSupplierEntity;
|
||||
import com.hzya.frame.util.HttpUtil;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository("bipSupplierDaoImpl")
|
||||
public class BipSupplierDaoImpl extends MybatisGenericDao<BipSupplierEntity,String> implements IBipSupplierDao {
|
||||
/**
|
||||
* 查询BIP供应商
|
||||
* @param bipSupplierEntity
|
||||
* @return
|
||||
*/
|
||||
@DS("oracle91")
|
||||
@Override
|
||||
public List<BipSupplierEntity> thirdInterfaceGetSupplier(BipSupplierEntity bipSupplierEntity) {
|
||||
return super.query("com.hzya.frame.bip.v3.v2207.dao.impl.BipSupplierDaoImpl.thirdInterfaceGetSupplier",bipSupplierEntity);
|
||||
}
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.dao.impl;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
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.BipSupplierDetailsEntity;
|
||||
import com.hzya.frame.bip.v3.v2207.entity.BipSupplierEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository("bipSupplierDetailsDaoImpl")
|
||||
public class BipSupplierDetailsDaoImpl extends MybatisGenericDao<BipSupplierDetailsEntity,String> implements IBipSupplierDetailsDao {
|
||||
@DS("oracle91")
|
||||
@Override
|
||||
public List<BipSupplierDetailsEntity> thirdInterfaceGetSupplierDetails(BipSupplierDetailsEntity bipSupplierDetailsEntity) {
|
||||
return super.query("com.hzya.frame.bip.v3.v2207.dao.impl.BipSupplierDetailsDaoImpl.thirdInterfaceGetSupplierDetails",bipSupplierDetailsEntity);
|
||||
}
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.dps.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
|
||||
public interface IPayMentService {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 获取杭泰OA付款单传递CFS
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2023/10/16 11:59
|
||||
* **/
|
||||
String sendOAPayMentToCFS(JSONObject jsonObject,String type);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 获取CFS登录校验码
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2023/10/16 13:37
|
||||
* **/
|
||||
String sendCFSToken(String name,String password);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 获取杭泰OA报销单传递CFS
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2023/10/16 16:17
|
||||
* **/
|
||||
String sendExpenseToCFS(JSONObject jsonObject);
|
||||
|
||||
}
|
|
@ -1,389 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.dps.service.impl;
|
||||
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.bip.v3.v2207.dps.service.IPayMentService;
|
||||
import com.hzya.frame.dateutil.DateUtil;
|
||||
import org.dom4j.Document;
|
||||
import org.dom4j.DocumentHelper;
|
||||
import org.dom4j.Element;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.xml.sax.InputSource;
|
||||
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import java.io.StringReader;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Service(value = "payMentServiceImpl")
|
||||
public class PayMentServiceImpl implements IPayMentService {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(PayMentServiceImpl.class);
|
||||
|
||||
private static final String NAME="admin";
|
||||
private static final String PASSWORD="aHRzejg4OA==";
|
||||
private static final String CFSURL="http://101.132.140.208:26883/erp/services/";//测试端口:26893,正式端口:26883
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 杭泰OA付款单传递CFS 注:付款单,资金归集,资金拨付,同名账户划转和借款单都用同一个接口
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2023/10/13 10:40
|
||||
* **/
|
||||
public String sendOAPayMentToCFS(JSONObject jsonStr,String type){
|
||||
logger.info("开始执行杭泰OA付款单传递CFS");
|
||||
try {
|
||||
String cfsToken = sendCFSToken(NAME, PASSWORD);
|
||||
if(null!=cfsToken) {
|
||||
String jsonStrObj = jsonStr.getString("jsonStr");
|
||||
JSONObject jsonObjectMain = JSON.parseObject(jsonStrObj);
|
||||
String erpVoucherNo = jsonObjectMain.getString("erpVoucherNo");//OA主键
|
||||
String purpose = jsonObjectMain.getString("purpose");//摘要
|
||||
String isForindividual = "0";//是否对私付款
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
String documentType=null;
|
||||
switch (type){
|
||||
case "pay"://付款单
|
||||
documentType="01";
|
||||
break;
|
||||
case "fundc"://资金归集
|
||||
documentType="02";
|
||||
break;
|
||||
case "funda"://资金拨付
|
||||
documentType="03";
|
||||
break;
|
||||
case "acc"://同名账户划转
|
||||
documentType="04";
|
||||
break;
|
||||
case "loan"://借款单
|
||||
documentType="05";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
JSONArray jsonStrList = jsonObjectMain.getJSONArray("details");
|
||||
if (null != jsonStrList && jsonStrList.size() > 0) {
|
||||
for (Object seeyonEntity : jsonStrList) {
|
||||
JSONObject jsonObjectFormson = JSON.parseObject(JSON.toJSONString(seeyonEntity));
|
||||
String payerAccName = jsonObjectFormson.getString("payerAccName");//转出方账户名(付款账户)
|
||||
String payerAccNo = jsonObjectFormson.getString("payerAccNo");//转出方账号(付款账号)
|
||||
String curCode = jsonObjectFormson.getString("curCode");//付款方币种
|
||||
String payeeAccName = jsonObjectFormson.getString("payeeAccName");//收款人帐户名称
|
||||
String payeeAccNo = jsonObjectFormson.getString("payeeAccNo");//收款方账户号
|
||||
BigDecimal amount = jsonObjectFormson.getBigDecimal("amount");//发生额
|
||||
String payeeBankCode = jsonObjectFormson.getString("payeeBankCode");//联行号
|
||||
String isQuick = jsonObjectFormson.getString("isQuick");//加急标志
|
||||
String payType = jsonObjectFormson.getString("payType");//结算方式
|
||||
String businessType = jsonObjectFormson.getString("businessType");//业务类别
|
||||
stringBuffer.append("<map>\n");
|
||||
stringBuffer.append("<documentType>" + nullConvert(documentType) + "</documentType>\n");
|
||||
stringBuffer.append("<erpVoucherNo>" + nullConvert(erpVoucherNo) + "</erpVoucherNo>\n");
|
||||
//stringBuffer.append("<payerAccName>"+"浙江杭泰数智能源开发有限公司"+"</payerAccName>\n");
|
||||
stringBuffer.append("<payerAccName>"+nullConvert(payerAccName)+"</payerAccName>\n");
|
||||
//stringBuffer.append("<payerAccNo>" +"71010122002702903"+ "</payerAccNo>\n");
|
||||
stringBuffer.append("<payerAccNo>" + nullConvert(payerAccNo) + "</payerAccNo>\n");
|
||||
stringBuffer.append("<curCode>" + nullConvert(curCode) + "</curCode>\n");
|
||||
stringBuffer.append("<payeeAccName>" + nullConvert(payeeAccName) + "</payeeAccName>\n");
|
||||
stringBuffer.append("<payeeAccNo>" + nullConvert(payeeAccNo) + "</payeeAccNo>\n");
|
||||
stringBuffer.append("<amount>" + nullConvert(String.valueOf(amount)) + "</amount>\n");
|
||||
//stringBuffer.append("<payeeBankCode>"+"301331000029"+"</payeeBankCode>\n");
|
||||
stringBuffer.append("<payeeBankCode>"+nullConvert(payeeBankCode)+"</payeeBankCode>\n");
|
||||
stringBuffer.append("<isQuick>" + nullConvert(isQuick) + "</isQuick>\n");
|
||||
stringBuffer.append("<isForindividual>" + nullConvert(isForindividual) + "</isForindividual>\n");
|
||||
stringBuffer.append("<payType>" + nullConvert(payType) + "</payType>\n");
|
||||
stringBuffer.append("<purpose>" + nullConvert(purpose) + "</purpose>\n");
|
||||
stringBuffer.append("<businessType>" + nullConvert(businessType) + "</businessType>\n");
|
||||
stringBuffer.append("<debitByCustomer>" + nullConvert(jsonObjectFormson.getString("debitByCustomer")) + "</debitByCustomer>\n");//借方客商辅助核算编码
|
||||
stringBuffer.append("<debitByBankAcc>" + nullConvert(payeeAccNo) + "</debitByBankAcc>\n");//借方银行账户辅助核算编码
|
||||
stringBuffer.append("<debitByPersonnel>" + nullConvert(jsonObjectFormson.getString("debitByPersonnel")) + "</debitByPersonnel>\n");//借方人员辅助核算编码
|
||||
stringBuffer.append("<creditByCustomer>" + nullConvert(jsonObjectFormson.getString("creditByCustomer")) + "</creditByCustomer>\n");//贷方客商辅助核算编码
|
||||
stringBuffer.append("<creditByBankAcc>" + nullConvert(payerAccNo) + "</creditByBankAcc>\n");//贷方银行辅助核算编码
|
||||
stringBuffer.append("</map>\n");
|
||||
}
|
||||
} else {
|
||||
stringBuffer.append("<map>\n");
|
||||
stringBuffer.append("<erpVoucherNo>" + nullConvert(erpVoucherNo) + "</erpVoucherNo>");
|
||||
stringBuffer.append("<purpose>" + nullConvert(purpose) + "</purpose>");
|
||||
stringBuffer.append("<isForindividual>" + nullConvert(isForindividual) + "</isForindividual>");
|
||||
stringBuffer.append("</map>\n");
|
||||
}
|
||||
String result=null;
|
||||
String xml= requestXML(cfsToken,"BkPaymentMainExchange",stringBuffer,"OA付款单同步发送");
|
||||
String url = "HTSZ_OA_BkPaymentMainWebService?wsdl";
|
||||
switch (type){
|
||||
case "pay"://付款单
|
||||
logger.info("OA付款单发送CFS的请求参数为:{}", xml);
|
||||
result = HttpRequest.post(CFSURL+url).header("Content-Type", "soap/xml").timeout(30000).body(xml).execute().body();
|
||||
logger.info("OA付款单发送CFS的返回参数为:{}", result);
|
||||
break;
|
||||
case "fundc"://资金归集
|
||||
logger.info("OA资金归集发送CFS的请求参数为:{}", xml);
|
||||
result = HttpRequest.post(CFSURL+url).header("Content-Type", "soap/xml").timeout(30000).body(xml).execute().body();
|
||||
logger.info("OA资金归集发送CFS的返回参数为:{}", result);
|
||||
break;
|
||||
case "funda"://资金调拨
|
||||
logger.info("OA资金拨付发送CFS的请求参数为:{}", xml);
|
||||
result = HttpRequest.post(CFSURL+url).header("Content-Type", "soap/xml").timeout(30000).body(xml).execute().body();
|
||||
logger.info("OA资金拨付发送CFS的返回参数为:{}", result);
|
||||
break;
|
||||
case "acc"://同名账户划转
|
||||
logger.info("OA同名账户划转发送CFS的请求参数为:{}", xml);
|
||||
result = HttpRequest.post(CFSURL+url).header("Content-Type", "soap/xml").timeout(30000).body(xml).execute().body();
|
||||
logger.info("OA同名账户划转发送CFS的返回参数为:{}", result);
|
||||
break;
|
||||
case "loan"://借款单
|
||||
logger.info("OA借还款发送CFS的请求参数为:{}", xml);
|
||||
result = HttpRequest.post(CFSURL+url).header("Content-Type", "soap/xml").timeout(30000).body(xml).execute().body();
|
||||
logger.info("OA借还款发送CFS的返回参数为:{}", result);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return analyzeXML(result,"pay");
|
||||
}else{
|
||||
logger.info("请先登录CFS登录接口获取Token");
|
||||
return null;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
logger.info("杭泰OA付款单传递CFS错误,原因为:{}", e.getMessage());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 获取CFS登录校验码
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2023/10/13 15:38
|
||||
* **/
|
||||
public String sendCFSToken(String name,String password) {
|
||||
try {
|
||||
String xml="<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:mdm=\"http://mdmData.server.webservice.banck.com\">\n" +
|
||||
" <soap:Header/>\n" +
|
||||
" <soap:Body>\n" +
|
||||
" <mdm:intoPaymentDataXml>\n" +
|
||||
" <!--Optional:-->\n" +
|
||||
" <mdm:xml>\n" +
|
||||
" <![CDATA[\n" +
|
||||
" <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
|
||||
"<message>\n" +
|
||||
"<head>\n" +
|
||||
"<transCode>LogOn</transCode>\n" +
|
||||
"<erpTimestamp>"+DateUtil.dateToString(new Date(), "yyyy-MM-dd HH:mm:ss")+"</erpTimestamp>\n" +
|
||||
"<sourcePlat>OA</sourcePlat>\n" +
|
||||
"<desPlat>CFS</desPlat>\n" +
|
||||
"<rmk>OA登录验证发送</rmk>\n" +
|
||||
"</head>\n" +
|
||||
"<body>\n" +
|
||||
"<user>"+name+"</user>\n" +
|
||||
"<password>"+password+"</password>\n" +
|
||||
"</body>\n" +
|
||||
"</message>\n" +
|
||||
" ]]>\n" +
|
||||
" </mdm:xml>\n" +
|
||||
" </mdm:intoPaymentDataXml>\n" +
|
||||
" </soap:Body>\n" +
|
||||
"</soap:Envelope>";
|
||||
logger.info("CFS登录的请求参数为:{}",xml);
|
||||
String url="HTSZ_OA_LogOnWebService?wsdl";
|
||||
String result = HttpRequest.post(CFSURL+url).header("Content-Type", "soap/xml").timeout(30000).body(xml).execute().body();
|
||||
logger.info("CFS登录的返回参数为:{}",result);
|
||||
return analyzeXML(result,"login");
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
logger.info("获取CFS登录失败,原因为:{}",e.getMessage());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 获取杭泰OA报销单传递CFS
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2023/10/16 16:17
|
||||
* **/
|
||||
@Override
|
||||
public String sendExpenseToCFS(JSONObject jsonStr) {
|
||||
logger.info("开始执行杭泰OA报销单传递CFS");
|
||||
try {
|
||||
String token = sendCFSToken(NAME, PASSWORD);
|
||||
if(null != token){
|
||||
String jsonStrObj = jsonStr.getString("jsonStr");
|
||||
JSONObject jsonObjectMain = JSON.parseObject(jsonStrObj);
|
||||
String erpVoucherNo = jsonObjectMain.getString("erpVoucherNo");//OA主键
|
||||
String purpose = jsonObjectMain.getString("purpose");//摘要
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
JSONArray jsonStrList = jsonObjectMain.getJSONArray("details");
|
||||
if(null != jsonStrList && jsonStrList.size()>0){
|
||||
for (Object o : jsonStrList) {
|
||||
JSONObject jsonObjectDetails = JSON.parseObject(JSON.toJSONString(o));
|
||||
String payerAccName = jsonObjectDetails.getString("payerAccName");//转出方账户名(付款账户)
|
||||
String payerAccNo = jsonObjectDetails.getString("payerAccNo");//转出方账号(付款账号)
|
||||
String curCode = jsonObjectDetails.getString("curCode");//付款方币种
|
||||
String payeeAccName = jsonObjectDetails.getString("payeeAccName");//收款人帐户名称
|
||||
String payeeAccNo = jsonObjectDetails.getString("payeeAccNo");//收款方账户号
|
||||
BigDecimal amount = jsonObjectDetails.getBigDecimal("amount");//发生额
|
||||
String payeeBankCode = jsonObjectDetails.getString("payeeBankCode");//联行号
|
||||
String isQuick = jsonObjectDetails.getString("isQuick");//加急标志
|
||||
String payType = jsonObjectDetails.getString("payType");//结算方式
|
||||
stringBuffer.append("<map>\n");
|
||||
stringBuffer.append("<erpVoucherNo>" + nullConvert(erpVoucherNo) + "</erpVoucherNo>\n");
|
||||
stringBuffer.append("<payerAccName>" + nullConvert(payerAccName) + "</payerAccName>\n");
|
||||
//stringBuffer.append("<payerAccName>"+"浙江杭泰数智能源开发有限公司"+"</payerAccName>\n");
|
||||
stringBuffer.append("<payerAccNo>" + nullConvert(payerAccNo) + "</payerAccNo>\n");
|
||||
//stringBuffer.append("<payerAccNo>" +"71010122002702903"+ "</payerAccNo>\n");
|
||||
stringBuffer.append("<curCode>" + nullConvert(curCode) + "</curCode>\n");
|
||||
stringBuffer.append("<payeeAccName>" + nullConvert(payeeAccName) + "</payeeAccName>\n");
|
||||
stringBuffer.append("<payeeAccNo>" + nullConvert(payeeAccNo) + "</payeeAccNo>\n");
|
||||
stringBuffer.append("<amount>" + nullConvert(String.valueOf(amount)) + "</amount>\n");
|
||||
stringBuffer.append("<payeeBankCode>" + nullConvert(payeeBankCode) + "</payeeBankCode>\n");
|
||||
//stringBuffer.append("<payeeBankCode>"+"301331000029"+"</payeeBankCode>\n");
|
||||
stringBuffer.append("<isQuick>" + nullConvert(isQuick) + "</isQuick>\n");
|
||||
stringBuffer.append("<payType>" + nullConvert(payType) + "</payType>\n");
|
||||
stringBuffer.append("<purpose>" + nullConvert(purpose) + "</purpose>\n");
|
||||
stringBuffer.append("</map>\n");
|
||||
}
|
||||
} else {
|
||||
stringBuffer.append("<map>\n");
|
||||
stringBuffer.append("<erpVoucherNo>" + erpVoucherNo + "</erpVoucherNo>\n");
|
||||
stringBuffer.append("<purpose>" + purpose + "</purpose>\n");
|
||||
stringBuffer.append("</map>\n");
|
||||
}
|
||||
String xml= requestXML(token,"BkExpenseExchange",stringBuffer,"OA费用报销单同步发送");
|
||||
logger.info("OA报销单发送CFS的请求参数为:{}", xml);
|
||||
String url = "HTSZ_OA_BkExpenseWebService?wsdl";
|
||||
String result = HttpRequest.post(CFSURL+url).header("Content-Type", "soap/xml").timeout(30000).body(xml).execute().body();
|
||||
logger.info("OA报销单发送CFS的返回参数为:{}", result);
|
||||
return analyzeXML(result,"pay");
|
||||
}
|
||||
}catch (Exception e){
|
||||
logger.info("杭泰OA报销单传递CFS错误,原因为:{}", e.getMessage());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//null转成空字符串
|
||||
private static String nullConvert(String str){
|
||||
if (null == str){
|
||||
return "";
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
private String requestXML(String token,String code,StringBuffer stringBuffer,String remark){
|
||||
String xml = "<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:mdm=\"http://mdmData.server.webservice.banck.com\">\n" +
|
||||
" <soap:Header/>\n" +
|
||||
" <soap:Body>\n" +
|
||||
" <mdm:intoPaymentDataXml>\n" +
|
||||
" <!--Optional:-->\n" +
|
||||
" <mdm:xml>\n" +
|
||||
" <![CDATA[\n" +
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
|
||||
"<message>\n" +
|
||||
"<head>\n" +
|
||||
"<transCode>" + code + "</transCode>\n" +
|
||||
"<erpTimestamp>" + DateUtil.dateToString(new Date(), "yyyy-MM-dd HH:mm:ss") + "</erpTimestamp>\n" +
|
||||
"<sourcePlat>OA</sourcePlat>\n" +
|
||||
"<desPlat>CFS</desPlat>\n" +
|
||||
"<rmk>" + remark + "</rmk>\n" +
|
||||
"<sessionId>" + token + "</sessionId>\n" +
|
||||
"</head>\n" +
|
||||
"<body>\n" +
|
||||
"<list>\n";
|
||||
if (stringBuffer != null) {
|
||||
xml += stringBuffer.toString();
|
||||
xml += "</list>\n" +
|
||||
"</body>\n" +
|
||||
"</message>\n" +
|
||||
" ]]>\n" +
|
||||
" </mdm:xml>\n" +
|
||||
" </mdm:intoPaymentDataXml>\n" +
|
||||
" </soap:Body>\n" +
|
||||
"</soap:Envelope>";
|
||||
} else {
|
||||
xml += "</list>\n" +
|
||||
"</body>\n" +
|
||||
"</message>\n" +
|
||||
"]]>\n" +
|
||||
" </mdm:xml>\n" +
|
||||
" </mdm:intoPaymentDataXml>\n" +
|
||||
" </soap:Body>\n" +
|
||||
"</soap:Envelope>";
|
||||
}
|
||||
return xml;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 解析CFS返回的xml格式
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2023/10/19 14:07
|
||||
* **/
|
||||
private static String analyzeXML(String result,String type){
|
||||
try {
|
||||
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||
DocumentBuilder builder = factory.newDocumentBuilder();
|
||||
org.w3c.dom.Document document = builder.parse(new InputSource(new StringReader(result)));
|
||||
org.w3c.dom.Element bodyElement = (org.w3c.dom.Element) document.getElementsByTagName("ns:return").item(0);
|
||||
if (null!=bodyElement) {
|
||||
String textContent = bodyElement.getTextContent();
|
||||
Document documentContext = DocumentHelper.parseText(textContent);
|
||||
Element rootElement = documentContext.getRootElement();
|
||||
Element body = rootElement.element("body");
|
||||
if (null != body) {
|
||||
switch (type) {
|
||||
case "login"://登录
|
||||
Element sessionId = body.element("sessionId");
|
||||
if (null != sessionId) {
|
||||
logger.info("CFS登录的登录校验码为:{}", sessionId.getText());
|
||||
return sessionId.getText();
|
||||
} else {
|
||||
logger.info("CFS登录的登录校验码没有获取到,请重新获取");
|
||||
return null;
|
||||
}
|
||||
case "pay"://付款单和报销单
|
||||
Element list = body.element("list");
|
||||
List<Element> elements = list.elements();
|
||||
String serialNo = null;
|
||||
String statusMsg = null;
|
||||
String erpVoucherNoCfs = null;
|
||||
for (Element element : elements) {
|
||||
serialNo = element.element("serialNo").getText();
|
||||
statusMsg = element.element("statusMsg").getText();
|
||||
erpVoucherNoCfs = element.element("erpVoucherNo").getText();
|
||||
}
|
||||
JSONObject jsonObject=new JSONObject();
|
||||
jsonObject.put("erpVoucherNoCfs",erpVoucherNoCfs);
|
||||
jsonObject.put("statusMsg",statusMsg);
|
||||
jsonObject.put("serialNo",serialNo);
|
||||
//return "当前单据:" + erpVoucherNoCfs + ",传递CFS返回信息:" + statusMsg + ",流水号:" + serialNo;
|
||||
return jsonObject.toJSONString();
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}catch (Exception e){
|
||||
logger.info("解析CFS返回的xml格式错误:{}",e.getMessage());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,210 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.dps.task;
|
||||
|
||||
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.bip.v3.v2207.dps.service.IPayMentService;
|
||||
import com.hzya.frame.dateutil.DateUtil;
|
||||
import com.hzya.frame.seeyon.dao.ICtpAttachmentDao;
|
||||
import com.hzya.frame.seeyon.dao.ISeeYonDao;
|
||||
import com.hzya.frame.seeyon.entity.CtpAttachmentEntity;
|
||||
import com.hzya.frame.seeyon.entity.SeeyonEntity;
|
||||
import com.hzya.frame.uuid.UUIDLong;
|
||||
import com.hzya.frame.web.exception.BaseSystemException;
|
||||
import org.dom4j.Document;
|
||||
import org.dom4j.DocumentHelper;
|
||||
import org.dom4j.Element;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.xml.sax.InputSource;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import java.io.File;
|
||||
import java.io.StringReader;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@EnableScheduling
|
||||
@Component
|
||||
public class ElectronicTask {
|
||||
static Logger logger= LoggerFactory.getLogger(ElectronicTask.class);
|
||||
|
||||
@Resource
|
||||
private IPayMentService payMentService;
|
||||
@Resource
|
||||
private ISeeYonDao seeYonDao;
|
||||
@Resource
|
||||
private ICtpAttachmentDao ctpAttachmentDao;
|
||||
|
||||
|
||||
//@Scheduled(cron = "0 20 10 * * ?")
|
||||
public void sendElectronicToCFS() {
|
||||
logger.info("CFS电子回单共享开始执行---------->");
|
||||
try {
|
||||
String token = payMentService.sendCFSToken("admin", "aHRzejg4OA==");
|
||||
if(null!=token) {
|
||||
List<SeeyonEntity> seeyonEntities = seeYonDao.selectOAListByTypeformmain_0327(new SeeyonEntity());
|
||||
if (seeyonEntities != null && seeyonEntities.size() > 0) {
|
||||
for (SeeyonEntity seeyonEntity : seeyonEntities) {
|
||||
String bankAcc = seeyonEntity.getField0137();//付款账号
|
||||
//String bankAcc="03005389347";
|
||||
String erpVoucherNo = seeyonEntity.getId();//OA付款单号
|
||||
String xml = "<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:mdm=\"http://mdmData.server.webservice.banck.com\">\n" +
|
||||
" <soap:Header/>\n" +
|
||||
" <soap:Body>\n" +
|
||||
" <mdm:intoPaymentDataXml>\n" +
|
||||
" <!--Optional:-->\n" +
|
||||
" <mdm:xml>\n" +
|
||||
" <![CDATA[\n" +
|
||||
" <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
|
||||
"<message>\n" +
|
||||
"<head>\n" +
|
||||
"<transCode>BkReceiptQueryExchange</transCode>\n" +
|
||||
"<erpTimestamp>" + DateUtil.dateToString(new Date(), "yyyy-mm-dd hh:mm:ss") + "</erpTimestamp>\n" +
|
||||
"<sourcePlat>CFS</sourcePlat>\n" +
|
||||
"<desPlat>OA</desPlat>\n" +
|
||||
"<rmk>OA电子回单共享发送</rmk>\n" +
|
||||
"<sessionId>" + token + "</sessionId>\n" +
|
||||
"</head>\n" +
|
||||
"<body>\n" +
|
||||
"<bankAcc>" + bankAcc + "</bankAcc>\n" +
|
||||
"<erpVoucherNo>" + erpVoucherNo + "</erpVoucherNo>\n" +
|
||||
"</body>\n" +
|
||||
"</message>\n" +
|
||||
" ]]>\n" +
|
||||
" </mdm:xml>\n" +
|
||||
" </mdm:intoPaymentDataXml>\n" +
|
||||
" </soap:Body>\n" +
|
||||
"</soap:Envelope>";
|
||||
logger.info("CFS电子回单共享请求参数为:{}", xml);
|
||||
String url = "http://101.132.140.208:26893/erp/services/HTSZ_OA_BkReceiptQueryWebService?wsdl";
|
||||
String result = HttpRequest.post(url).header("Content-Type", "soap/xml").timeout(30000).body(xml).execute().body();
|
||||
logger.info("CFS电子回单共享请求参数为:{}", result);
|
||||
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||
DocumentBuilder builder = factory.newDocumentBuilder();
|
||||
org.w3c.dom.Document document = builder.parse(new InputSource(new StringReader(result)));
|
||||
org.w3c.dom.Element bodyElement = (org.w3c.dom.Element) document.getElementsByTagName("ns:return").item(0);
|
||||
if (null != bodyElement) {
|
||||
String textContent = bodyElement.getTextContent();
|
||||
Document documentContext = DocumentHelper.parseText(textContent);
|
||||
Element rootElement = documentContext.getRootElement();
|
||||
Element body = rootElement.element("body");
|
||||
if("0000".equalsIgnoreCase(rootElement.element("head").element("returnCode").getText())){
|
||||
if (null != body) {
|
||||
Element listElc = body.element("list");
|
||||
List<Element> elementsElc = listElc.elements();
|
||||
for (Element element : elementsElc) {
|
||||
String fielPath = element.element("filePath").getText();//电子回单附件路径
|
||||
if (fielPath != null && fielPath!="") {
|
||||
// String fielPath="C:\\Users\\笃曙\\Desktop\\15HZ000342CIBN2023091100066856211000001.pdf";
|
||||
File file = new File(fielPath);
|
||||
JSONObject jsonObject = fileUpload(file);
|
||||
logger.info("上传返回的附件id为:{}", jsonObject.getString("fileUrl"));
|
||||
if (jsonObject.getString("fileUrl") != null) {
|
||||
//表单的附件字段=ctpAttachment的Sub_reference,表单的Summary_id=ctpAttachment的att_reference
|
||||
String sub_reference = String.valueOf(UUIDLong.longUUID());
|
||||
seeyonEntity.setField0264(sub_reference);
|
||||
seeYonDao.updateFormformmain_0327(seeyonEntity);
|
||||
//根据附件id查询附件业务数据
|
||||
String file_url = jsonObject.getString("fileUrl");
|
||||
CtpAttachmentEntity ctpAttachmentEntity = new CtpAttachmentEntity();
|
||||
ctpAttachmentEntity.setFile_url(file_url);
|
||||
String att_reference = seeyonEntity.getSummary_id();//Summary_id
|
||||
ctpAttachmentEntity.setSub_reference(sub_reference);
|
||||
ctpAttachmentEntity.setAtt_reference(att_reference);
|
||||
List<CtpAttachmentEntity> ctpAttachmentEntities = ctpAttachmentDao.queryCtpAttachment(ctpAttachmentEntity);
|
||||
//如果没有查询到数据,就新增附件业务,否则更新
|
||||
if (ctpAttachmentEntities.size() == 0) {
|
||||
String category = jsonObject.getString("category");
|
||||
String type = jsonObject.getString("type");
|
||||
String filename = jsonObject.getString("filename");
|
||||
String mime_type = jsonObject.getString("mimeType");
|
||||
String attachment_size = jsonObject.getString("size");
|
||||
String id = String.valueOf(UUIDLong.longUUID());
|
||||
ctpAttachmentEntity.setCategory(category);
|
||||
ctpAttachmentEntity.setFilename(filename);
|
||||
ctpAttachmentEntity.setType(type);
|
||||
ctpAttachmentEntity.setMime_type(mime_type);
|
||||
ctpAttachmentEntity.setAttachment_size(attachment_size);
|
||||
ctpAttachmentEntity.setId(id);
|
||||
ctpAttachmentEntity.setCategory("66");
|
||||
ctpAttachmentEntity.setCreatedate(new Date());
|
||||
ctpAttachmentDao.saveCtpAttachment(ctpAttachmentEntity);
|
||||
} else {
|
||||
if (ctpAttachmentEntities.size() > 1) {
|
||||
throw new BaseSystemException("OA附件业务表中查到多条记录");
|
||||
}
|
||||
//更新数据到OA附件业务表中
|
||||
ctpAttachmentDao.updateCtpAttachment(ctpAttachmentEntity);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}else{
|
||||
logger.info("CFS电子回单返回得错误编码:{},以及返回的错误信息:{}",rootElement.element("head").element("returnCode").getText(),rootElement.element("head").element("returnMsg").getText());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}catch (Exception e){
|
||||
logger.info("CFS电子回单共享错误:{}",e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static JSONObject fileUpload(File file) {
|
||||
if (null != file) {
|
||||
try {
|
||||
HashMap<String, Object> paramMap = new HashMap<>();
|
||||
paramMap.put("file", file);
|
||||
String url = "/seeyon/rest/attachment?token=@token@";//如果后面加上applicationCategory=1&extensions=&firstSave=true,附件业务自动生成一条记录
|
||||
url = url.replaceAll("@token@", getToken());
|
||||
String result = HttpUtil.post("http://60.204.152.210" + 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);
|
||||
/* String fileUrl = res.getString("fileUrl");
|
||||
logger.info("附件id:" + fileUrl);
|
||||
return fileUrl;*/
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}catch (Exception e){
|
||||
logger.error("附件上传失败"+e.getMessage());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static String getToken() {
|
||||
//获取oatoken
|
||||
HashMap<String, String> hashMap = new HashMap<>();
|
||||
hashMap.put("userName", "hzyaRest");
|
||||
hashMap.put("password", "a5ce21b8-91db-4cec-b3e3-3e44719655fd");
|
||||
hashMap.put("loginName","bdmanager");
|
||||
String result = HttpUtil.post("http://60.204.152.210" + "/seeyon/rest/token", JSON.toJSONString(hashMap));
|
||||
JSONObject jsonObject = JSONObject.parseObject(result);
|
||||
if (null != jsonObject) {
|
||||
logger.info(result);
|
||||
logger.info("======token:{}======" + jsonObject.getString("id"));
|
||||
return jsonObject.getString("id");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,65 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/****
|
||||
* BIP组织账户
|
||||
* @content:
|
||||
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @date 2023-10-24 10:03
|
||||
* @param
|
||||
* @return
|
||||
**/
|
||||
public class BipOrgsDetailsEntity extends BaseEntity {
|
||||
|
||||
/*开户行编码*/
|
||||
private String bankCode;
|
||||
/*开户行名称*/
|
||||
private String bankName;
|
||||
/*账户*/
|
||||
private String accnum;
|
||||
/*与组织关联的字段*/
|
||||
private String controlorg;
|
||||
/*联行号*/
|
||||
private String cnapsCode;
|
||||
|
||||
public String getCnapsCode() {
|
||||
return cnapsCode;
|
||||
}
|
||||
|
||||
public void setCnapsCode(String cnapsCode) {
|
||||
this.cnapsCode = cnapsCode;
|
||||
}
|
||||
|
||||
public String getControlorg() {
|
||||
return controlorg;
|
||||
}
|
||||
|
||||
public void setControlorg(String controlorg) {
|
||||
this.controlorg = controlorg;
|
||||
}
|
||||
|
||||
public String getBankCode() {
|
||||
return bankCode;
|
||||
}
|
||||
|
||||
public void setBankCode(String bankCode) {
|
||||
this.bankCode = bankCode;
|
||||
}
|
||||
|
||||
public String getBankName() {
|
||||
return bankName;
|
||||
}
|
||||
|
||||
public void setBankName(String bankName) {
|
||||
this.bankName = bankName;
|
||||
}
|
||||
|
||||
public String getAccnum() {
|
||||
return accnum;
|
||||
}
|
||||
|
||||
public void setAccnum(String accnum) {
|
||||
this.accnum = accnum;
|
||||
}
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
<?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.bip.v3.v2207.dao.impl.BipOrgsDetailsDaoImpl">
|
||||
<resultMap id="get-BipOrgsDetailsEntity-result" type="com.hzya.frame.bip.v3.v2207.entity.BipOrgsDetailsEntity">
|
||||
<result property="bankCode" column="bankCode" />
|
||||
<result property="bankName" column="bankName" />
|
||||
<result property="accnum" column="accnum" />
|
||||
<result property="controlorg" column="controlorg" />
|
||||
<result property="cnapsCode" column="cnapsCode" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="BipOrgsDetailsEntity_Base_Column_List">
|
||||
bankdoc.code as bankCode,bankdoc.name as bankName,bankaccbas.accnum,bankaccbas.controlorg,bankaccbas.combinenum as cnapsCode
|
||||
</sql>
|
||||
|
||||
<!--通过ID获取数据 -->
|
||||
<select id="entity_get" resultMap="get-BipOrgsDetailsEntity-result">
|
||||
select
|
||||
<include refid="BipOrgsDetailsEntity_Base_Column_List" />
|
||||
from bd_bankaccbas where pk_bankaccbas = #{pk_bankaccbas}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="thirdInterfaceGetOrgsDetails" resultMap="get-BipOrgsDetailsEntity-result" parameterType="com.hzya.frame.bip.v3.v2207.entity.BipOrgsDetailsEntity">
|
||||
select
|
||||
<include refid="BipOrgsDetailsEntity_Base_Column_List" />
|
||||
from bd_bankaccbas bankaccbas
|
||||
left join bd_bankdoc bankdoc on bankdoc.pk_bankdoc=bankaccbas.pk_bankdoc
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="bankCode != null and bankCode !=''">bankdoc.code=#{bankCode}</if>
|
||||
<if test="bankName != null and bankName !='' "> and bankdoc.name = #{bankName}</if>
|
||||
<if test="accnum != null and accnum !='' "> and bankaccbas.accnum = #{accnum}</if>
|
||||
and bankaccbas.dr='0' and bankdoc.dr='0' and bankaccbas.pk_banktype!='0001Z01000000000036S' and bankaccbas.controlorg = #{controlorg}
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* @description: BIP组织 entity
|
||||
* @tableName: org_orgs
|
||||
* @entityName: BipOrgsEntity
|
||||
* @author: gjh
|
||||
* @history: 1.0
|
||||
*/
|
||||
public class BipOrgsEntity extends BaseEntity {
|
||||
/*单位编码*/
|
||||
private String code;
|
||||
/*开户单位*/
|
||||
private String name;
|
||||
/*BIPID*/
|
||||
private String tripartiteId;
|
||||
private String pk_financeorg;
|
||||
private String orgsts;
|
||||
|
||||
public String getOrgsts() {
|
||||
return orgsts;
|
||||
}
|
||||
|
||||
public void setOrgsts(String orgsts) {
|
||||
this.orgsts = orgsts;
|
||||
}
|
||||
|
||||
public String getPk_financeorg() {
|
||||
return pk_financeorg;
|
||||
}
|
||||
|
||||
public void setPk_financeorg(String pk_financeorg) {
|
||||
this.pk_financeorg = pk_financeorg;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getTripartiteId() {
|
||||
return tripartiteId;
|
||||
}
|
||||
|
||||
public void setTripartiteId(String tripartiteId) {
|
||||
this.tripartiteId = tripartiteId;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,98 +0,0 @@
|
|||
<?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.bip.v3.v2207.dao.impl.BipOrgsDaoImpl">
|
||||
<resultMap id="get-BipOrgsEntity-result" type="com.hzya.frame.bip.v3.v2207.entity.BipOrgsEntity">
|
||||
<result property="tripartiteId" column="tripartiteId" />
|
||||
<result property="code" column="code" />
|
||||
<result property="name" column="name" />
|
||||
<result property="pk_financeorg" column="pk_financeorg"/>
|
||||
<result property="orgsts" column="orgsts"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="BipOrgsEntity_Base_Column_List">
|
||||
orgs.pk_financeorg as tripartiteId,
|
||||
orgs.name ,
|
||||
orgs.code,
|
||||
max(org_bank.ts)as ts
|
||||
|
||||
</sql>
|
||||
|
||||
<sql id="BipOrgsEntity_Base_Column_List_details">
|
||||
bankdoc.code as bankCode,bankdoc.name as bankName,bankaccbas.accnum,bankaccbas.controlorg
|
||||
</sql>
|
||||
|
||||
<!--通过ID获取数据 -->
|
||||
<select id="entity_get" resultMap="get-BipOrgsEntity-result">
|
||||
select
|
||||
<include refid="BipOrgsEntity_Base_Column_List" />
|
||||
from org_financeorg where pk_financeorg = #{pk_financeorg}
|
||||
</select>
|
||||
|
||||
<select id="thirdInterfaceGetOrgs" resultMap="get-BipOrgsEntity-result" parameterType="com.hzya.frame.bip.v3.v2207.entity.BipOrgsEntity">
|
||||
select
|
||||
<include refid="BipOrgsEntity_Base_Column_List" />
|
||||
FROM
|
||||
org_financeorg orgs
|
||||
left join v_hzya_org_bank org_bank on org_bank.controlorg = orgs.pk_financeorg
|
||||
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="code != null and code !=''"> orgs.code = #{code}</if>
|
||||
<if test="name != null and name !='' "> and orgs.name = #{name}</if>
|
||||
<if test="pk_financeorg != null and pk_financeorg !='' "> and orgs.pk_financeorg = #{tripartiteId}</if>
|
||||
<if test="orgsts != null and orgsts !='' "> and orgs.ts >'2023-09-30 14:18:39' and orgs.ts > #{orgsts}</if>
|
||||
and orgs.dr='0'
|
||||
</trim>
|
||||
GROUP BY orgs.pk_financeorg ,orgs.name,orgs.code
|
||||
</select>
|
||||
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="thirdInterfaceGetSupplierDetails" resultMap="get-BipOrgsEntity-result" parameterType="com.hzya.frame.bip.v3.v2207.entity.BipOrgsEntity">
|
||||
select
|
||||
<include refid="BipOrgsEntity_Base_Column_List_details" />
|
||||
from bd_bankaccbas bankaccbas
|
||||
left join bd_bankdoc bankdoc on bankdoc.pk_bankdoc=bankaccbas.pk_bankdoc
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="code != null and code !=''">bankdoc.code=#{code}</if>
|
||||
<if test="name != null and name !='' "> and bankdoc.name = #{name}</if>
|
||||
<if test="accnum != null and accnum !='' "> and bankaccbas.accnum = #{accnum}</if>
|
||||
<if test="controlorg != null and controlorg !='' "> and bankaccbas.controlorg = #{controlorg}</if>
|
||||
and bankaccbas.dr='0' and bankdoc.dr='0' and bankaccbas.pk_banktype!='0001Z01000000000036S'
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 查询 采用==查询 -->
|
||||
<!--<select id="BipOrgsEntity_list_base" resultMap="get-BipOrgsEntity-result" parameterType="com.hzya.frame.bip.v3.v2207.entity.BipOrgsEntity">
|
||||
select
|
||||
<include refid="BipOrgsEntity_Base_Column_List" />
|
||||
FROM bd_cust_supplier supplier
|
||||
left join db_customerbank bank ON supplier.code = bank.code
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="code != null and code !=''">supplier.code=#{code}</if>
|
||||
<if test="name != null and name !='' "> and supplier.name = #{name}</if>
|
||||
<if test="taxpayerid != null and taxpayerid !='' "> and supplier.taxpayerid = #{taxpayerid}</if>
|
||||
<if test="def1 != null and def1 !='' "> and bank.def1 = #{def1}</if>
|
||||
<if test="def2 != null and def2 !='' "> and bank.def2 = #{def2}</if>
|
||||
<if test="def3 != null and def3 !='' "> and bank.def3 = #{def3}</if>
|
||||
</trim>
|
||||
</select>-->
|
||||
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<!--<select id="entity_list_like" resultMap="get-BipOrgsEntity-result" parameterType="com.hzya.frame.bip.v3.v2207.entity.BipOrgsEntity">
|
||||
select
|
||||
<include refid="BipOrgsEntity_Base_Column_List" />
|
||||
FROM bd_cust_supplier supplier
|
||||
left join db_customerbank bank ON supplier.code = bank.code
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="code != null and code !=''"> supplier.code like concat('%',#{code},'%')</if>
|
||||
<if test="name != null and name !='' "> and supplier.name like concat('%',#{name},'%')</if>
|
||||
<if test="taxpayerid != null and taxpayerid !='' "> and supplier.taxpayeridlike concat('%',#{taxpayeridlike},'%')</if>
|
||||
<if test="def1 != null and def1 !='' "> and bank.def1 like concat('%',#{def1},'%')</if>
|
||||
<if test="def2 != null and def2 !='' "> and bank.def2 like concat('%',#{def2},'%')</if>
|
||||
<if test="def3 != null and def3 !='' "> and bank.def3 like concat('%',#{def3},'%')</if>
|
||||
</trim>
|
||||
</select>-->
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
public class BipSupplierDetailsEntity extends BaseEntity {
|
||||
|
||||
private String code;
|
||||
private String name;
|
||||
/*开户行*/
|
||||
private String splitbank;
|
||||
/*银行账号*/
|
||||
private String bankaccno;
|
||||
/*是否默认*/
|
||||
private String isdefault;
|
||||
/*联行号*/
|
||||
private String combinno;
|
||||
|
||||
private String tripartiteId;
|
||||
|
||||
public String getCombinno() {
|
||||
return combinno;
|
||||
}
|
||||
|
||||
public void setCombinno(String combinno) {
|
||||
this.combinno = combinno;
|
||||
}
|
||||
|
||||
public String getTripartiteId() {
|
||||
return tripartiteId;
|
||||
}
|
||||
|
||||
public void setTripartiteId(String tripartiteId) {
|
||||
this.tripartiteId = tripartiteId;
|
||||
}
|
||||
|
||||
public String getIsdefault() {
|
||||
return isdefault;
|
||||
}
|
||||
|
||||
public void setIsdefault(String isdefault) {
|
||||
this.isdefault = isdefault;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getSplitbank() {
|
||||
return splitbank;
|
||||
}
|
||||
|
||||
public void setSplitbank(String splitbank) {
|
||||
this.splitbank = splitbank;
|
||||
}
|
||||
|
||||
public String getBankaccno() {
|
||||
return bankaccno;
|
||||
}
|
||||
|
||||
public void setBankaccno(String bankaccno) {
|
||||
this.bankaccno = bankaccno;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
<?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.bip.v3.v2207.dao.impl.BipSupplierDetailsDaoImpl">
|
||||
<resultMap id="get-BipSupplierDetailsEntity-result" type="com.hzya.frame.bip.v3.v2207.entity.BipSupplierDetailsEntity">
|
||||
<result property="code" column="code" />
|
||||
<result property="name" column="name" />
|
||||
<result property="splitbank" column="splitbank" />
|
||||
<result property="bankaccno" column="bankaccno" />
|
||||
<result property="tripartiteId" column="tripartiteId"></result>
|
||||
<result property="combinno" column="combinno"></result>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="BipSupplierDetailsEntity_Base_Column_List">
|
||||
splitbank,bankaccno,combinno,name,code
|
||||
</sql>
|
||||
|
||||
<!--通过ID获取数据 -->
|
||||
<select id="entity_get" resultMap="get-BipSupplierDetailsEntity-result">
|
||||
select
|
||||
<include refid="BipSupplierDetailsEntity_Base_Column_List" />
|
||||
from BD_SUPPLIER where pk_supplier = #{pk_supplier} and sdr='0'
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="thirdInterfaceGetSupplierDetails" resultMap="get-BipSupplierDetailsEntity-result" parameterType="com.hzya.frame.bip.v3.v2207.entity.BipSupplierDetailsEntity">
|
||||
select
|
||||
<include refid="BipSupplierDetailsEntity_Base_Column_List" />
|
||||
FROM db_customerbank
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="code != null and code !=''">code=#{code}</if>
|
||||
<if test="name != null and name !='' "> and name = #{name}</if>
|
||||
<if test="bankaccno != null and bankaccno !='' "> and bankaccno = #{bankaccno}</if>
|
||||
<if test="splitbank != null and splitbank !='' "> and splitbank = #{splitbank}</if>
|
||||
<if test="combinno != null and combinno !='' "> and combinno = #{combinno}</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1,92 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* @description: BIP供应商 entity
|
||||
* @tableName: BD_SUPPLIER
|
||||
* @entityName: BipSupplierEntity
|
||||
* @author: gjh
|
||||
* @history: 1.0
|
||||
*/
|
||||
public class BipSupplierEntity extends BaseEntity {
|
||||
|
||||
private String code;
|
||||
private String name;
|
||||
/*税号*/
|
||||
private String taxpayerid;
|
||||
/*地址*/
|
||||
private String def1;
|
||||
/*电话*/
|
||||
private String def2;
|
||||
/*联系人*/
|
||||
private String def3;
|
||||
private String tripartiteId;
|
||||
|
||||
public String getTripartiteId() {
|
||||
return tripartiteId;
|
||||
}
|
||||
|
||||
public void setTripartiteId(String tripartiteId) {
|
||||
this.tripartiteId = tripartiteId;
|
||||
}
|
||||
|
||||
private String ts;
|
||||
|
||||
public String getTs() {
|
||||
return ts;
|
||||
}
|
||||
|
||||
public void setTs(String ts) {
|
||||
this.ts = ts;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getTaxpayerid() {
|
||||
return taxpayerid;
|
||||
}
|
||||
|
||||
public void setTaxpayerid(String taxpayerid) {
|
||||
this.taxpayerid = taxpayerid;
|
||||
}
|
||||
|
||||
public String getDef1() {
|
||||
return def1;
|
||||
}
|
||||
|
||||
public void setDef1(String def1) {
|
||||
this.def1 = def1;
|
||||
}
|
||||
|
||||
public String getDef2() {
|
||||
return def2;
|
||||
}
|
||||
|
||||
public void setDef2(String def2) {
|
||||
this.def2 = def2;
|
||||
}
|
||||
|
||||
public String getDef3() {
|
||||
return def3;
|
||||
}
|
||||
|
||||
public void setDef3(String def3) {
|
||||
this.def3 = def3;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,96 +0,0 @@
|
|||
<?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.bip.v3.v2207.dao.impl.BipSupplierDaoImpl">
|
||||
<resultMap id="get-BipSupplierEntity-result" type="com.hzya.frame.bip.v3.v2207.entity.BipSupplierEntity">
|
||||
<result property="taxpayerid" column="taxpayerid" />
|
||||
<result property="def1" column="def1" />
|
||||
<result property="def2" column="def2" />
|
||||
<result property="def3" column="def3" />
|
||||
<result property="code" column="code" />
|
||||
<result property="name" column="name" />
|
||||
<result property="ts" column="ts" />
|
||||
<result property="tripartiteId" column="tripartiteId" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="BipSupplierEntity_Base_Column_List">
|
||||
supplier.code,supplier.name,supplier.taxpayerid,bank.def1,bank.def2,bank.def3,supplier.ts, supplier.pk_cust_sup as tripartiteId
|
||||
</sql>
|
||||
|
||||
<sql id="BipSupplierEntity_Base_Column_List_details">
|
||||
splitbank,bankaccno,name,code
|
||||
</sql>
|
||||
|
||||
<!--通过ID获取数据 -->
|
||||
<select id="entity_get" resultMap="get-BipSupplierEntity-result">
|
||||
select
|
||||
<include refid="BipSupplierEntity_Base_Column_List" />
|
||||
from BD_SUPPLIER where pk_supplier = #{pk_supplier} and sdr='0'
|
||||
</select>
|
||||
|
||||
<select id="thirdInterfaceGetSupplier" resultMap="get-BipSupplierEntity-result" parameterType="com.hzya.frame.bip.v3.v2207.entity.BipSupplierEntity">
|
||||
select
|
||||
<include refid="BipSupplierEntity_Base_Column_List" />
|
||||
FROM bd_cust_supplier supplier
|
||||
left join db_customerbank bank ON supplier.code = bank.code
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="code != null and code !=''">supplier.code=#{code}</if>
|
||||
<if test="name != null and name !='' "> and supplier.name = #{name}</if>
|
||||
<if test="taxpayerid != null and taxpayerid !='' "> and supplier.taxpayerid = #{taxpayerid}</if>
|
||||
<if test="def1 != null and def1 !='' "> and bank.def1 = #{def1}</if>
|
||||
<if test="def2 != null and def2 !='' "> and bank.def2 = #{def2}</if>
|
||||
<if test="def3 != null and def3 !='' "> and bank.def3 = #{def3}</if>
|
||||
<if test="tripartiteId != null and tripartiteId !='' "> and supplier.tripartiteId = #{tripartiteId}</if>
|
||||
<if test="ts != null and ts !='' "> and supplier.ts >'2023-09-30 14:18:39' and supplier.ts > #{ts} </if>
|
||||
</trim>
|
||||
group by supplier.code,supplier.name,supplier.taxpayerid,bank.def1,bank.def2,bank.def3,supplier.ts, supplier.pk_cust_sup
|
||||
</select>
|
||||
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="thirdInterfaceGetSupplierDetails" resultMap="get-BipSupplierEntity-result" parameterType="com.hzya.frame.bip.v3.v2207.entity.BipSupplierEntity">
|
||||
select
|
||||
<include refid="BipSupplierEntity_Base_Column_List_details" />
|
||||
FROM db_customerbank
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="code != null and code !=''">code=#{code}</if>
|
||||
<if test="name != null and name !='' "> and name = #{name}</if>
|
||||
<if test="bankaccno != null and bankaccno !='' "> and bankaccno = #{bankaccno}</if>
|
||||
<if test="splitbank != null and splitbank !='' "> and splitbank = #{splitbank}</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="BipSupplierEntity_list_base" resultMap="get-BipSupplierEntity-result" parameterType="com.hzya.frame.bip.v3.v2207.entity.BipSupplierEntity">
|
||||
select
|
||||
<include refid="BipSupplierEntity_Base_Column_List" />
|
||||
FROM bd_cust_supplier supplier
|
||||
left join db_customerbank bank ON supplier.code = bank.code
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="code != null and code !=''">supplier.code=#{code}</if>
|
||||
<if test="name != null and name !='' "> and supplier.name = #{name}</if>
|
||||
<if test="taxpayerid != null and taxpayerid !='' "> and supplier.taxpayerid = #{taxpayerid}</if>
|
||||
<if test="def1 != null and def1 !='' "> and bank.def1 = #{def1}</if>
|
||||
<if test="def2 != null and def2 !='' "> and bank.def2 = #{def2}</if>
|
||||
<if test="def3 != null and def3 !='' "> and bank.def3 = #{def3}</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-BipSupplierEntity-result" parameterType="com.hzya.frame.bip.v3.v2207.entity.BipSupplierEntity">
|
||||
select
|
||||
<include refid="BipSupplierEntity_Base_Column_List" />
|
||||
FROM bd_cust_supplier supplier
|
||||
left join db_customerbank bank ON supplier.code = bank.code
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="code != null and code !=''"> supplier.code like concat('%',#{code},'%')</if>
|
||||
<if test="name != null and name !='' "> and supplier.name like concat('%',#{name},'%')</if>
|
||||
<if test="taxpayerid != null and taxpayerid !='' "> and supplier.taxpayeridlike concat('%',#{taxpayeridlike},'%')</if>
|
||||
<if test="def1 != null and def1 !='' "> and bank.def1 like concat('%',#{def1},'%')</if>
|
||||
<if test="def2 != null and def2 !='' "> and bank.def2 like concat('%',#{def2},'%')</if>
|
||||
<if test="def3 != null and def3 !='' "> and bank.def3 like concat('%',#{def3},'%')</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
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 {
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
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);
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
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);
|
||||
}
|
|
@ -1,49 +0,0 @@
|
|||
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.web.entity.JsonResultEntity;
|
||||
|
||||
public interface IBipV32207Service extends IBaseService<BipSupplierEntity,String>{
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Description 获取token
|
||||
**/
|
||||
JsonResultEntity thirdInterfaceGetToken(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Description 获取供应商
|
||||
**/
|
||||
@DS("oracle91")
|
||||
JsonResultEntity thirdInterfaceGetSupplier(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Description 新增供应商
|
||||
**/
|
||||
JsonResultEntity thirdInterfaceSaveSupplier(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* 供应商传递OA
|
||||
* @param jsonObject
|
||||
* @return
|
||||
*/
|
||||
JsonResultEntity thirdInterfaceSendOa(JSONObject jsonObject) throws Exception;
|
||||
|
||||
/**
|
||||
* 获取BIP组织数据
|
||||
* @param jsonObject
|
||||
* @return
|
||||
*/
|
||||
JsonResultEntity thirdInterfaceGetOrgs(JSONObject jsonObject);
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
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);
|
||||
}
|
|
@ -1,119 +0,0 @@
|
|||
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()));
|
||||
}
|
||||
|
||||
}
|
|
@ -1,62 +0,0 @@
|
|||
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;
|
||||
}
|
||||
}
|
|
@ -1,480 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.google.gson.Gson;
|
||||
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.BipOrgsDetailsEntity;
|
||||
import com.hzya.frame.bip.v3.v2207.entity.BipOrgsEntity;
|
||||
import com.hzya.frame.bip.v3.v2207.entity.BipSupplierDetailsEntity;
|
||||
import com.hzya.frame.bip.v3.v2207.entity.BipSupplierEntity;
|
||||
import com.hzya.frame.bip.v3.v2207.service.IBipV32207Service;
|
||||
import com.hzya.frame.dateutil.DateUtil;
|
||||
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.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
||||
import java.net.URLEncoder;
|
||||
import java.util.*;
|
||||
|
||||
|
||||
@Service(value = "bipV32207Service")
|
||||
public class BipV32207ServiceImpl extends BaseService<BipSupplierEntity, String> implements IBipV32207Service {
|
||||
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
//定义项目开始同步日期
|
||||
private String ts = "2023-09-30 15:47:08";
|
||||
//组织的同步日期
|
||||
private String orgsts = "2023-09-30 15:47:08";
|
||||
@Autowired
|
||||
private IBipSupplierDao bipSupplierDao;
|
||||
|
||||
@Autowired
|
||||
private IBipSupplierDetailsDao bipSupplierDetailsDao;
|
||||
|
||||
@Autowired
|
||||
private IBipOrgsDao bipOrgsDao;
|
||||
|
||||
@Autowired
|
||||
private IBipOrgsDetailsDao bipOrgsDetailsDao;
|
||||
|
||||
|
||||
/**
|
||||
* @param object
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Description 获取token
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity thirdInterfaceGetToken(JSONObject object) {
|
||||
JSONObject jsonObject = getstrObj("jsonStr", object);
|
||||
String client_id = jsonObject.getString("client_id");
|
||||
String pubKey = jsonObject.getString("pubKey");
|
||||
String client_secret = jsonObject.getString("client_secret");
|
||||
String username = jsonObject.getString("username");
|
||||
String pwd = jsonObject.getString("pwd");
|
||||
String busi_center = jsonObject.getString("busi_center");
|
||||
String dsname = jsonObject.getString("dsname");
|
||||
String baseUrl = jsonObject.getString("baseUrl");
|
||||
Map<String, String> paramMap = new HashMap<String, String>();
|
||||
// 密码模式认证
|
||||
paramMap.put("grant_type", "password");
|
||||
// 第三方应用id
|
||||
paramMap.put("client_id", client_id);
|
||||
// 第三方应用secret 公钥加密
|
||||
try {
|
||||
paramMap.put("client_secret", URLEncoder.encode(Encryption.pubEncrypt(pubKey, client_secret), "utf-8"));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// ncc用户名
|
||||
paramMap.put("username", username);
|
||||
// 密码 公钥加密
|
||||
try {
|
||||
paramMap.put("password", URLEncoder.encode(Encryption.pubEncrypt(pubKey, pwd), "utf-8"));
|
||||
} catch (Exception e) {
|
||||
return BaseResult.getFailureMessageEntity("获取token失败");
|
||||
}
|
||||
// 账套编码
|
||||
paramMap.put("biz_center", busi_center);
|
||||
// 签名
|
||||
String sign = SHA256Util.getSHA256(client_id + client_secret + username + pwd + pubKey, pubKey);
|
||||
paramMap.put("signature", sign);
|
||||
paramMap.put("dsname", dsname);
|
||||
String url = baseUrl + "/nccloud/opm/accesstoken";
|
||||
String mediaType = "application/x-www-form-urlencoded";
|
||||
String token = null;
|
||||
try {
|
||||
token = doPostHutool(url, paramMap, mediaType, null, "", "token");
|
||||
} catch (Exception e) {
|
||||
return BaseResult.getFailureMessageEntity("获取token失败");
|
||||
}
|
||||
if (JSONUtil.isTypeJSON(token)) {
|
||||
JSONObject jsonObject1 = JSONObject.parseObject(token);
|
||||
return BaseResult.getSuccessMessageEntity("获取token成功", jsonObject1);
|
||||
} else {
|
||||
return BaseResult.getSuccessMessageEntity("获取token成功", token);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送post请求
|
||||
*
|
||||
* @param baseUrl
|
||||
* @param paramMap
|
||||
* @param mediaType
|
||||
* @param headers
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
private String doPostHutool(String baseUrl, Map<String, String> paramMap, String mediaType, Map<String, String> headers, String json, String type) {
|
||||
String result = null;
|
||||
|
||||
try {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
sb.append(baseUrl);
|
||||
if (paramMap != null) {
|
||||
sb.append("?");
|
||||
for (Map.Entry<String, String> entry : paramMap.entrySet()) {
|
||||
String key = entry.getKey();
|
||||
String value = entry.getValue();
|
||||
sb.append(key + "=" + value).append("&");
|
||||
}
|
||||
}
|
||||
if ("bill".equals(type)) {
|
||||
sb.append("?");
|
||||
for (Map.Entry<String, String> entry : headers.entrySet()) {
|
||||
String key = entry.getKey();
|
||||
String value = entry.getValue();
|
||||
sb.append(key + "=" + value).append("&");
|
||||
}
|
||||
}
|
||||
baseUrl = sb.toString().substring(0, sb.toString().length() - 1);
|
||||
HttpRequest re = HttpRequest.post(baseUrl);
|
||||
re.addHeaders(headers);
|
||||
result = re.body(json)
|
||||
.timeout(2000000)//超时,毫秒
|
||||
.execute().body();
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param key
|
||||
* @param object
|
||||
* @return com.alibaba.fastjson.JSONObject
|
||||
* @Author lvleigang
|
||||
* @Description 获取对象转换成jsonobj
|
||||
* @Date 11:51 下午 2023/7/10
|
||||
**/
|
||||
public JSONObject getstrObj(String key, JSONObject object) {
|
||||
if (checkStr(object.getString(key))) {
|
||||
return object.getJSONObject(key);
|
||||
}
|
||||
return new JSONObject();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param str
|
||||
* @return void
|
||||
* @Author lvleigang
|
||||
* @Description 校验字符串
|
||||
* @Date 11:41 上午 2022/12/7
|
||||
**/
|
||||
protected Boolean checkStr(String str) {
|
||||
Boolean flag = true;
|
||||
if (str == null || "".equals(str)) {
|
||||
flag = false;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Description 获取供应商
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity thirdInterfaceGetSupplier(JSONObject jsonObject) {
|
||||
BipSupplierEntity bipSupplierEntity = getData("jsonStr", jsonObject, BipSupplierEntity.class);
|
||||
//设置查询区间
|
||||
bipSupplierEntity.setTs(ts);
|
||||
logger.info("查询供应商数据,当前TS:"+ts);
|
||||
List<BipSupplierEntity> bipSupplierEntities = bipSupplierDao.thirdInterfaceGetSupplier(bipSupplierEntity);
|
||||
//更新TS时间
|
||||
ts = DateUtil.dateToString(new Date(),"yyyy-MM-dd HH:mm:ss");
|
||||
logger.info("TS已更新:"+ts);
|
||||
//System.out.println("查询供应商明细");
|
||||
logger.info("查询供应商明细"+JSON.toJSONString(bipSupplierEntities));
|
||||
List<JSONObject> jsonObjectList=new ArrayList<>();
|
||||
//[{"code":"SL20231101727","dataSourceCode":"master","name":"无锡恒君安管理咨询有限公司","taxpayerid":"91320205MAD2HAQN6Q","tripartiteId":"0001A31000000002M3TS","ts":"2023-11-16 14:05:10"}]
|
||||
|
||||
List<BipSupplierDetailsEntity> bipSupplierDetails = null;
|
||||
for (BipSupplierEntity supplierEntity : bipSupplierEntities) {
|
||||
List<JSONObject> list=new ArrayList<>();
|
||||
JSONObject jsonObjectResult=new JSONObject();
|
||||
jsonObjectResult.put("code",supplierEntity.getCode());
|
||||
jsonObjectResult.put("name",supplierEntity.getName());
|
||||
jsonObjectResult.put("taxpayerid",supplierEntity.getTaxpayerid());
|
||||
jsonObjectResult.put("def1",supplierEntity.getDef1());
|
||||
jsonObjectResult.put("def2",supplierEntity.getDef2());
|
||||
jsonObjectResult.put("def3",supplierEntity.getDef3());
|
||||
jsonObjectResult.put("tripartiteId",supplierEntity.getTripartiteId());
|
||||
//根据供应商编码和名称查询明细
|
||||
String code = supplierEntity.getCode();
|
||||
String name = supplierEntity.getName();
|
||||
//System.out.println("根据供应处名称,编码获取明细数据:code:"+code +"name:"+name);
|
||||
logger.info("根据供应处名称,编码获取明细数据:code:"+code +"name:"+name);
|
||||
BipSupplierDetailsEntity bipSupplierDetailsEntity = new BipSupplierDetailsEntity();
|
||||
bipSupplierDetailsEntity.setCode(code);
|
||||
bipSupplierDetailsEntity.setName(name);
|
||||
logger.info("根据供应商编码,名称查询银行档案 {}",JSON.toJSONString(bipSupplierDetailsEntity));
|
||||
List<BipSupplierDetailsEntity> bipSupplierDetailsEntities = queryBipSupplierDetails(bipSupplierDetailsEntity) ;
|
||||
// /bipSupplierDetails.stream().filter(that-> code.equalsIgnoreCase(that.getCode() ) && name.equalsIgnoreCase(that.getName() ) ).collect(Collectors.toList());
|
||||
logger.info("根据供应处名称,编码获取明细数据 bipSupplierDetailsEntities值:{}",JSON.toJSONString(bipSupplierDetailsEntities));
|
||||
if (bipSupplierDetailsEntities.size()>0 && null!=bipSupplierDetailsEntities){
|
||||
bipSupplierDetailsEntities.get(0).setIsdefault("-8073674727882144390");
|
||||
for (BipSupplierDetailsEntity supplierDetailsEntity : bipSupplierDetailsEntities) {
|
||||
JSONObject jsonObjectDetails=new JSONObject();
|
||||
jsonObjectDetails.put("splitbank",supplierDetailsEntity.getSplitbank());
|
||||
jsonObjectDetails.put("bankaccno",supplierDetailsEntity.getBankaccno());
|
||||
jsonObjectDetails.put("combinno",supplierDetailsEntity.getCombinno());
|
||||
jsonObjectDetails.put("isdefault",supplierDetailsEntity.getIsdefault());
|
||||
list.add(jsonObjectDetails);
|
||||
}
|
||||
}
|
||||
jsonObjectResult.put("details",list);
|
||||
jsonObjectList.add(jsonObjectResult);
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("查询成功",jsonObjectList);
|
||||
}
|
||||
@DS("oracle91")
|
||||
private List<BipSupplierDetailsEntity> queryBipSupplierDetails(BipSupplierDetailsEntity bipSupplierDetailsEntity){
|
||||
// BipSupplierDetailsEntity bipSupplierDetailsEntity=new BipSupplierDetailsEntity();
|
||||
// bipSupplierDetailsEntity.setCode(supplierEntity.getCode());
|
||||
// bipSupplierDetailsEntity.setName(supplierEntity.getName());
|
||||
|
||||
List<BipSupplierDetailsEntity> bipSupplierDetailsEntities = bipSupplierDetailsDao.thirdInterfaceGetSupplierDetails(bipSupplierDetailsEntity);
|
||||
return bipSupplierDetailsEntities;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取BIP组织数据
|
||||
* @param jsonObject
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public JsonResultEntity thirdInterfaceGetOrgs(JSONObject jsonObject) {
|
||||
BipOrgsEntity bipOrgsEntity = getData("jsonStr", jsonObject, BipOrgsEntity.class);
|
||||
//设置查询区间
|
||||
bipOrgsEntity.setOrgsts(orgsts);
|
||||
logger.info("查询组织数据,当前TS:" + orgsts);
|
||||
List<BipOrgsEntity> bipOrgsEntities = bipOrgsDao.thirdInterfaceGetOrgs(bipOrgsEntity);
|
||||
//更新TS时间
|
||||
orgsts = DateUtil.dateToString(new Date(), "yyyy-MM-dd HH:mm:ss");
|
||||
logger.info("组织TS已更新:" + orgsts);
|
||||
logger.info("查询组织明细" + JSON.toJSONString(bipOrgsEntities));
|
||||
List<JSONObject> jsonObjectList = new ArrayList<>();
|
||||
if (null != bipOrgsEntities && bipOrgsEntities.size() > 0) {
|
||||
for (BipOrgsEntity orgsEntity : bipOrgsEntities) {
|
||||
List<JSONObject> list = new ArrayList<>();
|
||||
JSONObject jsonObjectResult = new JSONObject();
|
||||
jsonObjectResult.put("code", orgsEntity.getCode());//单位编码
|
||||
jsonObjectResult.put("name", orgsEntity.getName());//单位名称
|
||||
jsonObjectResult.put("tripartiteId", orgsEntity.getTripartiteId());//BIPID
|
||||
//根据组织主键查询明细
|
||||
String tripartiteId = orgsEntity.getTripartiteId();
|
||||
//System.out.println("根据供应处名称,编码获取明细数据:code:"+code +"name:"+name);
|
||||
logger.info("根据组织主键获取明细数据:pk_financeorg:{}", tripartiteId);
|
||||
BipOrgsDetailsEntity bipOrgsDetailsEntity = new BipOrgsDetailsEntity();
|
||||
bipOrgsDetailsEntity.setControlorg(tripartiteId);
|
||||
List<BipOrgsDetailsEntity> bipOrgsDetailsEntities = queryBipOrgsDetails(bipOrgsDetailsEntity);
|
||||
if (bipOrgsDetailsEntities.size() > 0 && null != bipOrgsDetailsEntities) {
|
||||
for (BipOrgsDetailsEntity orgsDetailsEntity : bipOrgsDetailsEntities) {
|
||||
JSONObject jsonObjectDetails = new JSONObject();
|
||||
jsonObjectDetails.put("bankCode", orgsDetailsEntity.getBankCode());//开户行编码
|
||||
jsonObjectDetails.put("bankName", orgsDetailsEntity.getBankName());//开户行名称
|
||||
jsonObjectDetails.put("accnum", orgsDetailsEntity.getAccnum());//账户
|
||||
jsonObjectDetails.put("cnapsCode", orgsDetailsEntity.getCnapsCode());//联行号
|
||||
list.add(jsonObjectDetails);
|
||||
}
|
||||
}
|
||||
jsonObjectResult.put("details", list);
|
||||
jsonObjectList.add(jsonObjectResult);
|
||||
}
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("查询成功", jsonObjectList);
|
||||
}
|
||||
private List<BipOrgsDetailsEntity> queryBipOrgsDetails(BipOrgsDetailsEntity bipOrgsDetailsEntity){
|
||||
List<BipOrgsDetailsEntity> bipOrgsDetailsEntities = bipOrgsDetailsDao.thirdInterfaceGetOrgsDetails(bipOrgsDetailsEntity);
|
||||
return bipOrgsDetailsEntities;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param object
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Description 新增供应商
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity thirdInterfaceSaveSupplier(JSONObject object) {
|
||||
JSONObject jsonObject = getstrObj("jsonStr", object);
|
||||
//认证access_token
|
||||
String access_token = jsonObject.getString("access_token");
|
||||
//认证security_key
|
||||
String security_key = jsonObject.getString("security_key");
|
||||
//服务器ip:port
|
||||
String baseUrl = jsonObject.getString("baseUrl");
|
||||
//api方法
|
||||
String apiUrl = jsonObject.getString("apiUrl");
|
||||
//发送的数据
|
||||
String sendData =jsonObject.getString("sendData");
|
||||
//对应于在第三方应用注册当中的app_id
|
||||
String client_id = jsonObject.getString("client_id");
|
||||
//公钥
|
||||
String pubKey = jsonObject.getString("pubKey");
|
||||
//接口调用业务标识
|
||||
String busi_id = jsonObject.getString("busi_id");
|
||||
//重复调用检查
|
||||
String repeat_check = jsonObject.getString("repeat_check");
|
||||
//返回值压缩加密级别
|
||||
String secret_level = jsonObject.getString("secret_level") == null ? "L0": jsonObject.getString("secret_level") ;
|
||||
try {
|
||||
String returnStr = sendApi(access_token, security_key, baseUrl,apiUrl,sendData,client_id,pubKey,busi_id,repeat_check,secret_level);
|
||||
if(JSONUtil.isTypeJSON(returnStr)){
|
||||
JSONObject jsonObject1 = JSONObject.parseObject(returnStr);
|
||||
return BaseResult.getSuccessMessageEntity("发送数据成功",jsonObject1);
|
||||
}else {
|
||||
return BaseResult.getSuccessMessageEntity("发送数据成功",returnStr);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
return BaseResult.getFailureMessageEntity("发送数据错误");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 供应商传递OA
|
||||
* @param jsonObject
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public JsonResultEntity thirdInterfaceSendOa(JSONObject jsonObject) throws Exception {
|
||||
JSONObject jsonObjectStr = getstrObj("jsonStr", jsonObject);
|
||||
PluginBaseEntity pluginBaseEntity = PluginUtils.getPluginsById(jsonObjectStr.getString("plug_id"));
|
||||
JsonResultEntity s = pluginBaseEntity.executeBusiness(jsonObjectStr);
|
||||
return BaseResult.getSuccessMessageEntity("传递成功");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param access_token 认证access_token
|
||||
* @param security_key 认证security_key
|
||||
* @param baseUrl 服务器ip:port
|
||||
* @param apiUrl api方法
|
||||
* @param putParameter 发送的数据
|
||||
* @param client_id 对应于在第三方应用注册当中的app_id
|
||||
* @param pubKey 公钥
|
||||
* @param busi_id 接口调用业务标识
|
||||
* @param repeat_check 重复调用检查
|
||||
* @param secret_level 返回值压缩加密级别
|
||||
* @return java.lang.String
|
||||
* @Author lvleigang
|
||||
* @Description 发起api接口
|
||||
* @Date 9:52 上午 2023/8/22
|
||||
**/
|
||||
private String sendApi(String access_token, String security_key, String baseUrl, String apiUrl, String putParameter, String client_id, String pubKey, String busi_id, String repeat_check, String secret_level) throws Exception{
|
||||
// header 参数
|
||||
Map<String, String> headermap = new HashMap<>();
|
||||
headermap.put("access_token", access_token);
|
||||
headermap.put("client_id", client_id);
|
||||
StringBuffer sb = new StringBuffer();
|
||||
sb.append(client_id);
|
||||
if (StringUtils.isNotBlank(putParameter)) {
|
||||
sb.append(putParameter);
|
||||
}
|
||||
sb.append(pubKey);
|
||||
String sign = SHA256Util.getSHA256(sb.toString(), pubKey);
|
||||
headermap.put("signature", sign);
|
||||
if (StringUtils.isNotBlank(busi_id)) {
|
||||
headermap.put("busi_id", busi_id);
|
||||
}
|
||||
if (StringUtils.isNotBlank(repeat_check)) {
|
||||
headermap.put("repeat_check", repeat_check);
|
||||
}
|
||||
String mediaType = "application/json;charset=utf-8";
|
||||
// 表体数据json
|
||||
// 根据安全级别选择加密或压缩请求表体参数
|
||||
String json = dealRequestBody(putParameter, security_key, secret_level);
|
||||
// 返回值
|
||||
String sendUrl = baseUrl + apiUrl;
|
||||
String result = doPostHutool(sendUrl, null, mediaType, headermap, json, "bill");
|
||||
String changeData = dealResponseBody(result, security_key, secret_level);
|
||||
return changeData;
|
||||
}
|
||||
|
||||
// 返回值进行过加密和压缩,对返回值进行解压和解密
|
||||
private static String dealResponseBody(String source, String security_key, String level) throws Exception {
|
||||
String result = null;
|
||||
if (org.apache.commons.lang3.StringUtils.isEmpty(level) || SecretConst.LEVEL0.equals(level)) {
|
||||
result = source;
|
||||
} else if (SecretConst.LEVEL1.equals(level)) {
|
||||
result = Decryption.symDecrypt(security_key, source);
|
||||
} else if (SecretConst.LEVEL2.equals(level)) {
|
||||
result = CompressUtil.gzipDecompress(source);
|
||||
} else if (SecretConst.LEVEL3.equals(level)) {
|
||||
result = CompressUtil.gzipDecompress(Decryption.symDecrypt(security_key, source));
|
||||
} else if (SecretConst.LEVEL4.equals(level)) {
|
||||
result = Decryption.symDecrypt(security_key, CompressUtil.gzipDecompress(source));
|
||||
} else {
|
||||
throw new Exception("无效的安全等级");
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
// 根据安全级别设置,表体是否加密或压缩
|
||||
private static String dealRequestBody(String source, String security_key, String level) throws Exception {
|
||||
String result = null;
|
||||
if (org.apache.commons.lang3.StringUtils.isEmpty(level) || SecretConst.LEVEL0.equals(level)) {
|
||||
result = source;
|
||||
} else if (SecretConst.LEVEL1.equals(level)) {
|
||||
result = Encryption.symEncrypt(security_key, source);
|
||||
} else if (SecretConst.LEVEL2.equals(level)) {
|
||||
result = CompressUtil.gzipCompress(source);
|
||||
} else if (SecretConst.LEVEL3.equals(level)) {
|
||||
result = Encryption.symEncrypt(security_key, CompressUtil.gzipCompress(source));
|
||||
} else if (SecretConst.LEVEL4.equals(level)) {
|
||||
result = CompressUtil.gzipCompress(Encryption.symEncrypt(security_key, source));
|
||||
} else {
|
||||
throw new Exception("无效的安全等级");
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
class SecretConst {
|
||||
/**
|
||||
* LEVEL0 不压缩、不加密
|
||||
*/
|
||||
public static final String LEVEL0 = "L0";
|
||||
/**
|
||||
* LEVEL1 只加密、不压缩
|
||||
*/
|
||||
public static final String LEVEL1 = "L1";
|
||||
/**
|
||||
* LEVEL2 只压缩、不加密
|
||||
*/
|
||||
public static final String LEVEL2 = "L2";
|
||||
/**
|
||||
* LEVEL3 先压缩、后加密
|
||||
*/
|
||||
public static final String LEVEL3 = "L3";
|
||||
/**
|
||||
* LEVEL4 先加密、后压缩
|
||||
*/
|
||||
public static final String LEVEL4 = "L4";
|
||||
}
|
||||
}
|
|
@ -1,92 +0,0 @@
|
|||
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;
|
||||
}
|
||||
}
|
|
@ -1,65 +0,0 @@
|
|||
package com.hzya.frame.bip.v3.v2207.util;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
/**
|
||||
* com.hzya.frame.bip.v3.v2207.util
|
||||
*
|
||||
* @author makejava
|
||||
* @date 2024-05 -30 14:20
|
||||
*/
|
||||
|
||||
public class BipUtil {
|
||||
/**
|
||||
*
|
||||
* @content 发送单据到BIP系统
|
||||
* @author laborer
|
||||
* @date 2024/6/21 0021 10:51
|
||||
*
|
||||
*/
|
||||
|
||||
public static String sendU9cTOBipEsb(String parm, String apiCode,String token){
|
||||
String baseUrl = "http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface";
|
||||
System.out.println("推送参数"+parm);
|
||||
String result = HttpRequest.post(baseUrl)
|
||||
.header("appId", "800023")//头信息,多个头信息多次调用此方法即可
|
||||
.header("access_token", token)//头信息,多个头信息多次调用此方法即可
|
||||
.header("apiCode", apiCode)//头信息,多个头信息多次调用此方法即可
|
||||
.header("publicKey", "ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj")//头信息,多个头信息多次调用此方法即可
|
||||
.header("secretKey", "7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")//头信息,多个头信息多次调用此方法即可
|
||||
.body(parm)//表单内容
|
||||
.timeout(20000)//超时,毫秒
|
||||
.execute().body();
|
||||
System.out.println("返回参数"+result);
|
||||
if(StrUtil.isNotEmpty(result)){
|
||||
return analytic(result);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public static String getBipToken(String userCode, String apiCode){
|
||||
String baseUrl = "http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface";
|
||||
String result = HttpRequest.post(baseUrl)
|
||||
.header("appId", "800023")//头信息,多个头信息多次调用此方法即可
|
||||
.header("apiCode", apiCode)//头信息,多个头信息多次调用此方法即可
|
||||
.header("usercode", userCode)//头信息,多个头信息多次调用此方法即可
|
||||
.header("publicKey", "ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj")//头信息,多个头信息多次调用此方法即可
|
||||
.header("secretKey", "7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")//头信息,多个头信息多次调用此方法即可
|
||||
.body("")//表单内容
|
||||
.timeout(20000)//超时,毫秒
|
||||
.execute().body();
|
||||
System.out.println("返回参数"+result);
|
||||
if(StrUtil.isNotEmpty(result)){
|
||||
JSONObject obj = JSON.parseObject( analytic(result));
|
||||
JSONObject data = obj.getJSONObject("data");
|
||||
return data.getString("access_token");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public static String analytic(String parm){
|
||||
JSONObject main = JSON.parseObject(parm);
|
||||
return main.getString("attribute");
|
||||
}
|
||||
}
|
|
@ -1,32 +0,0 @@
|
|||
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;
|
||||
}
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
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;
|
||||
}
|
||||
}
|
|
@ -1,134 +0,0 @@
|
|||
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;
|
||||
}
|
||||
}
|
|
@ -1,272 +0,0 @@
|
|||
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;
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue