统一修改ruoyi->bms

This commit is contained in:
caojia
2026-09-28 10:02:38 +08:00
parent 341afc4111
commit 0408b6c35e
639 changed files with 2776 additions and 2807 deletions
@@ -0,0 +1,110 @@
package com.bms.price.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* Billing task MQ + Oracle upstream order settings.
*/
@Component
@ConfigurationProperties(prefix = "bms.billing")
public class BillingProperties
{
/** local = Spring event; redis = Redis list queue */
private String mqMode = "redis";
private String mqQueueKey = "bms:billing:task";
private boolean consumerEnabled = true;
/** Messages popped per scheduled tick (redis mode) */
private int consumerBatchSize = 32;
/** Concurrent processTask threads (redis mode) */
private int consumerThreads = 8;
private Oracle oracle = new Oracle();
public String getMqMode()
{
return mqMode;
}
public void setMqMode(String mqMode)
{
this.mqMode = mqMode;
}
public String getMqQueueKey()
{
return mqQueueKey;
}
public void setMqQueueKey(String mqQueueKey)
{
this.mqQueueKey = mqQueueKey;
}
public boolean isConsumerEnabled()
{
return consumerEnabled;
}
public void setConsumerEnabled(boolean consumerEnabled)
{
this.consumerEnabled = consumerEnabled;
}
public int getConsumerBatchSize()
{
return consumerBatchSize;
}
public void setConsumerBatchSize(int consumerBatchSize)
{
this.consumerBatchSize = consumerBatchSize;
}
public int getConsumerThreads()
{
return consumerThreads;
}
public void setConsumerThreads(int consumerThreads)
{
this.consumerThreads = consumerThreads;
}
public Oracle getOracle()
{
return oracle;
}
public void setOracle(Oracle oracle)
{
this.oracle = oracle;
}
public static class Oracle
{
/** Upstream main-order table name on SLAVE/Oracle DS */
private String orderTable = "WEISHI_USER.TAB_ORDER";
/** Optional default product when Oracle row has no PRODUCT_CODE */
private String defaultProductCode = "";
public String getOrderTable()
{
return orderTable;
}
public void setOrderTable(String orderTable)
{
this.orderTable = orderTable;
}
public String getDefaultProductCode()
{
return defaultProductCode;
}
public void setDefaultProductCode(String defaultProductCode)
{
this.defaultProductCode = defaultProductCode;
}
}
}