123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- package com.emato.biz.config;
- import org.springframework.beans.factory.annotation.Value;
- import org.springframework.boot.context.properties.ConfigurationProperties;
- import org.springframework.context.annotation.PropertySource;
- import org.springframework.stereotype.Component;
- /**
- * 读取代码生成相关配置
- *
- * @author cadmin
- */
- @Component
- @ConfigurationProperties(prefix = "oms")
- @PropertySource(value = {"classpath:oms-config.yml"})
- public class OmsConfig {
- public static Integer querySize;
- // 商户编号
- public static String merchSn;
- // 商户名称
- public static String merchName;
- // 商户简称
- public static String merchShortName;
- // 第三方商户编号
- public static String thirdSn;
- // 生产环境密钥
- public static String md5Salt;
- // 查询商户信息接口
- public static String queryMerchantInfoUrl;
- // 查询第三方商户信息接口
- public static String queryThirdMerchantInfoUrl;
- // 查询库存接口
- public static String queryMngInveUrl;
- // 查询门店库存接口
- public static String queryShopMngInveUrl;
- // 查询入库单接口
- public static String queryInveReceiptUrl;
- // 查询入库单明细接口
- public static String queryInveReceiptDetailUrl;
- // 查询结转接口
- public static String queryAdjustmentUrl;
- // 查询结转明细接口
- public static String queryAdjustmentDetailUrl;
- // 查询出区接口
- public static String queryInveShipmentUrl;
- // 查询出区明细接口
- public static String queryInveShipmentDetailUrl;
- // 查询门店进货接口
- public static String queryShopInUrl;
- // 查询门店出场接口
- public static String queryShopOutUrl;
- // 查询门店转移接口
- public static String queryShopMoveUrl;
- public static String getMerchSn() {
- return merchSn;
- }
- @Value("${merchSn}")
- public void setMerchSn(String merchSn) {
- this.merchSn = merchSn;
- }
- public static String getMerchName() {
- return merchName;
- }
- @Value("${merchName}")
- public void setMerchName(String merchName) {
- this.merchName = merchName;
- }
- public static String getMerchShortName() {
- return merchShortName;
- }
- @Value("${merchShortName}")
- public void setMerchShortName(String merchShortName) {
- this.merchShortName = merchShortName;
- }
- public static String getThirdSn() {
- return thirdSn;
- }
- @Value("${thirdSn}")
- public void setThirdSn(String thirdSn) {
- this.thirdSn = thirdSn;
- }
- public static String getMd5Salt() {
- return md5Salt;
- }
- @Value("${md5Salt}")
- public void setMd5Salt(String md5Salt) {
- this.md5Salt = md5Salt;
- }
- public static String getQueryMerchantInfoUrl() {
- return queryMerchantInfoUrl;
- }
- @Value("${queryMerchantInfoUrl}")
- public void setQueryMerchantInfoUrl(String queryMerchantInfoUrl) {
- this.queryMerchantInfoUrl = queryMerchantInfoUrl;
- }
- public static String getQueryThirdMerchantInfoUrl() {
- return queryThirdMerchantInfoUrl;
- }
- @Value("${queryThirdMerchantInfoUrl}")
- public void setQueryThirdMerchantInfoUrl(String queryThirdMerchantInfoUrl) {
- this.queryThirdMerchantInfoUrl = queryThirdMerchantInfoUrl;
- }
- public static String getQueryMngInveUrl() {
- return queryMngInveUrl;
- }
- @Value("${queryMngInveUrl}")
- public void setQueryMngInveUrl(String queryMngInveUrl) {
- this.queryMngInveUrl = queryMngInveUrl;
- }
- public static String getQueryShopMngInveUrl() {
- return queryShopMngInveUrl;
- }
- @Value("${queryShopMngInveUrl}")
- public void setQueryShopMngInveUrl(String queryShopMngInveUrl) {
- this.queryShopMngInveUrl = queryShopMngInveUrl;
- }
- public static String getQueryInveReceiptUrl() {
- return queryInveReceiptUrl;
- }
- @Value("${queryInveReceiptUrl}")
- public void setQueryInveReceiptUrl(String queryInveReceiptUrl) {
- this.queryInveReceiptUrl = queryInveReceiptUrl;
- }
- public static String getQueryInveReceiptDetailUrl() {
- return queryInveReceiptDetailUrl;
- }
- @Value("${queryInveReceiptDetailUrl}")
- public void setQueryInveReceiptDetailUrl(String queryInveReceiptDetailUrl) {
- this.queryInveReceiptDetailUrl = queryInveReceiptDetailUrl;
- }
- public static String getQueryAdjustmentUrl() {
- return queryAdjustmentUrl;
- }
- @Value("${queryAdjustmentUrl}")
- public void setQueryAdjustmentUrl(String queryAdjustmentUrl) {
- this.queryAdjustmentUrl = queryAdjustmentUrl;
- }
- public static String getQueryAdjustmentDetailUrl() {
- return queryAdjustmentDetailUrl;
- }
- @Value("${queryAdjustmentDetailUrl}")
- public void setQueryAdjustmentDetailUrl(String queryAdjustmentDetailUrl) {
- this.queryAdjustmentDetailUrl = queryAdjustmentDetailUrl;
- }
- public static String getQueryInveShipmentUrl() {
- return queryInveShipmentUrl;
- }
- @Value("${queryInveShipmentUrl}")
- public void setQueryInveShipmentUrl(String queryInveShipmentUrl) {
- this.queryInveShipmentUrl = queryInveShipmentUrl;
- }
- public static String getQueryInveShipmentDetailUrl() {
- return queryInveShipmentDetailUrl;
- }
- @Value("${queryInveShipmentDetailUrl}")
- public void setQueryInveShipmentDetailUrl(String queryInveShipmentDetailUrl) {
- this.queryInveShipmentDetailUrl = queryInveShipmentDetailUrl;
- }
- public static String getQueryShopInUrl() {
- return queryShopInUrl;
- }
- @Value("${queryShopInUrl}")
- public void setQueryShopInUrl(String queryShopInUrl) {
- this.queryShopInUrl = queryShopInUrl;
- }
- public static String getQueryShopOutUrl() {
- return queryShopOutUrl;
- }
- @Value("${queryShopOutUrl}")
- public void setQueryShopOutUrl(String queryShopOutUrl) {
- this.queryShopOutUrl = queryShopOutUrl;
- }
- public static String getQueryShopMoveUrl() {
- return queryShopMoveUrl;
- }
- @Value("${queryShopMoveUrl}")
- public void setQueryShopMoveUrl(String queryShopMoveUrl) {
- this.queryShopMoveUrl = queryShopMoveUrl;
- }
- public static Integer getQuerySize() {
- return querySize;
- }
- @Value("${querySize}")
- public void setQuerySize(Integer querySize) {
- OmsConfig.querySize = querySize;
- }
- }
|