统一修改ruoyi->bms
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user