1、新增浦发明细调用方法,接口,配置文件等。

This commit is contained in:
zhengyf 2025-09-03 11:36:07 +08:00
parent cd161e7e89
commit 35ebfff445
15 changed files with 1177 additions and 10 deletions

View File

@ -0,0 +1,15 @@
package com.hzya.frame.finance.conf.billtemplate.dao;
import com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* (fe_conf_bill_template: table)表数据库访问层
*
* @author zydd
* @since 2025-08-29 17:44:59
*/
public interface IFeConfBillTemplateDao extends IBaseDao<FeConfBillTemplateEntity, String> {
}

View File

@ -0,0 +1,18 @@
package com.hzya.frame.finance.conf.billtemplate.dao.impl;
import com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity;
import com.hzya.frame.finance.conf.billtemplate.dao.IFeConfBillTemplateDao;
import lombok.Data;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* (FeConfBillTemplate)表数据库访问层
*
* @author zydd
* @since 2025-08-29 17:44:59
*/
@Repository
public class FeConfBillTemplateDaoImpl extends MybatisGenericDao<FeConfBillTemplateEntity, String> implements IFeConfBillTemplateDao{
}

View File

@ -0,0 +1,126 @@
package com.hzya.frame.finance.conf.billtemplate.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* (FeConfBillTemplate)实体类
*
* @author zydd
* @since 2025-08-29 17:44:59
*/
@Data
public class FeConfBillTemplateEntity extends BaseEntity {
private String name;
/**
* 财务组织取值
*/
private String hOrgStr;
/**
* 单据日期
*/
private String hBillDateStr;
/**
* 往来对象标识
*/
private String hWldxStr;
/**
* 客户
*/
private String hUserStr;
/**
* 供应商
*/
private String hSupplierStr;
/**
* 部门
*/
private String hDeptStr;
private String hCustomerStr;
/**
* 币种
*/
private String hCurrenvyStr;
/**
* 备注
*/
private String hRemarkStr;
/**
* 结算方式
*/
private String hClearingFormStr;
private String hDef1;
private String hDef2;
private String hDef3;
private String hDef4;
private String hDef5;
private String hDef6;
private String hDef7;
private String hDef8;
private String hDef9;
private String hDef10;
/**
* 款项性质
*/
private String bKxxzStr;
/**
* 业务类型
*/
private String bYwlxStr;
/**
* 币种
*/
private String bCurrencyStr;
/**
* 税率
*/
private String bRateStr;
/**
* 原币金额
*/
private String bYbjeStr;
/**
* 本币金额
*/
private String bBbjeStr;
/**
* 收支项目
*/
private String bZsxmStr;
/**
* 摘要
*/
private String bZyStr;
/**
* 汇率
*/
private String bExchangeRate;
/**
* 银行账号
*/
private String bBankNum;
private String bDef1;
private String bDef2;
private String bDef3;
private String bDef4;
private String bDef5;
private String bDef6;
private String bDef7;
private String bDef8;
private String bDef9;
private String bDef10;
/**
* 创建人
*/
private String createUser;
/**
* 修改人
*/
private String modifyUser;
}

View File

