1、新增获取bip-token接口。

2、新增付款收款实体类等。
3、认领清单:收款,付款,已认领,待认领合并一个节点。
This commit is contained in:
zhengyf 2025-08-25 14:09:41 +08:00
parent b8ac7e93e3
commit a43c03e681
58 changed files with 4901 additions and 16 deletions

View File

@ -0,0 +1,41 @@
package com.hzya.frame.finance.bip.controller;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.hzya.frame.finance.bip.service.IBipApiService;
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.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by zydd on 2025-08-22 14:17
*/
@RestController
@RequestMapping("/fe/bip/api")
public class BipApiController extends DefaultController {
@Autowired
private IBipApiService bipApiService;
@RequestMapping(value = "/getToken", method = RequestMethod.POST)
public JsonResultEntity getToken() {
try {
String bipToken = bipApiService.getToekn();
JSONObject jsonObject = JSONUtil.parseObj(bipToken);
boolean success = (boolean) jsonObject.get("success");
if (success) {
return getSuccessMessageEntity(bipToken);
} else {
return getFailureMessageEntity(bipToken);
}
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity("获取token失败失败原因{}。", e.getMessage());
}
}
}

View File

@ -0,0 +1,9 @@
package com.hzya.frame.finance.bip.service;
/**
* Created by zydd on 2025-08-22 14:19
*/
public interface IBipApiService {
String getToekn() throws Exception;
}

View File

@ -0,0 +1,388 @@
package com.hzya.frame.finance.bip.service.impl;
import cn.hutool.core.lang.Assert;
import com.google.gson.Gson;
import com.hzya.frame.finance.bip.service.IBipApiService;
import com.hzya.frame.finance.utils.*;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
/**
* Created by zydd on 2025-08-22 14:19
*/
@Service
public class IBipApiServiceImpl implements IBipApiService {
@Value("${spring.profiles.active}")
public String activeProfile;
// app_secret
private static String client_secret = null;
// 公钥
private static String pubKey = null;
// app_id
private static String client_id = null;
// bip用户名
private static String username = null;
private static String usercode = null;
// bip用户名密码
private static String pwd = null;
// bip账套
private static String busi_center = null;
private static String dsname = null;
// 获取token方式client_credentialspassword
private static String grant_type = null;
// 服务器ipport
private static String baseUrl = null;
// 返回值压缩加密级别
private static String secret_level = null;
// 请求参数
private static String requestBody = null;
// openapi请求路径
private static String apiUrl = null;
// 访问api获取到的access_token
public static String token = null;
// 重复调用检查
public static String repeat_check = null;
// 接口调用业务标识
public static String busi_id = null;
@Override
public String getToekn() throws Exception {
// 初始化数据
init();
//获取token
String token = getToken();
return token;
}
public String pushData(String url, String data, String bipUserCode) throws Exception {
Assert.notNull(url, "请求地址不能为空");
Assert.notNull(data, "请求参数不能为空(需要JSON格式)");
// 初始化相关参数
if (pubKey == null) {
init();
}
if (bipUserCode == null) {
token = getTokenByPWD();
} else {
token = getTokenByClient(bipUserCode);
}
// 发起api接口
return sendApi(token, url, data);
}
private void init() {
Properties properties = new Properties();
String filepath = "application-" + activeProfile + ".properties";
ClassLoader classloader = Thread.currentThread().getContextClassLoader();
InputStream inputStream = classloader.getResourceAsStream(filepath);
try {
InputStreamReader reader = new InputStreamReader(inputStream, "UTF-8");
properties.load(reader);
client_secret = new String(properties.getProperty("client_secret").getBytes("utf-8"), "utf-8");
client_id = properties.getProperty("client_id");
pubKey = properties.getProperty("pubKey");
username = properties.getProperty("username");
usercode = properties.getProperty("usercode");
pwd = properties.getProperty("pwd");
busi_center = properties.getProperty("busi_center");
dsname = properties.getProperty("dsname");
baseUrl = properties.getProperty("baseUrl");
requestBody = new String(properties.getProperty("requestBody").getBytes("utf-8"), "utf-8");
// apiUrl = properties.getProperty("apiUrl");
grant_type = properties.getProperty("grant_type");
secret_level = properties.getProperty("secret_level");
repeat_check = properties.getProperty("repeat_check");
busi_id = properties.getProperty("busi_id");
} catch (IOException e) {
e.printStackTrace();
}
}
private static String getToken() throws Exception {
String token = null;
if ("password".equals(grant_type)) {
// 密码模式
token = getTokenByPWD();
} else if ("client_credentials".equals(grant_type)) {
// // 客户端模式
// token = getTokenByClient();
}
return token;
}
private static String getTokenByClient(String userCode) throws Exception {
Map<String, String> paramMap = new HashMap<String, String>();
// 密码模式认证
paramMap.put("grant_type", "client_credentials");
// 第三方应用id
paramMap.put("client_id", client_id);
// 第三方应用secret 公钥加密
String secret_entryption = Encryption.pubEncrypt(pubKey, client_secret);
// System.out.println("secret_entryption" + secret_entryption);
paramMap.put("client_secret", URLEncoder.encode(secret_entryption, "utf-8"));
// 账套编码
paramMap.put("biz_center", busi_center);
paramMap.put("usercode", userCode);
// 签名
String sign = SHA256Util.getSHA256(client_id + client_secret + pubKey, pubKey);
paramMap.put("signature", sign);
// System.out.println("##gettoken sign::" + sign);
String url = baseUrl + "/biploud/opm/accesstoken";
String mediaType = "application/x-www-form-urlencoded";
String token = doPost(url, paramMap, mediaType, null, "");
return token;
}
private static String getTokenByPWD() throws Exception {
Map<String, String> paramMap = new HashMap<String, String>();
// 密码模式认证
paramMap.put("grant_type", "password");
// 第三方应用id
paramMap.put("client_id", client_id);
// 第三方应用secret 公钥加密
paramMap.put("client_secret", URLEncoder.encode(Encryption.pubEncrypt(pubKey, client_secret), "utf-8"));
// paramMap.put("client_secret", client_secret);
// bip用户名
paramMap.put("username", username);
// 密码 公钥加密
paramMap.put("password", URLEncoder.encode(Encryption.pubEncrypt(pubKey, pwd), "utf-8"));
// paramMap.put("password", pwd);
// 账套编码
paramMap.put("biz_center", busi_center);
// 签名
String sign = SHA256Util.getSHA256(client_id + client_secret + username + pwd + pubKey, pubKey);
// System.out.println("sign_getToken::" + sign);
paramMap.put("signature", sign);
String url = baseUrl + "/biploud/opm/accesstoken";
String mediaType = "application/x-www-form-urlencoded";
String token = doPost(url, paramMap, mediaType, null, "");
return token;
}
private static String doPost(String baseUrl, Map<String, String> paramMap, String mediaType,
Map<String, String> headers, String json) throws Exception {
HttpURLConnection urlConnection = null;
InputStream in = null;
OutputStream out = null;
BufferedReader bufferedReader = null;
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("&");
}
baseUrl = sb.toString().substring(0, sb.toString().length() - 1);
}
URL urlObj = new URL(baseUrl);
urlConnection = (HttpURLConnection) urlObj.openConnection();
urlConnection.setConnectTimeout(50000);
urlConnection.setRequestMethod("POST");
urlConnection.setDoOutput(true);
urlConnection.setDoInput(true);
urlConnection.setUseCaches(false);
urlConnection.addRequestProperty("content-type", mediaType);
if (headers != null) {
for (String key : headers.keySet()) {
urlConnection.addRequestProperty(key, headers.get(key));
}
}
out = urlConnection.getOutputStream();
out.write(json.getBytes("utf-8"));
out.flush();
int resCode = urlConnection.getResponseCode();
// System.out.println("状态码::" + resCode);
// if (resCode == HttpURLConnection.HTTP_OK || resCode == HttpURLConnection.HTTP_CREATED || resCode == HttpURLConnection.HTTP_ACCEPTED) {
in = urlConnection.getInputStream();
// } else {
// in = urlConnection.getErrorStream();
// }
bufferedReader = new BufferedReader(new InputStreamReader(in, "utf-8"));
StringBuffer temp = new StringBuffer();
String line = bufferedReader.readLine();
while (line != null) {
temp.append(line).append("\r\n");
line = bufferedReader.readLine();
}
String ecod = urlConnection.getContentEncoding();
if (ecod == null) {
ecod = Charset.forName("utf-8").name();
}
result = new String(temp.toString().getBytes("utf-8"), ecod);
// System.out.println(result);
} catch (Exception e) {
System.out.println(e);
throw e;
} finally {
if (null != bufferedReader) {
try {
bufferedReader.close();
} catch (IOException e) {
e.printStackTrace();
}
}
if (null != out) {
try {
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}
if (null != in) {
try {
in.close();
} catch (IOException e) {
e.printStackTrace();
}
}
urlConnection.disconnect();
}
return result;
}
private String sendApi(String token, String apiUrl, String putParameter) throws Exception {
// token转对象获取api访问所用token和secret
ResultMessageUtil returnData = new Gson().fromJson(token, ResultMessageUtil.class);
Map<String, Object> data = (Map<String, Object>) returnData.getData();
String access_token = (String) data.get("access_token");
String security_key = (String) data.get("security_key");
String refresh_token = (String) data.get("refresh_token");
long expire_in = new Double((double) data.get("expires_in")).longValue();
long ts = new Double((double) data.get("ts")).longValue();
if (ts + expire_in < System.currentTimeMillis()) {
token = getTokenByPWD();
returnData = new Gson().fromJson(token, ResultMessageUtil.class);
data = (Map<String, Object>) returnData.getData();
access_token = (String) data.get("access_token");
security_key = (String) data.get("security_key");
refresh_token = (String) data.get("refresh_token");
}
// System.out.println("ACCESS_TOKEN:" + access_token);
// 请求路径
String url = apiUrl;
// 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(requestBody.replaceAll("\\s*|\t|\r|\n", "").trim());
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);
}
// headermap.put("ucg_flag", "y");
String mediaType = "application/json;charset=utf-8";
// 表体数据json
// 根据安全级别选择加密或压缩请求表体参数
String json = dealRequestBody(putParameter, security_key, secret_level);
// 返回值
String result = doPost(url, null, mediaType, headermap, json);
String result2 = dealResponseBody(result, security_key, secret_level);
// System.out.println("【RESULT】:" + result);
// System.out.println("result解密:" + result2);
return result2;
}
private static String dealRequestBody(String source, String security_key, String level) throws Exception {
String result = null;
if (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;
}
private static String dealResponseBody(String source, String security_key, String level) throws Exception {
String result = null;
if (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;
}
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";
}
}

View File

@ -18,6 +18,7 @@ import java.util.Map;
/**
* Created by zydd on 2025-08-20 17:07
* 认领功能
*/
@RestController
@RequestMapping("/fe/sk/claim")

View File

