From 7569594dcbaad41d2b54cb659c6c214648c91a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com> Date: Thu, 29 Oct 2026 11:19:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=94=B6=E6=AC=BE?= =?UTF-8?q?=E8=AE=A4=E9=A2=86=E5=90=88=E8=A7=84=E6=8E=A8=E9=80=81=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pojo/entity/ReceiptClaimHcsRecord.java | 96 +++++++++++++++++++ .../mapper/ReceiptClaimHcsRecordMapper.java | 39 ++++++++ ...lade_receipt_claim_hcs_record_20261028.sql | 27 ++++++ 3 files changed, 162 insertions(+) create mode 100644 blade-service-api/blade-transport-api/src/main/java/org/springblade/transport/pojo/entity/ReceiptClaimHcsRecord.java create mode 100644 blade-service/blade-transport/src/main/java/org/springblade/transport/mapper/ReceiptClaimHcsRecordMapper.java create mode 100644 doc/sql/transport/lqj/20261028/01_blade_receipt_claim_hcs_record_20261028.sql diff --git a/blade-service-api/blade-transport-api/src/main/java/org/springblade/transport/pojo/entity/ReceiptClaimHcsRecord.java b/blade-service-api/blade-transport-api/src/main/java/org/springblade/transport/pojo/entity/ReceiptClaimHcsRecord.java new file mode 100644 index 00000000..265eb54e --- /dev/null +++ b/blade-service-api/blade-transport-api/src/main/java/org/springblade/transport/pojo/entity/ReceiptClaimHcsRecord.java @@ -0,0 +1,96 @@ +/** + * BladeX Commercial License Agreement + * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved. + *

+ * Use of this software is governed by the Commercial License Agreement + * obtained after purchasing a license from BladeX. + *

+ * 1. This software is for development use only under a valid license + * from BladeX. + *

+ * 2. Redistribution of this software's source code to any third party + * without a commercial license is strictly prohibited. + *

+ * 3. Licensees may copyright their own code but cannot use segments + * from this software for such purposes. Copyright of this software + * remains with BladeX. + *

+ * Using this software signifies agreement to this License, and the software + * must not be used for illegal purposes. + *

+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is + * not liable for any claims arising from secondary or illegal development. + *

+ * 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; + +/** + * 收款认领合规推送记录实体类 + *

+ * 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; +} diff --git a/blade-service/blade-transport/src/main/java/org/springblade/transport/mapper/ReceiptClaimHcsRecordMapper.java b/blade-service/blade-transport/src/main/java/org/springblade/transport/mapper/ReceiptClaimHcsRecordMapper.java new file mode 100644 index 00000000..feac846d --- /dev/null +++ b/blade-service/blade-transport/src/main/java/org/springblade/transport/mapper/ReceiptClaimHcsRecordMapper.java @@ -0,0 +1,39 @@ +/** + * BladeX Commercial License Agreement + * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved. + *

+ * Use of this software is governed by the Commercial License Agreement + * obtained after purchasing a license from BladeX. + *

+ * 1. This software is for development use only under a valid license + * from BladeX. + *

+ * 2. Redistribution of this software's source code to any third party + * without a commercial license is strictly prohibited. + *

+ * 3. Licensees may copyright their own code but cannot use segments + * from this software for such purposes. Copyright of this software + * remains with BladeX. + *

+ * Using this software signifies agreement to this License, and the software + * must not be used for illegal purposes. + *

+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is + * not liable for any claims arising from secondary or illegal development. + *

+ * 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 { +} diff --git a/doc/sql/transport/lqj/20261028/01_blade_receipt_claim_hcs_record_20261028.sql b/doc/sql/transport/lqj/20261028/01_blade_receipt_claim_hcs_record_20261028.sql new file mode 100644 index 00000000..457ec803 --- /dev/null +++ b/doc/sql/transport/lqj/20261028/01_blade_receipt_claim_hcs_record_20261028.sql @@ -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='收款认领合规推送记录表';