@ -0,0 +1,663 @@
<?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.finance.conf.billtemplate.dao.impl.FeConfBillTemplateDaoImpl">
<resultMap id="get-FeConfBillTemplateEntity-result"
type="com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="hOrgStr" column="h_org_str" jdbcType="VARCHAR"/>
<result property="hBillDateStr" column="h_bill_date_str" jdbcType="VARCHAR"/>
<result property="hWldxStr" column="h_wldx_str" jdbcType="VARCHAR"/>
<result property="hUserStr" column="h_user_str" jdbcType="VARCHAR"/>
<result property="hCustomerStr" column="h_customer_str" jdbcType="VARCHAR"/>
<result property="hSupplierStr" column="h_supplier_str" jdbcType="VARCHAR"/>
<result property="hDeptStr" column="h_dept_str" jdbcType="VARCHAR"/>
<result property="hCurrenvyStr" column="h_currenvy_str" jdbcType="VARCHAR"/>
<result property="hRemarkStr" column="h_remark_str" jdbcType="VARCHAR"/>
<result property="hClearingFormStr" column="h_clearing_form_str" jdbcType="VARCHAR"/>
<result property="hDef1" column="h_def1" jdbcType="VARCHAR"/>
<result property="hDef2" column="h_def2" jdbcType="VARCHAR"/>
<result property="hDef3" column="h_def3" jdbcType="VARCHAR"/>
<result property="hDef4" column="h_def4" jdbcType="VARCHAR"/>
<result property="hDef5" column="h_def5" jdbcType="VARCHAR"/>
<result property="hDef6" column="h_def6" jdbcType="VARCHAR"/>
<result property="hDef7" column="h_def7" jdbcType="VARCHAR"/>
<result property="hDef8" column="h_def8" jdbcType="VARCHAR"/>
<result property="hDef9" column="h_def9" jdbcType="VARCHAR"/>
<result property="hDef10" column="h_def10" jdbcType="VARCHAR"/>
<result property="bKxxzStr" column="b_kxxz_str" jdbcType="VARCHAR"/>
<result property="bYwlxStr" column="b_ywlx_str" jdbcType="VARCHAR"/>
<result property="bCurrencyStr" column="b_currency_str" jdbcType="VARCHAR"/>
<result property="bRateStr" column="b_rate_str" jdbcType="VARCHAR"/>
<result property="bYbjeStr" column="b_ybje_str" jdbcType="VARCHAR"/>
<result property="bBbjeStr" column="b_bbje_str" jdbcType="VARCHAR"/>
<result property="bZsxmStr" column="b_zsxm_str" jdbcType="VARCHAR"/>
<result property="bZyStr" column="b_zy_str" jdbcType="VARCHAR"/>
<result property="bExchangeRate" column="b_exchange_rate" jdbcType="VARCHAR"/>
<result property="bBankNum" column="b_bank_num" jdbcType="VARCHAR"/>
<result property="bDef1" column="b_def1" jdbcType="VARCHAR"/>
<result property="bDef2" column="b_def2" jdbcType="VARCHAR"/>
<result property="bDef3" column="b_def3" jdbcType="VARCHAR"/>
<result property="bDef4" column="b_def4" jdbcType="VARCHAR"/>
<result property="bDef5" column="b_def5" jdbcType="VARCHAR"/>
<result property="bDef6" column="b_def6" jdbcType="VARCHAR"/>
<result property="bDef7" column="b_def7" jdbcType="VARCHAR"/>
<result property="bDef8" column="b_def8" jdbcType="VARCHAR"/>
<result property="bDef9" column="b_def9" jdbcType="VARCHAR"/>
<result property="bDef10" column="b_def10" jdbcType="VARCHAR"/>
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
<result property="createUser" column="create_user" jdbcType="VARCHAR"/>
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
<result property="modifyUser" column="modify_user" jdbcType="VARCHAR"/>
<result property="sts" column="sts" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id="FeConfBillTemplateEntity_Base_Column_List">
id
,name
,h_org_str
,h_bill_date_str
,h_wldx_str
,h_user_str
,h_customer_str
,h_supplier_str
,h_dept_str
,h_currenvy_str
,h_remark_str
,h_clearing_form_str
,h_def1
,h_def2
,h_def3
,h_def4
,h_def5
,h_def6
,h_def7
,h_def8
,h_def9
,h_def10
,b_kxxz_str
,b_ywlx_str
,b_currency_str
,b_rate_str
,b_ybje_str
,b_bbje_str
,b_zsxm_str
,b_zy_str
,b_exchange_rate
,b_bank_num
,b_def1
,b_def2
,b_def3
,b_def4
,b_def5
,b_def6
,b_def7
,b_def8
,b_def9
,b_def10
,create_time
,create_user
,modify_time
,modify_user
,sts
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-FeConfBillTemplateEntity-result"
parameterType="com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity">
select
<include refid="FeConfBillTemplateEntity_Base_Column_List"/>
from fe_conf_bill_template
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="name != null and name != ''">and name = #{name}</if>
<if test="hOrgStr != null and hOrgStr != ''">and h_org_str = #{hOrgStr}</if>
<if test="hBillDateStr != null and hBillDateStr != ''">and h_bill_date_str = #{hBillDateStr}</if>
<if test="hWldxStr != null and hWldxStr != ''">and h_wldx_str = #{hWldxStr}</if>
<if test="hUserStr != null and hUserStr != ''">and h_user_str = #{hUserStr}</if>
<if test="hCustomerStr != null and hCustomerStr != ''">and h_customer_str = #{hCustomerStr}</if>
<if test="hSupplierStr != null and hSupplierStr != ''">and h_supplier_str = #{hSupplierStr}</if>
<if test="hDeptStr != null and hDeptStr != ''">and h_dept_str = #{hDeptStr}</if>
<if test="hCurrenvyStr != null and hCurrenvyStr != ''">and h_currenvy_str = #{hCurrenvyStr}</if>
<if test="hRemarkStr != null and hRemarkStr != ''">and h_remark_str = #{hRemarkStr}</if>
<if test="hClearingFormStr != null and hClearingFormStr != ''">and h_clearing_form_str =
#{hClearingFormStr}
</if>
<if test="hDef1 != null and hDef1 != ''">and h_def1 = #{hDef1}</if>
<if test="hDef2 != null and hDef2 != ''">and h_def2 = #{hDef2}</if>
<if test="hDef3 != null and hDef3 != ''">and h_def3 = #{hDef3}</if>
<if test="hDef4 != null and hDef4 != ''">and h_def4 = #{hDef4}</if>
<if test="hDef5 != null and hDef5 != ''">and h_def5 = #{hDef5}</if>
<if test="hDef6 != null and hDef6 != ''">and h_def6 = #{hDef6}</if>
<if test="hDef7 != null and hDef7 != ''">and h_def7 = #{hDef7}</if>
<if test="hDef8 != null and hDef8 != ''">and h_def8 = #{hDef8}</if>
<if test="hDef9 != null and hDef9 != ''">and h_def9 = #{hDef9}</if>
<if test="hDef10 != null and hDef10 != ''">and h_def10 = #{hDef10}</if>
<if test="bKxxzStr != null and bKxxzStr != ''">and b_kxxz_str = #{bKxxzStr}</if>
<if test="bYwlxStr != null and bYwlxStr != ''">and b_ywlx_str = #{bYwlxStr}</if>
<if test="bCurrencyStr != null and bCurrencyStr != ''">and b_currency_str = #{bCurrencyStr}</if>
<if test="bRateStr != null and bRateStr != ''">and b_rate_str = #{bRateStr}</if>
<if test="bYbjeStr != null and bYbjeStr != ''">and b_ybje_str = #{bYbjeStr}</if>
<if test="bBbjeStr != null and bBbjeStr != ''">and b_bbje_str = #{bBbjeStr}</if>
<if test="bZsxmStr != null and bZsxmStr != ''">and b_zsxm_str = #{bZsxmStr}</if>
<if test="bZyStr != null and bZyStr != ''">and b_zy_str = #{bZyStr}</if>
<if test="bExchangeRate != null and bExchangeRate != ''">and b_exchange_rate = #{bExchangeRate}</if>
<if test="bBankNum != null and bBankNum != ''">and b_bank_num = #{bBankNum}</if>
<if test="bDef1 != null and bDef1 != ''">and b_def1 = #{bDef1}</if>
<if test="bDef2 != null and bDef2 != ''">and b_def2 = #{bDef2}</if>
<if test="bDef3 != null and bDef3 != ''">and b_def3 = #{bDef3}</if>
<if test="bDef4 != null and bDef4 != ''">and b_def4 = #{bDef4}</if>
<if test="bDef5 != null and bDef5 != ''">and b_def5 = #{bDef5}</if>
<if test="bDef6 != null and bDef6 != ''">and b_def6 = #{bDef6}</if>
<if test="bDef7 != null and bDef7 != ''">and b_def7 = #{bDef7}</if>
<if test="bDef8 != null and bDef8 != ''">and b_def8 = #{bDef8}</if>
<if test="bDef9 != null and bDef9 != ''">and b_def9 = #{bDef9}</if>
<if test="bDef10 != null and bDef10 != ''">and b_def10 = #{bDef10}</if>
<if test="create_time != null">and create_time = #{create_time}</if>
<if test="createUser != null and createUser != ''">and create_user = #{createUser}</if>
<if test="modify_time != null">and modify_time = #{modify_time}</if>
<if test="modifyUser != null and modifyUser != ''">and modify_user = #{modifyUser}</if>
<if test="sts != null and sts != ''">and sts = #{sts}</if>
and sts='Y'
</trim>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer"
parameterType="com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity">
select count(1) from fe_conf_bill_template
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="name != null and name != ''">and name = #{name}</if>
<if test="hOrgStr != null and hOrgStr != ''">and h_org_str = #{hOrgStr}</if>
<if test="hBillDateStr != null and hBillDateStr != ''">and h_bill_date_str = #{hBillDateStr}</if>
<if test="hWldxStr != null and hWldxStr != ''">and h_wldx_str = #{hWldxStr}</if>
<if test="hUserStr != null and hUserStr != ''">and h_user_str = #{hUserStr}</if>
<if test="hCustomerStr != null and hCustomerStr != ''">and h_customer_str = #{hCustomerStr}</if>
<if test="hSupplierStr != null and hSupplierStr != ''">and h_supplier_str = #{hSupplierStr}</if>
<if test="hDeptStr != null and hDeptStr != ''">and h_dept_str = #{hDeptStr}</if>
<if test="hCurrenvyStr != null and hCurrenvyStr != ''">and h_currenvy_str = #{hCurrenvyStr}</if>
<if test="hRemarkStr != null and hRemarkStr != ''">and h_remark_str = #{hRemarkStr}</if>
<if test="hClearingFormStr != null and hClearingFormStr != ''">and h_clearing_form_str =
#{hClearingFormStr}
</if>
<if test="hDef1 != null and hDef1 != ''">and h_def1 = #{hDef1}</if>
<if test="hDef2 != null and hDef2 != ''">and h_def2 = #{hDef2}</if>
<if test="hDef3 != null and hDef3 != ''">and h_def3 = #{hDef3}</if>
<if test="hDef4 != null and hDef4 != ''">and h_def4 = #{hDef4}</if>
<if test="hDef5 != null and hDef5 != ''">and h_def5 = #{hDef5}</if>
<if test="hDef6 != null and hDef6 != ''">and h_def6 = #{hDef6}</if>
<if test="hDef7 != null and hDef7 != ''">and h_def7 = #{hDef7}</if>
<if test="hDef8 != null and hDef8 != ''">and h_def8 = #{hDef8}</if>
<if test="hDef9 != null and hDef9 != ''">and h_def9 = #{hDef9}</if>
<if test="hDef10 != null and hDef10 != ''">and h_def10 = #{hDef10}</if>
<if test="bKxxzStr != null and bKxxzStr != ''">and b_kxxz_str = #{bKxxzStr}</if>
<if test="bYwlxStr != null and bYwlxStr != ''">and b_ywlx_str = #{bYwlxStr}</if>
<if test="bCurrencyStr != null and bCurrencyStr != ''">and b_currency_str = #{bCurrencyStr}</if>
<if test="bRateStr != null and bRateStr != ''">and b_rate_str = #{bRateStr}</if>
<if test="bYbjeStr != null and bYbjeStr != ''">and b_ybje_str = #{bYbjeStr}</if>
<if test="bBbjeStr != null and bBbjeStr != ''">and b_bbje_str = #{bBbjeStr}</if>
<if test="bZsxmStr != null and bZsxmStr != ''">and b_zsxm_str = #{bZsxmStr}</if>
<if test="bZyStr != null and bZyStr != ''">and b_zy_str = #{bZyStr}</if>
<if test="bExchangeRate != null and bExchangeRate != ''">and b_exchange_rate = #{bExchangeRate}</if>
<if test="bBankNum != null and bBankNum != ''">and b_bank_num = #{bBankNum}</if>
<if test="bDef1 != null and bDef1 != ''">and b_def1 = #{bDef1}</if>
<if test="bDef2 != null and bDef2 != ''">and b_def2 = #{bDef2}</if>
<if test="bDef3 != null and bDef3 != ''">and b_def3 = #{bDef3}</if>
<if test="bDef4 != null and bDef4 != ''">and b_def4 = #{bDef4}</if>
<if test="bDef5 != null and bDef5 != ''">and b_def5 = #{bDef5}</if>
<if test="bDef6 != null and bDef6 != ''">and b_def6 = #{bDef6}</if>
<if test="bDef7 != null and bDef7 != ''">and b_def7 = #{bDef7}</if>
<if test="bDef8 != null and bDef8 != ''">and b_def8 = #{bDef8}</if>
<if test="bDef9 != null and bDef9 != ''">and b_def9 = #{bDef9}</if>
<if test="bDef10 != null and bDef10 != ''">and b_def10 = #{bDef10}</if>
<if test="create_time != null">and create_time = #{create_time}</if>
<if test="createUser != null and createUser != ''">and create_user = #{createUser}</if>
<if test="modify_time != null">and modify_time = #{modify_time}</if>
<if test="modifyUser != null and modifyUser != ''">and modify_user = #{modifyUser}</if>
<if test="sts != null and sts != ''">and sts = #{sts}</if>
and sts='Y'
</trim>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-FeConfBillTemplateEntity-result"
parameterType="com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity">
select
<include refid="FeConfBillTemplateEntity_Base_Column_List"/>
from fe_conf_bill_template
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id like concat('%',#{id},'%')</if>
<if test="name != null and name != ''">and name like concat('%',#{name},'%')</if>
<if test="hOrgStr != null and hOrgStr != ''">and h_org_str like concat('%',#{hOrgStr},'%')</if>
<if test="hBillDateStr != null and hBillDateStr != ''">and h_bill_date_str like
concat('%',#{hBillDateStr},'%')
</if>
<if test="hWldxStr != null and hWldxStr != ''">and h_wldx_str like concat('%',#{hWldxStr},'%')</if>
<if test="hUserStr != null and hUserStr != ''">and h_user_str like concat('%',#{hUserStr},'%')</if>
<if test="hCustomerStr != null and hCustomerStr != ''">and h_customer_str like
concat('%',#{hCustomerStr},'%')
</if>
<if test="hSupplierStr != null and hSupplierStr != ''">and h_supplier_str like
concat('%',#{hSupplierStr},'%')
</if>
<if test="hDeptStr != null and hDeptStr != ''">and h_dept_str like concat('%',#{hDeptStr},'%')</if>
<if test="hCurrenvyStr != null and hCurrenvyStr != ''">and h_currenvy_str like
concat('%',#{hCurrenvyStr},'%')
</if>
<if test="hRemarkStr != null and hRemarkStr != ''">and h_remark_str like concat('%',#{hRemarkStr},'%')</if>
<if test="hClearingFormStr != null and hClearingFormStr != ''">and h_clearing_form_str like
concat('%',#{hClearingFormStr},'%')
</if>
<if test="hDef1 != null and hDef1 != ''">and h_def1 like concat('%',#{hDef1},'%')</if>
<if test="hDef2 != null and hDef2 != ''">and h_def2 like concat('%',#{hDef2},'%')</if>
<if test="hDef3 != null and hDef3 != ''">and h_def3 like concat('%',#{hDef3},'%')</if>
<if test="hDef4 != null and hDef4 != ''">and h_def4 like concat('%',#{hDef4},'%')</if>
<if test="hDef5 != null and hDef5 != ''">and h_def5 like concat('%',#{hDef5},'%')</if>
<if test="hDef6 != null and hDef6 != ''">and h_def6 like concat('%',#{hDef6},'%')</if>
<if test="hDef7 != null and hDef7 != ''">and h_def7 like concat('%',#{hDef7},'%')</if>
<if test="hDef8 != null and hDef8 != ''">and h_def8 like concat('%',#{hDef8},'%')</if>
<if test="hDef9 != null and hDef9 != ''">and h_def9 like concat('%',#{hDef9},'%')</if>
<if test="hDef10 != null and hDef10 != ''">and h_def10 like concat('%',#{hDef10},'%')</if>
<if test="bKxxzStr != null and bKxxzStr != ''">and b_kxxz_str like concat('%',#{bKxxzStr},'%')</if>
<if test="bYwlxStr != null and bYwlxStr != ''">and b_ywlx_str like concat('%',#{bYwlxStr},'%')</if>
<if test="bCurrencyStr != null and bCurrencyStr != ''">and b_currency_str like
concat('%',#{bCurrencyStr},'%')
</if>
<if test="bRateStr != null and bRateStr != ''">and b_rate_str like concat('%',#{bRateStr},'%')</if>
<if test="bYbjeStr != null and bYbjeStr != ''">and b_ybje_str like concat('%',#{bYbjeStr},'%')</if>
<if test="bBbjeStr != null and bBbjeStr != ''">and b_bbje_str like concat('%',#{bBbjeStr},'%')</if>
<if test="bZsxmStr != null and bZsxmStr != ''">and b_zsxm_str like concat('%',#{bZsxmStr},'%')</if>
<if test="bZyStr != null and bZyStr != ''">and b_zy_str like concat('%',#{bZyStr},'%')</if>
<if test="bExchangeRate != null and bExchangeRate != ''">and b_exchange_rate like
concat('%',#{bExchangeRate},'%')
</if>
<if test="bBankNum != null and bBankNum != ''">and b_bank_num like concat('%',#{bBankNum},'%')</if>
<if test="bDef1 != null and bDef1 != ''">and b_def1 like concat('%',#{bDef1},'%')</if>
<if test="bDef2 != null and bDef2 != ''">and b_def2 like concat('%',#{bDef2},'%')</if>
<if test="bDef3 != null and bDef3 != ''">and b_def3 like concat('%',#{bDef3},'%')</if>
<if test="bDef4 != null and bDef4 != ''">and b_def4 like concat('%',#{bDef4},'%')</if>
<if test="bDef5 != null and bDef5 != ''">and b_def5 like concat('%',#{bDef5},'%')</if>
<if test="bDef6 != null and bDef6 != ''">and b_def6 like concat('%',#{bDef6},'%')</if>
<if test="bDef7 != null and bDef7 != ''">and b_def7 like concat('%',#{bDef7},'%')</if>
<if test="bDef8 != null and bDef8 != ''">and b_def8 like concat('%',#{bDef8},'%')</if>
<if test="bDef9 != null and bDef9 != ''">and b_def9 like concat('%',#{bDef9},'%')</if>
<if test="bDef10 != null and bDef10 != ''">and b_def10 like concat('%',#{bDef10},'%')</if>
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
<if test="createUser != null and createUser != ''">and create_user like concat('%',#{createUser},'%')</if>
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
<if test="modifyUser != null and modifyUser != ''">and modify_user like concat('%',#{modifyUser},'%')</if>
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
and sts='Y'
</trim>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="FeConfBillTemplateentity_list_or" resultMap="get-FeConfBillTemplateEntity-result"
parameterType="com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity">
select
<include refid="FeConfBillTemplateEntity_Base_Column_List"/>
from fe_conf_bill_template
<trim prefix="where" prefixOverrides="and">
<if test="id != null">or id = #{id}</if>
<if test="name != null and name != ''">or name = #{name}</if>
<if test="hOrgStr != null and hOrgStr != ''">or h_org_str = #{hOrgStr}</if>
<if test="hBillDateStr != null and hBillDateStr != ''">or h_bill_date_str = #{hBillDateStr}</if>
<if test="hWldxStr != null and hWldxStr != ''">or h_wldx_str = #{hWldxStr}</if>
<if test="hUserStr != null and hUserStr != ''">or h_user_str = #{hUserStr}</if>
<if test="hCustomerStr != null and hCustomerStr != ''">or h_customer_str = #{hCustomerStr}</if>
<if test="hSupplierStr != null and hSupplierStr != ''">or h_supplier_str = #{hSupplierStr}</if>
<if test="hDeptStr != null and hDeptStr != ''">or h_dept_str = #{hDeptStr}</if>
<if test="hCurrenvyStr != null and hCurrenvyStr != ''">or h_currenvy_str = #{hCurrenvyStr}</if>
<if test="hRemarkStr != null and hRemarkStr != ''">or h_remark_str = #{hRemarkStr}</if>
<if test="hClearingFormStr != null and hClearingFormStr != ''">or h_clearing_form_str =
#{hClearingFormStr}
</if>
<if test="hDef1 != null and hDef1 != ''">or h_def1 = #{hDef1}</if>
<if test="hDef2 != null and hDef2 != ''">or h_def2 = #{hDef2}</if>
<if test="hDef3 != null and hDef3 != ''">or h_def3 = #{hDef3}</if>
<if test="hDef4 != null and hDef4 != ''">or h_def4 = #{hDef4}</if>
<if test="hDef5 != null and hDef5 != ''">or h_def5 = #{hDef5}</if>
<if test="hDef6 != null and hDef6 != ''">or h_def6 = #{hDef6}</if>
<if test="hDef7 != null and hDef7 != ''">or h_def7 = #{hDef7}</if>
<if test="hDef8 != null and hDef8 != ''">or h_def8 = #{hDef8}</if>
<if test="hDef9 != null and hDef9 != ''">or h_def9 = #{hDef9}</if>
<if test="hDef10 != null and hDef10 != ''">or h_def10 = #{hDef10}</if>
<if test="bKxxzStr != null and bKxxzStr != ''">or b_kxxz_str = #{bKxxzStr}</if>
<if test="bYwlxStr != null and bYwlxStr != ''">or b_ywlx_str = #{bYwlxStr}</if>
<if test="bCurrencyStr != null and bCurrencyStr != ''">or b_currency_str = #{bCurrencyStr}</if>
<if test="bRateStr != null and bRateStr != ''">or b_rate_str = #{bRateStr}</if>
<if test="bYbjeStr != null and bYbjeStr != ''">or b_ybje_str = #{bYbjeStr}</if>
<if test="bBbjeStr != null and bBbjeStr != ''">or b_bbje_str = #{bBbjeStr}</if>
<if test="bZsxmStr != null and bZsxmStr != ''">or b_zsxm_str = #{bZsxmStr}</if>
<if test="bZyStr != null and bZyStr != ''">or b_zy_str = #{bZyStr}</if>
<if test="bExchangeRate != null and bExchangeRate != ''">or b_exchange_rate = #{bExchangeRate}</if>
<if test="bBankNum != null and bBankNum != ''">or b_bank_num = #{bBankNum}</if>
<if test="bDef1 != null and bDef1 != ''">or b_def1 = #{bDef1}</if>
<if test="bDef2 != null and bDef2 != ''">or b_def2 = #{bDef2}</if>
<if test="bDef3 != null and bDef3 != ''">or b_def3 = #{bDef3}</if>
<if test="bDef4 != null and bDef4 != ''">or b_def4 = #{bDef4}</if>
<if test="bDef5 != null and bDef5 != ''">or b_def5 = #{bDef5}</if>
<if test="bDef6 != null and bDef6 != ''">or b_def6 = #{bDef6}</if>
<if test="bDef7 != null and bDef7 != ''">or b_def7 = #{bDef7}</if>
<if test="bDef8 != null and bDef8 != ''">or b_def8 = #{bDef8}</if>
<if test="bDef9 != null and bDef9 != ''">or b_def9 = #{bDef9}</if>
<if test="bDef10 != null and bDef10 != ''">or b_def10 = #{bDef10}</if>
<if test="create_time != null">or create_time = #{create_time}</if>
<if test="createUser != null and createUser != ''">or create_user = #{createUser}</if>
<if test="modify_time != null">or modify_time = #{modify_time}</if>
<if test="modifyUser != null and modifyUser != ''">or modify_user = #{modifyUser}</if>
<if test="sts != null and sts != ''">or sts = #{sts}</if>
and sts='Y'
</trim>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType="com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity"
keyProperty="id" useGeneratedKeys="true">
insert into fe_conf_bill_template(
<trim suffix="" suffixOverrides=",">
<if test="id != null">id ,</if>
<if test="name != null and name != ''">name ,</if>
<if test="hOrgStr != null and hOrgStr != ''">h_org_str ,</if>
<if test="hBillDateStr != null and hBillDateStr != ''">h_bill_date_str ,</if>
<if test="hWldxStr != null and hWldxStr != ''">h_wldx_str ,</if>
<if test="hUserStr != null and hUserStr != ''">h_user_str ,</if>
<if test="hCustomerStr != null and hCustomerStr != ''">h_customer_str ,</if>
<if test="hSupplierStr != null and hSupplierStr != ''">h_supplier_str ,</if>
<if test="hDeptStr != null and hDeptStr != ''">h_dept_str ,</if>
<if test="hCurrenvyStr != null and hCurrenvyStr != ''">h_currenvy_str ,</if>
<if test="hRemarkStr != null and hRemarkStr != ''">h_remark_str ,</if>
<if test="hClearingFormStr != null and hClearingFormStr != ''">h_clearing_form_str ,</if>
<if test="hDef1 != null and hDef1 != ''">h_def1 ,</if>
<if test="hDef2 != null and hDef2 != ''">h_def2 ,</if>
<if test="hDef3 != null and hDef3 != ''">h_def3 ,</if>
<if test="hDef4 != null and hDef4 != ''">h_def4 ,</if>
<if test="hDef5 != null and hDef5 != ''">h_def5 ,</if>
<if test="hDef6 != null and hDef6 != ''">h_def6 ,</if>
<if test="hDef7 != null and hDef7 != ''">h_def7 ,</if>
<if test="hDef8 != null and hDef8 != ''">h_def8 ,</if>
<if test="hDef9 != null and hDef9 != ''">h_def9 ,</if>
<if test="hDef10 != null and hDef10 != ''">h_def10 ,</if>
<if test="bKxxzStr != null and bKxxzStr != ''">b_kxxz_str ,</if>
<if test="bYwlxStr != null and bYwlxStr != ''">b_ywlx_str ,</if>
<if test="bCurrencyStr != null and bCurrencyStr != ''">b_currency_str ,</if>
<if test="bRateStr != null and bRateStr != ''">b_rate_str ,</if>
<if test="bYbjeStr != null and bYbjeStr != ''">b_ybje_str ,</if>
<if test="bBbjeStr != null and bBbjeStr != ''">b_bbje_str ,</if>
<if test="bZsxmStr != null and bZsxmStr != ''">b_zsxm_str ,</if>
<if test="bZyStr != null and bZyStr != ''">b_zy_str ,</if>
<if test="bExchangeRate != null and bExchangeRate != ''">b_exchange_rate ,</if>
<if test="bBankNum != null and bBankNum != ''">b_bank_num ,</if>
<if test="bDef1 != null and bDef1 != ''">b_def1 ,</if>
<if test="bDef2 != null and bDef2 != ''">b_def2 ,</if>
<if test="bDef3 != null and bDef3 != ''">b_def3 ,</if>
<if test="bDef4 != null and bDef4 != ''">b_def4 ,</if>
<if test="bDef5 != null and bDef5 != ''">b_def5 ,</if>
<if test="bDef6 != null and bDef6 != ''">b_def6 ,</if>
<if test="bDef7 != null and bDef7 != ''">b_def7 ,</if>
<if test="bDef8 != null and bDef8 != ''">b_def8 ,</if>
<if test="bDef9 != null and bDef9 != ''">b_def9 ,</if>
<if test="bDef10 != null and bDef10 != ''">b_def10 ,</if>
<if test="create_time != null">create_time ,</if>
<if test="create_time == null">create_time ,</if>
<if test="createUser != null and createUser != ''">create_user ,</if>
<if test="modify_time != null">modify_time ,</if>
<if test="modify_time == null">modify_time ,</if>
<if test="modifyUser != null and modifyUser != ''">modify_user ,</if>
<if test="sts != null and sts != ''">sts ,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="id != null">#{id} ,</if>
<if test="name != null and name != ''">#{name} ,</if>
<if test="hOrgStr != null and hOrgStr != ''">#{hOrgStr} ,</if>
<if test="hBillDateStr != null and hBillDateStr != ''">#{hBillDateStr} ,</if>
<if test="hWldxStr != null and hWldxStr != ''">#{hWldxStr} ,</if>
<if test="hUserStr != null and hUserStr != ''">#{hUserStr} ,</if>
<if test="hCustomerStr != null and hCustomerStr != ''">#{hCustomerStr} ,</if>
<if test="hSupplierStr != null and hSupplierStr != ''">#{hSupplierStr} ,</if>
<if test="hDeptStr != null and hDeptStr != ''">#{hDeptStr} ,</if>
<if test="hCurrenvyStr != null and hCurrenvyStr != ''">#{hCurrenvyStr} ,</if>
<if test="hRemarkStr != null and hRemarkStr != ''">#{hRemarkStr} ,</if>
<if test="hClearingFormStr != null and hClearingFormStr != ''">#{hClearingFormStr} ,</if>
<if test="hDef1 != null and hDef1 != ''">#{hDef1} ,</if>
<if test="hDef2 != null and hDef2 != ''">#{hDef2} ,</if>
<if test="hDef3 != null and hDef3 != ''">#{hDef3} ,</if>
<if test="hDef4 != null and hDef4 != ''">#{hDef4} ,</if>
<if test="hDef5 != null and hDef5 != ''">#{hDef5} ,</if>
<if test="hDef6 != null and hDef6 != ''">#{hDef6} ,</if>
<if test="hDef7 != null and hDef7 != ''">#{hDef7} ,</if>
<if test="hDef8 != null and hDef8 != ''">#{hDef8} ,</if>
<if test="hDef9 != null and hDef9 != ''">#{hDef9} ,</if>
<if test="hDef10 != null and hDef10 != ''">#{hDef10} ,</if>
<if test="bKxxzStr != null and bKxxzStr != ''">#{bKxxzStr} ,</if>
<if test="bYwlxStr != null and bYwlxStr != ''">#{bYwlxStr} ,</if>
<if test="bCurrencyStr != null and bCurrencyStr != ''">#{bCurrencyStr} ,</if>
<if test="bRateStr != null and bRateStr != ''">#{bRateStr} ,</if>
<if test="bYbjeStr != null and bYbjeStr != ''">#{bYbjeStr} ,</if>
<if test="bBbjeStr != null and bBbjeStr != ''">#{bBbjeStr} ,</if>
<if test="bZsxmStr != null and bZsxmStr != ''">#{bZsxmStr} ,</if>
<if test="bZyStr != null and bZyStr != ''">#{bZyStr} ,</if>
<if test="bExchangeRate != null and bExchangeRate != ''">#{bExchangeRate} ,</if>
<if test="bBankNum != null and bBankNum != ''">#{bBankNum} ,</if>
<if test="bDef1 != null and bDef1 != ''">#{bDef1} ,</if>
<if test="bDef2 != null and bDef2 != ''">#{bDef2} ,</if>
<if test="bDef3 != null and bDef3 != ''">#{bDef3} ,</if>
<if test="bDef4 != null and bDef4 != ''">#{bDef4} ,</if>
<if test="bDef5 != null and bDef5 != ''">#{bDef5} ,</if>
<if test="bDef6 != null and bDef6 != ''">#{bDef6} ,</if>
<if test="bDef7 != null and bDef7 != ''">#{bDef7} ,</if>
<if test="bDef8 != null and bDef8 != ''">#{bDef8} ,</if>
<if test="bDef9 != null and bDef9 != ''">#{bDef9} ,</if>
<if test="bDef10 != null and bDef10 != ''">#{bDef10} ,</if>
<if test="create_time != null">#{create_time} ,</if>
<if test="create_time == null">now() ,</if>
<if test="createUser != null and createUser != ''">#{createUser} ,</if>
<if test="modify_time != null">#{modify_time} ,</if>
<if test="modify_time != null">now() ,</if>
<if test="modifyUser != null and modifyUser != ''">#{modifyUser} ,</if>
<if test="sts != null and sts != ''">#{sts} ,</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into fe_conf_bill_template(name, h_org_str, h_bill_date_str, h_wldx_str, h_customer_str, h_supplier_str,
h_dept_str, h_currenvy_str, h_remark_str, h_clearing_form_str, h_def1, h_def2, h_def3, h_def4, h_def5, h_def6,
h_def7, h_def8, h_def9, h_def10, b_kxxz_str, b_ywlx_str, b_currency_str, b_rate_str, b_ybje_str, b_bbje_str,
b_zsxm_str, b_zy_str, b_exchange_rate, b_bank_num, b_def1, b_def2, b_def3, b_def4, b_def5, b_def6, b_def7,
b_def8, b_def9, b_def10, create_time, create_user, modify_time, modify_user, sts, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.name},#{entity.hOrgStr},#{entity.hBillDateStr},#{entity.hWldxStr},#{entity.hCustomerStr},#{entity.hSupplierStr},#{entity.hDeptStr},#{entity.hCurrenvyStr},#{entity.hRemarkStr},#{entity.hClearingFormStr},#{entity.hDef1},#{entity.hDef2},#{entity.hDef3},#{entity.hDef4},#{entity.hDef5},#{entity.hDef6},#{entity.hDef7},#{entity.hDef8},#{entity.hDef9},#{entity.hDef10},#{entity.bKxxzStr},#{entity.bYwlxStr},#{entity.bCurrencyStr},#{entity.bRateStr},#{entity.bYbjeStr},#{entity.bBbjeStr},#{entity.bZsxmStr},#{entity.bZyStr},#{entity.bExchangeRate},#{entity.bBankNum},#{entity.bDef1},#{entity.bDef2},#{entity.bDef3},#{entity.bDef4},#{entity.bDef5},#{entity.bDef6},#{entity.bDef7},#{entity.bDef8},#{entity.bDef9},#{entity.bDef10},#{entity.create_time},#{entity.createUser},#{entity.modify_time},#{entity.modifyUser},#{entity.sts},
'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into fe_conf_bill_template(name, h_org_str, h_bill_date_str, h_wldx_str, h_customer_str, h_supplier_str,
h_dept_str, h_currenvy_str, h_remark_str, h_clearing_form_str, h_def1, h_def2, h_def3, h_def4, h_def5, h_def6,
h_def7, h_def8, h_def9, h_def10, b_kxxz_str, b_ywlx_str, b_currency_str, b_rate_str, b_ybje_str, b_bbje_str,
b_zsxm_str, b_zy_str, b_exchange_rate, b_bank_num, b_def1, b_def2, b_def3, b_def4, b_def5, b_def6, b_def7,
b_def8, b_def9, b_def10, create_time, create_user, modify_time, modify_user, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.name},#{entity.hOrgStr},#{entity.hBillDateStr},#{entity.hWldxStr},#{entity.hCustomerStr},#{entity.hSupplierStr},#{entity.hDeptStr},#{entity.hCurrenvyStr},#{entity.hRemarkStr},#{entity.hClearingFormStr},#{entity.hDef1},#{entity.hDef2},#{entity.hDef3},#{entity.hDef4},#{entity.hDef5},#{entity.hDef6},#{entity.hDef7},#{entity.hDef8},#{entity.hDef9},#{entity.hDef10},#{entity.bKxxzStr},#{entity.bYwlxStr},#{entity.bCurrencyStr},#{entity.bRateStr},#{entity.bYbjeStr},#{entity.bBbjeStr},#{entity.bZsxmStr},#{entity.bZyStr},#{entity.bExchangeRate},#{entity.bBankNum},#{entity.bDef1},#{entity.bDef2},#{entity.bDef3},#{entity.bDef4},#{entity.bDef5},#{entity.bDef6},#{entity.bDef7},#{entity.bDef8},#{entity.bDef9},#{entity.bDef10},#{entity.create_time},#{entity.createUser},#{entity.modify_time},#{entity.modifyUser},#{entity.sts})
</foreach>
on duplicate key update
name = values(name),
h_org_str = values(h_org_str),
h_bill_date_str = values(h_bill_date_str),
h_wldx_str = values(h_wldx_str),
h_customer_str = values(h_customer_str),
h_supplier_str = values(h_supplier_str),
h_dept_str = values(h_dept_str),
h_currenvy_str = values(h_currenvy_str),
h_remark_str = values(h_remark_str),
h_clearing_form_str = values(h_clearing_form_str),
h_def1 = values(h_def1),
h_def2 = values(h_def2),
h_def3 = values(h_def3),
h_def4 = values(h_def4),
h_def5 = values(h_def5),
h_def6 = values(h_def6),
h_def7 = values(h_def7),
h_def8 = values(h_def8),
h_def9 = values(h_def9),
h_def10 = values(h_def10),
b_kxxz_str = values(b_kxxz_str),
b_ywlx_str = values(b_ywlx_str),
b_currency_str = values(b_currency_str),
b_rate_str = values(b_rate_str),
b_ybje_str = values(b_ybje_str),
b_bbje_str = values(b_bbje_str),
b_zsxm_str = values(b_zsxm_str),
b_zy_str = values(b_zy_str),
b_exchange_rate = values(b_exchange_rate),
b_bank_num = values(b_bank_num),
b_def1 = values(b_def1),
b_def2 = values(b_def2),
b_def3 = values(b_def3),
b_def4 = values(b_def4),
b_def5 = values(b_def5),
b_def6 = values(b_def6),
b_def7 = values(b_def7),
b_def8 = values(b_def8),
b_def9 = values(b_def9),
b_def10 = values(b_def10),
create_time = values(create_time),
create_user = values(create_user),
modify_time = values(modify_time),
modify_user = values(modify_user),
sts = values(sts)
</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType="com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity">
update fe_conf_bill_template set
<trim suffix="" suffixOverrides=",">
<if test="name != null and name != ''">name = #{name},</if>
<if test="hOrgStr != null and hOrgStr != ''">h_org_str = #{hOrgStr},</if>
<if test="hBillDateStr != null and hBillDateStr != ''">h_bill_date_str = #{hBillDateStr},</if>
<if test="hWldxStr != null and hWldxStr != ''">h_wldx_str = #{hWldxStr},</if>
<if test="hUserStr != null and hUserStr != ''">h_user_str = #{hUserStr},</if>
<if test="hCustomerStr != null and hCustomerStr != ''">h_customer_str = #{hCustomerStr},</if>
<if test="hSupplierStr != null and hSupplierStr != ''">h_supplier_str = #{hSupplierStr},</if>
<if test="hDeptStr != null and hDeptStr != ''">h_dept_str = #{hDeptStr},</if>
<if test="hCurrenvyStr != null and hCurrenvyStr != ''">h_currenvy_str = #{hCurrenvyStr},</if>
<if test="hRemarkStr != null and hRemarkStr != ''">h_remark_str = #{hRemarkStr},</if>
<if test="hClearingFormStr != null and hClearingFormStr != ''">h_clearing_form_str = #{hClearingFormStr},
</if>
<if test="hDef1 != null and hDef1 != ''">h_def1 = #{hDef1},</if>
<if test="hDef2 != null and hDef2 != ''">h_def2 = #{hDef2},</if>
<if test="hDef3 != null and hDef3 != ''">h_def3 = #{hDef3},</if>
<if test="hDef4 != null and hDef4 != ''">h_def4 = #{hDef4},</if>
<if test="hDef5 != null and hDef5 != ''">h_def5 = #{hDef5},</if>
<if test="hDef6 != null and hDef6 != ''">h_def6 = #{hDef6},</if>
<if test="hDef7 != null and hDef7 != ''">h_def7 = #{hDef7},</if>
<if test="hDef8 != null and hDef8 != ''">h_def8 = #{hDef8},</if>
<if test="hDef9 != null and hDef9 != ''">h_def9 = #{hDef9},</if>
<if test="hDef10 != null and hDef10 != ''">h_def10 = #{hDef10},</if>
<if test="bKxxzStr != null and bKxxzStr != ''">b_kxxz_str = #{bKxxzStr},</if>
<if test="bYwlxStr != null and bYwlxStr != ''">b_ywlx_str = #{bYwlxStr},</if>
<if test="bCurrencyStr != null and bCurrencyStr != ''">b_currency_str = #{bCurrencyStr},</if>
<if test="bRateStr != null and bRateStr != ''">b_rate_str = #{bRateStr},</if>
<if test="bYbjeStr != null and bYbjeStr != ''">b_ybje_str = #{bYbjeStr},</if>
<if test="bBbjeStr != null and bBbjeStr != ''">b_bbje_str = #{bBbjeStr},</if>
<if test="bZsxmStr != null and bZsxmStr != ''">b_zsxm_str = #{bZsxmStr},</if>
<if test="bZyStr != null and bZyStr != ''">b_zy_str = #{bZyStr},</if>
<if test="bExchangeRate != null and bExchangeRate != ''">b_exchange_rate = #{bExchangeRate},</if>
<if test="bBankNum != null and bBankNum != ''">b_bank_num = #{bBankNum},</if>
<if test="bDef1 != null and bDef1 != ''">b_def1 = #{bDef1},</if>
<if test="bDef2 != null and bDef2 != ''">b_def2 = #{bDef2},</if>
<if test="bDef3 != null and bDef3 != ''">b_def3 = #{bDef3},</if>
<if test="bDef4 != null and bDef4 != ''">b_def4 = #{bDef4},</if>
<if test="bDef5 != null and bDef5 != ''">b_def5 = #{bDef5},</if>
<if test="bDef6 != null and bDef6 != ''">b_def6 = #{bDef6},</if>
<if test="bDef7 != null and bDef7 != ''">b_def7 = #{bDef7},</if>
<if test="bDef8 != null and bDef8 != ''">b_def8 = #{bDef8},</if>
<if test="bDef9 != null and bDef9 != ''">b_def9 = #{bDef9},</if>
<if test="bDef10 != null and bDef10 != ''">b_def10 = #{bDef10},</if>
<if test="create_time != null">create_time = #{create_time},</if>
<if test="createUser != null and createUser != ''">create_user = #{createUser},</if>
<if test="modify_time != null">modify_time = #{modify_time},</if>
<if test="modify_time == null">modify_time = now(),</if>
<if test="modifyUser != null and modifyUser != ''">modify_user = #{modifyUser},</if>
<if test="sts != null and sts != ''">sts = #{sts},</if>
</trim>
where id = #{id}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete"
parameterType="com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity">
update fe_conf_bill_template
set sts= 'N',
modify_time = now()
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition"
parameterType="com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity">
update fe_conf_bill_template set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="name != null and name != ''">and name = #{name}</if>
<if test="hOrgStr != null and hOrgStr != ''">and h_org_str = #{hOrgStr}</if>
<if test="hBillDateStr != null and hBillDateStr != ''">and h_bill_date_str = #{hBillDateStr}</if>
<if test="hWldxStr != null and hWldxStr != ''">and h_wldx_str = #{hWldxStr}</if>
<if test="hUserStr != null and hUserStr != ''">and h_user_str = #{hUserStr}</if>
<if test="hCustomerStr != null and hCustomerStr != ''">and h_customer_str = #{hCustomerStr}</if>
<if test="hSupplierStr != null and hSupplierStr != ''">and h_supplier_str = #{hSupplierStr}</if>
<if test="hDeptStr != null and hDeptStr != ''">and h_dept_str = #{hDeptStr}</if>
<if test="hCurrenvyStr != null and hCurrenvyStr != ''">and h_currenvy_str = #{hCurrenvyStr}</if>
<if test="hRemarkStr != null and hRemarkStr != ''">and h_remark_str = #{hRemarkStr}</if>
<if test="hClearingFormStr != null and hClearingFormStr != ''">and h_clearing_form_str =
#{hClearingFormStr}
</if>
<if test="hDef1 != null and hDef1 != ''">and h_def1 = #{hDef1}</if>
<if test="hDef2 != null and hDef2 != ''">and h_def2 = #{hDef2}</if>
<if test="hDef3 != null and hDef3 != ''">and h_def3 = #{hDef3}</if>
<if test="hDef4 != null and hDef4 != ''">and h_def4 = #{hDef4}</if>
<if test="hDef5 != null and hDef5 != ''">and h_def5 = #{hDef5}</if>
<if test="hDef6 != null and hDef6 != ''">and h_def6 = #{hDef6}</if>
<if test="hDef7 != null and hDef7 != ''">and h_def7 = #{hDef7}</if>
<if test="hDef8 != null and hDef8 != ''">and h_def8 = #{hDef8}</if>
<if test="hDef9 != null and hDef9 != ''">and h_def9 = #{hDef9}</if>
<if test="hDef10 != null and hDef10 != ''">and h_def10 = #{hDef10}</if>
<if test="bKxxzStr != null and bKxxzStr != ''">and b_kxxz_str = #{bKxxzStr}</if>
<if test="bYwlxStr != null and bYwlxStr != ''">and b_ywlx_str = #{bYwlxStr}</if>
<if test="bCurrencyStr != null and bCurrencyStr != ''">and b_currency_str = #{bCurrencyStr}</if>
<if test="bRateStr != null and bRateStr != ''">and b_rate_str = #{bRateStr}</if>
<if test="bYbjeStr != null and bYbjeStr != ''">and b_ybje_str = #{bYbjeStr}</if>
<if test="bBbjeStr != null and bBbjeStr != ''">and b_bbje_str = #{bBbjeStr}</if>
<if test="bZsxmStr != null and bZsxmStr != ''">and b_zsxm_str = #{bZsxmStr}</if>
<if test="bZyStr != null and bZyStr != ''">and b_zy_str = #{bZyStr}</if>
<if test="bExchangeRate != null and bExchangeRate != ''">and b_exchange_rate = #{bExchangeRate}</if>
<if test="bBankNum != null and bBankNum != ''">and b_bank_num = #{bBankNum}</if>
<if test="bDef1 != null and bDef1 != ''">and b_def1 = #{bDef1}</if>
<if test="bDef2 != null and bDef2 != ''">and b_def2 = #{bDef2}</if>
<if test="bDef3 != null and bDef3 != ''">and b_def3 = #{bDef3}</if>
<if test="bDef4 != null and bDef4 != ''">and b_def4 = #{bDef4}</if>
<if test="bDef5 != null and bDef5 != ''">and b_def5 = #{bDef5}</if>
<if test="bDef6 != null and bDef6 != ''">and b_def6 = #{bDef6}</if>
<if test="bDef7 != null and bDef7 != ''">and b_def7 = #{bDef7}</if>
<if test="bDef8 != null and bDef8 != ''">and b_def8 = #{bDef8}</if>
<if test="bDef9 != null and bDef9 != ''">and b_def9 = #{bDef9}</if>
<if test="bDef10 != null and bDef10 != ''">and b_def10 = #{bDef10}</if>
<if test="createUser != null and createUser != ''">and create_user = #{createUser}</if>
<if test="modifyUser != null and modifyUser != ''">and modify_user = #{modifyUser}</if>
<if test="sts != null and sts != ''">and sts = #{sts}</if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete
from fe_conf_bill_template
where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,16 @@
package com.hzya.frame.finance.conf.billtemplate.service;
import com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity;
import com.hzya.frame.basedao.service.IBaseService;
import java.util.List;
/**
* (FeConfBillTemplate)表服务接口
*
* @author zydd
* @since 2025-08-29 17:44:59
*/
public interface IFeConfBillTemplateService extends IBaseService<FeConfBillTemplateEntity, String>{
List<FeConfBillTemplateEntity> queryAll(FeConfBillTemplateEntity billTemplateEntity);
}

View File

@ -0,0 +1,35 @@
package com.hzya.frame.finance.conf.billtemplate.service.impl;
import com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity;
import com.hzya.frame.finance.conf.billtemplate.dao.IFeConfBillTemplateDao;
import com.hzya.frame.finance.conf.billtemplate.service.IFeConfBillTemplateService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
import java.util.List;
/**
* (FeConfBillTemplate)表服务实现类
*
* @author zydd
* @since 2025-08-29 17:44:59
*/
@Service
public class FeConfBillTemplateServiceImpl extends BaseService<FeConfBillTemplateEntity, String> implements IFeConfBillTemplateService {
private IFeConfBillTemplateDao feConfBillTemplateDao;
@Autowired
public void setFeConfBillTemplateDao(IFeConfBillTemplateDao dao) {
this.feConfBillTemplateDao = dao;
this.dao = dao;
}
@Override
public List<FeConfBillTemplateEntity> queryAll(FeConfBillTemplateEntity billTemplateEntity) {
List<FeConfBillTemplateEntity> all = feConfBillTemplateDao.query(billTemplateEntity);
return all;
}
}

View File

@ -0,0 +1,38 @@
package com.hzya.frame.finance.conf.controller;
import com.hzya.frame.finance.conf.billtemplate.entity.FeConfBillTemplateEntity;
import com.hzya.frame.finance.conf.billtemplate.service.IFeConfBillTemplateService;
import com.hzya.frame.web.action.DefaultController;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* Created by zydd on 2025-08-29 17:48
* 收付款单据模板
*/
@RestController
@RequestMapping("/fe/conf/billtemplate")
public class BillTemplate extends DefaultController {
@Autowired
private IFeConfBillTemplateService billTemplateService;
@RequestMapping("/queryAll")
public JsonResultEntity queryAll(@RequestBody FeConfBillTemplateEntity billTemplateEntity){
try {
List<FeConfBillTemplateEntity> all = billTemplateService.queryAll(billTemplateEntity);
return getSuccessMessageEntity("你太棒了!",all);
}catch (Exception e){
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
}

View File

@ -2,6 +2,8 @@ package com.hzya.frame.finance.flow.controller;
import com.hzya.frame.finance.claim.entity.ClaimVO; import com.hzya.frame.finance.claim.entity.ClaimVO;
import com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity; import com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity;
import com.hzya.frame.finance.flow.entity.PuFaBankFlowGtsRequestVO;
import com.hzya.frame.finance.flow.entity.PuFaBankFlowGtsResponseVO;
import com.hzya.frame.finance.flow.service.IMdmKkBankflowGtsService; import com.hzya.frame.finance.flow.service.IMdmKkBankflowGtsService;
import com.hzya.frame.web.action.DefaultController; import com.hzya.frame.web.action.DefaultController;
import com.hzya.frame.web.entity.JsonResultEntity; import com.hzya.frame.web.entity.JsonResultEntity;
@ -44,6 +46,17 @@ public class GTSController extends DefaultController {
// //
// } // }
@RequestMapping("queryGts")
public JsonResultEntity queryGts(@RequestBody PuFaBankFlowGtsRequestVO vo){
try {
PuFaBankFlowGtsResponseVO responseVO = bankflowGtsService.queryGts(vo);
return getSuccessMessageEntity("请求成功",responseVO);
}catch (Exception e){
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
} }

View File

@ -1,8 +1,12 @@
package com.hzya.frame.finance.flow.entity; package com.hzya.frame.finance.flow.entity;
import java.util.Date; import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;
import com.hzya.frame.web.entity.BaseEntity; import com.hzya.frame.web.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor;
/** /**
* 账户明细查询GTS(MdmKkBankflowGts)实体类 * 账户明细查询GTS(MdmKkBankflowGts)实体类
@ -11,6 +15,8 @@ import lombok.Data;
* @since 2025-08-22 09:36:27 * @since 2025-08-22 09:36:27
*/ */
@Data @Data
@AllArgsConstructor
@NoArgsConstructor
public class MdmKkBankflowGtsEntity extends BaseEntity { public class MdmKkBankflowGtsEntity extends BaseEntity {
/** 单据规则 */ /** 单据规则 */
@ -32,48 +38,70 @@ public class MdmKkBankflowGtsEntity extends BaseEntity {
/** mdm_up_id */ /** mdm_up_id */
private String mdmUpId; private String mdmUpId;
/** 交易流水号 */ /** 交易流水号 */
@JSONField(name = "tranSeqNo1")
private String transeqno1; private String transeqno1;
/** 对方户名 */ /** 对方户名 */
@JSONField(name = "cnterAcctName")
private String cnteracctname; private String cnteracctname;
/** 对方账户 */ /** 对方账户 */
@JSONField(name = "cnterAcctNo")
private String cnteracctno; private String cnteracctno;
/** 对方开户行 */ /** 对方开户行 */
@JSONField(name = "opnBnkInfo")
private String opnbnkinfo; private String opnbnkinfo;
/** 交易金额 */ /** 交易金额 */
@JSONField(name = "tranAmt")
private String tranamt; private String tranamt;
/** 转入金额 */ /** 转入金额 */
@JSONField(name = "inAmtLot")
private String inamtlot; private String inamtlot;
/** 转出金额 */ /** 转出金额 */
@JSONField(name = "tfrOutAmt")
private String tfroutamt; private String tfroutamt;
/** 币种 */ /** 币种 */
@JSONField(name = "ccy")
private String ccy; private String ccy;
/** 余额 */ /** 余额 */
@JSONField(name = "balance")
private String balance; private String balance;
/** 转入/转出标志 */ /** 转入/转出标志 */
@JSONField(name = "outFlag")
private String outflag; private String outflag;
/** 企业流水 */ /** 企业流水 */
@JSONField(name = "bussSeqNo")
private String bussseqno; private String bussseqno;
/** 银行流水 */ /** 银行流水 */
@JSONField(name = "bnkPrchSeqNo")
private String bnkprchseqno; private String bnkprchseqno;
/** 交易日期 */ /** 交易日期 */
@JSONField(name = "tranDate")
private String trandate; private String trandate;
/** 交易时间 */ /** 交易时间 */
@JSONField(name = "tranTimep")
private String trantimep; private String trantimep;
/** 用途 */ /** 用途 */
@JSONField(name = "usage")
private String yt; private String yt;
/** 单据号 */ /** 单据号 */
@JSONField(name = "depRecptId")
private String deprecptid; private String deprecptid;
/** 交易类型 */ /** 交易类型 */
@JSONField(name = "tranTpCdSet")
private String trantpcdset; private String trantpcdset;
/** 保留 */ /** 保留 */
@JSONField(name = "kpDmn")
private String kpdmn; private String kpdmn;
/** 摘要 */ /** 摘要 */
@JSONField(name = "abstract")
private String zy; private String zy;
/** 备注 */ /** 备注 */
@JSONField(name = "remark")
private String remark; private String remark;
/** 附言 */ /** 附言 */
@JSONField(name = "postscript")
private String postscript; private String postscript;
/** 流水类型 */ /** 流水类型 */
@JSONField(name = "rsrvFldNm")
private String rsrvfldnm; private String rsrvfldnm;
/** 认领状态 */ /** 认领状态 */
private String claimstatus; private String claimstatus;

View File

@ -0,0 +1,18 @@
package com.hzya.frame.finance.flow.entity;
import lombok.Data;
/**
* Created by zydd on 2025-08-30 11:02
* 浦发银行流水明细请求VO
*/
@Data
public class PuFaBankFlowGtsRequestVO {
private String clientNo;
private String pyAcctNo;
private String startDate;//yyyyMMdd
private String endDate;//yyyyMMdd
private String acptNum;//
private String queryNum;//
}

View File

@ -0,0 +1,20 @@
package com.hzya.frame.finance.flow.entity;
import lombok.Data;
import java.util.List;
/**
* Created by zydd on 2025-08-30 11:13
* 浦发银行流水明细返回VO
*/
@Data
public class PuFaBankFlowGtsResponseVO {
private String statusCode;
private String transNo;
private String returnCode;
private String returnInfo;
private String qryRsltNum;
private String totalNum;
private List<MdmKkBankflowGtsEntity> acctDtlInfo;
}

View File

@ -2,6 +2,9 @@ package com.hzya.frame.finance.flow.service;
import com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity; import com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity;
import com.hzya.frame.basedao.service.IBaseService; import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.finance.flow.entity.PuFaBankFlowGtsRequestVO;
import com.hzya.frame.finance.flow.entity.PuFaBankFlowGtsResponseVO;
/** /**
* 账户明细查询GTS(MdmKkBankflowGts)表服务接口 * 账户明细查询GTS(MdmKkBankflowGts)表服务接口
* *
@ -9,4 +12,5 @@ import com.hzya.frame.basedao.service.IBaseService;
* @since 2025-08-22 09:36:27 * @since 2025-08-22 09:36:27
*/ */
public interface IMdmKkBankflowGtsService extends IBaseService<MdmKkBankflowGtsEntity, String>{ public interface IMdmKkBankflowGtsService extends IBaseService<MdmKkBankflowGtsEntity, String>{
PuFaBankFlowGtsResponseVO queryGts(PuFaBankFlowGtsRequestVO vo);
} }

View File

@ -1,12 +1,32 @@
package com.hzya.frame.finance.flow.service.impl; package com.hzya.frame.finance.flow.service.impl;
import cn.hutool.core.lang.Assert;
import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSON;
import com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity; import com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity;
import com.hzya.frame.finance.flow.dao.IMdmKkBankflowGtsDao; import com.hzya.frame.finance.flow.dao.IMdmKkBankflowGtsDao;
import com.hzya.frame.finance.flow.entity.PuFaBankFlowGtsRequestVO;
import com.hzya.frame.finance.flow.entity.PuFaBankFlowGtsResponseVO;
import com.hzya.frame.finance.flow.service.IMdmKkBankflowGtsService; import com.hzya.frame.finance.flow.service.IMdmKkBankflowGtsService;
import com.hzya.frame.finance.utils.pufabank.SM2Cryptor;
import com.hzya.frame.finance.utils.pufabank.SM2Sign;
import com.hzya.frame.finance.utils.pufabank.SM2SignVerify;
import okhttp3.*;
import org.bouncycastle.pqc.math.linearalgebra.ByteUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.xml.bind.DatatypeConverter;
import com.hzya.frame.basedao.service.impl.BaseService; import com.hzya.frame.basedao.service.impl.BaseService;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
/** /**
* 账户明细查询GTS(MdmKkBankflowGts)表服务实现类 * 账户明细查询GTS(MdmKkBankflowGts)表服务实现类
* *
@ -16,11 +36,160 @@ import com.hzya.frame.basedao.service.impl.BaseService;
@Service @Service
public class MdmKkBankflowGtsServiceImpl extends BaseService<MdmKkBankflowGtsEntity, String> implements IMdmKkBankflowGtsService { public class MdmKkBankflowGtsServiceImpl extends BaseService<MdmKkBankflowGtsEntity, String> implements IMdmKkBankflowGtsService {
@Value("${bank_flow_gts_url}")
private String gtsUrl;
private static final String secret = "NmZkMC00ZDMpLWFyYzgtN2JwN2ZmY2J1NmF4MC40NzQ0ODA5MzA2MzE4OTg2NzAu";
private static final String charset = "UTF-8";
private static final String privatekey = "ae14b3717d6b44b55e500a807248aab425e1d1677df1718410c453f3fe257541";
private static final String contentType = "application/json;charset=utf-8";
private static final String clientId = "f42d86e9-debd-4423-84af-74549a51c7c2";
private IMdmKkBankflowGtsDao mdmKkBankflowGtsDao; private IMdmKkBankflowGtsDao mdmKkBankflowGtsDao;
private static final OkHttpClient client = new OkHttpClient.Builder()
.connectionPool(new ConnectionPool(500, 5, TimeUnit.MINUTES)).connectTimeout(10000, TimeUnit.MILLISECONDS)
.readTimeout(60000, TimeUnit.MILLISECONDS).build();
@Autowired @Autowired
public void setMdmKkBankflowGtsDao(IMdmKkBankflowGtsDao dao) { public void setMdmKkBankflowGtsDao(IMdmKkBankflowGtsDao dao) {
this.mdmKkBankflowGtsDao = dao; this.mdmKkBankflowGtsDao = dao;
this.dao = dao; this.dao = dao;
} }
/**
* 存在分页请注意
*/
@Override
public PuFaBankFlowGtsResponseVO queryGts(PuFaBankFlowGtsRequestVO vo) {
PuFaBankFlowGtsResponseVO responseVO = new PuFaBankFlowGtsResponseVO();
try {
int page = Integer.valueOf(vo.getAcptNum());
int size = Integer.valueOf(vo.getQueryNum());
//请求
System.out.println(JSONUtil.toJsonStr(vo));
PuFaBankFlowGtsResponseVO response = queryData(vo);
return response;
} catch (Exception e) {
e.printStackTrace();
Assert.state(false, "获取流水数据失败,失败原因:{}", e.getMessage());
}
return null;
}
/**
* 请求浦发
*/
public PuFaBankFlowGtsResponseVO queryData(PuFaBankFlowGtsRequestVO vo) throws Exception {
PuFaBankFlowGtsResponseVO res = new PuFaBankFlowGtsResponseVO();
String data = JSONUtil.toJsonStr(vo);
String newBodyData = getNonceParam(false, data);
byte[] dataBytes = newBodyData.getBytes(charset);
SM2Sign sign = SM2SignVerify.sign(ByteUtils.fromHexString(privatekey), dataBytes);
byte[] signBytes = sign.getSm2_sign().getBytes(charset);
String signature = DatatypeConverter.printBase64Binary(signBytes);
Request request = createRequest("GET", gtsUrl, data, signature);
Response response = client.newCall(request).execute();
String resBody = new String(response.body().bytes(), "UTF-8");
String decryptBody = SM2Cryptor.decrypt(secret, resBody);
PuFaBankFlowGtsResponseVO responseVO = JSON.parseObject(decryptBody, PuFaBankFlowGtsResponseVO.class);
res = responseVO;
List<MdmKkBankflowGtsEntity> all = new ArrayList<>();
all.addAll(responseVO.getAcctDtlInfo());
Integer acptNum = Integer.valueOf(vo.getAcptNum());//开始笔数
Integer queryNum = Integer.valueOf(vo.getQueryNum());//每次笔数
Integer totalNum = Integer.valueOf(responseVO.getTotalNum());//总笔数
int allPage = (totalNum / queryNum) + 1;
for (int i = 1; i <allPage; i++) {
int start = i*queryNum+1;
vo.setAcptNum(String.valueOf(start));
String data1 = JSONUtil.toJsonStr(vo);
String newBodyData1 = getNonceParam(false, data1);
byte[] dataBytes1 = newBodyData1.getBytes(charset);
SM2Sign sign1 = SM2SignVerify.sign(ByteUtils.fromHexString(privatekey), dataBytes1);
byte[] signBytes1 = sign1.getSm2_sign().getBytes(charset);
String signature1 = DatatypeConverter.printBase64Binary(signBytes1);
Request request1 = createRequest("GET", gtsUrl, data1, signature1);
Response response1 = client.newCall(request1).execute();
String resBody1 = new String(response1.body().bytes(), "UTF-8");
String decryptBody1 = SM2Cryptor.decrypt(secret, resBody1);
PuFaBankFlowGtsResponseVO responseVO1 = JSON.parseObject(decryptBody1, PuFaBankFlowGtsResponseVO.class);
List<MdmKkBankflowGtsEntity> acctDtlInfo = responseVO1.getAcctDtlInfo();
all.addAll(acctDtlInfo);
}
res.setAcctDtlInfo(all);
return res;
}
public static String getNonceParam( boolean forbidden ,String data){
//防重放参数毫秒级的时间戳与浦发服务器北京时间时间误差不能超过15分钟样例1543461367533
long timestamp = 0L;
//防重放参数X-SPDB-Nonce为交易序号需保证唯一样例TRANS10145581
String nonce = "";
/*
* 防重放参数
* 如需使用防重放参数需要对时间戳防重放参数加签
*/
String newBodyData = data;
if (forbidden) {//如需使用防重放参数
//对应请求报文头参数 X-SPDB-Timestamp
timestamp = System.currentTimeMillis();// X-SPDB-Timestamp
//对应请求报文头参数 X-SPDB-Nonce
nonce = "TRAN10145581";// X-SPDB-Nonce
//注意签名原文需要拼接防重放参数 {"name":"zhangshan"}1591077686410TRAN10145581
newBodyData = data + timestamp + nonce;
System.out.println("签名原文:" + newBodyData);
}
return newBodyData;
}
public static Request createRequest(String requestMethod,String url,String data,String signature){
Request request =null;
String encrypted = SM2Cryptor.encrypt(secret, data);
if("GET".equals(requestMethod) || "get".equals(requestMethod)){
url = url + "?encryptBody=" + encrypted;
request = new Request.Builder().url(url).get()
.addHeader("Content-Type", contentType) //Content-Type
.addHeader("X-SPDB-Client-ID", clientId) //Client-ID
.addHeader("X-SPDB-SIGNATURE", signature) //签名结果
.addHeader("X-SPDB-SM", "true") //使用国密
.addHeader("X-SPDB-Encryption", "true") //使用全报文加密
.build();
}else if("POST".equals(requestMethod) || "post".equals(requestMethod)){
//发送HTTP请求
MediaType mediaType = MediaType.parse(contentType);
// 数据加密-使用国密SM2算法加密 注意加密数据不添加防重放参数
RequestBody body = RequestBody.create(mediaType, encrypted);
request = new Request.Builder().url(url).post(body)
.addHeader("Content-Type", contentType) //Content-Type
.addHeader("X-SPDB-Client-ID", clientId) //Client-ID
.addHeader("X-SPDB-SIGNATURE", signature) //签名结果
.addHeader("X-SPDB-SM", "true") //使用国密
.addHeader("X-SPDB-Encryption", "true") //使用全报文加密
.build();
}
return request;
}
} }

View File

@ -144,7 +144,7 @@ public class SPDBSMEncryptor {
System.out.println("signature:" + signature); System.out.println("signature:" + signature);
//发送HTTP请求 //发送HTTP请求
Request request = createRequest("post", url, data, signature); Request request = createRequest("get", url, data, signature);
Response response = client.newCall(request).execute(); Response response = client.newCall(request).execute();
String resBody = new String(response.body().bytes(), "UTF-8"); String resBody = new String(response.body().bytes(), "UTF-8");

View File

@ -52,3 +52,7 @@ pubKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAur9ViNXdgV9qTxoKuLRhXqhKcQ1A
secret_level: L0 secret_level: L0
## 服务器地址 ## 服务器地址
baseUrl: http://115.238.74.170:8089/ baseUrl: http://115.238.74.170:8089/
###########gts
bank_flow_gts_url: https://etest4.spdb.com.cn/spdb/uat/api/corporateAccounts/banks/transDetails
###########gts