@ -0,0 +1,15 @@
package com.hzya.frame.finance.claim.dao;
import com.hzya.frame.finance.claim.entity.FeFkBillBEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 财资事项(finance_event)-付款认领单-b(fe_fk_bill_b: table)表数据库访问层
*
* @author zydd
* @since 2025-08-22 15:50:52
*/
public interface IFeFkBillBDao extends IBaseDao<FeFkBillBEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.finance.claim.dao;
import com.hzya.frame.finance.claim.entity.FeFkBillHEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 财资事项(finance_event)-付款认领单-h(fe_fk_bill_h: table)表数据库访问层
*
* @author zydd
* @since 2025-08-22 15:50:33
*/
public interface IFeFkBillHDao extends IBaseDao<FeFkBillHEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.finance.claim.dao;
import com.hzya.frame.finance.claim.entity.FeSkBillBEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 财资事项(finance_event)-收款认领单-b(fe_sk_bill_b: table)表数据库访问层
*
* @author zydd
* @since 2025-08-22 15:51:20
*/
public interface IFeSkBillBDao extends IBaseDao<FeSkBillBEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.finance.claim.dao;
import com.hzya.frame.finance.claim.entity.FeSkBillHEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 财资事项(finance_event)-收款认领单-h(fe_sk_bill_h: table)表数据库访问层
*
* @author zydd
* @since 2025-08-22 15:51:06
*/
public interface IFeSkBillHDao extends IBaseDao<FeSkBillHEntity, String> {
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.finance.claim.dao.impl;
import com.hzya.frame.finance.claim.entity.FeFkBillBEntity;
import com.hzya.frame.finance.claim.dao.IFeFkBillBDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* 财资事项(finance_event)-付款认领单-b(FeFkBillB)表数据库访问层
*
* @author zydd
* @since 2025-08-22 15:50:52
*/
@Repository
public class FeFkBillBDaoImpl extends MybatisGenericDao<FeFkBillBEntity, String> implements IFeFkBillBDao{
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.finance.claim.dao.impl;
import com.hzya.frame.finance.claim.entity.FeFkBillHEntity;
import com.hzya.frame.finance.claim.dao.IFeFkBillHDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* 财资事项(finance_event)-付款认领单-h(FeFkBillH)表数据库访问层
*
* @author zydd
* @since 2025-08-22 15:50:33
*/
@Repository
public class FeFkBillHDaoImpl extends MybatisGenericDao<FeFkBillHEntity, String> implements IFeFkBillHDao{
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.finance.claim.dao.impl;
import com.hzya.frame.finance.claim.entity.FeSkBillBEntity;
import com.hzya.frame.finance.claim.dao.IFeSkBillBDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* 财资事项(finance_event)-收款认领单-b(FeSkBillB)表数据库访问层
*
* @author zydd
* @since 2025-08-22 15:51:20
*/
@Repository
public class FeSkBillBDaoImpl extends MybatisGenericDao<FeSkBillBEntity, String> implements IFeSkBillBDao{
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.finance.claim.dao.impl;
import com.hzya.frame.finance.claim.entity.FeSkBillHEntity;
import com.hzya.frame.finance.claim.dao.IFeSkBillHDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* 财资事项(finance_event)-收款认领单-h(FeSkBillH)表数据库访问层
*
* @author zydd
* @since 2025-08-22 15:51:06
*/
@Repository
public class FeSkBillHDaoImpl extends MybatisGenericDao<FeSkBillHEntity, String> implements IFeSkBillHDao{
}

View File

@ -0,0 +1,80 @@
package com.hzya.frame.finance.claim.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 财资事项(finance_event)-付款认领单-b(FeFkBillB)实体类
*
* @author zydd
* @since 2025-08-22 15:50:52
*/
@Data
public class FeFkBillBEntity extends BaseEntity {
/**
* 主表id
*/
private Long hId;
/**
* 摘要
*/
private String zy;
/**
* 款项性质
*/
private String nature;
/**
* 款项类别
*/
private String type;
/**
* 币种
*/
private String currencyId;
private String currencyCode;
private String currencyName;
/**
* 金额
*/
private String money;
/**
* 表述说明
*/
private String explain;
/**
* 关联流水表id
*/
private String sourceFlowId;
/**
* 关联银行流水id
*/
private String sourceFlowBankId;
/**
* 备注
*/
private String remark;
private String def1;
private String def2;
private String def3;
private String def4;
private String def5;
private String def6;
private String def7;
private String def8;
private String def9;
private String def10;
/**
* 创建人
*/
private String createUser;
/**
* 修改人
*/
private String modifyUser;
}

View File

@ -0,0 +1,437 @@
<?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.claim.dao.impl.FeFkBillBDaoImpl">
<resultMap id="get-FeFkBillBEntity-result" type="com.hzya.frame.finance.claim.entity.FeFkBillBEntity">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="hId" column="h_id" jdbcType="INTEGER"/>
<result property="abstract" column="abstract" jdbcType="VARCHAR"/>
<result property="nature" column="nature" jdbcType="VARCHAR"/>
<result property="type" column="type" jdbcType="VARCHAR"/>
<result property="currencyId" column="currency_id" jdbcType="VARCHAR"/>
<result property="currencyCode" column="currency_code" jdbcType="VARCHAR"/>
<result property="currencyName" column="currency_name" jdbcType="VARCHAR"/>
<result property="money" column="money" jdbcType="VARCHAR"/>
<result property="explain" column="explain" jdbcType="VARCHAR"/>
<result property="sourceFlowId" column="source_flow_id" jdbcType="VARCHAR"/>
<result property="sourceFlowBankId" column="source_flow_bank_id" jdbcType="VARCHAR"/>
<result property="remark" column="remark" jdbcType="VARCHAR"/>
<result property="def1" column="def1" jdbcType="VARCHAR"/>
<result property="def2" column="def2" jdbcType="VARCHAR"/>
<result property="def3" column="def3" jdbcType="VARCHAR"/>
<result property="def4" column="def4" jdbcType="VARCHAR"/>
<result property="def5" column="def5" jdbcType="VARCHAR"/>
<result property="def6" column="def6" jdbcType="VARCHAR"/>
<result property="def7" column="def7" jdbcType="VARCHAR"/>
<result property="def8" column="def8" jdbcType="VARCHAR"/>
<result property="def9" column="def9" jdbcType="VARCHAR"/>
<result property="def10" column="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="FeFkBillBEntity_Base_Column_List">
id
,h_id
,abstract
,nature
,type
,currency_id
,currency_code
,currency_name
,money
,explain
,source_flow_id
,source_flow_bank_id
,remark
,def1
,def2
,def3
,def4
,def5
,def6
,def7
,def8
,def9
,def10
,create_time
,create_user
,modify_time
,modify_user
,sts
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-FeFkBillBEntity-result"
parameterType="com.hzya.frame.finance.claim.entity.FeFkBillBEntity">
select
<include refid="FeFkBillBEntity_Base_Column_List"/>
from fe_fk_bill_b
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="hId != null">and h_id = #{hId}</if>
<if test="abstract != null and abstract != ''">and abstract = #{abstract}</if>
<if test="nature != null and nature != ''">and nature = #{nature}</if>
<if test="type != null and type != ''">and type = #{type}</if>
<if test="currencyId != null and currencyId != ''">and currency_id = #{currencyId}</if>
<if test="currencyCode != null and currencyCode != ''">and currency_code = #{currencyCode}</if>
<if test="currencyName != null and currencyName != ''">and currency_name = #{currencyName}</if>
<if test="money != null and money != ''">and money = #{money}</if>
<if test="explain != null and explain != ''">and explain = #{explain}</if>
<if test="sourceFlowId != null and sourceFlowId != ''">and source_flow_id = #{sourceFlowId}</if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''">and source_flow_bank_id =
#{sourceFlowBankId}
</if>
<if test="remark != null and remark != ''">and remark = #{remark}</if>
<if test="def1 != null and def1 != ''">and def1 = #{def1}</if>
<if test="def2 != null and def2 != ''">and def2 = #{def2}</if>
<if test="def3 != null and def3 != ''">and def3 = #{def3}</if>
<if test="def4 != null and def4 != ''">and def4 = #{def4}</if>
<if test="def5 != null and def5 != ''">and def5 = #{def5}</if>
<if test="def6 != null and def6 != ''">and def6 = #{def6}</if>
<if test="def7 != null and def7 != ''">and def7 = #{def7}</if>
<if test="def8 != null and def8 != ''">and def8 = #{def8}</if>
<if test="def9 != null and def9 != ''">and def9 = #{def9}</if>
<if test="def10 != null and def10 != ''">and def10 = #{def10}</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.claim.entity.FeFkBillBEntity">
select count(1) from fe_fk_bill_b
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="hId != null">and h_id = #{hId}</if>
<if test="abstract != null and abstract != ''">and abstract = #{abstract}</if>
<if test="nature != null and nature != ''">and nature = #{nature}</if>
<if test="type != null and type != ''">and type = #{type}</if>
<if test="currencyId != null and currencyId != ''">and currency_id = #{currencyId}</if>
<if test="currencyCode != null and currencyCode != ''">and currency_code = #{currencyCode}</if>
<if test="currencyName != null and currencyName != ''">and currency_name = #{currencyName}</if>
<if test="money != null and money != ''">and money = #{money}</if>
<if test="explain != null and explain != ''">and explain = #{explain}</if>
<if test="sourceFlowId != null and sourceFlowId != ''">and source_flow_id = #{sourceFlowId}</if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''">and source_flow_bank_id =
#{sourceFlowBankId}
</if>
<if test="remark != null and remark != ''">and remark = #{remark}</if>
<if test="def1 != null and def1 != ''">and def1 = #{def1}</if>
<if test="def2 != null and def2 != ''">and def2 = #{def2}</if>
<if test="def3 != null and def3 != ''">and def3 = #{def3}</if>
<if test="def4 != null and def4 != ''">and def4 = #{def4}</if>
<if test="def5 != null and def5 != ''">and def5 = #{def5}</if>
<if test="def6 != null and def6 != ''">and def6 = #{def6}</if>
<if test="def7 != null and def7 != ''">and def7 = #{def7}</if>
<if test="def8 != null and def8 != ''">and def8 = #{def8}</if>
<if test="def9 != null and def9 != ''">and def9 = #{def9}</if>
<if test="def10 != null and def10 != ''">and def10 = #{def10}</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-FeFkBillBEntity-result"
parameterType="com.hzya.frame.finance.claim.entity.FeFkBillBEntity">
select
<include refid="FeFkBillBEntity_Base_Column_List"/>
from fe_fk_bill_b
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id like concat('%',#{id},'%')</if>
<if test="hId != null">and h_id like concat('%',#{hId},'%')</if>
<if test="abstract != null and abstract != ''">and abstract like concat('%',#{abstract},'%')</if>
<if test="nature != null and nature != ''">and nature like concat('%',#{nature},'%')</if>
<if test="type != null and type != ''">and type like concat('%',#{type},'%')</if>
<if test="currencyId != null and currencyId != ''">and currency_id like concat('%',#{currencyId},'%')</if>
<if test="currencyCode != null and currencyCode != ''">and currency_code like
concat('%',#{currencyCode},'%')
</if>
<if test="currencyName != null and currencyName != ''">and currency_name like
concat('%',#{currencyName},'%')
</if>
<if test="money != null and money != ''">and money like concat('%',#{money},'%')</if>
<if test="explain != null and explain != ''">and explain like concat('%',#{explain},'%')</if>
<if test="sourceFlowId != null and sourceFlowId != ''">and source_flow_id like
concat('%',#{sourceFlowId},'%')
</if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''">and source_flow_bank_id like
concat('%',#{sourceFlowBankId},'%')
</if>
<if test="remark != null and remark != ''">and remark like concat('%',#{remark},'%')</if>
<if test="def1 != null and def1 != ''">and def1 like concat('%',#{def1},'%')</if>
<if test="def2 != null and def2 != ''">and def2 like concat('%',#{def2},'%')</if>
<if test="def3 != null and def3 != ''">and def3 like concat('%',#{def3},'%')</if>
<if test="def4 != null and def4 != ''">and def4 like concat('%',#{def4},'%')</if>
<if test="def5 != null and def5 != ''">and def5 like concat('%',#{def5},'%')</if>
<if test="def6 != null and def6 != ''">and def6 like concat('%',#{def6},'%')</if>
<if test="def7 != null and def7 != ''">and def7 like concat('%',#{def7},'%')</if>
<if test="def8 != null and def8 != ''">and def8 like concat('%',#{def8},'%')</if>
<if test="def9 != null and def9 != ''">and def9 like concat('%',#{def9},'%')</if>
<if test="def10 != null and def10 != ''">and def10 like concat('%',#{def10},'%')</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="FeFkBillBentity_list_or" resultMap="get-FeFkBillBEntity-result"
parameterType="com.hzya.frame.finance.claim.entity.FeFkBillBEntity">
select
<include refid="FeFkBillBEntity_Base_Column_List"/>
from fe_fk_bill_b
<trim prefix="where" prefixOverrides="and">
<if test="id != null">or id = #{id}</if>
<if test="hId != null">or h_id = #{hId}</if>
<if test="abstract != null and abstract != ''">or abstract = #{abstract}</if>
<if test="nature != null and nature != ''">or nature = #{nature}</if>
<if test="type != null and type != ''">or type = #{type}</if>
<if test="currencyId != null and currencyId != ''">or currency_id = #{currencyId}</if>
<if test="currencyCode != null and currencyCode != ''">or currency_code = #{currencyCode}</if>
<if test="currencyName != null and currencyName != ''">or currency_name = #{currencyName}</if>
<if test="money != null and money != ''">or money = #{money}</if>
<if test="explain != null and explain != ''">or explain = #{explain}</if>
<if test="sourceFlowId != null and sourceFlowId != ''">or source_flow_id = #{sourceFlowId}</if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''">or source_flow_bank_id =
#{sourceFlowBankId}
</if>
<if test="remark != null and remark != ''">or remark = #{remark}</if>
<if test="def1 != null and def1 != ''">or def1 = #{def1}</if>
<if test="def2 != null and def2 != ''">or def2 = #{def2}</if>
<if test="def3 != null and def3 != ''">or def3 = #{def3}</if>
<if test="def4 != null and def4 != ''">or def4 = #{def4}</if>
<if test="def5 != null and def5 != ''">or def5 = #{def5}</if>
<if test="def6 != null and def6 != ''">or def6 = #{def6}</if>
<if test="def7 != null and def7 != ''">or def7 = #{def7}</if>
<if test="def8 != null and def8 != ''">or def8 = #{def8}</if>
<if test="def9 != null and def9 != ''">or def9 = #{def9}</if>
<if test="def10 != null and def10 != ''">or def10 = #{def10}</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.claim.entity.FeFkBillBEntity" keyProperty="id"
useGeneratedKeys="true">
insert into fe_fk_bill_b(
<trim suffix="" suffixOverrides=",">
<if test="id != null">id ,</if>
<if test="hId != null">h_id ,</if>
<if test="abstract != null and abstract != ''">abstract ,</if>
<if test="nature != null and nature != ''">nature ,</if>
<if test="type != null and type != ''">type ,</if>
<if test="currencyId != null and currencyId != ''">currency_id ,</if>
<if test="currencyCode != null and currencyCode != ''">currency_code ,</if>
<if test="currencyName != null and currencyName != ''">currency_name ,</if>
<if test="money != null and money != ''">money ,</if>
<if test="explain != null and explain != ''">explain ,</if>
<if test="sourceFlowId != null and sourceFlowId != ''">source_flow_id ,</if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''">source_flow_bank_id ,</if>
<if test="remark != null and remark != ''">remark ,</if>
<if test="def1 != null and def1 != ''">def1 ,</if>
<if test="def2 != null and def2 != ''">def2 ,</if>
<if test="def3 != null and def3 != ''">def3 ,</if>
<if test="def4 != null and def4 != ''">def4 ,</if>
<if test="def5 != null and def5 != ''">def5 ,</if>
<if test="def6 != null and def6 != ''">def6 ,</if>
<if test="def7 != null and def7 != ''">def7 ,</if>
<if test="def8 != null and def8 != ''">def8 ,</if>
<if test="def9 != null and def9 != ''">def9 ,</if>
<if test="def10 != null and def10 != ''">def10 ,</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="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="hId != null">#{hId} ,</if>
<if test="abstract != null and abstract != ''">#{abstract} ,</if>
<if test="nature != null and nature != ''">#{nature} ,</if>
<if test="type != null and type != ''">#{type} ,</if>
<if test="currencyId != null and currencyId != ''">#{currencyId} ,</if>
<if test="currencyCode != null and currencyCode != ''">#{currencyCode} ,</if>
<if test="currencyName != null and currencyName != ''">#{currencyName} ,</if>
<if test="money != null and money != ''">#{money} ,</if>
<if test="explain != null and explain != ''">#{explain} ,</if>
<if test="sourceFlowId != null and sourceFlowId != ''">#{sourceFlowId} ,</if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''">#{sourceFlowBankId} ,</if>
<if test="remark != null and remark != ''">#{remark} ,</if>
<if test="def1 != null and def1 != ''">#{def1} ,</if>
<if test="def2 != null and def2 != ''">#{def2} ,</if>
<if test="def3 != null and def3 != ''">#{def3} ,</if>
<if test="def4 != null and def4 != ''">#{def4} ,</if>
<if test="def5 != null and def5 != ''">#{def5} ,</if>
<if test="def6 != null and def6 != ''">#{def6} ,</if>
<if test="def7 != null and def7 != ''">#{def7} ,</if>
<if test="def8 != null and def8 != ''">#{def8} ,</if>
<if test="def9 != null and def9 != ''">#{def9} ,</if>
<if test="def10 != null and def10 != ''">#{def10} ,</if>
<if test="create_time != null">#{create_time} ,</if>
<if test="createUser != null and createUser != ''">#{createUser} ,</if>
<if test="modify_time != null">#{modify_time} ,</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_fk_bill_b(h_id, abstract, nature, type, currency_id, currency_code, currency_name, money,
explain, source_flow_id, source_flow_bank_id, remark, def1, def2, def3, def4, def5, def6, def7, def8, def9,
def10, create_time, create_user, modify_time, modify_user, sts, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.hId},#{entity.abstract},#{entity.nature},#{entity.type},#{entity.currencyId},#{entity.currencyCode},#{entity.currencyName},#{entity.money},#{entity.explain},#{entity.sourceFlowId},#{entity.sourceFlowBankId},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{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_fk_bill_b(h_id, abstract, nature, type, currency_id, currency_code, currency_name, money,
explain, source_flow_id, source_flow_bank_id, remark, def1, def2, def3, def4, def5, def6, def7, def8, def9,
def10, create_time, create_user, modify_time, modify_user, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.hId},#{entity.abstract},#{entity.nature},#{entity.type},#{entity.currencyId},#{entity.currencyCode},#{entity.currencyName},#{entity.money},#{entity.explain},#{entity.sourceFlowId},#{entity.sourceFlowBankId},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.create_time},#{entity.createUser},#{entity.modify_time},#{entity.modifyUser},#{entity.sts})
</foreach>
on duplicate key update
h_id = values(h_id),
abstract = values(abstract),
nature = values(nature),
type = values(type),
currency_id = values(currency_id),
currency_code = values(currency_code),
currency_name = values(currency_name),
money = values(money),
explain = values(explain),
source_flow_id = values(source_flow_id),
source_flow_bank_id = values(source_flow_bank_id),
remark = values(remark),
def1 = values(def1),
def2 = values(def2),
def3 = values(def3),
def4 = values(def4),
def5 = values(def5),
def6 = values(def6),
def7 = values(def7),
def8 = values(def8),
def9 = values(def9),
def10 = values(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.claim.entity.FeFkBillBEntity">
update fe_fk_bill_b set
<trim suffix="" suffixOverrides=",">
<if test="hId != null">h_id = #{hId},</if>
<if test="abstract != null and abstract != ''">abstract = #{abstract},</if>
<if test="nature != null and nature != ''">nature = #{nature},</if>
<if test="type != null and type != ''">type = #{type},</if>
<if test="currencyId != null and currencyId != ''">currency_id = #{currencyId},</if>
<if test="currencyCode != null and currencyCode != ''">currency_code = #{currencyCode},</if>
<if test="currencyName != null and currencyName != ''">currency_name = #{currencyName},</if>
<if test="money != null and money != ''">money = #{money},</if>
<if test="explain != null and explain != ''">explain = #{explain},</if>
<if test="sourceFlowId != null and sourceFlowId != ''">source_flow_id = #{sourceFlowId},</if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''">source_flow_bank_id = #{sourceFlowBankId},
</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="def1 != null and def1 != ''">def1 = #{def1},</if>
<if test="def2 != null and def2 != ''">def2 = #{def2},</if>
<if test="def3 != null and def3 != ''">def3 = #{def3},</if>
<if test="def4 != null and def4 != ''">def4 = #{def4},</if>
<if test="def5 != null and def5 != ''">def5 = #{def5},</if>
<if test="def6 != null and def6 != ''">def6 = #{def6},</if>
<if test="def7 != null and def7 != ''">def7 = #{def7},</if>
<if test="def8 != null and def8 != ''">def8 = #{def8},</if>
<if test="def9 != null and def9 != ''">def9 = #{def9},</if>
<if test="def10 != null and def10 != ''">def10 = #{def10},</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="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.claim.entity.FeFkBillBEntity">
update fe_fk_bill_b
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.finance.claim.entity.FeFkBillBEntity">
update fe_fk_bill_b 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="hId != null">and h_id = #{hId}</if>
<if test="abstract != null and abstract != ''">and abstract = #{abstract}</if>
<if test="nature != null and nature != ''">and nature = #{nature}</if>
<if test="type != null and type != ''">and type = #{type}</if>
<if test="currencyId != null and currencyId != ''">and currency_id = #{currencyId}</if>
<if test="currencyCode != null and currencyCode != ''">and currency_code = #{currencyCode}</if>
<if test="currencyName != null and currencyName != ''">and currency_name = #{currencyName}</if>
<if test="money != null and money != ''">and money = #{money}</if>
<if test="explain != null and explain != ''">and explain = #{explain}</if>
<if test="sourceFlowId != null and sourceFlowId != ''">and source_flow_id = #{sourceFlowId}</if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''">and source_flow_bank_id =
#{sourceFlowBankId}
</if>
<if test="remark != null and remark != ''">and remark = #{remark}</if>
<if test="def1 != null and def1 != ''">and def1 = #{def1}</if>
<if test="def2 != null and def2 != ''">and def2 = #{def2}</if>
<if test="def3 != null and def3 != ''">and def3 = #{def3}</if>
<if test="def4 != null and def4 != ''">and def4 = #{def4}</if>
<if test="def5 != null and def5 != ''">and def5 = #{def5}</if>
<if test="def6 != null and def6 != ''">and def6 = #{def6}</if>
<if test="def7 != null and def7 != ''">and def7 = #{def7}</if>
<if test="def8 != null and def8 != ''">and def8 = #{def8}</if>
<if test="def9 != null and def9 != ''">and def9 = #{def9}</if>
<if test="def10 != null and def10 != ''">and def10 = #{def10}</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_fk_bill_b
where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,308 @@
package com.hzya.frame.finance.claim.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
/**
* 财资事项(finance_event)-付款认领单-h(FeFkBillH)实体类
*
* @author zydd
* @since 2025-08-22 15:50:33
*/
public class FeFkBillHEntity extends BaseEntity {
/** 认领单号 */
private String billCode;
/** 认领日期 */
private String billData;
/** 客户id */
private String customerId;
private String customerCode;
private String customerName;
/** 是否自动认领 */
private String isAutoClaim;
/** 认领人id */
private String claimUserId;
/** 银行id */
private String bankId;
private String bankCode;
private String bankName;
/** 收款银行账号 */
private String bankNum;
/** 财务组织id */
private String financeOrgId;
private String financeOrgCode;
private String financeOrgName;
/** 往来对象id */
private String wldxId;
private String wldxCode;
private String wldxName;
/** 认领金额 */
private String claimSum;
/** 备注 */
private String remark;
private String def1;
private String def2;
private String def3;
private String def4;
private String def5;
private String def6;
private String def7;
private String def8;
private String def9;
private String def10;
/** 创建人 */
private String createUser;
/** 修改人 */
private String modifyUser;
public String getBillCode() {
return billCode;
}
public void setBillCode(String billCode) {
this.billCode = billCode;
}
public String getBillData() {
return billData;
}
public void setBillData(String billData) {
this.billData = billData;
}
public String getCustomerId() {
return customerId;
}
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
public String getCustomerCode() {
return customerCode;
}
public void setCustomerCode(String customerCode) {
this.customerCode = customerCode;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
public String getIsAutoClaim() {
return isAutoClaim;
}
public void setIsAutoClaim(String isAutoClaim) {
this.isAutoClaim = isAutoClaim;
}
public String getClaimUserId() {
return claimUserId;
}
public void setClaimUserId(String claimUserId) {
this.claimUserId = claimUserId;
}
public String getBankId() {
return bankId;
}
public void setBankId(String bankId) {
this.bankId = bankId;
}
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 getBankNum() {
return bankNum;
}
public void setBankNum(String bankNum) {
this.bankNum = bankNum;
}
public String getFinanceOrgId() {
return financeOrgId;
}
public void setFinanceOrgId(String financeOrgId) {
this.financeOrgId = financeOrgId;
}
public String getFinanceOrgCode() {
return financeOrgCode;
}
public void setFinanceOrgCode(String financeOrgCode) {
this.financeOrgCode = financeOrgCode;
}
public String getFinanceOrgName() {
return financeOrgName;
}
public void setFinanceOrgName(String financeOrgName) {
this.financeOrgName = financeOrgName;
}
public String getWldxId() {
return wldxId;
}
public void setWldxId(String wldxId) {
this.wldxId = wldxId;
}
public String getWldxCode() {
return wldxCode;
}
public void setWldxCode(String wldxCode) {
this.wldxCode = wldxCode;
}
public String getWldxName() {
return wldxName;
}
public void setWldxName(String wldxName) {
this.wldxName = wldxName;
}
public String getClaimSum() {
return claimSum;
}
public void setClaimSum(String claimSum) {
this.claimSum = claimSum;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
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;
}
public String getDef4() {
return def4;
}
public void setDef4(String def4) {
this.def4 = def4;
}
public String getDef5() {
return def5;
}
public void setDef5(String def5) {
this.def5 = def5;
}
public String getDef6() {
return def6;
}
public void setDef6(String def6) {
this.def6 = def6;
}
public String getDef7() {
return def7;
}
public void setDef7(String def7) {
this.def7 = def7;
}
public String getDef8() {
return def8;
}
public void setDef8(String def8) {
this.def8 = def8;
}
public String getDef9() {
return def9;
}
public void setDef9(String def9) {
this.def9 = def9;
}
public String getDef10() {
return def10;
}
public void setDef10(String def10) {
this.def10 = def10;
}
public String getCreateUser() {
return createUser;
}
public void setCreateUser(String createUser) {
this.createUser = createUser;
}
public String getModifyUser() {
return modifyUser;
}
public void setModifyUser(String modifyUser) {
this.modifyUser = modifyUser;
}
}

View File

@ -0,0 +1,492 @@
<?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.claim.dao.impl.FeFkBillHDaoImpl">
<resultMap id="get-FeFkBillHEntity-result" type="com.hzya.frame.finance.claim.entity.FeFkBillHEntity" >
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="billCode" column="bill_code" jdbcType="VARCHAR"/>
<result property="billData" column="bill_data" jdbcType="VARCHAR"/>
<result property="customerId" column="customer_id" jdbcType="VARCHAR"/>
<result property="customerCode" column="customer_code" jdbcType="VARCHAR"/>
<result property="customerName" column="customer_name" jdbcType="VARCHAR"/>
<result property="isAutoClaim" column="is_auto_claim" jdbcType="VARCHAR"/>
<result property="claimUserId" column="claim_user_id" jdbcType="VARCHAR"/>
<result property="bankId" column="bank_id" jdbcType="VARCHAR"/>
<result property="bankCode" column="bank_code" jdbcType="VARCHAR"/>
<result property="bankName" column="bank_name" jdbcType="VARCHAR"/>
<result property="bankNum" column="bank_num" jdbcType="VARCHAR"/>
<result property="financeOrgId" column="finance_org_id" jdbcType="VARCHAR"/>
<result property="financeOrgCode" column="finance_org_code" jdbcType="VARCHAR"/>
<result property="financeOrgName" column="finance_org_name" jdbcType="VARCHAR"/>
<result property="wldxId" column="wldx_id" jdbcType="VARCHAR"/>
<result property="wldxCode" column="wldx_code" jdbcType="VARCHAR"/>
<result property="wldxName" column="wldx_name" jdbcType="VARCHAR"/>
<result property="claimSum" column="claim_sum" jdbcType="VARCHAR"/>
<result property="remark" column="remark" jdbcType="VARCHAR"/>
<result property="def1" column="def1" jdbcType="VARCHAR"/>
<result property="def2" column="def2" jdbcType="VARCHAR"/>
<result property="def3" column="def3" jdbcType="VARCHAR"/>
<result property="def4" column="def4" jdbcType="VARCHAR"/>
<result property="def5" column="def5" jdbcType="VARCHAR"/>
<result property="def6" column="def6" jdbcType="VARCHAR"/>
<result property="def7" column="def7" jdbcType="VARCHAR"/>
<result property="def8" column="def8" jdbcType="VARCHAR"/>
<result property="def9" column="def9" jdbcType="VARCHAR"/>
<result property="def10" column="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 = "FeFkBillHEntity_Base_Column_List">
id
,bill_code
,bill_data
,customer_id
,customer_code
,customer_name
,is_auto_claim
,claim_user_id
,bank_id
,bank_code
,bank_name
,bank_num
,finance_org_id
,finance_org_code
,finance_org_name
,wldx_id
,wldx_code
,wldx_name
,claim_sum
,remark
,def1
,def2
,def3
,def4
,def5
,def6
,def7
,def8
,def9
,def10
,create_time
,create_user
,modify_time
,modify_user
,sts
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-FeFkBillHEntity-result" parameterType = "com.hzya.frame.finance.claim.entity.FeFkBillHEntity">
select
<include refid="FeFkBillHEntity_Base_Column_List" />
from fe_fk_bill_h
<trim prefix="where" prefixOverrides="and">
<if test="id != null"> and id = #{id} </if>
<if test="billCode != null and billCode != ''"> and bill_code = #{billCode} </if>
<if test="billData != null and billData != ''"> and bill_data = #{billData} </if>
<if test="customerId != null and customerId != ''"> and customer_id = #{customerId} </if>
<if test="customerCode != null and customerCode != ''"> and customer_code = #{customerCode} </if>
<if test="customerName != null and customerName != ''"> and customer_name = #{customerName} </if>
<if test="isAutoClaim != null and isAutoClaim != ''"> and is_auto_claim = #{isAutoClaim} </if>
<if test="claimUserId != null and claimUserId != ''"> and claim_user_id = #{claimUserId} </if>
<if test="bankId != null and bankId != ''"> and bank_id = #{bankId} </if>
<if test="bankCode != null and bankCode != ''"> and bank_code = #{bankCode} </if>
<if test="bankName != null and bankName != ''"> and bank_name = #{bankName} </if>
<if test="bankNum != null and bankNum != ''"> and bank_num = #{bankNum} </if>
<if test="financeOrgId != null and financeOrgId != ''"> and finance_org_id = #{financeOrgId} </if>
<if test="financeOrgCode != null and financeOrgCode != ''"> and finance_org_code = #{financeOrgCode} </if>
<if test="financeOrgName != null and financeOrgName != ''"> and finance_org_name = #{financeOrgName} </if>
<if test="wldxId != null and wldxId != ''"> and wldx_id = #{wldxId} </if>
<if test="wldxCode != null and wldxCode != ''"> and wldx_code = #{wldxCode} </if>
<if test="wldxName != null and wldxName != ''"> and wldx_name = #{wldxName} </if>
<if test="claimSum != null and claimSum != ''"> and claim_sum = #{claimSum} </if>
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </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>
<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.finance.claim.entity.FeFkBillHEntity">
select count(1) from fe_fk_bill_h
<trim prefix="where" prefixOverrides="and">
<if test="id != null"> and id = #{id} </if>
<if test="billCode != null and billCode != ''"> and bill_code = #{billCode} </if>
<if test="billData != null and billData != ''"> and bill_data = #{billData} </if>
<if test="customerId != null and customerId != ''"> and customer_id = #{customerId} </if>
<if test="customerCode != null and customerCode != ''"> and customer_code = #{customerCode} </if>
<if test="customerName != null and customerName != ''"> and customer_name = #{customerName} </if>
<if test="isAutoClaim != null and isAutoClaim != ''"> and is_auto_claim = #{isAutoClaim} </if>
<if test="claimUserId != null and claimUserId != ''"> and claim_user_id = #{claimUserId} </if>
<if test="bankId != null and bankId != ''"> and bank_id = #{bankId} </if>
<if test="bankCode != null and bankCode != ''"> and bank_code = #{bankCode} </if>
<if test="bankName != null and bankName != ''"> and bank_name = #{bankName} </if>
<if test="bankNum != null and bankNum != ''"> and bank_num = #{bankNum} </if>
<if test="financeOrgId != null and financeOrgId != ''"> and finance_org_id = #{financeOrgId} </if>
<if test="financeOrgCode != null and financeOrgCode != ''"> and finance_org_code = #{financeOrgCode} </if>
<if test="financeOrgName != null and financeOrgName != ''"> and finance_org_name = #{financeOrgName} </if>
<if test="wldxId != null and wldxId != ''"> and wldx_id = #{wldxId} </if>
<if test="wldxCode != null and wldxCode != ''"> and wldx_code = #{wldxCode} </if>
<if test="wldxName != null and wldxName != ''"> and wldx_name = #{wldxName} </if>
<if test="claimSum != null and claimSum != ''"> and claim_sum = #{claimSum} </if>
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </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>
<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-FeFkBillHEntity-result" parameterType = "com.hzya.frame.finance.claim.entity.FeFkBillHEntity">
select
<include refid="FeFkBillHEntity_Base_Column_List" />
from fe_fk_bill_h
<trim prefix="where" prefixOverrides="and">
<if test="id != null"> and id like concat('%',#{id},'%') </if>
<if test="billCode != null and billCode != ''"> and bill_code like concat('%',#{billCode},'%') </if>
<if test="billData != null and billData != ''"> and bill_data like concat('%',#{billData},'%') </if>
<if test="customerId != null and customerId != ''"> and customer_id like concat('%',#{customerId},'%') </if>
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%',#{customerCode},'%') </if>
<if test="customerName != null and customerName != ''"> and customer_name like concat('%',#{customerName},'%') </if>
<if test="isAutoClaim != null and isAutoClaim != ''"> and is_auto_claim like concat('%',#{isAutoClaim},'%') </if>
<if test="claimUserId != null and claimUserId != ''"> and claim_user_id like concat('%',#{claimUserId},'%') </if>
<if test="bankId != null and bankId != ''"> and bank_id like concat('%',#{bankId},'%') </if>
<if test="bankCode != null and bankCode != ''"> and bank_code like concat('%',#{bankCode},'%') </if>
<if test="bankName != null and bankName != ''"> and bank_name like concat('%',#{bankName},'%') </if>
<if test="bankNum != null and bankNum != ''"> and bank_num like concat('%',#{bankNum},'%') </if>
<if test="financeOrgId != null and financeOrgId != ''"> and finance_org_id like concat('%',#{financeOrgId},'%') </if>
<if test="financeOrgCode != null and financeOrgCode != ''"> and finance_org_code like concat('%',#{financeOrgCode},'%') </if>
<if test="financeOrgName != null and financeOrgName != ''"> and finance_org_name like concat('%',#{financeOrgName},'%') </if>
<if test="wldxId != null and wldxId != ''"> and wldx_id like concat('%',#{wldxId},'%') </if>
<if test="wldxCode != null and wldxCode != ''"> and wldx_code like concat('%',#{wldxCode},'%') </if>
<if test="wldxName != null and wldxName != ''"> and wldx_name like concat('%',#{wldxName},'%') </if>
<if test="claimSum != null and claimSum != ''"> and claim_sum like concat('%',#{claimSum},'%') </if>
<if test="remark != null and remark != ''"> and remark like concat('%',#{remark},'%') </if>
<if test="def1 != null and def1 != ''"> and def1 like concat('%',#{def1},'%') </if>
<if test="def2 != null and def2 != ''"> and def2 like concat('%',#{def2},'%') </if>
<if test="def3 != null and def3 != ''"> and def3 like concat('%',#{def3},'%') </if>
<if test="def4 != null and def4 != ''"> and def4 like concat('%',#{def4},'%') </if>
<if test="def5 != null and def5 != ''"> and def5 like concat('%',#{def5},'%') </if>
<if test="def6 != null and def6 != ''"> and def6 like concat('%',#{def6},'%') </if>
<if test="def7 != null and def7 != ''"> and def7 like concat('%',#{def7},'%') </if>
<if test="def8 != null and def8 != ''"> and def8 like concat('%',#{def8},'%') </if>
<if test="def9 != null and def9 != ''"> and def9 like concat('%',#{def9},'%') </if>
<if test="def10 != null and def10 != ''"> and def10 like concat('%',#{def10},'%') </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>
<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="FeFkBillHentity_list_or" resultMap="get-FeFkBillHEntity-result" parameterType = "com.hzya.frame.finance.claim.entity.FeFkBillHEntity">
select
<include refid="FeFkBillHEntity_Base_Column_List" />
from fe_fk_bill_h
<trim prefix="where" prefixOverrides="and">
<if test="id != null"> or id = #{id} </if>
<if test="billCode != null and billCode != ''"> or bill_code = #{billCode} </if>
<if test="billData != null and billData != ''"> or bill_data = #{billData} </if>
<if test="customerId != null and customerId != ''"> or customer_id = #{customerId} </if>
<if test="customerCode != null and customerCode != ''"> or customer_code = #{customerCode} </if>
<if test="customerName != null and customerName != ''"> or customer_name = #{customerName} </if>
<if test="isAutoClaim != null and isAutoClaim != ''"> or is_auto_claim = #{isAutoClaim} </if>
<if test="claimUserId != null and claimUserId != ''"> or claim_user_id = #{claimUserId} </if>
<if test="bankId != null and bankId != ''"> or bank_id = #{bankId} </if>
<if test="bankCode != null and bankCode != ''"> or bank_code = #{bankCode} </if>
<if test="bankName != null and bankName != ''"> or bank_name = #{bankName} </if>
<if test="bankNum != null and bankNum != ''"> or bank_num = #{bankNum} </if>
<if test="financeOrgId != null and financeOrgId != ''"> or finance_org_id = #{financeOrgId} </if>
<if test="financeOrgCode != null and financeOrgCode != ''"> or finance_org_code = #{financeOrgCode} </if>
<if test="financeOrgName != null and financeOrgName != ''"> or finance_org_name = #{financeOrgName} </if>
<if test="wldxId != null and wldxId != ''"> or wldx_id = #{wldxId} </if>
<if test="wldxCode != null and wldxCode != ''"> or wldx_code = #{wldxCode} </if>
<if test="wldxName != null and wldxName != ''"> or wldx_name = #{wldxName} </if>
<if test="claimSum != null and claimSum != ''"> or claim_sum = #{claimSum} </if>
<if test="remark != null and remark != ''"> or remark = #{remark} </if>
<if test="def1 != null and def1 != ''"> or def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> or def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> or def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> or def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> or def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> or def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> or def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> or def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> or def9 = #{def9} </if>
<if test="def10 != null and def10 != ''"> or def10 = #{def10} </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>
<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.finance.claim.entity.FeFkBillHEntity" keyProperty="id" useGeneratedKeys="true">
insert into fe_fk_bill_h(
<trim suffix="" suffixOverrides=",">
<if test="id != null"> id , </if>
<if test="billCode != null and billCode != ''"> bill_code , </if>
<if test="billData != null and billData != ''"> bill_data , </if>
<if test="customerId != null and customerId != ''"> customer_id , </if>
<if test="customerCode != null and customerCode != ''"> customer_code , </if>
<if test="customerName != null and customerName != ''"> customer_name , </if>
<if test="isAutoClaim != null and isAutoClaim != ''"> is_auto_claim , </if>
<if test="claimUserId != null and claimUserId != ''"> claim_user_id , </if>
<if test="bankId != null and bankId != ''"> bank_id , </if>
<if test="bankCode != null and bankCode != ''"> bank_code , </if>
<if test="bankName != null and bankName != ''"> bank_name , </if>
<if test="bankNum != null and bankNum != ''"> bank_num , </if>
<if test="financeOrgId != null and financeOrgId != ''"> finance_org_id , </if>
<if test="financeOrgCode != null and financeOrgCode != ''"> finance_org_code , </if>
<if test="financeOrgName != null and financeOrgName != ''"> finance_org_name , </if>
<if test="wldxId != null and wldxId != ''"> wldx_id , </if>
<if test="wldxCode != null and wldxCode != ''"> wldx_code , </if>
<if test="wldxName != null and wldxName != ''"> wldx_name , </if>
<if test="claimSum != null and claimSum != ''"> claim_sum , </if>
<if test="remark != null and remark != ''"> remark , </if>
<if test="def1 != null and def1 != ''"> def1 , </if>
<if test="def2 != null and def2 != ''"> def2 , </if>
<if test="def3 != null and def3 != ''"> def3 , </if>
<if test="def4 != null and def4 != ''"> def4 , </if>
<if test="def5 != null and def5 != ''"> def5 , </if>
<if test="def6 != null and def6 != ''"> def6 , </if>
<if test="def7 != null and def7 != ''"> def7 , </if>
<if test="def8 != null and def8 != ''"> def8 , </if>
<if test="def9 != null and def9 != ''"> def9 , </if>
<if test="def10 != null and def10 != ''"> def10 , </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="modifyUser != null and modifyUser != ''"> modify_user , </if>
<if test="sts != null and sts != ''"> sts , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="id != null"> #{id} ,</if>
<if test="billCode != null and billCode != ''"> #{billCode} ,</if>
<if test="billData != null and billData != ''"> #{billData} ,</if>
<if test="customerId != null and customerId != ''"> #{customerId} ,</if>
<if test="customerCode != null and customerCode != ''"> #{customerCode} ,</if>
<if test="customerName != null and customerName != ''"> #{customerName} ,</if>
<if test="isAutoClaim != null and isAutoClaim != ''"> #{isAutoClaim} ,</if>
<if test="claimUserId != null and claimUserId != ''"> #{claimUserId} ,</if>
<if test="bankId != null and bankId != ''"> #{bankId} ,</if>
<if test="bankCode != null and bankCode != ''"> #{bankCode} ,</if>
<if test="bankName != null and bankName != ''"> #{bankName} ,</if>
<if test="bankNum != null and bankNum != ''"> #{bankNum} ,</if>
<if test="financeOrgId != null and financeOrgId != ''"> #{financeOrgId} ,</if>
<if test="financeOrgCode != null and financeOrgCode != ''"> #{financeOrgCode} ,</if>
<if test="financeOrgName != null and financeOrgName != ''"> #{financeOrgName} ,</if>
<if test="wldxId != null and wldxId != ''"> #{wldxId} ,</if>
<if test="wldxCode != null and wldxCode != ''"> #{wldxCode} ,</if>
<if test="wldxName != null and wldxName != ''"> #{wldxName} ,</if>
<if test="claimSum != null and claimSum != ''"> #{claimSum} ,</if>
<if test="remark != null and remark != ''"> #{remark} ,</if>
<if test="def1 != null and def1 != ''"> #{def1} ,</if>
<if test="def2 != null and def2 != ''"> #{def2} ,</if>
<if test="def3 != null and def3 != ''"> #{def3} ,</if>
<if test="def4 != null and def4 != ''"> #{def4} ,</if>
<if test="def5 != null and def5 != ''"> #{def5} ,</if>
<if test="def6 != null and def6 != ''"> #{def6} ,</if>
<if test="def7 != null and def7 != ''"> #{def7} ,</if>
<if test="def8 != null and def8 != ''"> #{def8} ,</if>
<if test="def9 != null and def9 != ''"> #{def9} ,</if>
<if test="def10 != null and def10 != ''"> #{def10} ,</if>
<if test="create_time != null"> #{create_time} ,</if>
<if test="createUser != null and createUser != ''"> #{createUser} ,</if>
<if test="modify_time != null"> #{modify_time} ,</if>
<if test="modifyUser != null and modifyUser != ''"> #{modifyUser} ,</if>
<if test="sts != null and sts != ''"> #{sts} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from fe_fk_bill_h a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into fe_fk_bill_h(bill_code, bill_data, customer_id, customer_code, customer_name, is_auto_claim, claim_user_id, bank_id, bank_code, bank_name, bank_num, finance_org_id, finance_org_code, finance_org_name, wldx_id, wldx_code, wldx_name, claim_sum, remark, def1, def2, def3, def4, def5, def6, def7, def8, def9, def10, create_time, create_user, modify_time, modify_user, sts, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.billCode},#{entity.billData},#{entity.customerId},#{entity.customerCode},#{entity.customerName},#{entity.isAutoClaim},#{entity.claimUserId},#{entity.bankId},#{entity.bankCode},#{entity.bankName},#{entity.bankNum},#{entity.financeOrgId},#{entity.financeOrgCode},#{entity.financeOrgName},#{entity.wldxId},#{entity.wldxCode},#{entity.wldxName},#{entity.claimSum},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{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_fk_bill_h(bill_code, bill_data, customer_id, customer_code, customer_name, is_auto_claim, claim_user_id, bank_id, bank_code, bank_name, bank_num, finance_org_id, finance_org_code, finance_org_name, wldx_id, wldx_code, wldx_name, claim_sum, remark, def1, def2, def3, def4, def5, def6, def7, def8, def9, def10, create_time, create_user, modify_time, modify_user, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.billCode},#{entity.billData},#{entity.customerId},#{entity.customerCode},#{entity.customerName},#{entity.isAutoClaim},#{entity.claimUserId},#{entity.bankId},#{entity.bankCode},#{entity.bankName},#{entity.bankNum},#{entity.financeOrgId},#{entity.financeOrgCode},#{entity.financeOrgName},#{entity.wldxId},#{entity.wldxCode},#{entity.wldxName},#{entity.claimSum},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.create_time},#{entity.createUser},#{entity.modify_time},#{entity.modifyUser},#{entity.sts})
</foreach>
on duplicate key update
bill_code = values(bill_code),
bill_data = values(bill_data),
customer_id = values(customer_id),
customer_code = values(customer_code),
customer_name = values(customer_name),
is_auto_claim = values(is_auto_claim),
claim_user_id = values(claim_user_id),
bank_id = values(bank_id),
bank_code = values(bank_code),
bank_name = values(bank_name),
bank_num = values(bank_num),
finance_org_id = values(finance_org_id),
finance_org_code = values(finance_org_code),
finance_org_name = values(finance_org_name),
wldx_id = values(wldx_id),
wldx_code = values(wldx_code),
wldx_name = values(wldx_name),
claim_sum = values(claim_sum),
remark = values(remark),
def1 = values(def1),
def2 = values(def2),
def3 = values(def3),
def4 = values(def4),
def5 = values(def5),
def6 = values(def6),
def7 = values(def7),
def8 = values(def8),
def9 = values(def9),
def10 = values(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.claim.entity.FeFkBillHEntity" >
update fe_fk_bill_h set
<trim suffix="" suffixOverrides=",">
<if test="billCode != null and billCode != ''"> bill_code = #{billCode},</if>
<if test="billData != null and billData != ''"> bill_data = #{billData},</if>
<if test="customerId != null and customerId != ''"> customer_id = #{customerId},</if>
<if test="customerCode != null and customerCode != ''"> customer_code = #{customerCode},</if>
<if test="customerName != null and customerName != ''"> customer_name = #{customerName},</if>
<if test="isAutoClaim != null and isAutoClaim != ''"> is_auto_claim = #{isAutoClaim},</if>
<if test="claimUserId != null and claimUserId != ''"> claim_user_id = #{claimUserId},</if>
<if test="bankId != null and bankId != ''"> bank_id = #{bankId},</if>
<if test="bankCode != null and bankCode != ''"> bank_code = #{bankCode},</if>
<if test="bankName != null and bankName != ''"> bank_name = #{bankName},</if>
<if test="bankNum != null and bankNum != ''"> bank_num = #{bankNum},</if>
<if test="financeOrgId != null and financeOrgId != ''"> finance_org_id = #{financeOrgId},</if>
<if test="financeOrgCode != null and financeOrgCode != ''"> finance_org_code = #{financeOrgCode},</if>
<if test="financeOrgName != null and financeOrgName != ''"> finance_org_name = #{financeOrgName},</if>
<if test="wldxId != null and wldxId != ''"> wldx_id = #{wldxId},</if>
<if test="wldxCode != null and wldxCode != ''"> wldx_code = #{wldxCode},</if>
<if test="wldxName != null and wldxName != ''"> wldx_name = #{wldxName},</if>
<if test="claimSum != null and claimSum != ''"> claim_sum = #{claimSum},</if>
<if test="remark != null and remark != ''"> remark = #{remark},</if>
<if test="def1 != null and def1 != ''"> def1 = #{def1},</if>
<if test="def2 != null and def2 != ''"> def2 = #{def2},</if>
<if test="def3 != null and def3 != ''"> def3 = #{def3},</if>
<if test="def4 != null and def4 != ''"> def4 = #{def4},</if>
<if test="def5 != null and def5 != ''"> def5 = #{def5},</if>
<if test="def6 != null and def6 != ''"> def6 = #{def6},</if>
<if test="def7 != null and def7 != ''"> def7 = #{def7},</if>
<if test="def8 != null and def8 != ''"> def8 = #{def8},</if>
<if test="def9 != null and def9 != ''"> def9 = #{def9},</if>
<if test="def10 != null and def10 != ''"> def10 = #{def10},</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="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.claim.entity.FeFkBillHEntity" >
update fe_fk_bill_h 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.finance.claim.entity.FeFkBillHEntity" >
update fe_fk_bill_h 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="billCode != null and billCode != ''"> and bill_code = #{billCode} </if>
<if test="billData != null and billData != ''"> and bill_data = #{billData} </if>
<if test="customerId != null and customerId != ''"> and customer_id = #{customerId} </if>
<if test="customerCode != null and customerCode != ''"> and customer_code = #{customerCode} </if>
<if test="customerName != null and customerName != ''"> and customer_name = #{customerName} </if>
<if test="isAutoClaim != null and isAutoClaim != ''"> and is_auto_claim = #{isAutoClaim} </if>
<if test="claimUserId != null and claimUserId != ''"> and claim_user_id = #{claimUserId} </if>
<if test="bankId != null and bankId != ''"> and bank_id = #{bankId} </if>
<if test="bankCode != null and bankCode != ''"> and bank_code = #{bankCode} </if>
<if test="bankName != null and bankName != ''"> and bank_name = #{bankName} </if>
<if test="bankNum != null and bankNum != ''"> and bank_num = #{bankNum} </if>
<if test="financeOrgId != null and financeOrgId != ''"> and finance_org_id = #{financeOrgId} </if>
<if test="financeOrgCode != null and financeOrgCode != ''"> and finance_org_code = #{financeOrgCode} </if>
<if test="financeOrgName != null and financeOrgName != ''"> and finance_org_name = #{financeOrgName} </if>
<if test="wldxId != null and wldxId != ''"> and wldx_id = #{wldxId} </if>
<if test="wldxCode != null and wldxCode != ''"> and wldx_code = #{wldxCode} </if>
<if test="wldxName != null and wldxName != ''"> and wldx_name = #{wldxName} </if>
<if test="claimSum != null and claimSum != ''"> and claim_sum = #{claimSum} </if>
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </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_fk_bill_h where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,80 @@
package com.hzya.frame.finance.claim.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 财资事项(finance_event)-收款认领单-b(FeSkBillB)实体类
*
* @author zydd
* @since 2025-08-22 15:51:20
*/
@Data
public class FeSkBillBEntity extends BaseEntity {
/**
* 主表id
*/
private Long hId;
/**
* 摘要
*/
private String zy;
/**
* 款项性质
*/
private String nature;
/**
* 款项类别
*/
private String type;
/**
* 币种
*/
private String currencyId;
private String currencyCode;
private String currencyName;
/**
* 金额
*/
private String money;
/**
* 表述说明
*/
private String explain;
/**
* 关联流水表id
*/
private String sourceFlowId;
/**
* 关联银行流水id
*/
private String sourceFlowBankId;
/**
* 备注
*/
private String remark;
private String def1;
private String def2;
private String def3;
private String def4;
private String def5;
private String def6;
private String def7;
private String def8;
private String def9;
private String def10;
/**
* 创建人
*/
private String createUser;
/**
* 修改人
*/
private String modifyUser;
}

View File

@ -0,0 +1,415 @@
<?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.claim.dao.impl.FeSkBillBDaoImpl">
<resultMap id="get-FeSkBillBEntity-result" type="com.hzya.frame.finance.claim.entity.FeSkBillBEntity" >
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="hId" column="h_id" jdbcType="INTEGER"/>
<result property="abstract" column="abstract" jdbcType="VARCHAR"/>
<result property="nature" column="nature" jdbcType="VARCHAR"/>
<result property="type" column="type" jdbcType="VARCHAR"/>
<result property="currencyId" column="currency_id" jdbcType="VARCHAR"/>
<result property="currencyCode" column="currency_code" jdbcType="VARCHAR"/>
<result property="currencyName" column="currency_name" jdbcType="VARCHAR"/>
<result property="money" column="money" jdbcType="VARCHAR"/>
<result property="explain" column="explain" jdbcType="VARCHAR"/>
<result property="sourceFlowId" column="source_flow_id" jdbcType="VARCHAR"/>
<result property="sourceFlowBankId" column="source_flow_bank_id" jdbcType="VARCHAR"/>
<result property="remark" column="remark" jdbcType="VARCHAR"/>
<result property="def1" column="def1" jdbcType="VARCHAR"/>
<result property="def2" column="def2" jdbcType="VARCHAR"/>
<result property="def3" column="def3" jdbcType="VARCHAR"/>
<result property="def4" column="def4" jdbcType="VARCHAR"/>
<result property="def5" column="def5" jdbcType="VARCHAR"/>
<result property="def6" column="def6" jdbcType="VARCHAR"/>
<result property="def7" column="def7" jdbcType="VARCHAR"/>
<result property="def8" column="def8" jdbcType="VARCHAR"/>
<result property="def9" column="def9" jdbcType="VARCHAR"/>
<result property="def10" column="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 = "FeSkBillBEntity_Base_Column_List">
id
,h_id
,abstract
,nature
,type
,currency_id
,currency_code
,currency_name
,money
,explain
,source_flow_id
,source_flow_bank_id
,remark
,def1
,def2
,def3
,def4
,def5
,def6
,def7
,def8
,def9
,def10
,create_time
,create_user
,modify_time
,modify_user
,sts
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-FeSkBillBEntity-result" parameterType = "com.hzya.frame.finance.claim.entity.FeSkBillBEntity">
select
<include refid="FeSkBillBEntity_Base_Column_List" />
from fe_sk_bill_b
<trim prefix="where" prefixOverrides="and">
<if test="id != null"> and id = #{id} </if>
<if test="hId != null"> and h_id = #{hId} </if>
<if test="abstract != null and abstract != ''"> and abstract = #{abstract} </if>
<if test="nature != null and nature != ''"> and nature = #{nature} </if>
<if test="type != null and type != ''"> and type = #{type} </if>
<if test="currencyId != null and currencyId != ''"> and currency_id = #{currencyId} </if>
<if test="currencyCode != null and currencyCode != ''"> and currency_code = #{currencyCode} </if>
<if test="currencyName != null and currencyName != ''"> and currency_name = #{currencyName} </if>
<if test="money != null and money != ''"> and money = #{money} </if>
<if test="explain != null and explain != ''"> and explain = #{explain} </if>
<if test="sourceFlowId != null and sourceFlowId != ''"> and source_flow_id = #{sourceFlowId} </if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''"> and source_flow_bank_id = #{sourceFlowBankId} </if>
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </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>
<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.finance.claim.entity.FeSkBillBEntity">
select count(1) from fe_sk_bill_b
<trim prefix="where" prefixOverrides="and">
<if test="id != null"> and id = #{id} </if>
<if test="hId != null"> and h_id = #{hId} </if>
<if test="abstract != null and abstract != ''"> and abstract = #{abstract} </if>
<if test="nature != null and nature != ''"> and nature = #{nature} </if>
<if test="type != null and type != ''"> and type = #{type} </if>
<if test="currencyId != null and currencyId != ''"> and currency_id = #{currencyId} </if>
<if test="currencyCode != null and currencyCode != ''"> and currency_code = #{currencyCode} </if>
<if test="currencyName != null and currencyName != ''"> and currency_name = #{currencyName} </if>
<if test="money != null and money != ''"> and money = #{money} </if>
<if test="explain != null and explain != ''"> and explain = #{explain} </if>
<if test="sourceFlowId != null and sourceFlowId != ''"> and source_flow_id = #{sourceFlowId} </if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''"> and source_flow_bank_id = #{sourceFlowBankId} </if>
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </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>
<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-FeSkBillBEntity-result" parameterType = "com.hzya.frame.finance.claim.entity.FeSkBillBEntity">
select
<include refid="FeSkBillBEntity_Base_Column_List" />
from fe_sk_bill_b
<trim prefix="where" prefixOverrides="and">
<if test="id != null"> and id like concat('%',#{id},'%') </if>
<if test="hId != null"> and h_id like concat('%',#{hId},'%') </if>
<if test="abstract != null and abstract != ''"> and abstract like concat('%',#{abstract},'%') </if>
<if test="nature != null and nature != ''"> and nature like concat('%',#{nature},'%') </if>
<if test="type != null and type != ''"> and type like concat('%',#{type},'%') </if>
<if test="currencyId != null and currencyId != ''"> and currency_id like concat('%',#{currencyId},'%') </if>
<if test="currencyCode != null and currencyCode != ''"> and currency_code like concat('%',#{currencyCode},'%') </if>
<if test="currencyName != null and currencyName != ''"> and currency_name like concat('%',#{currencyName},'%') </if>
<if test="money != null and money != ''"> and money like concat('%',#{money},'%') </if>
<if test="explain != null and explain != ''"> and explain like concat('%',#{explain},'%') </if>
<if test="sourceFlowId != null and sourceFlowId != ''"> and source_flow_id like concat('%',#{sourceFlowId},'%') </if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''"> and source_flow_bank_id like concat('%',#{sourceFlowBankId},'%') </if>
<if test="remark != null and remark != ''"> and remark like concat('%',#{remark},'%') </if>
<if test="def1 != null and def1 != ''"> and def1 like concat('%',#{def1},'%') </if>
<if test="def2 != null and def2 != ''"> and def2 like concat('%',#{def2},'%') </if>
<if test="def3 != null and def3 != ''"> and def3 like concat('%',#{def3},'%') </if>
<if test="def4 != null and def4 != ''"> and def4 like concat('%',#{def4},'%') </if>
<if test="def5 != null and def5 != ''"> and def5 like concat('%',#{def5},'%') </if>
<if test="def6 != null and def6 != ''"> and def6 like concat('%',#{def6},'%') </if>
<if test="def7 != null and def7 != ''"> and def7 like concat('%',#{def7},'%') </if>
<if test="def8 != null and def8 != ''"> and def8 like concat('%',#{def8},'%') </if>
<if test="def9 != null and def9 != ''"> and def9 like concat('%',#{def9},'%') </if>
<if test="def10 != null and def10 != ''"> and def10 like concat('%',#{def10},'%') </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>
<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="FeSkBillBentity_list_or" resultMap="get-FeSkBillBEntity-result" parameterType = "com.hzya.frame.finance.claim.entity.FeSkBillBEntity">
select
<include refid="FeSkBillBEntity_Base_Column_List" />
from fe_sk_bill_b
<trim prefix="where" prefixOverrides="and">
<if test="id != null"> or id = #{id} </if>
<if test="hId != null"> or h_id = #{hId} </if>
<if test="abstract != null and abstract != ''"> or abstract = #{abstract} </if>
<if test="nature != null and nature != ''"> or nature = #{nature} </if>
<if test="type != null and type != ''"> or type = #{type} </if>
<if test="currencyId != null and currencyId != ''"> or currency_id = #{currencyId} </if>
<if test="currencyCode != null and currencyCode != ''"> or currency_code = #{currencyCode} </if>
<if test="currencyName != null and currencyName != ''"> or currency_name = #{currencyName} </if>
<if test="money != null and money != ''"> or money = #{money} </if>
<if test="explain != null and explain != ''"> or explain = #{explain} </if>
<if test="sourceFlowId != null and sourceFlowId != ''"> or source_flow_id = #{sourceFlowId} </if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''"> or source_flow_bank_id = #{sourceFlowBankId} </if>
<if test="remark != null and remark != ''"> or remark = #{remark} </if>
<if test="def1 != null and def1 != ''"> or def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> or def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> or def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> or def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> or def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> or def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> or def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> or def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> or def9 = #{def9} </if>
<if test="def10 != null and def10 != ''"> or def10 = #{def10} </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>
<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.finance.claim.entity.FeSkBillBEntity" keyProperty="id" useGeneratedKeys="true">
insert into fe_sk_bill_b(
<trim suffix="" suffixOverrides=",">
<if test="id != null"> id , </if>
<if test="hId != null"> h_id , </if>
<if test="abstract != null and abstract != ''"> abstract , </if>
<if test="nature != null and nature != ''"> nature , </if>
<if test="type != null and type != ''"> type , </if>
<if test="currencyId != null and currencyId != ''"> currency_id , </if>
<if test="currencyCode != null and currencyCode != ''"> currency_code , </if>
<if test="currencyName != null and currencyName != ''"> currency_name , </if>
<if test="money != null and money != ''"> money , </if>
<if test="explain != null and explain != ''"> explain , </if>
<if test="sourceFlowId != null and sourceFlowId != ''"> source_flow_id , </if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''"> source_flow_bank_id , </if>
<if test="remark != null and remark != ''"> remark , </if>
<if test="def1 != null and def1 != ''"> def1 , </if>
<if test="def2 != null and def2 != ''"> def2 , </if>
<if test="def3 != null and def3 != ''"> def3 , </if>
<if test="def4 != null and def4 != ''"> def4 , </if>
<if test="def5 != null and def5 != ''"> def5 , </if>
<if test="def6 != null and def6 != ''"> def6 , </if>
<if test="def7 != null and def7 != ''"> def7 , </if>
<if test="def8 != null and def8 != ''"> def8 , </if>
<if test="def9 != null and def9 != ''"> def9 , </if>
<if test="def10 != null and def10 != ''"> def10 , </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="modifyUser != null and modifyUser != ''"> modify_user , </if>
<if test="sts != null and sts != ''"> sts , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="id != null"> #{id} ,</if>
<if test="hId != null"> #{hId} ,</if>
<if test="abstract != null and abstract != ''"> #{abstract} ,</if>
<if test="nature != null and nature != ''"> #{nature} ,</if>
<if test="type != null and type != ''"> #{type} ,</if>
<if test="currencyId != null and currencyId != ''"> #{currencyId} ,</if>
<if test="currencyCode != null and currencyCode != ''"> #{currencyCode} ,</if>
<if test="currencyName != null and currencyName != ''"> #{currencyName} ,</if>
<if test="money != null and money != ''"> #{money} ,</if>
<if test="explain != null and explain != ''"> #{explain} ,</if>
<if test="sourceFlowId != null and sourceFlowId != ''"> #{sourceFlowId} ,</if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''"> #{sourceFlowBankId} ,</if>
<if test="remark != null and remark != ''"> #{remark} ,</if>
<if test="def1 != null and def1 != ''"> #{def1} ,</if>
<if test="def2 != null and def2 != ''"> #{def2} ,</if>
<if test="def3 != null and def3 != ''"> #{def3} ,</if>
<if test="def4 != null and def4 != ''"> #{def4} ,</if>
<if test="def5 != null and def5 != ''"> #{def5} ,</if>
<if test="def6 != null and def6 != ''"> #{def6} ,</if>
<if test="def7 != null and def7 != ''"> #{def7} ,</if>
<if test="def8 != null and def8 != ''"> #{def8} ,</if>
<if test="def9 != null and def9 != ''"> #{def9} ,</if>
<if test="def10 != null and def10 != ''"> #{def10} ,</if>
<if test="create_time != null"> #{create_time} ,</if>
<if test="createUser != null and createUser != ''"> #{createUser} ,</if>
<if test="modify_time != null"> #{modify_time} ,</if>
<if test="modifyUser != null and modifyUser != ''"> #{modifyUser} ,</if>
<if test="sts != null and sts != ''"> #{sts} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from fe_sk_bill_b a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into fe_sk_bill_b(h_id, abstract, nature, type, currency_id, currency_code, currency_name, money, explain, source_flow_id, source_flow_bank_id, remark, def1, def2, def3, def4, def5, def6, def7, def8, def9, def10, create_time, create_user, modify_time, modify_user, sts, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.hId},#{entity.abstract},#{entity.nature},#{entity.type},#{entity.currencyId},#{entity.currencyCode},#{entity.currencyName},#{entity.money},#{entity.explain},#{entity.sourceFlowId},#{entity.sourceFlowBankId},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{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_sk_bill_b(h_id, abstract, nature, type, currency_id, currency_code, currency_name, money, explain, source_flow_id, source_flow_bank_id, remark, def1, def2, def3, def4, def5, def6, def7, def8, def9, def10, create_time, create_user, modify_time, modify_user, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.hId},#{entity.abstract},#{entity.nature},#{entity.type},#{entity.currencyId},#{entity.currencyCode},#{entity.currencyName},#{entity.money},#{entity.explain},#{entity.sourceFlowId},#{entity.sourceFlowBankId},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.create_time},#{entity.createUser},#{entity.modify_time},#{entity.modifyUser},#{entity.sts})
</foreach>
on duplicate key update
h_id = values(h_id),
abstract = values(abstract),
nature = values(nature),
type = values(type),
currency_id = values(currency_id),
currency_code = values(currency_code),
currency_name = values(currency_name),
money = values(money),
explain = values(explain),
source_flow_id = values(source_flow_id),
source_flow_bank_id = values(source_flow_bank_id),
remark = values(remark),
def1 = values(def1),
def2 = values(def2),
def3 = values(def3),
def4 = values(def4),
def5 = values(def5),
def6 = values(def6),
def7 = values(def7),
def8 = values(def8),
def9 = values(def9),
def10 = values(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.claim.entity.FeSkBillBEntity" >
update fe_sk_bill_b set
<trim suffix="" suffixOverrides=",">
<if test="hId != null"> h_id = #{hId},</if>
<if test="abstract != null and abstract != ''"> abstract = #{abstract},</if>
<if test="nature != null and nature != ''"> nature = #{nature},</if>
<if test="type != null and type != ''"> type = #{type},</if>
<if test="currencyId != null and currencyId != ''"> currency_id = #{currencyId},</if>
<if test="currencyCode != null and currencyCode != ''"> currency_code = #{currencyCode},</if>
<if test="currencyName != null and currencyName != ''"> currency_name = #{currencyName},</if>
<if test="money != null and money != ''"> money = #{money},</if>
<if test="explain != null and explain != ''"> explain = #{explain},</if>
<if test="sourceFlowId != null and sourceFlowId != ''"> source_flow_id = #{sourceFlowId},</if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''"> source_flow_bank_id = #{sourceFlowBankId},</if>
<if test="remark != null and remark != ''"> remark = #{remark},</if>
<if test="def1 != null and def1 != ''"> def1 = #{def1},</if>
<if test="def2 != null and def2 != ''"> def2 = #{def2},</if>
<if test="def3 != null and def3 != ''"> def3 = #{def3},</if>
<if test="def4 != null and def4 != ''"> def4 = #{def4},</if>
<if test="def5 != null and def5 != ''"> def5 = #{def5},</if>
<if test="def6 != null and def6 != ''"> def6 = #{def6},</if>
<if test="def7 != null and def7 != ''"> def7 = #{def7},</if>
<if test="def8 != null and def8 != ''"> def8 = #{def8},</if>
<if test="def9 != null and def9 != ''"> def9 = #{def9},</if>
<if test="def10 != null and def10 != ''"> def10 = #{def10},</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="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.claim.entity.FeSkBillBEntity" >
update fe_sk_bill_b 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.finance.claim.entity.FeSkBillBEntity" >
update fe_sk_bill_b 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="hId != null"> and h_id = #{hId} </if>
<if test="abstract != null and abstract != ''"> and abstract = #{abstract} </if>
<if test="nature != null and nature != ''"> and nature = #{nature} </if>
<if test="type != null and type != ''"> and type = #{type} </if>
<if test="currencyId != null and currencyId != ''"> and currency_id = #{currencyId} </if>
<if test="currencyCode != null and currencyCode != ''"> and currency_code = #{currencyCode} </if>
<if test="currencyName != null and currencyName != ''"> and currency_name = #{currencyName} </if>
<if test="money != null and money != ''"> and money = #{money} </if>
<if test="explain != null and explain != ''"> and explain = #{explain} </if>
<if test="sourceFlowId != null and sourceFlowId != ''"> and source_flow_id = #{sourceFlowId} </if>
<if test="sourceFlowBankId != null and sourceFlowBankId != ''"> and source_flow_bank_id = #{sourceFlowBankId} </if>
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </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_sk_bill_b where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,308 @@
package com.hzya.frame.finance.claim.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
/**
* 财资事项(finance_event)-收款认领单-h(FeSkBillH)实体类
*
* @author zydd
* @since 2025-08-22 15:51:06
*/
public class FeSkBillHEntity extends BaseEntity {
/** 认领单号 */
private String billCode;
/** 认领日期 */
private String billData;
/** 客户id */
private String customerId;
private String customerCode;
private String customerName;
/** 是否自动认领 */
private String isAutoClaim;
/** 认领人id */
private String claimUserId;
/** 银行id */
private String bankId;
private String bankCode;
private String bankName;
/** 收款银行账号 */
private String bankNum;
/** 财务组织id */
private String financeOrgId;
private String financeOrgCode;
private String financeOrgName;
/** 往来对象id */
private String wldxId;
private String wldxCode;
private String wldxName;
/** 认领金额 */
private String claimSum;
/** 备注 */
private String remark;
private String def1;
private String def2;
private String def3;
private String def4;
private String def5;
private String def6;
private String def7;
private String def8;
private String def9;
private String def10;
/** 创建人 */
private String createUser;
/** 修改人 */
private String modifyUser;
public String getBillCode() {
return billCode;
}
public void setBillCode(String billCode) {
this.billCode = billCode;
}
public String getBillData() {
return billData;
}
public void setBillData(String billData) {
this.billData = billData;
}
public String getCustomerId() {
return customerId;
}
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
public String getCustomerCode() {
return customerCode;
}
public void setCustomerCode(String customerCode) {
this.customerCode = customerCode;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
public String getIsAutoClaim() {
return isAutoClaim;
}
public void setIsAutoClaim(String isAutoClaim) {
this.isAutoClaim = isAutoClaim;
}
public String getClaimUserId() {
return claimUserId;
}
public void setClaimUserId(String claimUserId) {
this.claimUserId = claimUserId;
}
public String getBankId() {
return bankId;
}
public void setBankId(String bankId) {
this.bankId = bankId;
}
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 getBankNum() {
return bankNum;
}
public void setBankNum(String bankNum) {
this.bankNum = bankNum;
}
public String getFinanceOrgId() {
return financeOrgId;
}
public void setFinanceOrgId(String financeOrgId) {
this.financeOrgId = financeOrgId;
}
public String getFinanceOrgCode() {
return financeOrgCode;
}
public void setFinanceOrgCode(String financeOrgCode) {
this.financeOrgCode = financeOrgCode;
}
public String getFinanceOrgName() {
return financeOrgName;
}
public void setFinanceOrgName(String financeOrgName) {
this.financeOrgName = financeOrgName;
}
public String getWldxId() {
return wldxId;
}
public void setWldxId(String wldxId) {
this.wldxId = wldxId;
}
public String getWldxCode() {
return wldxCode;
}
public void setWldxCode(String wldxCode) {
this.wldxCode = wldxCode;
}
public String getWldxName() {
return wldxName;
}
public void setWldxName(String wldxName) {
this.wldxName = wldxName;
}
public String getClaimSum() {
return claimSum;
}
public void setClaimSum(String claimSum) {
this.claimSum = claimSum;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
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;
}
public String getDef4() {
return def4;
}
public void setDef4(String def4) {
this.def4 = def4;
}
public String getDef5() {
return def5;
}
public void setDef5(String def5) {
this.def5 = def5;
}
public String getDef6() {
return def6;
}
public void setDef6(String def6) {
this.def6 = def6;
}
public String getDef7() {
return def7;
}
public void setDef7(String def7) {
this.def7 = def7;
}
public String getDef8() {
return def8;
}
public void setDef8(String def8) {
this.def8 = def8;
}
public String getDef9() {
return def9;
}
public void setDef9(String def9) {
this.def9 = def9;
}
public String getDef10() {
return def10;
}
public void setDef10(String def10) {
this.def10 = def10;
}
public String getCreateUser() {
return createUser;
}
public void setCreateUser(String createUser) {
this.createUser = createUser;
}
public String getModifyUser() {
return modifyUser;
}
public void setModifyUser(String modifyUser) {
this.modifyUser = modifyUser;
}
}

View File

@ -0,0 +1,492 @@
<?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.claim.dao.impl.FeSkBillHDaoImpl">
<resultMap id="get-FeSkBillHEntity-result" type="com.hzya.frame.finance.claim.entity.FeSkBillHEntity" >
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="billCode" column="bill_code" jdbcType="VARCHAR"/>
<result property="billData" column="bill_data" jdbcType="VARCHAR"/>
<result property="customerId" column="customer_id" jdbcType="VARCHAR"/>
<result property="customerCode" column="customer_code" jdbcType="VARCHAR"/>
<result property="customerName" column="customer_name" jdbcType="VARCHAR"/>
<result property="isAutoClaim" column="is_auto_claim" jdbcType="VARCHAR"/>
<result property="claimUserId" column="claim_user_id" jdbcType="VARCHAR"/>
<result property="bankId" column="bank_id" jdbcType="VARCHAR"/>
<result property="bankCode" column="bank_code" jdbcType="VARCHAR"/>
<result property="bankName" column="bank_name" jdbcType="VARCHAR"/>
<result property="bankNum" column="bank_num" jdbcType="VARCHAR"/>
<result property="financeOrgId" column="finance_org_id" jdbcType="VARCHAR"/>
<result property="financeOrgCode" column="finance_org_code" jdbcType="VARCHAR"/>
<result property="financeOrgName" column="finance_org_name" jdbcType="VARCHAR"/>
<result property="wldxId" column="wldx_id" jdbcType="VARCHAR"/>
<result property="wldxCode" column="wldx_code" jdbcType="VARCHAR"/>
<result property="wldxName" column="wldx_name" jdbcType="VARCHAR"/>
<result property="claimSum" column="claim_sum" jdbcType="VARCHAR"/>
<result property="remark" column="remark" jdbcType="VARCHAR"/>
<result property="def1" column="def1" jdbcType="VARCHAR"/>
<result property="def2" column="def2" jdbcType="VARCHAR"/>
<result property="def3" column="def3" jdbcType="VARCHAR"/>
<result property="def4" column="def4" jdbcType="VARCHAR"/>
<result property="def5" column="def5" jdbcType="VARCHAR"/>
<result property="def6" column="def6" jdbcType="VARCHAR"/>
<result property="def7" column="def7" jdbcType="VARCHAR"/>
<result property="def8" column="def8" jdbcType="VARCHAR"/>
<result property="def9" column="def9" jdbcType="VARCHAR"/>
<result property="def10" column="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 = "FeSkBillHEntity_Base_Column_List">
id
,bill_code
,bill_data
,customer_id
,customer_code
,customer_name
,is_auto_claim
,claim_user_id
,bank_id
,bank_code
,bank_name
,bank_num
,finance_org_id
,finance_org_code
,finance_org_name
,wldx_id
,wldx_code
,wldx_name
,claim_sum
,remark
,def1
,def2
,def3
,def4
,def5
,def6
,def7
,def8
,def9
,def10
,create_time
,create_user
,modify_time
,modify_user
,sts
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-FeSkBillHEntity-result" parameterType = "com.hzya.frame.finance.claim.entity.FeSkBillHEntity">
select
<include refid="FeSkBillHEntity_Base_Column_List" />
from fe_sk_bill_h
<trim prefix="where" prefixOverrides="and">
<if test="id != null"> and id = #{id} </if>
<if test="billCode != null and billCode != ''"> and bill_code = #{billCode} </if>
<if test="billData != null and billData != ''"> and bill_data = #{billData} </if>
<if test="customerId != null and customerId != ''"> and customer_id = #{customerId} </if>
<if test="customerCode != null and customerCode != ''"> and customer_code = #{customerCode} </if>
<if test="customerName != null and customerName != ''"> and customer_name = #{customerName} </if>
<if test="isAutoClaim != null and isAutoClaim != ''"> and is_auto_claim = #{isAutoClaim} </if>
<if test="claimUserId != null and claimUserId != ''"> and claim_user_id = #{claimUserId} </if>
<if test="bankId != null and bankId != ''"> and bank_id = #{bankId} </if>
<if test="bankCode != null and bankCode != ''"> and bank_code = #{bankCode} </if>
<if test="bankName != null and bankName != ''"> and bank_name = #{bankName} </if>
<if test="bankNum != null and bankNum != ''"> and bank_num = #{bankNum} </if>
<if test="financeOrgId != null and financeOrgId != ''"> and finance_org_id = #{financeOrgId} </if>
<if test="financeOrgCode != null and financeOrgCode != ''"> and finance_org_code = #{financeOrgCode} </if>
<if test="financeOrgName != null and financeOrgName != ''"> and finance_org_name = #{financeOrgName} </if>
<if test="wldxId != null and wldxId != ''"> and wldx_id = #{wldxId} </if>
<if test="wldxCode != null and wldxCode != ''"> and wldx_code = #{wldxCode} </if>
<if test="wldxName != null and wldxName != ''"> and wldx_name = #{wldxName} </if>
<if test="claimSum != null and claimSum != ''"> and claim_sum = #{claimSum} </if>
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </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>
<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.finance.claim.entity.FeSkBillHEntity">
select count(1) from fe_sk_bill_h
<trim prefix="where" prefixOverrides="and">
<if test="id != null"> and id = #{id} </if>
<if test="billCode != null and billCode != ''"> and bill_code = #{billCode} </if>
<if test="billData != null and billData != ''"> and bill_data = #{billData} </if>
<if test="customerId != null and customerId != ''"> and customer_id = #{customerId} </if>
<if test="customerCode != null and customerCode != ''"> and customer_code = #{customerCode} </if>
<if test="customerName != null and customerName != ''"> and customer_name = #{customerName} </if>
<if test="isAutoClaim != null and isAutoClaim != ''"> and is_auto_claim = #{isAutoClaim} </if>
<if test="claimUserId != null and claimUserId != ''"> and claim_user_id = #{claimUserId} </if>
<if test="bankId != null and bankId != ''"> and bank_id = #{bankId} </if>
<if test="bankCode != null and bankCode != ''"> and bank_code = #{bankCode} </if>
<if test="bankName != null and bankName != ''"> and bank_name = #{bankName} </if>
<if test="bankNum != null and bankNum != ''"> and bank_num = #{bankNum} </if>
<if test="financeOrgId != null and financeOrgId != ''"> and finance_org_id = #{financeOrgId} </if>
<if test="financeOrgCode != null and financeOrgCode != ''"> and finance_org_code = #{financeOrgCode} </if>
<if test="financeOrgName != null and financeOrgName != ''"> and finance_org_name = #{financeOrgName} </if>
<if test="wldxId != null and wldxId != ''"> and wldx_id = #{wldxId} </if>
<if test="wldxCode != null and wldxCode != ''"> and wldx_code = #{wldxCode} </if>
<if test="wldxName != null and wldxName != ''"> and wldx_name = #{wldxName} </if>
<if test="claimSum != null and claimSum != ''"> and claim_sum = #{claimSum} </if>
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </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>
<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-FeSkBillHEntity-result" parameterType = "com.hzya.frame.finance.claim.entity.FeSkBillHEntity">
select
<include refid="FeSkBillHEntity_Base_Column_List" />
from fe_sk_bill_h
<trim prefix="where" prefixOverrides="and">
<if test="id != null"> and id like concat('%',#{id},'%') </if>
<if test="billCode != null and billCode != ''"> and bill_code like concat('%',#{billCode},'%') </if>
<if test="billData != null and billData != ''"> and bill_data like concat('%',#{billData},'%') </if>
<if test="customerId != null and customerId != ''"> and customer_id like concat('%',#{customerId},'%') </if>
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%',#{customerCode},'%') </if>
<if test="customerName != null and customerName != ''"> and customer_name like concat('%',#{customerName},'%') </if>
<if test="isAutoClaim != null and isAutoClaim != ''"> and is_auto_claim like concat('%',#{isAutoClaim},'%') </if>
<if test="claimUserId != null and claimUserId != ''"> and claim_user_id like concat('%',#{claimUserId},'%') </if>
<if test="bankId != null and bankId != ''"> and bank_id like concat('%',#{bankId},'%') </if>
<if test="bankCode != null and bankCode != ''"> and bank_code like concat('%',#{bankCode},'%') </if>
<if test="bankName != null and bankName != ''"> and bank_name like concat('%',#{bankName},'%') </if>
<if test="bankNum != null and bankNum != ''"> and bank_num like concat('%',#{bankNum},'%') </if>
<if test="financeOrgId != null and financeOrgId != ''"> and finance_org_id like concat('%',#{financeOrgId},'%') </if>
<if test="financeOrgCode != null and financeOrgCode != ''"> and finance_org_code like concat('%',#{financeOrgCode},'%') </if>
<if test="financeOrgName != null and financeOrgName != ''"> and finance_org_name like concat('%',#{financeOrgName},'%') </if>
<if test="wldxId != null and wldxId != ''"> and wldx_id like concat('%',#{wldxId},'%') </if>
<if test="wldxCode != null and wldxCode != ''"> and wldx_code like concat('%',#{wldxCode},'%') </if>
<if test="wldxName != null and wldxName != ''"> and wldx_name like concat('%',#{wldxName},'%') </if>
<if test="claimSum != null and claimSum != ''"> and claim_sum like concat('%',#{claimSum},'%') </if>
<if test="remark != null and remark != ''"> and remark like concat('%',#{remark},'%') </if>
<if test="def1 != null and def1 != ''"> and def1 like concat('%',#{def1},'%') </if>
<if test="def2 != null and def2 != ''"> and def2 like concat('%',#{def2},'%') </if>
<if test="def3 != null and def3 != ''"> and def3 like concat('%',#{def3},'%') </if>
<if test="def4 != null and def4 != ''"> and def4 like concat('%',#{def4},'%') </if>
<if test="def5 != null and def5 != ''"> and def5 like concat('%',#{def5},'%') </if>
<if test="def6 != null and def6 != ''"> and def6 like concat('%',#{def6},'%') </if>
<if test="def7 != null and def7 != ''"> and def7 like concat('%',#{def7},'%') </if>
<if test="def8 != null and def8 != ''"> and def8 like concat('%',#{def8},'%') </if>
<if test="def9 != null and def9 != ''"> and def9 like concat('%',#{def9},'%') </if>
<if test="def10 != null and def10 != ''"> and def10 like concat('%',#{def10},'%') </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>
<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="FeSkBillHentity_list_or" resultMap="get-FeSkBillHEntity-result" parameterType = "com.hzya.frame.finance.claim.entity.FeSkBillHEntity">
select
<include refid="FeSkBillHEntity_Base_Column_List" />
from fe_sk_bill_h
<trim prefix="where" prefixOverrides="and">
<if test="id != null"> or id = #{id} </if>
<if test="billCode != null and billCode != ''"> or bill_code = #{billCode} </if>
<if test="billData != null and billData != ''"> or bill_data = #{billData} </if>
<if test="customerId != null and customerId != ''"> or customer_id = #{customerId} </if>
<if test="customerCode != null and customerCode != ''"> or customer_code = #{customerCode} </if>
<if test="customerName != null and customerName != ''"> or customer_name = #{customerName} </if>
<if test="isAutoClaim != null and isAutoClaim != ''"> or is_auto_claim = #{isAutoClaim} </if>
<if test="claimUserId != null and claimUserId != ''"> or claim_user_id = #{claimUserId} </if>
<if test="bankId != null and bankId != ''"> or bank_id = #{bankId} </if>
<if test="bankCode != null and bankCode != ''"> or bank_code = #{bankCode} </if>
<if test="bankName != null and bankName != ''"> or bank_name = #{bankName} </if>
<if test="bankNum != null and bankNum != ''"> or bank_num = #{bankNum} </if>
<if test="financeOrgId != null and financeOrgId != ''"> or finance_org_id = #{financeOrgId} </if>
<if test="financeOrgCode != null and financeOrgCode != ''"> or finance_org_code = #{financeOrgCode} </if>
<if test="financeOrgName != null and financeOrgName != ''"> or finance_org_name = #{financeOrgName} </if>
<if test="wldxId != null and wldxId != ''"> or wldx_id = #{wldxId} </if>
<if test="wldxCode != null and wldxCode != ''"> or wldx_code = #{wldxCode} </if>
<if test="wldxName != null and wldxName != ''"> or wldx_name = #{wldxName} </if>
<if test="claimSum != null and claimSum != ''"> or claim_sum = #{claimSum} </if>
<if test="remark != null and remark != ''"> or remark = #{remark} </if>
<if test="def1 != null and def1 != ''"> or def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> or def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> or def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> or def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> or def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> or def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> or def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> or def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> or def9 = #{def9} </if>
<if test="def10 != null and def10 != ''"> or def10 = #{def10} </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>
<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.finance.claim.entity.FeSkBillHEntity" keyProperty="id" useGeneratedKeys="true">
insert into fe_sk_bill_h(
<trim suffix="" suffixOverrides=",">
<if test="id != null"> id , </if>
<if test="billCode != null and billCode != ''"> bill_code , </if>
<if test="billData != null and billData != ''"> bill_data , </if>
<if test="customerId != null and customerId != ''"> customer_id , </if>
<if test="customerCode != null and customerCode != ''"> customer_code , </if>
<if test="customerName != null and customerName != ''"> customer_name , </if>
<if test="isAutoClaim != null and isAutoClaim != ''"> is_auto_claim , </if>
<if test="claimUserId != null and claimUserId != ''"> claim_user_id , </if>
<if test="bankId != null and bankId != ''"> bank_id , </if>
<if test="bankCode != null and bankCode != ''"> bank_code , </if>
<if test="bankName != null and bankName != ''"> bank_name , </if>
<if test="bankNum != null and bankNum != ''"> bank_num , </if>
<if test="financeOrgId != null and financeOrgId != ''"> finance_org_id , </if>
<if test="financeOrgCode != null and financeOrgCode != ''"> finance_org_code , </if>
<if test="financeOrgName != null and financeOrgName != ''"> finance_org_name , </if>
<if test="wldxId != null and wldxId != ''"> wldx_id , </if>
<if test="wldxCode != null and wldxCode != ''"> wldx_code , </if>
<if test="wldxName != null and wldxName != ''"> wldx_name , </if>
<if test="claimSum != null and claimSum != ''"> claim_sum , </if>
<if test="remark != null and remark != ''"> remark , </if>
<if test="def1 != null and def1 != ''"> def1 , </if>
<if test="def2 != null and def2 != ''"> def2 , </if>
<if test="def3 != null and def3 != ''"> def3 , </if>
<if test="def4 != null and def4 != ''"> def4 , </if>
<if test="def5 != null and def5 != ''"> def5 , </if>
<if test="def6 != null and def6 != ''"> def6 , </if>
<if test="def7 != null and def7 != ''"> def7 , </if>
<if test="def8 != null and def8 != ''"> def8 , </if>
<if test="def9 != null and def9 != ''"> def9 , </if>
<if test="def10 != null and def10 != ''"> def10 , </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="modifyUser != null and modifyUser != ''"> modify_user , </if>
<if test="sts != null and sts != ''"> sts , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="id != null"> #{id} ,</if>
<if test="billCode != null and billCode != ''"> #{billCode} ,</if>
<if test="billData != null and billData != ''"> #{billData} ,</if>
<if test="customerId != null and customerId != ''"> #{customerId} ,</if>
<if test="customerCode != null and customerCode != ''"> #{customerCode} ,</if>
<if test="customerName != null and customerName != ''"> #{customerName} ,</if>
<if test="isAutoClaim != null and isAutoClaim != ''"> #{isAutoClaim} ,</if>
<if test="claimUserId != null and claimUserId != ''"> #{claimUserId} ,</if>
<if test="bankId != null and bankId != ''"> #{bankId} ,</if>
<if test="bankCode != null and bankCode != ''"> #{bankCode} ,</if>
<if test="bankName != null and bankName != ''"> #{bankName} ,</if>
<if test="bankNum != null and bankNum != ''"> #{bankNum} ,</if>
<if test="financeOrgId != null and financeOrgId != ''"> #{financeOrgId} ,</if>
<if test="financeOrgCode != null and financeOrgCode != ''"> #{financeOrgCode} ,</if>
<if test="financeOrgName != null and financeOrgName != ''"> #{financeOrgName} ,</if>
<if test="wldxId != null and wldxId != ''"> #{wldxId} ,</if>
<if test="wldxCode != null and wldxCode != ''"> #{wldxCode} ,</if>
<if test="wldxName != null and wldxName != ''"> #{wldxName} ,</if>
<if test="claimSum != null and claimSum != ''"> #{claimSum} ,</if>
<if test="remark != null and remark != ''"> #{remark} ,</if>
<if test="def1 != null and def1 != ''"> #{def1} ,</if>
<if test="def2 != null and def2 != ''"> #{def2} ,</if>
<if test="def3 != null and def3 != ''"> #{def3} ,</if>
<if test="def4 != null and def4 != ''"> #{def4} ,</if>
<if test="def5 != null and def5 != ''"> #{def5} ,</if>
<if test="def6 != null and def6 != ''"> #{def6} ,</if>
<if test="def7 != null and def7 != ''"> #{def7} ,</if>
<if test="def8 != null and def8 != ''"> #{def8} ,</if>
<if test="def9 != null and def9 != ''"> #{def9} ,</if>
<if test="def10 != null and def10 != ''"> #{def10} ,</if>
<if test="create_time != null"> #{create_time} ,</if>
<if test="createUser != null and createUser != ''"> #{createUser} ,</if>
<if test="modify_time != null"> #{modify_time} ,</if>
<if test="modifyUser != null and modifyUser != ''"> #{modifyUser} ,</if>
<if test="sts != null and sts != ''"> #{sts} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from fe_sk_bill_h a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into fe_sk_bill_h(bill_code, bill_data, customer_id, customer_code, customer_name, is_auto_claim, claim_user_id, bank_id, bank_code, bank_name, bank_num, finance_org_id, finance_org_code, finance_org_name, wldx_id, wldx_code, wldx_name, claim_sum, remark, def1, def2, def3, def4, def5, def6, def7, def8, def9, def10, create_time, create_user, modify_time, modify_user, sts, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.billCode},#{entity.billData},#{entity.customerId},#{entity.customerCode},#{entity.customerName},#{entity.isAutoClaim},#{entity.claimUserId},#{entity.bankId},#{entity.bankCode},#{entity.bankName},#{entity.bankNum},#{entity.financeOrgId},#{entity.financeOrgCode},#{entity.financeOrgName},#{entity.wldxId},#{entity.wldxCode},#{entity.wldxName},#{entity.claimSum},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{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_sk_bill_h(bill_code, bill_data, customer_id, customer_code, customer_name, is_auto_claim, claim_user_id, bank_id, bank_code, bank_name, bank_num, finance_org_id, finance_org_code, finance_org_name, wldx_id, wldx_code, wldx_name, claim_sum, remark, def1, def2, def3, def4, def5, def6, def7, def8, def9, def10, create_time, create_user, modify_time, modify_user, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.billCode},#{entity.billData},#{entity.customerId},#{entity.customerCode},#{entity.customerName},#{entity.isAutoClaim},#{entity.claimUserId},#{entity.bankId},#{entity.bankCode},#{entity.bankName},#{entity.bankNum},#{entity.financeOrgId},#{entity.financeOrgCode},#{entity.financeOrgName},#{entity.wldxId},#{entity.wldxCode},#{entity.wldxName},#{entity.claimSum},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.create_time},#{entity.createUser},#{entity.modify_time},#{entity.modifyUser},#{entity.sts})
</foreach>
on duplicate key update
bill_code = values(bill_code),
bill_data = values(bill_data),
customer_id = values(customer_id),
customer_code = values(customer_code),
customer_name = values(customer_name),
is_auto_claim = values(is_auto_claim),
claim_user_id = values(claim_user_id),
bank_id = values(bank_id),
bank_code = values(bank_code),
bank_name = values(bank_name),
bank_num = values(bank_num),
finance_org_id = values(finance_org_id),
finance_org_code = values(finance_org_code),
finance_org_name = values(finance_org_name),
wldx_id = values(wldx_id),
wldx_code = values(wldx_code),
wldx_name = values(wldx_name),
claim_sum = values(claim_sum),
remark = values(remark),
def1 = values(def1),
def2 = values(def2),
def3 = values(def3),
def4 = values(def4),
def5 = values(def5),
def6 = values(def6),
def7 = values(def7),
def8 = values(def8),
def9 = values(def9),
def10 = values(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.claim.entity.FeSkBillHEntity" >
update fe_sk_bill_h set
<trim suffix="" suffixOverrides=",">
<if test="billCode != null and billCode != ''"> bill_code = #{billCode},</if>
<if test="billData != null and billData != ''"> bill_data = #{billData},</if>
<if test="customerId != null and customerId != ''"> customer_id = #{customerId},</if>
<if test="customerCode != null and customerCode != ''"> customer_code = #{customerCode},</if>
<if test="customerName != null and customerName != ''"> customer_name = #{customerName},</if>
<if test="isAutoClaim != null and isAutoClaim != ''"> is_auto_claim = #{isAutoClaim},</if>
<if test="claimUserId != null and claimUserId != ''"> claim_user_id = #{claimUserId},</if>
<if test="bankId != null and bankId != ''"> bank_id = #{bankId},</if>
<if test="bankCode != null and bankCode != ''"> bank_code = #{bankCode},</if>
<if test="bankName != null and bankName != ''"> bank_name = #{bankName},</if>
<if test="bankNum != null and bankNum != ''"> bank_num = #{bankNum},</if>
<if test="financeOrgId != null and financeOrgId != ''"> finance_org_id = #{financeOrgId},</if>
<if test="financeOrgCode != null and financeOrgCode != ''"> finance_org_code = #{financeOrgCode},</if>
<if test="financeOrgName != null and financeOrgName != ''"> finance_org_name = #{financeOrgName},</if>
<if test="wldxId != null and wldxId != ''"> wldx_id = #{wldxId},</if>
<if test="wldxCode != null and wldxCode != ''"> wldx_code = #{wldxCode},</if>
<if test="wldxName != null and wldxName != ''"> wldx_name = #{wldxName},</if>
<if test="claimSum != null and claimSum != ''"> claim_sum = #{claimSum},</if>
<if test="remark != null and remark != ''"> remark = #{remark},</if>
<if test="def1 != null and def1 != ''"> def1 = #{def1},</if>
<if test="def2 != null and def2 != ''"> def2 = #{def2},</if>
<if test="def3 != null and def3 != ''"> def3 = #{def3},</if>
<if test="def4 != null and def4 != ''"> def4 = #{def4},</if>
<if test="def5 != null and def5 != ''"> def5 = #{def5},</if>
<if test="def6 != null and def6 != ''"> def6 = #{def6},</if>
<if test="def7 != null and def7 != ''"> def7 = #{def7},</if>
<if test="def8 != null and def8 != ''"> def8 = #{def8},</if>
<if test="def9 != null and def9 != ''"> def9 = #{def9},</if>
<if test="def10 != null and def10 != ''"> def10 = #{def10},</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="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.claim.entity.FeSkBillHEntity" >
update fe_sk_bill_h 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.finance.claim.entity.FeSkBillHEntity" >
update fe_sk_bill_h 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="billCode != null and billCode != ''"> and bill_code = #{billCode} </if>
<if test="billData != null and billData != ''"> and bill_data = #{billData} </if>
<if test="customerId != null and customerId != ''"> and customer_id = #{customerId} </if>
<if test="customerCode != null and customerCode != ''"> and customer_code = #{customerCode} </if>
<if test="customerName != null and customerName != ''"> and customer_name = #{customerName} </if>
<if test="isAutoClaim != null and isAutoClaim != ''"> and is_auto_claim = #{isAutoClaim} </if>
<if test="claimUserId != null and claimUserId != ''"> and claim_user_id = #{claimUserId} </if>
<if test="bankId != null and bankId != ''"> and bank_id = #{bankId} </if>
<if test="bankCode != null and bankCode != ''"> and bank_code = #{bankCode} </if>
<if test="bankName != null and bankName != ''"> and bank_name = #{bankName} </if>
<if test="bankNum != null and bankNum != ''"> and bank_num = #{bankNum} </if>
<if test="financeOrgId != null and financeOrgId != ''"> and finance_org_id = #{financeOrgId} </if>
<if test="financeOrgCode != null and financeOrgCode != ''"> and finance_org_code = #{financeOrgCode} </if>
<if test="financeOrgName != null and financeOrgName != ''"> and finance_org_name = #{financeOrgName} </if>
<if test="wldxId != null and wldxId != ''"> and wldx_id = #{wldxId} </if>
<if test="wldxCode != null and wldxCode != ''"> and wldx_code = #{wldxCode} </if>
<if test="wldxName != null and wldxName != ''"> and wldx_name = #{wldxName} </if>
<if test="claimSum != null and claimSum != ''"> and claim_sum = #{claimSum} </if>
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </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_sk_bill_h where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,12 @@
package com.hzya.frame.finance.claim.service;
import com.hzya.frame.finance.claim.entity.FeFkBillBEntity;
import com.hzya.frame.basedao.service.IBaseService;
/**
* 财资事项(finance_event)-付款认领单-b(FeFkBillB)表服务接口
*
* @author zydd
* @since 2025-08-22 15:50:52
*/
public interface IFeFkBillBService extends IBaseService<FeFkBillBEntity, String>{
}

View File

@ -0,0 +1,12 @@
package com.hzya.frame.finance.claim.service;
import com.hzya.frame.finance.claim.entity.FeFkBillHEntity;
import com.hzya.frame.basedao.service.IBaseService;
/**
* 财资事项(finance_event)-付款认领单-h(FeFkBillH)表服务接口
*
* @author zydd
* @since 2025-08-22 15:50:33
*/
public interface IFeFkBillHService extends IBaseService<FeFkBillHEntity, String>{
}

View File

@ -0,0 +1,12 @@
package com.hzya.frame.finance.claim.service;
import com.hzya.frame.finance.claim.entity.FeSkBillBEntity;
import com.hzya.frame.basedao.service.IBaseService;
/**
* 财资事项(finance_event)-收款认领单-b(FeSkBillB)表服务接口
*
* @author zydd
* @since 2025-08-22 15:51:20
*/
public interface IFeSkBillBService extends IBaseService<FeSkBillBEntity, String>{
}

View File

@ -0,0 +1,12 @@
package com.hzya.frame.finance.claim.service;
import com.hzya.frame.finance.claim.entity.FeSkBillHEntity;
import com.hzya.frame.basedao.service.IBaseService;
/**
* 财资事项(finance_event)-收款认领单-h(FeSkBillH)表服务接口
*
* @author zydd
* @since 2025-08-22 15:51:06
*/
public interface IFeSkBillHService extends IBaseService<FeSkBillHEntity, String>{
}

View File

@ -0,0 +1,26 @@
package com.hzya.frame.finance.claim.service.impl;
import com.hzya.frame.finance.claim.entity.FeFkBillBEntity;
import com.hzya.frame.finance.claim.dao.IFeFkBillBDao;
import com.hzya.frame.finance.claim.service.IFeFkBillBService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* 财资事项(finance_event)-付款认领单-b(FeFkBillB)表服务实现类
*
* @author zydd
* @since 2025-08-22 15:50:52
*/
@Service
public class FeFkBillBServiceImpl extends BaseService<FeFkBillBEntity, String> implements IFeFkBillBService {
private IFeFkBillBDao feFkBillBDao;
@Autowired
public void setFeFkBillBDao(IFeFkBillBDao dao) {
this.feFkBillBDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,26 @@
package com.hzya.frame.finance.claim.service.impl;
import com.hzya.frame.finance.claim.entity.FeFkBillHEntity;
import com.hzya.frame.finance.claim.dao.IFeFkBillHDao;
import com.hzya.frame.finance.claim.service.IFeFkBillHService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* 财资事项(finance_event)-付款认领单-h(FeFkBillH)表服务实现类
*
* @author zydd
* @since 2025-08-22 15:50:33
*/
@Service
public class FeFkBillHServiceImpl extends BaseService<FeFkBillHEntity, String> implements IFeFkBillHService {
private IFeFkBillHDao feFkBillHDao;
@Autowired
public void setFeFkBillHDao(IFeFkBillHDao dao) {
this.feFkBillHDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,26 @@
package com.hzya.frame.finance.claim.service.impl;
import com.hzya.frame.finance.claim.entity.FeSkBillBEntity;
import com.hzya.frame.finance.claim.dao.IFeSkBillBDao;
import com.hzya.frame.finance.claim.service.IFeSkBillBService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* 财资事项(finance_event)-收款认领单-b(FeSkBillB)表服务实现类
*
* @author zydd
* @since 2025-08-22 15:51:20
*/
@Service
public class FeSkBillBServiceImpl extends BaseService<FeSkBillBEntity, String> implements IFeSkBillBService {
private IFeSkBillBDao feSkBillBDao;
@Autowired
public void setFeSkBillBDao(IFeSkBillBDao dao) {
this.feSkBillBDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,26 @@
package com.hzya.frame.finance.claim.service.impl;
import com.hzya.frame.finance.claim.entity.FeSkBillHEntity;
import com.hzya.frame.finance.claim.dao.IFeSkBillHDao;
import com.hzya.frame.finance.claim.service.IFeSkBillHService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* 财资事项(finance_event)-收款认领单-h(FeSkBillH)表服务实现类
*
* @author zydd
* @since 2025-08-22 15:51:06
*/
@Service
public class FeSkBillHServiceImpl extends BaseService<FeSkBillHEntity, String> implements IFeSkBillHService {
private IFeSkBillHDao feSkBillHDao;
@Autowired
public void setFeSkBillHDao(IFeSkBillHDao dao) {
this.feSkBillHDao = dao;
this.dao = dao;
}
}

View File

@ -56,14 +56,14 @@ public class IClaimSKServiceImpl implements IClaimSKService {
public MdmViewVo queryFlowFileds(MdmDBQueryVO entity) {
CreateVoucherVO createVoucherVO = new CreateVoucherVO();
createVoucherVO.setMdmId("60d0374c9fa743019b0c1488a4eac1fe");
createVoucherVO.setMdmId("266e61002d7a4b0cadaf89fbcf30c7fd");
MdmViewVo mdmViewVo = aePushVoucherLogService.queryBillFileds(createVoucherVO);
return mdmViewVo;
}
@Override
public PageInfo queryFlowDatePaged(MdmDBQueryVO entity) {
entity.setTablename("mdm_kk_bankflow_ccb");
entity.setTablename("mdm_kk_bankflow_gts");
if(entity.getBillstatus()!=null){
entity.setClaimstatus(entity.getBillstatus());
@ -84,6 +84,12 @@ public class IClaimSKServiceImpl implements IClaimSKService {
//prop7 对方账号
//prop8 对方行名
//prop9 收款付款 outFlag=D/C
if(entity.getOutFlag()!=null&& !"".equals(entity.getOutFlag())){
entity.setProp9("outFlag");
entity.setPropValue1(entity.getOutFlag());
}
PageHelper.startPage(entity.getPageNum(), entity.getPageSize());
List<Map<String, Object>> maps= mdmDBQueryVODAO.queryMdmDateBySK(entity);
PageInfo pageInfo = new PageInfo(maps);
@ -92,7 +98,7 @@ public class IClaimSKServiceImpl implements IClaimSKService {
@Override
public List<Map<String, Object>> queryFlowDateIds(MdmDBQueryVO entity) {
entity.setTablename("mdm_kk_bankflow_ccb");
entity.setTablename("mdm_kk_bankflow_gts");
List<Map<String, Object>> maps= mdmDBQueryVODAO.queryMdmDateBySK(entity);

View File

@ -56,7 +56,7 @@ public class FeConfFileEigenServiceImpl extends BaseService<FeConfFileEigenEntit
@Override
public List<FeConfFileEigenEntity> queryAll(FeConfFileEigenEntity entity) {
checkAssistNull("queryAll", entity);
List<FeConfFileEigenEntity> query = feConfFileEigenDao.query(entity);
List<FeConfFileEigenEntity> query = feConfFileEigenDao.queryByLike(entity);
return query;
}
@ -301,6 +301,24 @@ public class FeConfFileEigenServiceImpl extends BaseService<FeConfFileEigenEntit
mdmDBQueryVO.setPageSize(entity.getPageSize());
MdmDbFiledVO mdmDbFiledVO = new MdmDbFiledVO();
mdmDbFiledVO.setMdmId(mdmId);
List<MdmDbFiledVO> mdmDbFiledVOList = mdmDbFiledVODAO.queryMdmDbFiledVOByMdmID(mdmDbFiledVO);
if(mdmDbFiledVOList==null||mdmDbFiledVOList.size()==0){
Assert.state(false,"根据mdmId{},查询字段名细失败",mdmId);
}
MdmDbFiledVO mdmDbFiled = mdmDbFiledVOList.get(0);
String fieldName = mdmDbFiled.getNamefieldname();
if(fieldName==null){
Assert.state(false,"根据mdmId{},查询名称字段名细失败。",mdmId);
}
String mdmDataName = entity.getMdmDataName();
if(mdmDataName!=null){
mdmDBQueryVO.setProp1(fieldName);
mdmDBQueryVO.setPropValue1(mdmDataName);
}
PageHelper.startPage(mdmDBQueryVO.getPageNum(), mdmDBQueryVO.getPageSize());
List<Map<String, Object>> dataMapList = mdmDBQueryVODAO.queryMdmDb(mdmDBQueryVO);

View File

@ -0,0 +1,33 @@
package com.hzya.frame.finance.flow.controller;
import com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity;
import com.hzya.frame.finance.flow.service.IMdmKkBankflowGtsService;
import com.hzya.frame.web.action.DefaultController;
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.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.util.UUID;
/**
* Created by zydd on 2025-08-22 09:41
*/
@RestController
@RequestMapping("/fe/flow/gts")
public class GTSController extends DefaultController {
@Autowired
private IMdmKkBankflowGtsService bankflowGtsService;
@RequestMapping(value = "/insert", method = RequestMethod.POST)
public void insert(@RequestBody MdmKkBankflowGtsEntity entity) throws Exception {
for (int i = 0; i < 4000; i++) {
MdmKkBankflowGtsEntity mdmKkBankflowGtsEntity = new MdmKkBankflowGtsEntity();
mdmKkBankflowGtsEntity.setId(UUID.randomUUID().toString());
bankflowGtsService.save(mdmKkBankflowGtsEntity);
}
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.finance.flow.dao;
import com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 账户明细查询GTS(mdm_kk_bankflow_gts: table)表数据库访问层
*
* @author zydd
* @since 2025-08-22 09:36:27
*/
public interface IMdmKkBankflowGtsDao extends IBaseDao<MdmKkBankflowGtsEntity, String> {
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.finance.flow.dao.impl;
import com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity;
import com.hzya.frame.finance.flow.dao.IMdmKkBankflowGtsDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* 账户明细查询GTS(MdmKkBankflowGts)表数据库访问层
*
* @author zydd
* @since 2025-08-22 09:36:27
*/
@Repository
public class MdmKkBankflowGtsDaoImpl extends MybatisGenericDao<MdmKkBankflowGtsEntity, String> implements IMdmKkBankflowGtsDao{
}

View File

@ -0,0 +1,84 @@
package com.hzya.frame.finance.flow.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 账户明细查询GTS(MdmKkBankflowGts)实体类
*
* @author zydd
* @since 2025-08-22 09:36:27
*/
@Data
public class MdmKkBankflowGtsEntity 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;
/** data_id */
private String dataId;
/** mdm_up_id */
private String mdmUpId;
/** 交易流水号 */
private String transeqno1;
/** 对方户名 */
private String cnteracctname;
/** 对方账户 */
private String cnteracctno;
/** 对方开户行 */
private String opnbnkinfo;
/** 交易金额 */
private String tranamt;
/** 转入金额 */
private String inamtlot;
/** 转出金额 */
private String tfroutamt;
/** 币种 */
private String ccy;
/** 余额 */
private String balance;
/** 转入/转出标志 */
private String outflag;
/** 企业流水 */
private String bussseqno;
/** 银行流水 */
private String bnkprchseqno;
/** 交易日期 */
private String trandate;
/** 交易时间 */
private String trantimep;
/** 用途 */
private String yt;
/** 单据号 */
private String deprecptid;
/** 交易类型 */
private String trantpcdset;
/** 保留 */
private String kpdmn;
/** 摘要 */
private String zy;
/** 备注 */
private String remark;
/** 附言 */
private String postscript;
/** 流水类型 */
private String rsrvfldnm;
/** 认领状态 */
private String claimstatus;
/** 认领单号 */
private String claimbillcode;
}

View File

@ -0,0 +1,600 @@
<?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.flow.dao.impl.MdmKkBankflowGtsDaoImpl">
<resultMap id="get-MdmKkBankflowGtsEntity-result" type="com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity">
<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="dataId" column="data_id" jdbcType="VARCHAR"/>
<result property="mdmUpId" column="mdm_up_id" jdbcType="VARCHAR"/>
<result property="transeqno1" column="transeqno1" jdbcType="VARCHAR"/>
<result property="cnteracctname" column="cnteracctname" jdbcType="VARCHAR"/>
<result property="cnteracctno" column="cnteracctno" jdbcType="VARCHAR"/>
<result property="opnbnkinfo" column="opnbnkinfo" jdbcType="VARCHAR"/>
<result property="tranamt" column="tranamt" jdbcType="VARCHAR"/>
<result property="inamtlot" column="inamtlot" jdbcType="VARCHAR"/>
<result property="tfroutamt" column="tfroutamt" jdbcType="VARCHAR"/>
<result property="ccy" column="ccy" jdbcType="VARCHAR"/>
<result property="balance" column="balance" jdbcType="VARCHAR"/>
<result property="outflag" column="outflag" jdbcType="VARCHAR"/>
<result property="bussseqno" column="bussseqno" jdbcType="VARCHAR"/>
<result property="bnkprchseqno" column="bnkprchseqno" jdbcType="VARCHAR"/>
<result property="trandate" column="trandate" jdbcType="VARCHAR"/>
<result property="trantimep" column="trantimep" jdbcType="VARCHAR"/>
<result property="yt" column="yt" jdbcType="VARCHAR"/>
<result property="deprecptid" column="deprecptid" jdbcType="VARCHAR"/>
<result property="trantpcdset" column="trantpcdset" jdbcType="VARCHAR"/>
<result property="kpdmn" column="kpdmn" jdbcType="VARCHAR"/>
<result property="zy" column="zy" jdbcType="VARCHAR"/>
<result property="remark" column="remark" jdbcType="VARCHAR"/>
<result property="postscript" column="postscript" jdbcType="VARCHAR"/>
<result property="rsrvfldnm" column="rsrvfldnm" jdbcType="VARCHAR"/>
<result property="claimstatus" column="claimstatus" jdbcType="VARCHAR"/>
<result property="claimbillcode" column="claimbillcode" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id="MdmKkBankflowGtsEntity_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
,data_id
,mdm_up_id
,transeqno1
,cnteracctname
,cnteracctno
,opnbnkinfo
,tranamt
,inamtlot
,tfroutamt
,ccy
,balance
,outflag
,bussseqno
,bnkprchseqno
,trandate
,trantimep
,yt
,deprecptid
,trantpcdset
,kpdmn
,zy
,remark
,postscript
,rsrvfldnm
,claimstatus
,claimbillcode
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-MdmKkBankflowGtsEntity-result"
parameterType="com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity">
select
<include refid="MdmKkBankflowGtsEntity_Base_Column_List"/>
from mdm_kk_bankflow_gts
<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="dataId != null and dataId != ''">and data_id = #{dataId}</if>
<if test="mdmUpId != null and mdmUpId != ''">and mdm_up_id = #{mdmUpId}</if>
<if test="transeqno1 != null and transeqno1 != ''">and transeqno1 = #{transeqno1}</if>
<if test="cnteracctname != null and cnteracctname != ''">and cnteracctname = #{cnteracctname}</if>
<if test="cnteracctno != null and cnteracctno != ''">and cnteracctno = #{cnteracctno}</if>
<if test="opnbnkinfo != null and opnbnkinfo != ''">and opnbnkinfo = #{opnbnkinfo}</if>
<if test="tranamt != null and tranamt != ''">and tranamt = #{tranamt}</if>
<if test="inamtlot != null and inamtlot != ''">and inamtlot = #{inamtlot}</if>
<if test="tfroutamt != null and tfroutamt != ''">and tfroutamt = #{tfroutamt}</if>
<if test="ccy != null and ccy != ''">and ccy = #{ccy}</if>
<if test="balance != null and balance != ''">and balance = #{balance}</if>
<if test="outflag != null and outflag != ''">and outflag = #{outflag}</if>
<if test="bussseqno != null and bussseqno != ''">and bussseqno = #{bussseqno}</if>
<if test="bnkprchseqno != null and bnkprchseqno != ''">and bnkprchseqno = #{bnkprchseqno}</if>
<if test="trandate != null and trandate != ''">and trandate = #{trandate}</if>
<if test="trantimep != null and trantimep != ''">and trantimep = #{trantimep}</if>
<if test="yt != null and yt != ''">and yt = #{yt}</if>
<if test="deprecptid != null and deprecptid != ''">and deprecptid = #{deprecptid}</if>
<if test="trantpcdset != null and trantpcdset != ''">and trantpcdset = #{trantpcdset}</if>
<if test="kpdmn != null and kpdmn != ''">and kpdmn = #{kpdmn}</if>
<if test="zy != null and zy != ''">and zy = #{zy}</if>
<if test="remark != null and remark != ''">and remark = #{remark}</if>
<if test="postscript != null and postscript != ''">and postscript = #{postscript}</if>
<if test="rsrvfldnm != null and rsrvfldnm != ''">and rsrvfldnm = #{rsrvfldnm}</if>
<if test="claimstatus != null and claimstatus != ''">and claimstatus = #{claimstatus}</if>
<if test="claimbillcode != null and claimbillcode != ''">and claimbillcode = #{claimbillcode}</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.finance.flow.entity.MdmKkBankflowGtsEntity">
select count(1) from mdm_kk_bankflow_gts
<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="dataId != null and dataId != ''">and data_id = #{dataId}</if>
<if test="mdmUpId != null and mdmUpId != ''">and mdm_up_id = #{mdmUpId}</if>
<if test="transeqno1 != null and transeqno1 != ''">and transeqno1 = #{transeqno1}</if>
<if test="cnteracctname != null and cnteracctname != ''">and cnteracctname = #{cnteracctname}</if>
<if test="cnteracctno != null and cnteracctno != ''">and cnteracctno = #{cnteracctno}</if>
<if test="opnbnkinfo != null and opnbnkinfo != ''">and opnbnkinfo = #{opnbnkinfo}</if>
<if test="tranamt != null and tranamt != ''">and tranamt = #{tranamt}</if>
<if test="inamtlot != null and inamtlot != ''">and inamtlot = #{inamtlot}</if>
<if test="tfroutamt != null and tfroutamt != ''">and tfroutamt = #{tfroutamt}</if>
<if test="ccy != null and ccy != ''">and ccy = #{ccy}</if>
<if test="balance != null and balance != ''">and balance = #{balance}</if>
<if test="outflag != null and outflag != ''">and outflag = #{outflag}</if>
<if test="bussseqno != null and bussseqno != ''">and bussseqno = #{bussseqno}</if>
<if test="bnkprchseqno != null and bnkprchseqno != ''">and bnkprchseqno = #{bnkprchseqno}</if>
<if test="trandate != null and trandate != ''">and trandate = #{trandate}</if>
<if test="trantimep != null and trantimep != ''">and trantimep = #{trantimep}</if>
<if test="yt != null and yt != ''">and yt = #{yt}</if>
<if test="deprecptid != null and deprecptid != ''">and deprecptid = #{deprecptid}</if>
<if test="trantpcdset != null and trantpcdset != ''">and trantpcdset = #{trantpcdset}</if>
<if test="kpdmn != null and kpdmn != ''">and kpdmn = #{kpdmn}</if>
<if test="zy != null and zy != ''">and zy = #{zy}</if>
<if test="remark != null and remark != ''">and remark = #{remark}</if>
<if test="postscript != null and postscript != ''">and postscript = #{postscript}</if>
<if test="rsrvfldnm != null and rsrvfldnm != ''">and rsrvfldnm = #{rsrvfldnm}</if>
<if test="claimstatus != null and claimstatus != ''">and claimstatus = #{claimstatus}</if>
<if test="claimbillcode != null and claimbillcode != ''">and claimbillcode = #{claimbillcode}</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-MdmKkBankflowGtsEntity-result"
parameterType="com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity">
select
<include refid="MdmKkBankflowGtsEntity_Base_Column_List"/>
from mdm_kk_bankflow_gts
<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="dataId != null and dataId != ''">and data_id like concat('%',#{dataId},'%')</if>
<if test="mdmUpId != null and mdmUpId != ''">and mdm_up_id like concat('%',#{mdmUpId},'%')</if>
<if test="transeqno1 != null and transeqno1 != ''">and transeqno1 like concat('%',#{transeqno1},'%')</if>
<if test="cnteracctname != null and cnteracctname != ''">and cnteracctname like
concat('%',#{cnteracctname},'%')
</if>
<if test="cnteracctno != null and cnteracctno != ''">and cnteracctno like concat('%',#{cnteracctno},'%')
</if>
<if test="opnbnkinfo != null and opnbnkinfo != ''">and opnbnkinfo like concat('%',#{opnbnkinfo},'%')</if>
<if test="tranamt != null and tranamt != ''">and tranamt like concat('%',#{tranamt},'%')</if>
<if test="inamtlot != null and inamtlot != ''">and inamtlot like concat('%',#{inamtlot},'%')</if>
<if test="tfroutamt != null and tfroutamt != ''">and tfroutamt like concat('%',#{tfroutamt},'%')</if>
<if test="ccy != null and ccy != ''">and ccy like concat('%',#{ccy},'%')</if>
<if test="balance != null and balance != ''">and balance like concat('%',#{balance},'%')</if>
<if test="outflag != null and outflag != ''">and outflag like concat('%',#{outflag},'%')</if>
<if test="bussseqno != null and bussseqno != ''">and bussseqno like concat('%',#{bussseqno},'%')</if>
<if test="bnkprchseqno != null and bnkprchseqno != ''">and bnkprchseqno like
concat('%',#{bnkprchseqno},'%')
</if>
<if test="trandate != null and trandate != ''">and trandate like concat('%',#{trandate},'%')</if>
<if test="trantimep != null and trantimep != ''">and trantimep like concat('%',#{trantimep},'%')</if>
<if test="yt != null and yt != ''">and yt like concat('%',#{yt},'%')</if>
<if test="deprecptid != null and deprecptid != ''">and deprecptid like concat('%',#{deprecptid},'%')</if>
<if test="trantpcdset != null and trantpcdset != ''">and trantpcdset like concat('%',#{trantpcdset},'%')
</if>
<if test="kpdmn != null and kpdmn != ''">and kpdmn like concat('%',#{kpdmn},'%')</if>
<if test="zy != null and zy != ''">and zy like concat('%',#{zy},'%')</if>
<if test="remark != null and remark != ''">and remark like concat('%',#{remark},'%')</if>
<if test="postscript != null and postscript != ''">and postscript like concat('%',#{postscript},'%')</if>
<if test="rsrvfldnm != null and rsrvfldnm != ''">and rsrvfldnm like concat('%',#{rsrvfldnm},'%')</if>
<if test="claimstatus != null and claimstatus != ''">and claimstatus like concat('%',#{claimstatus},'%')
</if>
<if test="claimbillcode != null and claimbillcode != ''">and claimbillcode like
concat('%',#{claimbillcode},'%')
</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="MdmKkBankflowGtsentity_list_or" resultMap="get-MdmKkBankflowGtsEntity-result"
parameterType="com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity">
select
<include refid="MdmKkBankflowGtsEntity_Base_Column_List"/>
from mdm_kk_bankflow_gts
<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="dataId != null and dataId != ''">or data_id = #{dataId}</if>
<if test="mdmUpId != null and mdmUpId != ''">or mdm_up_id = #{mdmUpId}</if>
<if test="transeqno1 != null and transeqno1 != ''">or transeqno1 = #{transeqno1}</if>
<if test="cnteracctname != null and cnteracctname != ''">or cnteracctname = #{cnteracctname}</if>
<if test="cnteracctno != null and cnteracctno != ''">or cnteracctno = #{cnteracctno}</if>
<if test="opnbnkinfo != null and opnbnkinfo != ''">or opnbnkinfo = #{opnbnkinfo}</if>
<if test="tranamt != null and tranamt != ''">or tranamt = #{tranamt}</if>
<if test="inamtlot != null and inamtlot != ''">or inamtlot = #{inamtlot}</if>
<if test="tfroutamt != null and tfroutamt != ''">or tfroutamt = #{tfroutamt}</if>
<if test="ccy != null and ccy != ''">or ccy = #{ccy}</if>
<if test="balance != null and balance != ''">or balance = #{balance}</if>
<if test="outflag != null and outflag != ''">or outflag = #{outflag}</if>
<if test="bussseqno != null and bussseqno != ''">or bussseqno = #{bussseqno}</if>
<if test="bnkprchseqno != null and bnkprchseqno != ''">or bnkprchseqno = #{bnkprchseqno}</if>
<if test="trandate != null and trandate != ''">or trandate = #{trandate}</if>
<if test="trantimep != null and trantimep != ''">or trantimep = #{trantimep}</if>
<if test="yt != null and yt != ''">or yt = #{yt}</if>
<if test="deprecptid != null and deprecptid != ''">or deprecptid = #{deprecptid}</if>
<if test="trantpcdset != null and trantpcdset != ''">or trantpcdset = #{trantpcdset}</if>
<if test="kpdmn != null and kpdmn != ''">or kpdmn = #{kpdmn}</if>
<if test="zy != null and zy != ''">or zy = #{zy}</if>
<if test="remark != null and remark != ''">or remark = #{remark}</if>
<if test="postscript != null and postscript != ''">or postscript = #{postscript}</if>
<if test="rsrvfldnm != null and rsrvfldnm != ''">or rsrvfldnm = #{rsrvfldnm}</if>
<if test="claimstatus != null and claimstatus != ''">or claimstatus = #{claimstatus}</if>
<if test="claimbillcode != null and claimbillcode != ''">or claimbillcode = #{claimbillcode}</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.finance.flow.entity.MdmKkBankflowGtsEntity"
keyProperty="id" useGeneratedKeys="true">
insert into mdm_kk_bankflow_gts(
<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="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="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="dataId != null and dataId != ''">data_id ,</if>
<if test="mdmUpId != null and mdmUpId != ''">mdm_up_id ,</if>
<if test="transeqno1 != null and transeqno1 != ''">transeqno1 ,</if>
<if test="cnteracctname != null and cnteracctname != ''">cnteracctname ,</if>
<if test="cnteracctno != null and cnteracctno != ''">cnteracctno ,</if>
<if test="opnbnkinfo != null and opnbnkinfo != ''">opnbnkinfo ,</if>
<if test="tranamt != null and tranamt != ''">tranamt ,</if>
<if test="inamtlot != null and inamtlot != ''">inamtlot ,</if>
<if test="tfroutamt != null and tfroutamt != ''">tfroutamt ,</if>
<if test="ccy != null and ccy != ''">ccy ,</if>
<if test="balance != null and balance != ''">balance ,</if>
<if test="outflag != null and outflag != ''">outflag ,</if>
<if test="bussseqno != null and bussseqno != ''">bussseqno ,</if>
<if test="bnkprchseqno != null and bnkprchseqno != ''">bnkprchseqno ,</if>
<if test="trandate != null and trandate != ''">trandate ,</if>
<if test="trantimep != null and trantimep != ''">trantimep ,</if>
<if test="yt != null and yt != ''">yt ,</if>
<if test="deprecptid != null and deprecptid != ''">deprecptid ,</if>
<if test="trantpcdset != null and trantpcdset != ''">trantpcdset ,</if>
<if test="kpdmn != null and kpdmn != ''">kpdmn ,</if>
<if test="zy != null and zy != ''">zy ,</if>
<if test="remark != null and remark != ''">remark ,</if>
<if test="postscript != null and postscript != ''">postscript ,</if>
<if test="rsrvfldnm != null and rsrvfldnm != ''">rsrvfldnm ,</if>
<if test="claimstatus != null and claimstatus != ''">claimstatus ,</if>
<if test="claimbillcode != null and claimbillcode != ''">claimbillcode ,</if>
<if test="sorts == null ">sorts,</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="create_time == null">now() ,</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="modify_time == null">now() ,</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="dataId != null and dataId != ''">#{dataId} ,</if>
<if test="mdmUpId != null and mdmUpId != ''">#{mdmUpId} ,</if>
<if test="transeqno1 != null and transeqno1 != ''">#{transeqno1} ,</if>
<if test="cnteracctname != null and cnteracctname != ''">#{cnteracctname} ,</if>
<if test="cnteracctno != null and cnteracctno != ''">#{cnteracctno} ,</if>
<if test="opnbnkinfo != null and opnbnkinfo != ''">#{opnbnkinfo} ,</if>
<if test="tranamt != null and tranamt != ''">#{tranamt} ,</if>
<if test="inamtlot != null and inamtlot != ''">#{inamtlot} ,</if>
<if test="tfroutamt != null and tfroutamt != ''">#{tfroutamt} ,</if>
<if test="ccy != null and ccy != ''">#{ccy} ,</if>
<if test="balance != null and balance != ''">#{balance} ,</if>
<if test="outflag != null and outflag != ''">#{outflag} ,</if>
<if test="bussseqno != null and bussseqno != ''">#{bussseqno} ,</if>
<if test="bnkprchseqno != null and bnkprchseqno != ''">#{bnkprchseqno} ,</if>
<if test="trandate != null and trandate != ''">#{trandate} ,</if>
<if test="trantimep != null and trantimep != ''">#{trantimep} ,</if>
<if test="yt != null and yt != ''">#{yt} ,</if>
<if test="deprecptid != null and deprecptid != ''">#{deprecptid} ,</if>
<if test="trantpcdset != null and trantpcdset != ''">#{trantpcdset} ,</if>
<if test="kpdmn != null and kpdmn != ''">#{kpdmn} ,</if>
<if test="zy != null and zy != ''">#{zy} ,</if>
<if test="remark != null and remark != ''">#{remark} ,</if>
<if test="postscript != null and postscript != ''">#{postscript} ,</if>
<if test="rsrvfldnm != null and rsrvfldnm != ''">#{rsrvfldnm} ,</if>
<if test="claimstatus != null and claimstatus != ''">#{claimstatus} ,</if>
<if test="claimbillcode != null and claimbillcode != ''">#{claimbillcode} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from mdm_kk_bankflow_gts a WHERE
a.sts = 'Y' ),
</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into mdm_kk_bankflow_gts(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, data_id,
mdm_up_id, transeqno1, cnteracctname, cnteracctno, opnbnkinfo, tranamt, inamtlot, tfroutamt, ccy, balance,
outflag, bussseqno, bnkprchseqno, trandate, trantimep, yt, deprecptid, trantpcdset, kpdmn, zy, remark,
postscript, rsrvfldnm, claimstatus, claimbillcode, 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.dataId},#{entity.mdmUpId},#{entity.transeqno1},#{entity.cnteracctname},#{entity.cnteracctno},#{entity.opnbnkinfo},#{entity.tranamt},#{entity.inamtlot},#{entity.tfroutamt},#{entity.ccy},#{entity.balance},#{entity.outflag},#{entity.bussseqno},#{entity.bnkprchseqno},#{entity.trandate},#{entity.trantimep},#{entity.yt},#{entity.deprecptid},#{entity.trantpcdset},#{entity.kpdmn},#{entity.zy},#{entity.remark},#{entity.postscript},#{entity.rsrvfldnm},#{entity.claimstatus},#{entity.claimbillcode},
'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into mdm_kk_bankflow_gts(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, data_id,
mdm_up_id, transeqno1, cnteracctname, cnteracctno, opnbnkinfo, tranamt, inamtlot, tfroutamt, ccy, balance,
outflag, bussseqno, bnkprchseqno, trandate, trantimep, yt, deprecptid, trantpcdset, kpdmn, zy, remark,
postscript, rsrvfldnm, claimstatus, claimbillcode)
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.dataId},#{entity.mdmUpId},#{entity.transeqno1},#{entity.cnteracctname},#{entity.cnteracctno},#{entity.opnbnkinfo},#{entity.tranamt},#{entity.inamtlot},#{entity.tfroutamt},#{entity.ccy},#{entity.balance},#{entity.outflag},#{entity.bussseqno},#{entity.bnkprchseqno},#{entity.trandate},#{entity.trantimep},#{entity.yt},#{entity.deprecptid},#{entity.trantpcdset},#{entity.kpdmn},#{entity.zy},#{entity.remark},#{entity.postscript},#{entity.rsrvfldnm},#{entity.claimstatus},#{entity.claimbillcode})
</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),
data_id = values(data_id),
mdm_up_id = values(mdm_up_id),
transeqno1 = values(transeqno1),
cnteracctname = values(cnteracctname),
cnteracctno = values(cnteracctno),
opnbnkinfo = values(opnbnkinfo),
tranamt = values(tranamt),
inamtlot = values(inamtlot),
tfroutamt = values(tfroutamt),
ccy = values(ccy),
balance = values(balance),
outflag = values(outflag),
bussseqno = values(bussseqno),
bnkprchseqno = values(bnkprchseqno),
trandate = values(trandate),
trantimep = values(trantimep),
yt = values(yt),
deprecptid = values(deprecptid),
trantpcdset = values(trantpcdset),
kpdmn = values(kpdmn),
zy = values(zy),
remark = values(remark),
postscript = values(postscript),
rsrvfldnm = values(rsrvfldnm),
claimstatus = values(claimstatus),
claimbillcode = values(claimbillcode)
</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType="com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity">
update mdm_kk_bankflow_gts 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="modify_time == null">modify_time = now(),</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="dataId != null and dataId != ''">data_id = #{dataId},</if>
<if test="mdmUpId != null and mdmUpId != ''">mdm_up_id = #{mdmUpId},</if>
<if test="transeqno1 != null and transeqno1 != ''">transeqno1 = #{transeqno1},</if>
<if test="cnteracctname != null and cnteracctname != ''">cnteracctname = #{cnteracctname},</if>
<if test="cnteracctno != null and cnteracctno != ''">cnteracctno = #{cnteracctno},</if>
<if test="opnbnkinfo != null and opnbnkinfo != ''">opnbnkinfo = #{opnbnkinfo},</if>
<if test="tranamt != null and tranamt != ''">tranamt = #{tranamt},</if>
<if test="inamtlot != null and inamtlot != ''">inamtlot = #{inamtlot},</if>
<if test="tfroutamt != null and tfroutamt != ''">tfroutamt = #{tfroutamt},</if>
<if test="ccy != null and ccy != ''">ccy = #{ccy},</if>
<if test="balance != null and balance != ''">balance = #{balance},</if>
<if test="outflag != null and outflag != ''">outflag = #{outflag},</if>
<if test="bussseqno != null and bussseqno != ''">bussseqno = #{bussseqno},</if>
<if test="bnkprchseqno != null and bnkprchseqno != ''">bnkprchseqno = #{bnkprchseqno},</if>
<if test="trandate != null and trandate != ''">trandate = #{trandate},</if>
<if test="trantimep != null and trantimep != ''">trantimep = #{trantimep},</if>
<if test="yt != null and yt != ''">yt = #{yt},</if>
<if test="deprecptid != null and deprecptid != ''">deprecptid = #{deprecptid},</if>
<if test="trantpcdset != null and trantpcdset != ''">trantpcdset = #{trantpcdset},</if>
<if test="kpdmn != null and kpdmn != ''">kpdmn = #{kpdmn},</if>
<if test="zy != null and zy != ''">zy = #{zy},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="postscript != null and postscript != ''">postscript = #{postscript},</if>
<if test="rsrvfldnm != null and rsrvfldnm != ''">rsrvfldnm = #{rsrvfldnm},</if>
<if test="claimstatus != null and claimstatus != ''">claimstatus = #{claimstatus},</if>
<if test="claimbillcode != null and claimbillcode != ''">claimbillcode = #{claimbillcode},</if>
</trim>
where id = #{id}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType="com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity">
update mdm_kk_bankflow_gts
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.finance.flow.entity.MdmKkBankflowGtsEntity">
update mdm_kk_bankflow_gts set sts= 'N' ,modify_time =now()
<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="dataId != null and dataId != ''">and data_id = #{dataId}</if>
<if test="mdmUpId != null and mdmUpId != ''">and mdm_up_id = #{mdmUpId}</if>
<if test="transeqno1 != null and transeqno1 != ''">and transeqno1 = #{transeqno1}</if>
<if test="cnteracctname != null and cnteracctname != ''">and cnteracctname = #{cnteracctname}</if>
<if test="cnteracctno != null and cnteracctno != ''">and cnteracctno = #{cnteracctno}</if>
<if test="opnbnkinfo != null and opnbnkinfo != ''">and opnbnkinfo = #{opnbnkinfo}</if>
<if test="tranamt != null and tranamt != ''">and tranamt = #{tranamt}</if>
<if test="inamtlot != null and inamtlot != ''">and inamtlot = #{inamtlot}</if>
<if test="tfroutamt != null and tfroutamt != ''">and tfroutamt = #{tfroutamt}</if>
<if test="ccy != null and ccy != ''">and ccy = #{ccy}</if>
<if test="balance != null and balance != ''">and balance = #{balance}</if>
<if test="outflag != null and outflag != ''">and outflag = #{outflag}</if>
<if test="bussseqno != null and bussseqno != ''">and bussseqno = #{bussseqno}</if>
<if test="bnkprchseqno != null and bnkprchseqno != ''">and bnkprchseqno = #{bnkprchseqno}</if>
<if test="trandate != null and trandate != ''">and trandate = #{trandate}</if>
<if test="trantimep != null and trantimep != ''">and trantimep = #{trantimep}</if>
<if test="yt != null and yt != ''">and yt = #{yt}</if>
<if test="deprecptid != null and deprecptid != ''">and deprecptid = #{deprecptid}</if>
<if test="trantpcdset != null and trantpcdset != ''">and trantpcdset = #{trantpcdset}</if>
<if test="kpdmn != null and kpdmn != ''">and kpdmn = #{kpdmn}</if>
<if test="zy != null and zy != ''">and zy = #{zy}</if>
<if test="remark != null and remark != ''">and remark = #{remark}</if>
<if test="postscript != null and postscript != ''">and postscript = #{postscript}</if>
<if test="rsrvfldnm != null and rsrvfldnm != ''">and rsrvfldnm = #{rsrvfldnm}</if>
<if test="claimstatus != null and claimstatus != ''">and claimstatus = #{claimstatus}</if>
<if test="claimbillcode != null and claimbillcode != ''">and claimbillcode = #{claimbillcode}</if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete
from mdm_kk_bankflow_gts
where id = #{id}
</delete>
</mapper>

View File

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

View File

@ -0,0 +1,26 @@
package com.hzya.frame.finance.flow.service.impl;
import com.hzya.frame.finance.flow.entity.MdmKkBankflowGtsEntity;
import com.hzya.frame.finance.flow.dao.IMdmKkBankflowGtsDao;
import com.hzya.frame.finance.flow.service.IMdmKkBankflowGtsService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* 账户明细查询GTS(MdmKkBankflowGts)表服务实现类
*
* @author zydd
* @since 2025-08-22 09:36:27
*/
@Service
public class MdmKkBankflowGtsServiceImpl extends BaseService<MdmKkBankflowGtsEntity, String> implements IMdmKkBankflowGtsService {
private IMdmKkBankflowGtsDao mdmKkBankflowGtsDao;
@Autowired
public void setMdmKkBankflowGtsDao(IMdmKkBankflowGtsDao dao) {
this.mdmKkBankflowGtsDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,29 @@
package com.hzya.frame.finance.utils;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
import java.io.IOException;
/**
* Base64<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
public class Base64Util {
/**
* Base64<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
public static String encryptBASE64(byte[] key) {
return (new BASE64Encoder()).encodeBuffer(key);
}
/**
* Base64<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @throws IOException
*/
public static byte[] decryptBASE64(String key) throws IOException {
return (new BASE64Decoder()).decodeBuffer(key);
}
}

View File

@ -0,0 +1,12 @@
package com.hzya.frame.finance.utils;
public class CipherConstant {
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>AES<EFBFBD>ԳƼ<EFBFBD><EFBFBD><EFBFBD>
public static final String AES = "AES";
// public static final String AES_ALGORITHM = "AES";
public static final String AES_ALGORITHM = "AES/CTR/NoPadding";
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>RSA<EFBFBD>ǶԳƼ<EFBFBD><EFBFBD><EFBFBD>
public static final String RSA = "RSA";
// public static final String RSA_ALGORITHM = "RSA";
public static final String RSA_ALGORITHM = "RSA/ECB/OAEPWithSHA-256AndMGF1Padding";
}

View File

@ -0,0 +1,158 @@
package com.hzya.frame.finance.utils;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.zip.*;
/**
* ѹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
public class CompressUtil {
private static int buffSize = 1024;
/**
* deflaterCompress Ĭ<EFBFBD><EFBFBD>ѹ<EFBFBD><EFBFBD>
*
* @param source ԭ<EFBFBD><EFBFBD>
* @return
* @throws IOException
* @throws Exception
*/
public static String deflaterCompress(String source) throws Exception {
String value = null;
ByteArrayOutputStream bos = new ByteArrayOutputStream();
Deflater compressor = new Deflater();
try {
byte[] input = source.getBytes(StandardCharsets.UTF_8);
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹ<EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>
compressor.setLevel(Deflater.DEFAULT_COMPRESSION);
compressor.setInput(input);
compressor.finish();
final byte[] buf = new byte[buffSize];
while (!compressor.finished()) {
int count = compressor.deflate(buf);
bos.write(buf, 0, count);
}
value = Base64Util.encryptBASE64(bos.toByteArray());
} finally {
bos.close();
compressor.end();
}
return value;
}
/**
* deflaterDecompress Ĭ<EFBFBD>Ͻ<EFBFBD>ѹ
*
* @param source ѹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
* @return
* @throws IOException
* @throws @throws Exception
*/
public static String deflaterDecompress(String source) throws Exception {
String value = null;
ByteArrayOutputStream bos = new ByteArrayOutputStream();
Inflater decompressor = new Inflater();
try {
byte[] input = Base64Util.decryptBASE64(source);
decompressor.setInput(input);
final byte[] buf = new byte[buffSize];
while (!decompressor.finished()) {
int count = decompressor.inflate(buf);
bos.write(buf, 0, count);
}
value = new String(bos.toByteArray(), StandardCharsets.UTF_8);
} catch (IOException | DataFormatException e) {
throw new Exception("<EFBFBD><EFBFBD>ѹ<EFBFBD>" + e.getMessage());
} finally {
bos.close();
decompressor.end();
}
return value;
}
/**
* gzipCompress <EFBFBD><EFBFBD><EFBFBD><EFBFBD>gzipѹ<EFBFBD><EFBFBD>
*
* @param source ԭ<EFBFBD><EFBFBD>
* @return
* @throws IOException
* @throws Exception
*/
public static String gzipCompress(String source) throws Exception {
String value = null;
ByteArrayOutputStream out = null;
try {
out = new ByteArrayOutputStream();
GZIPOutputStream gzip = new GZIPOutputStream(out);
byte[] input = source.getBytes(StandardCharsets.UTF_8);
gzip.write(input);
gzip.close();
value = Base64Util.encryptBASE64(out.toByteArray());
} catch (IOException e) {
throw new Exception("ѹ<EFBFBD><EFBFBD><EFBFBD>" + e.getMessage());
} finally {
if (out != null) {
out.close();
}
}
return value;
}
/**
* gzipDecompress gzip<EFBFBD><EFBFBD>ѹ
*
* @param source ѹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
* @return
* @throws Exception
*/
public static String gzipDecompress(String source) throws Exception {
String value = null;
ByteArrayOutputStream out = null;
ByteArrayInputStream in = null;
try {
byte[] input = Base64Util.decryptBASE64(source);
out = new ByteArrayOutputStream();
in = new ByteArrayInputStream(input);
GZIPInputStream ungzip = new GZIPInputStream(in);
byte[] buffer = new byte[buffSize];
int n;
while ((n = ungzip.read(buffer)) >= 0) {
out.write(buffer, 0, n);
}
ungzip.close();
value = new String(out.toByteArray(), StandardCharsets.UTF_8);
} catch (IOException e) {
throw new Exception("ѹ<EFBFBD><EFBFBD><EFBFBD>" + e.getMessage());
} finally {
if (in != null) {
in.close();
}
if (out != null) {
out.close();
}
}
return value;
}
}

View File

@ -0,0 +1,99 @@
package com.hzya.frame.finance.utils;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.OAEPParameterSpec;
import javax.crypto.spec.PSource;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import java.security.spec.MGF1ParameterSpec;
/**
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
public class Decryption {
// RSA<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD>С
private static final int MAX_DECRYPT_BLOCK = 256;
/**
* symDecrypt <EFBFBD>Գƽ<EFBFBD><EFBFBD><EFBFBD>
*
* @param strkey <EFBFBD>Գ<EFBFBD><EFBFBD><EFBFBD>Կ
* @param src <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @return ԭ<EFBFBD><EFBFBD>
* @throws IOException
* @throws Exception
*/
public static String symDecrypt(String strkey, String src) throws Exception {
String target = null;
try {
Key key = KeysFactory.getSymKey(strkey);
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Cipher cipher = Cipher.getInstance(CipherConstant.AES_ALGORITHM);
IvParameterSpec iv = new IvParameterSpec(strkey.substring(0, 16).getBytes());
cipher.init(Cipher.DECRYPT_MODE, key, iv);
byte[] decodeResult = cipher.doFinal(Base64Util.decryptBASE64(src));
target = new String(decodeResult, StandardCharsets.UTF_8);
} catch (NoSuchAlgorithmException | NoSuchPaddingException | IllegalBlockSizeException | BadPaddingException | InvalidKeyException e) {
throw new Exception("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>" + e.getMessage());
}
return target;
}
/**
* priDecrypt ˽Կ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*
* @param priKey ˽Կ
* @param src <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @return ԭ<EFBFBD><EFBFBD>
* @throws IOException
* @throws Exception
*/
public static String priDecrypt(String priKey, String src) throws Exception {
String target = null;
ByteArrayOutputStream out = null;
try {
Key key = KeysFactory.getPrivateKey(priKey);
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Cipher cipher = Cipher.getInstance("RSA/ECB/OAEPWithSHA-256AndMGF1Padding");
cipher.init(Cipher.DECRYPT_MODE, key, new OAEPParameterSpec("SHA-256", "MGF1", new MGF1ParameterSpec("SHA-256"), PSource.PSpecified.DEFAULT));
byte[] data = Base64Util.decryptBASE64(src);
int inputLen = data.length;
out = new ByteArrayOutputStream();
int offSet = 0;
byte[] cache;
int i = 0;
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݷֶν<EFBFBD><EFBFBD><EFBFBD>
while (inputLen - offSet > 0) {
if (inputLen - offSet > MAX_DECRYPT_BLOCK) {
cache = cipher.doFinal(data, offSet, MAX_DECRYPT_BLOCK);
} else {
cache = cipher.doFinal(data, offSet, inputLen - offSet);
}
out.write(cache, 0, cache.length);
i++;
offSet = i * MAX_DECRYPT_BLOCK;
}
target = new String(out.toByteArray());
} catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IllegalBlockSizeException | BadPaddingException e) {
throw new Exception("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>" + e.getMessage());
} finally {
if (out != null) {
out.close();
}
}
return target;
}
}

View File

@ -0,0 +1,96 @@
package com.hzya.frame.finance.utils;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.OAEPParameterSpec;
import javax.crypto.spec.PSource;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import java.security.spec.MGF1ParameterSpec;
/**
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
public class Encryption {
// RSA<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD>С
private static final int MAX_ENCRYPT_BLOCK = 117;
/**
* symEncrypt <EFBFBD>ԳƼ<EFBFBD><EFBFBD><EFBFBD>
*
* @param strkey <EFBFBD>Գ<EFBFBD><EFBFBD><EFBFBD>Կ
* @param src ԭ<EFBFBD><EFBFBD>
* @return <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
public static String symEncrypt(String strkey, String src) throws Exception {
String target = null;
try {
Key key = KeysFactory.getSymKey(strkey);
//<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Cipher cipher = Cipher.getInstance(CipherConstant.AES_ALGORITHM);
IvParameterSpec iv = new IvParameterSpec(strkey.substring(0, 16).getBytes());
cipher.init(Cipher.ENCRYPT_MODE, key, iv);
byte[] encodeResult = cipher.doFinal(src.getBytes(StandardCharsets.UTF_8));
target = Base64Util.encryptBASE64(encodeResult);
} catch (NoSuchAlgorithmException | NoSuchPaddingException | UnsupportedEncodingException | InvalidKeyException | IllegalBlockSizeException | BadPaddingException e) {
throw new Exception("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>" + e.getMessage());
}
return target;
}
/**
* pubEncrypt <EFBFBD><EFBFBD>Կ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*
* @param pubKey <EFBFBD><EFBFBD>Կ
* @param src ԭ<EFBFBD><EFBFBD>
* @return <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @throws IOException
* @throws Exception
*/
public static String pubEncrypt(String pubKey, String src) throws Exception {
String target = null;
ByteArrayOutputStream out = null;
try {
Key key = KeysFactory.getPublicKey(pubKey);
Cipher cipher = Cipher.getInstance(CipherConstant.RSA_ALGORITHM);
cipher.init(Cipher.ENCRYPT_MODE, key,new OAEPParameterSpec("SHA-256", "MGF1", new MGF1ParameterSpec("SHA-256"), PSource.PSpecified.DEFAULT));
byte[] data = src.getBytes();
int inputLen = data.length;
out = new ByteArrayOutputStream();
int offSet = 0;
byte[] cache;
int i = 0;
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݷֶμ<EFBFBD><EFBFBD><EFBFBD>
while (inputLen - offSet > 0) {
if (inputLen - offSet > MAX_ENCRYPT_BLOCK) {
cache = cipher.doFinal(data, offSet, MAX_ENCRYPT_BLOCK);
} else {
cache = cipher.doFinal(data, offSet, inputLen - offSet);
}
out.write(cache, 0, cache.length);
i++;
offSet = i * MAX_ENCRYPT_BLOCK;
}
target = Base64Util.encryptBASE64(out.toByteArray());
} catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IllegalBlockSizeException | BadPaddingException e) {
throw new Exception("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>" + e.getMessage());
} finally {
if (out != null) {
out.close();
}
}
return target;
}
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.finance.utils;
import java.security.KeyPair;
/**
* KeyPairs
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*
*/
public class KeyPairs {
private KeyPair keyPair;
public KeyPairs(KeyPair keyPair){
this.keyPair = keyPair;
}
public String getPublicKey(){
return Base64Util.encryptBASE64(keyPair.getPublic().getEncoded());
}
public String getPrivateKey(){
return Base64Util.encryptBASE64(keyPair.getPrivate().getEncoded());
}
}

View File

@ -0,0 +1,101 @@
package com.hzya.frame.finance.utils;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import java.security.Key;
import java.security.KeyFactory;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
/**
* Key<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
public class KeysFactory {
/**
* buildAsymKey <EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>ǶԳ<EFBFBD><EFBFBD><EFBFBD>Կ
*
* @return KeyPair key<EFBFBD><EFBFBD>PublicKey<EFBFBD><EFBFBD>PrivateKey
* @throws NoSuchAlgorithmException
*/
public static KeyPairs buildAsymKey() throws Exception {
/* <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>Կ<EFBFBD><D4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(CipherConstant.RSA);
keyPairGenerator.initialize(2048, SecureRandomProxy.getRandomInstance());
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Կ */
return new KeyPairs(keyPairGenerator.generateKeyPair());
}
/**
* buildAsymKey <EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD>Գ<EFBFBD><EFBFBD><EFBFBD>Կ
*
* @return <EFBFBD>Գ<EFBFBD><EFBFBD><EFBFBD>Կ
* @throws NoSuchAlgorithmException
* @throws Exception
*/
public static String buildSymKey() throws Exception {
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD>Key
KeyGenerator keyGenerator = KeyGenerator.getInstance(CipherConstant.AES);
keyGenerator.init(256, SecureRandomProxy.getRandomInstance());
// ʹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֳ<EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ض<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Կ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܺ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ψһ<EFBFBD>̶<EFBFBD><EFBFBD>ġ<EFBFBD>
SecretKey secretKey = keyGenerator.generateKey();
return Base64Util.encryptBASE64(secretKey.getEncoded());
}
public static Key getPublicKey(String pubKey) throws Exception {
Key key = null;
try {
byte[] keyBytes = Base64Util.decryptBASE64(pubKey);
KeyFactory keyFactory = KeyFactory.getInstance(CipherConstant.RSA);
X509EncodedKeySpec x509KeySpec = new X509EncodedKeySpec(keyBytes);
key = keyFactory.generatePublic(x509KeySpec);
} catch (Exception e) {
throw new Exception("<EFBFBD><EFBFBD>Ч<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Կ " + e.getMessage());
}
return key;
}
public static Key getPrivateKey(String priKey) throws Exception {
Key key = null;
try {
byte[] keyBytes = Base64Util.decryptBASE64(priKey);
KeyFactory keyFactory = KeyFactory.getInstance(CipherConstant.RSA);
PKCS8EncodedKeySpec pkcs8KeySpec = new PKCS8EncodedKeySpec(keyBytes);
key = keyFactory.generatePrivate(pkcs8KeySpec);
} catch (Exception e) {
throw new Exception("<EFBFBD><EFBFBD>Ч<EFBFBD><EFBFBD>Կ " + e.getMessage());
}
return key;
}
public static Key getSymKey(String symKey) throws Exception {
Key key = null;
try {
byte[] keyBytes = Base64Util.decryptBASE64(symKey);
// Keyת<EFBFBD><EFBFBD>
key = new SecretKeySpec(keyBytes, CipherConstant.AES);
} catch (Exception e) {
throw new Exception("<EFBFBD><EFBFBD>Ч<EFBFBD><EFBFBD>Կ " + e.getMessage());
}
return key;
}
}

View File

@ -0,0 +1,45 @@
package com.hzya.frame.finance.utils;
public class ResultMessageUtil {
private boolean success;
private Object data;
private String code;
private String errorMessage;
public boolean isSuccess() {
return success;
}
public void setSuccess(boolean success) {
this.success = success;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
}

View File

@ -0,0 +1,52 @@
package com.hzya.frame.finance.utils;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
public class SHA256Util {
public static String getSHA256(String str, String key) {
//<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
byte[] salt = new byte[16];
try {
SecureRandom random = SecureRandom.getInstance("SHA1PRNG");
random.setSeed(key.getBytes());
random.nextBytes(salt);
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
}
String salt_string = Base64Util.encryptBASE64(salt);
// System.out.println("salt_String::" + salt_string);
return getSHA256(str + salt_string.replaceAll("\r|\n", ""));
}
private static String getSHA256(String str) {
MessageDigest messageDigest;
String encodestr = "";
try {
messageDigest = MessageDigest.getInstance("SHA-256");
messageDigest.update(str.getBytes(StandardCharsets.UTF_8));
encodestr = byte2Hex(messageDigest.digest());
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e);
}
return encodestr;
}
private static String byte2Hex(byte[] bytes) {
StringBuffer stringBuffer = new StringBuffer();
String temp = null;
for (int i = 0; i < bytes.length; i++) {
temp = Integer.toHexString(bytes[i] & 0xFF);
if (temp.length() == 1) {
// 1得到<EFBFBD>?<EFBFBD><EFBFBD>的进行补0操作
stringBuffer.append("0");
}
stringBuffer.append(temp);
}
return stringBuffer.toString();
}
}

View File

@ -0,0 +1,23 @@
package com.hzya.frame.finance.utils;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
/**
* @Describe
*/
public class SecureRandomProxy {
public static SecureRandom getRandomInstance() {
SecureRandom random = null;
try {
random = SecureRandom.getInstance("SHA1PRNG");
// random = SecureRandom.getInstance("NativePRNG");
// random = SecureRandom.getInstance("NativePRNGNonBlocking");
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
}
return random;
}
}

View File

@ -0,0 +1,33 @@
package com.hzya.frame.plugin.coco.vo;
import lombok.Data;
/**
* Created by zydd on 2025-08-21 14:59
* GTS数据VO
*/
@Data
public class GTSDataVO {
private String transeqno1;//交易流水号
private String cnteracctname;//对方户名
private String cnteracctno;//对方账户
private String opnbnkinfo;//对方开户行
private String tranamt;//交易金额
private String inamtlot;//转入金额
private String tfroutamt;//转出金额
private String ccy;//币种
private String balance;//余额
private String outflag;//转入/转出标志
private String bussseqno;//企业流水
private String bnkprchseqno;//银行流水
private String trandate;//交易日期
private String trantimep;//交易时间
private String yt;//用途 usage
private String deprecptid;//单据号
private String trantpcdset;//交易类型
private String kpdmn;//保留
private String zy;//摘要 abstract
private String remark;//备注
private String postscript;//附言
private String rsrvfldnm;//流水类型
}

View File

@ -0,0 +1,18 @@
package com.hzya.frame.plugin.coco.vo;
import lombok.Data;
/**
* Created by zydd on 2025-08-21 15:08
* GTS请求入参
*/
@Data
public class GTSRequestVO {
private String clientNo;
private String pyAcctNo;
private String startDate;//格式yyyyMMdd
private String endDate;//格式yyyyMMdd
private String tranSeqNo;
private String acptNum;//从1开始
private String queryNum;//最大100笔
}

View File

@ -0,0 +1,23 @@
package com.hzya.frame.plugin.coco.vo;
import lombok.Data;
/**
* Created by zydd on 2025-08-21 15:05
* GTS请求返回VO
*/
@Data
public class GTSResVO {
private String statusMsg;//返回信息
/**
* 0000-交易成功
* 0001-未知错误
* 0002-参数校验失败
*/
private String statusCode;//返回状态码
private String transNo;//交易流水号
private String returnCode;//返回代码
private String returnInfo;//返回信息
private String qryRsltNum;//本次查询笔数
private String totalNum;//总笔数
}

View File

@ -37,5 +37,6 @@ public class MdmDBQueryVO extends BaseEntity {
private String billstatus;
private String claimstatus;
private String ids;
private String outFlag;
}

View File

@ -263,7 +263,13 @@
<if test="prop9 !=null and propValue9 != null">and ${prop9} like concat('%', #{propValue9},'%')</if>
<if test="prop10 !=null and propValue10 != null">and ${prop10} like concat('%', #{propValue10},'%')</if>
<if test="claimstatus !=null and claimstatus != ''">and claimstatus = #{claimstatus}</if>
<if test="ids !=null and ids != ''">and id in (${ids})</if>
<if test="outFlag !=null and outFlag != ''">and outflag = #{outFlag}</if>
<if test="ids != null and ids != ''">
and id in
<foreach item="id" index="index" collection="ids.split(',')" open="(" separator="," close=")">
#{id}
</foreach>
</if>
</trim>
</select>

View File

@ -138,5 +138,4 @@ public class PushLogController extends DefaultController {
}
}

View File

@ -40,6 +40,15 @@ OA:
U8C:
usercode: WEB
password: 83f1ad3e7fa3617f1aae62ae7413c810
system: WEB
usercode: ??
password: ??
system: ??
#####不变参数--BIP
client_id: XONE
datasource: COCOCS
client_secret: d18726dcc8ad487facdc
pubKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAur9ViNXdgV9qTxoKuLRhXqhKcQ1A4Vl6AqM8me0W5iXSCW49X2jSdnp3kEL5CqiINqPoqwQjFSdBCDrYotvp8nmIW1iifpR+IRteDWmJ6H/bHOarZYCDz3rkYYqe6UOzjWnlx0xq3VPjRyJ51z/bL26c0GiQK6sLS9k960kfv3JwmyT1DFQzXTcRExqSAqDawyvwYfjmbwF8SX50CzIz5eXfVTsQhEZBcd6EIKJL37uo+7mBJ6QLpjLyXio51CdJoLRXmPfRrmY29yyTwLIDV0ujOM0u7SPOK+loXesNnSS9Qjwg9B++GZzZdg0smVd/MS0dVLnr541RzGuaK7GuFwIDAQAB
secret_level: L0
## 服务器地址
baseUrl: http://115.238.74.170:8089/

View File

@ -1,5 +1,5 @@
server:
port: 10086
port: 10084
servlet:
context-path: /kangarooDataCenterV3
localIP: 127.0.0.1

View File

@ -7,6 +7,7 @@ import com.alibaba.excel.write.metadata.holder.WriteSheetHolder;
import com.alibaba.excel.write.style.column.AbstractColumnWidthStyleStrategy;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.mdm.mdmModule.entity.vo.ExportExcelVO;
import com.hzya.frame.mdm.mdmModule.service.IMdmModuleService;
import com.hzya.frame.mdm.mdmModule.vo.ExcelTemplateVO;
import com.hzya.frame.mdm.mdmModule.vo.ImportExcelVO;
@ -81,7 +82,7 @@ public class ImportExcelController {
* 下载数据模版
*/
@RequestMapping(value = "generateDataTemplate",method = RequestMethod.POST)
public void generateDataTemplate(HttpServletResponse response,@RequestParam("mdmId") String mdmId,@RequestParam("dbId") String dbId) throws IOException {
public void generateDataTemplate(HttpServletResponse response,@RequestBody ExportExcelVO vo) throws IOException {
// 设置响应内容类型
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
response.setCharacterEncoding("utf-8");
@ -90,7 +91,7 @@ public class ImportExcelController {
String fileName = URLEncoder.encode("数据模版", "UTF-8").replaceAll("\\+", "%20");
response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx");
List<String> dataTemplate = iMdmService.selectFieldsByMdmId(mdmId,dbId);
List<String> dataTemplate = iMdmService.selectFieldsByMdmId(vo.getMdmId(),vo.getDbId());
// 动态表头信息
List<List<String>> headers = new ArrayList<>();
// 每个字符串作为一个表头列

View File

@ -0,0 +1,12 @@
package com.hzya.frame.mdm.mdmModule.entity.vo;
import lombok.Data;
/**
* Created by zydd on 2025-08-24 17:09
*/
@Data
public class ExportExcelVO {
private String mdmId;
private String dbId;
}

View File

@ -1435,10 +1435,11 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
}
// 校验dbId
List<MdmModuleDbEntity> all = mdmModuleDbDao.getAll();
for (MdmModuleDbEntity mdmModuleDbEntity : all) {
if (!entity.getDbId().equals(mdmModuleDbEntity.getId()))
return BaseResult.getFailureMessageEntity("数据库不存在");
MdmModuleDbEntity mdmModuleDbEntity1 = new MdmModuleDbEntity();
mdmModuleDbEntity1.setId(entity.getDbId());
List<MdmModuleDbEntity> mdmModuleDbEntityList = mdmModuleDbDao.query(mdmModuleDbEntity1);
if(mdmModuleDbEntityList.size()==0){
return BaseResult.getFailureMessageEntity("数据库不存在");
}
MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity();