OmsConfig.java 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. package com.emato.biz.config;
  2. import org.springframework.beans.factory.annotation.Value;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.context.annotation.PropertySource;
  5. import org.springframework.stereotype.Component;
  6. /**
  7. * 读取代码生成相关配置
  8. *
  9. * @author cadmin
  10. */
  11. @Component
  12. @ConfigurationProperties(prefix = "oms")
  13. @PropertySource(value = {"classpath:oms-config.yml"})
  14. public class OmsConfig {
  15. public static Integer querySize;
  16. // 商户编号
  17. public static String merchSn;
  18. // 商户名称
  19. public static String merchName;
  20. // 商户简称
  21. public static String merchShortName;
  22. // 第三方商户编号
  23. public static String thirdSn;
  24. // 生产环境密钥
  25. public static String md5Salt;
  26. // 查询商户信息接口
  27. public static String queryMerchantInfoUrl;
  28. // 查询第三方商户信息接口
  29. public static String queryThirdMerchantInfoUrl;
  30. // 查询库存接口
  31. public static String queryMngInveUrl;
  32. // 查询门店库存接口
  33. public static String queryShopMngInveUrl;
  34. // 查询入库单接口
  35. public static String queryInveReceiptUrl;
  36. // 查询入库单明细接口
  37. public static String queryInveReceiptDetailUrl;
  38. // 查询结转接口
  39. public static String queryAdjustmentUrl;
  40. // 查询结转明细接口
  41. public static String queryAdjustmentDetailUrl;
  42. // 查询出区接口
  43. public static String queryInveShipmentUrl;
  44. // 查询出区明细接口
  45. public static String queryInveShipmentDetailUrl;
  46. // 查询门店进货接口
  47. public static String queryShopInUrl;
  48. // 查询门店出场接口
  49. public static String queryShopOutUrl;
  50. // 查询门店转移接口
  51. public static String queryShopMoveUrl;
  52. public static String getMerchSn() {
  53. return merchSn;
  54. }
  55. @Value("${merchSn}")
  56. public void setMerchSn(String merchSn) {
  57. this.merchSn = merchSn;
  58. }
  59. public static String getMerchName() {
  60. return merchName;
  61. }
  62. @Value("${merchName}")
  63. public void setMerchName(String merchName) {
  64. this.merchName = merchName;
  65. }
  66. public static String getMerchShortName() {
  67. return merchShortName;
  68. }
  69. @Value("${merchShortName}")
  70. public void setMerchShortName(String merchShortName) {
  71. this.merchShortName = merchShortName;
  72. }
  73. public static String getThirdSn() {
  74. return thirdSn;
  75. }
  76. @Value("${thirdSn}")
  77. public void setThirdSn(String thirdSn) {
  78. this.thirdSn = thirdSn;
  79. }
  80. public static String getMd5Salt() {
  81. return md5Salt;
  82. }
  83. @Value("${md5Salt}")
  84. public void setMd5Salt(String md5Salt) {
  85. this.md5Salt = md5Salt;
  86. }
  87. public static String getQueryMerchantInfoUrl() {
  88. return queryMerchantInfoUrl;
  89. }
  90. @Value("${queryMerchantInfoUrl}")
  91. public void setQueryMerchantInfoUrl(String queryMerchantInfoUrl) {
  92. this.queryMerchantInfoUrl = queryMerchantInfoUrl;
  93. }
  94. public static String getQueryThirdMerchantInfoUrl() {
  95. return queryThirdMerchantInfoUrl;
  96. }
  97. @Value("${queryThirdMerchantInfoUrl}")
  98. public void setQueryThirdMerchantInfoUrl(String queryThirdMerchantInfoUrl) {
  99. this.queryThirdMerchantInfoUrl = queryThirdMerchantInfoUrl;
  100. }
  101. public static String getQueryMngInveUrl() {
  102. return queryMngInveUrl;
  103. }
  104. @Value("${queryMngInveUrl}")
  105. public void setQueryMngInveUrl(String queryMngInveUrl) {
  106. this.queryMngInveUrl = queryMngInveUrl;
  107. }
  108. public static String getQueryShopMngInveUrl() {
  109. return queryShopMngInveUrl;
  110. }
  111. @Value("${queryShopMngInveUrl}")
  112. public void setQueryShopMngInveUrl(String queryShopMngInveUrl) {
  113. this.queryShopMngInveUrl = queryShopMngInveUrl;
  114. }
  115. public static String getQueryInveReceiptUrl() {
  116. return queryInveReceiptUrl;
  117. }
  118. @Value("${queryInveReceiptUrl}")
  119. public void setQueryInveReceiptUrl(String queryInveReceiptUrl) {
  120. this.queryInveReceiptUrl = queryInveReceiptUrl;
  121. }
  122. public static String getQueryInveReceiptDetailUrl() {
  123. return queryInveReceiptDetailUrl;
  124. }
  125. @Value("${queryInveReceiptDetailUrl}")
  126. public void setQueryInveReceiptDetailUrl(String queryInveReceiptDetailUrl) {
  127. this.queryInveReceiptDetailUrl = queryInveReceiptDetailUrl;
  128. }
  129. public static String getQueryAdjustmentUrl() {
  130. return queryAdjustmentUrl;
  131. }
  132. @Value("${queryAdjustmentUrl}")
  133. public void setQueryAdjustmentUrl(String queryAdjustmentUrl) {
  134. this.queryAdjustmentUrl = queryAdjustmentUrl;
  135. }
  136. public static String getQueryAdjustmentDetailUrl() {
  137. return queryAdjustmentDetailUrl;
  138. }
  139. @Value("${queryAdjustmentDetailUrl}")
  140. public void setQueryAdjustmentDetailUrl(String queryAdjustmentDetailUrl) {
  141. this.queryAdjustmentDetailUrl = queryAdjustmentDetailUrl;
  142. }
  143. public static String getQueryInveShipmentUrl() {
  144. return queryInveShipmentUrl;
  145. }
  146. @Value("${queryInveShipmentUrl}")
  147. public void setQueryInveShipmentUrl(String queryInveShipmentUrl) {
  148. this.queryInveShipmentUrl = queryInveShipmentUrl;
  149. }
  150. public static String getQueryInveShipmentDetailUrl() {
  151. return queryInveShipmentDetailUrl;
  152. }
  153. @Value("${queryInveShipmentDetailUrl}")
  154. public void setQueryInveShipmentDetailUrl(String queryInveShipmentDetailUrl) {
  155. this.queryInveShipmentDetailUrl = queryInveShipmentDetailUrl;
  156. }
  157. public static String getQueryShopInUrl() {
  158. return queryShopInUrl;
  159. }
  160. @Value("${queryShopInUrl}")
  161. public void setQueryShopInUrl(String queryShopInUrl) {
  162. this.queryShopInUrl = queryShopInUrl;
  163. }
  164. public static String getQueryShopOutUrl() {
  165. return queryShopOutUrl;
  166. }
  167. @Value("${queryShopOutUrl}")
  168. public void setQueryShopOutUrl(String queryShopOutUrl) {
  169. this.queryShopOutUrl = queryShopOutUrl;
  170. }
  171. public static String getQueryShopMoveUrl() {
  172. return queryShopMoveUrl;
  173. }
  174. @Value("${queryShopMoveUrl}")
  175. public void setQueryShopMoveUrl(String queryShopMoveUrl) {
  176. this.queryShopMoveUrl = queryShopMoveUrl;
  177. }
  178. public static Integer getQuerySize() {
  179. return querySize;
  180. }
  181. @Value("${querySize}")
  182. public void setQuerySize(Integer querySize) {
  183. OmsConfig.querySize = querySize;
  184. }
  185. }