feat: HCS立项与合同数据层(实体合规字段组/合同风险留痕字段/校验留痕表/transport接入hcs-api依赖)
This commit is contained in:
@@ -51,6 +51,10 @@
|
||||
<groupId>org.springblade</groupId>
|
||||
<artifactId>blade-bfi-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springblade</groupId>
|
||||
<artifactId>blade-hcs-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||||
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
/**
|
||||
* 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.constant;
|
||||
|
||||
/**
|
||||
* HCS(合同合规系统)同步常量(TMS 业务侧)
|
||||
* <p>
|
||||
* 命名照 {@link KingdeeBfiConstant} 惯例;与客户端模块 org.springblade.hcs.constant.HcsConstant 区分。
|
||||
*
|
||||
* @author Chill
|
||||
*/
|
||||
public final class HcsSyncConstant {
|
||||
|
||||
/**
|
||||
* 同步状态:待同步
|
||||
*/
|
||||
public static final String HCS_STATUS_UNSYNCED = "unsynced";
|
||||
|
||||
/**
|
||||
* 同步状态:已同步
|
||||
*/
|
||||
public static final String HCS_STATUS_SYNCED = "synced";
|
||||
|
||||
/**
|
||||
* 同步状态:同步失败
|
||||
*/
|
||||
public static final String HCS_STATUS_FAILED = "failed";
|
||||
|
||||
/**
|
||||
* 推送业务类型:项目立项(C102)
|
||||
*/
|
||||
public static final String BIZ_TYPE_PROJECT = "project";
|
||||
|
||||
/**
|
||||
* 推送业务类型:合同(C103)
|
||||
*/
|
||||
public static final String BIZ_TYPE_CONTRACT = "contract";
|
||||
|
||||
/**
|
||||
* 校验类型:客商风险(C101-1)
|
||||
*/
|
||||
public static final String CHECK_TYPE_RISK = "risk";
|
||||
|
||||
/**
|
||||
* 校验类型:额度(C106-1,P3 付款链使用)
|
||||
*/
|
||||
public static final String CHECK_TYPE_CREDIT = "credit";
|
||||
|
||||
/**
|
||||
* 校验结果:通过
|
||||
*/
|
||||
public static final String CHECK_RESULT_PASS = "pass";
|
||||
|
||||
/**
|
||||
* 校验结果:不通过(黑名单)
|
||||
*/
|
||||
public static final String CHECK_RESULT_FAIL = "fail";
|
||||
|
||||
/**
|
||||
* 校验结果:跳过(客商编号反查不到等)
|
||||
*/
|
||||
public static final String CHECK_RESULT_SKIP = "skip";
|
||||
|
||||
// ==================== Redis 缓存 key(照 BFI blade:third: 前缀惯例) ====================
|
||||
|
||||
/**
|
||||
* 主数据缓存:合同模板列表
|
||||
*/
|
||||
public static final String MASTER_CACHE_TEMPLATES = "blade:third:hcs:master:templates";
|
||||
|
||||
/**
|
||||
* 主数据缓存:合同分类列表
|
||||
*/
|
||||
public static final String MASTER_CACHE_CATEGORIES = "blade:third:hcs:master:categories";
|
||||
|
||||
/**
|
||||
* 主数据缓存:币种列表
|
||||
*/
|
||||
public static final String MASTER_CACHE_CURRENCIES = "blade:third:hcs:master:currencies";
|
||||
|
||||
/**
|
||||
* 附件映射缓存 key 前缀(hcs:att:{attachmentKey},TMS 附件元数据键 → 合规附件ID)
|
||||
*/
|
||||
public static final String ATTACHMENT_CACHE_KEY_PREFIX = "blade:third:hcs:att:";
|
||||
|
||||
/**
|
||||
* 附件映射缓存 TTL(天),重复上传仅浪费存储无业务风险,故不做持久化映射表(设计文档 §6)
|
||||
*/
|
||||
public static final long ATTACHMENT_CACHE_TTL_DAYS = 7L;
|
||||
|
||||
/**
|
||||
* 推送任务分布式锁 key(多实例部署防重扫)
|
||||
*/
|
||||
public static final String PUSH_TASK_LOCK_KEY = "blade:third:hcs:push:task:lock";
|
||||
|
||||
private HcsSyncConstant() {
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* 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.HcsContractCheckLog;
|
||||
|
||||
/**
|
||||
* HCS 风险/额度校验留痕 Mapper
|
||||
*
|
||||
* @author Chill
|
||||
*/
|
||||
@Mapper
|
||||
public interface HcsContractCheckLogMapper extends BaseMapper<HcsContractCheckLog> {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user