:refactor: HCS推送开关配置统一收敛至HcsProperties并支持Nacos动态刷新
This commit is contained in:
+36
@@ -152,6 +152,10 @@ public class HcsProperties {
|
||||
|
||||
@Data
|
||||
public static class Push {
|
||||
/**
|
||||
* 审批通过即时推送总开关(thirdParty.hcs.push.immediate-enabled,默认关闭灰度打开;关闭时完全回落扫描链路)
|
||||
*/
|
||||
private boolean immediateEnabled = false;
|
||||
/**
|
||||
* 每类单据单轮扫描批量(全局)
|
||||
*/
|
||||
@@ -160,6 +164,38 @@ public class HcsProperties {
|
||||
* 推送失败自动重试上限,超限仅人工重推(全局)
|
||||
*/
|
||||
private int maxRetry = 5;
|
||||
/**
|
||||
* 项目立项(C102)推送开关(thirdParty.hcs.push.project.sync-enabled,默认关闭,灰度打开)
|
||||
*/
|
||||
private Task project = new Task();
|
||||
/**
|
||||
* 合同(C103)推送开关(thirdParty.hcs.push.contract.sync-enabled,默认关闭,灰度打开)
|
||||
*/
|
||||
private Task contract = new Task();
|
||||
/**
|
||||
* 付款链(C106 特批 / C108 履约记录)推送开关(thirdParty.hcs.push.payment.sync-enabled,默认关闭,灰度打开)
|
||||
*/
|
||||
private Task payment = new Task();
|
||||
/**
|
||||
* 开票登记(C111)推送开关(thirdParty.hcs.push.invoice-application.sync-enabled,默认关闭,灰度打开)
|
||||
*/
|
||||
private Task invoiceApplication = new Task();
|
||||
/**
|
||||
* 收票单(C109)推送开关(thirdParty.hcs.push.invoice-receipt.sync-enabled,默认关闭,灰度打开)
|
||||
*/
|
||||
private Task invoiceReceipt = new Task();
|
||||
}
|
||||
|
||||
/**
|
||||
* 单类单据推送任务配置(thirdParty.hcs.push.{bizType}.sync-enabled;
|
||||
* cron 有代码默认值错峰每 5 分钟,保持 @Scheduled 占位符形式,未纳入本类)
|
||||
*/
|
||||
@Data
|
||||
public static class Task {
|
||||
/**
|
||||
* 推送开关,默认关闭(灰度打开)
|
||||
*/
|
||||
private boolean syncEnabled = false;
|
||||
}
|
||||
|
||||
@Data
|
||||
|
||||
Reference in New Issue
Block a user