feat: 新增收款认领合规推送记录表

This commit is contained in:
刘泉佳
2026-10-29 11:19:25 +08:00
parent 3ddb2a3c07
commit 7569594dcb
3 changed files with 162 additions and 0 deletions
@@ -0,0 +1,96 @@
/**
* BladeX Commercial License Agreement
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
* <p>
* Use of this software is governed by the Commercial License Agreement
* obtained after purchasing a license from BladeX.
* <p>
* 1. This software is for development use only under a valid license
* from BladeX.
* <p>
* 2. Redistribution of this software's source code to any third party
* without a commercial license is strictly prohibited.
* <p>
* 3. Licensees may copyright their own code but cannot use segments
* from this software for such purposes. Copyright of this software
* remains with BladeX.
* <p>
* Using this software signifies agreement to this License, and the software
* must not be used for illegal purposes.
* <p>
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
* not liable for any claims arising from secondary or illegal development.
* <p>
* Author: Chill Zhuang (bladejava@qq.com)
*/
package org.springblade.transport.pojo.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import java.io.Serial;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* 收款认领合规推送记录实体类
* <p>
* C107-1 认领记录推送结果落库(认领主单 × 合同一条):成功持久化合规侧 fdId 供 C107-3 作废引用,
* 失败落推送标记与原因(仅记标记,不做定时重试)。
*
* @author Chill
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("blade_receipt_claim_hcs_record")
@Schema(description = "收款认领合规推送记录")
public class ReceiptClaimHcsRecord extends TenantEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
* 认领主单id
*/
@JsonSerialize(using = ToStringSerializer.class)
private Long receiptClaimId;
/**
* 收款流水id
*/
@JsonSerialize(using = ToStringSerializer.class)
private Long receiptFlowId;
/**
* 合同id
*/
@JsonSerialize(using = ToStringSerializer.class)
private Long contractId;
/**
* 合同编号
*/
private String contractNo;
/**
* 该认领主单分摊到本合同的认领金额
*/
private BigDecimal claimAmount;
/**
* 合规侧认领记录fdId(C107-1 返回,C107-3 作废必填引用)
*/
private String hcsClaimRecordFdId;
/**
* 推送状态(success推送成功/failed推送失败/voided已作废)
*/
private String pushStatus;
/**
* 推送失败原因(成功后清空)
*/
private String failReason;
/**
* 推送成功时间
*/
private LocalDateTime pushedTime;
}
@@ -0,0 +1,39 @@
/**
* BladeX Commercial License Agreement
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
* <p>
* Use of this software is governed by the Commercial License Agreement
* obtained after purchasing a license from BladeX.
* <p>
* 1. This software is for development use only under a valid license
* from BladeX.
* <p>
* 2. Redistribution of this software's source code to any third party
* without a commercial license is strictly prohibited.
* <p>
* 3. Licensees may copyright their own code but cannot use segments
* from this software for such purposes. Copyright of this software
* remains with BladeX.
* <p>
* Using this software signifies agreement to this License, and the software
* must not be used for illegal purposes.
* <p>
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
* not liable for any claims arising from secondary or illegal development.
* <p>
* Author: Chill Zhuang (bladejava@qq.com)
*/
package org.springblade.transport.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springblade.transport.pojo.entity.ReceiptClaimHcsRecord;
/**
* 收款认领合规推送记录 Mapper 接口
*
* @author Chill
*/
@Mapper
public interface ReceiptClaimHcsRecordMapper extends BaseMapper<ReceiptClaimHcsRecord> {
}
@@ -0,0 +1,27 @@
-- 收款认领合规推送记录表:C107-1 认领记录推送结果落库(认领主单 × 合同一条)
-- 成功持久化合规侧 fdId 供认领作废 C107-3 引用;失败落推送标记与原因(仅记标记,不做定时重试)
-- 配套改造:收款流水菜单数据源 A301-2 → A301-1,认领事务提交后推送合规链(C103-9/C107-1/C108-1)
CREATE TABLE IF NOT EXISTS `blade_receipt_claim_hcs_record` (
`id` bigint NOT NULL COMMENT '主键',
`tenant_id` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户ID',
`receipt_claim_id` bigint NOT NULL COMMENT '认领主单id',
`receipt_flow_id` bigint NOT NULL COMMENT '收款流水id',
`contract_id` bigint DEFAULT NULL COMMENT '合同id',
`contract_no` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '合同编号',
`claim_amount` decimal(19, 2) DEFAULT NULL COMMENT '该认领主单分摊到本合同的认领金额',
`hcs_claim_record_fd_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '合规侧认领记录fdId(C107-1返回,C107-3作废必填引用)',
`push_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '推送状态(success推送成功/failed推送失败/voided已作废)',
`fail_reason` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '推送失败原因(成功后清空)',
`pushed_time` datetime DEFAULT NULL COMMENT '推送成功时间',
`create_user` bigint DEFAULT NULL COMMENT '创建人',
`create_dept` bigint DEFAULT NULL COMMENT '创建部门',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_user` bigint DEFAULT NULL COMMENT '修改人',
`update_time` datetime DEFAULT NULL COMMENT '修改时间',
`status` int DEFAULT NULL COMMENT '状态',
`is_deleted` int DEFAULT 0 COMMENT '是否已删除',
PRIMARY KEY (`id`),
KEY `idx_receipt_claim_id` (`receipt_claim_id`),
KEY `idx_receipt_flow_id` (`receipt_flow_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='收款认领合规推送记录表';