BusinessEnum.java 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. package com.slibra.common.enums;
  2. public class BusinessEnum {
  3. /**
  4. * 登录的用户类型【前后台隔离】: 0后端 1前端 2小程序
  5. */
  6. public enum LoginUserTypeEnum
  7. {
  8. front(0, "前端"),
  9. background(1, "后端"),
  10. applet(2, "小程序"),
  11. ;
  12. private final int code;
  13. private final String msg;
  14. LoginUserTypeEnum(int code, String msg)
  15. {
  16. this.code = code;
  17. this.msg = msg;
  18. }
  19. public int getCode()
  20. {
  21. return code;
  22. }
  23. public String getMsg()
  24. {
  25. return msg;
  26. }
  27. }
  28. /**
  29. * 告警类型枚举
  30. */
  31. public enum WarningCategoryEnum
  32. {
  33. //水质报警
  34. CS_COD("出水COD", "出水COD"),
  35. CS_SS("出水SS", "出水SS"),
  36. CS_ZD("出水总氮", "出水总氮"),
  37. CS_ZL("出水总磷", "出水总磷"),
  38. CS_AD("出水氨氮", "出水氨氮"),
  39. JS_COD("进水COD", "进水COD"),
  40. JS_SS("进水SS", "进水SS"),
  41. JS_ZD("进水总氮", "进水总氮"),
  42. JS_ZL("进水总磷", "进水总磷"),
  43. JS_AD("进水氨氮", "进水氨氮"),
  44. //----2024年7月11日17:25:11 新增的 化验室报警类型----
  45. ROBOT_XSY_1("#1好氧硝酸盐", "#1好氧硝酸盐"),
  46. ROBOT_XSY_2("#2好氧硝酸盐", "#2好氧硝酸盐"),
  47. ROBOT_ECCZLSY("二沉池正磷酸盐", "二沉池正磷酸盐"),
  48. ROBOT_ANDAN_1("#1氨氮", "#1氨氮"),
  49. ROBOT_ANDAN_2("#2氨氮", "#2氨氮"),
  50. //2024年7月26日11:11:06 氨氮报警(两个池子)合成一个出水氨氮 CS_AD
  51. //生化报警
  52. NHLB("内回流比", "内回流比"),
  53. WHLB("外回流比", "外回流比"),
  54. WNND("污泥浓度", "污泥浓度"),
  55. WNFH("污泥负荷", "污泥负荷"),
  56. TDB("碳氮比", "碳氮比"),
  57. TLB("碳磷比", "碳磷比"),
  58. BODCODB("BOD比COD", "BOD比COD"),
  59. YYQDO("厌氧区DO", "厌氧区DO"),
  60. QYQDO("缺氧区DO", "缺氧区DO"),
  61. HYQDO_ONE("好氧区DO#1", "好氧区DO#1"),
  62. HYQDO_TWO("好氧区DO#2", "好氧区DO#2"),
  63. QSB("气水比", "气水比"),
  64. CS_COD_YC("出水COD", "出水COD"),
  65. CS_SS_YC("出水SS", "出水SS"),
  66. CS_TN_YC("出水总氮", "出水总氮"),
  67. CS_TP_YC("二沉池正磷酸盐", "二沉池正磷酸盐"),
  68. CS_AD_YC("出水氨氮", "出水氨氮"),
  69. CS_XSY_1_YC("1号好氧池硝酸盐", "1号好氧池硝酸盐"),
  70. CS_XSY_2_YC("2号好氧池硝酸盐", "2号好氧池硝酸盐"),
  71. WNND_MLSS_1("污泥浓度MLSS#1", "污泥浓度MLSS#1"),
  72. WNND_MLSS_2("污泥浓度MLSS#2", "污泥浓度MLSS#2"),
  73. HFXWNNDZB("挥发性污泥浓度占比(MLVSS/MLSS)", "挥发性污泥浓度占比(MLVSS/MLSS)"),
  74. ECC_BMFH("二沉池表面负荷", "二沉池表面负荷"),
  75. ECC_GTFH("二沉池固体负荷", "二沉池固体负荷"),
  76. FCXSL("反冲洗水量", "反冲洗水量"),
  77. QYCXSY_1("#1缺氧硝酸盐 ", "#1缺氧硝酸盐"),
  78. QYCXSY_2("#2缺氧硝酸盐", "#2缺氧硝酸盐"),
  79. QYAD_1("#1缺氧氨氮", "#1缺氧氨氮"),
  80. QYAD_2("#2缺氧氨氮", "#2缺氧氨氮"),
  81. ;
  82. private final String code;
  83. private final String msg;
  84. WarningCategoryEnum(String code, String msg)
  85. {
  86. this.code = code;
  87. this.msg = msg;
  88. }
  89. public String getCode()
  90. {
  91. return code;
  92. }
  93. public String getMsg()
  94. {
  95. return msg;
  96. }
  97. }
  98. /**
  99. * 大模型返回结果类型枚举
  100. */
  101. public enum BigModelBizEnum
  102. {
  103. OK("OK", "正常结束"),
  104. ERROR("ERROR", "出现错误"),
  105. DECISION_ALERT("DECISION_ALERT", "弹窗类型"),
  106. DECISION_DEBUGGER("DECISION_DEBUGGER", "中间过程"),
  107. DECISION_REPORT("DECISION_REPORT", "最终的输出结果"),
  108. DECISION_SIMULATE("DECISION_SIMULATE", "仿真推荐值"),
  109. ;
  110. private final String code;
  111. private final String msg;
  112. BigModelBizEnum(String code, String msg)
  113. {
  114. this.code = code;
  115. this.msg = msg;
  116. }
  117. public String getCode()
  118. {
  119. return code;
  120. }
  121. public String getMsg()
  122. {
  123. return msg;
  124. }
  125. }
  126. /**
  127. *
  128. * 展示单位相关的枚举
  129. *
  130. */
  131. public enum BigModelUnitEnum
  132. {
  133. PERCENT("%", "%"),
  134. MG_L("mg/L", "mg/L"),
  135. KGBOD_KGMLSS_D("kgBOD/(kgMLSS·d)", "kgBOD/(kgMLSS·d)"),
  136. M3_M3("m³/m³", "m³/m³"),
  137. M3_M2_H("m³/(m²·h)", "m³/(m²·h)"),
  138. KG_M2_D("kg/(m²·d)", "kg/(m²·d)"),
  139. NULL("", ""),
  140. ;
  141. private final String code;
  142. private final String msg;
  143. BigModelUnitEnum(String code, String msg)
  144. {
  145. this.code = code;
  146. this.msg = msg;
  147. }
  148. public String getCode()
  149. {
  150. return code;
  151. }
  152. public String getMsg()
  153. {
  154. return msg;
  155. }
  156. }
  157. /**
  158. * 预测调用参数枚举
  159. */
  160. public enum BigModelForecastEnum
  161. {
  162. ZLSY("zlsy", "zlsy"),
  163. XSY1("xsy1", "xsy1"),
  164. XSY2("xsy2", "xsy2"),
  165. TN("tn", "tn"),
  166. COD("cod", "cod"),
  167. SS("ss", "ss"),
  168. NH3("nh3", "nh3"),
  169. TP("tp", "tp"),
  170. QYXSY1("qyxsy1", "qyxsy1"),
  171. QYXSY2("qyxsy2", "qyxsy2"),
  172. QYNH31("qynh31", "qynh31"),
  173. QYNH32("qynh32", "qynh32"),
  174. ;
  175. private final String code;
  176. private final String msg;
  177. BigModelForecastEnum(String code, String msg)
  178. {
  179. this.code = code;
  180. this.msg = msg;
  181. }
  182. public String getCode()
  183. {
  184. return code;
  185. }
  186. public String getMsg()
  187. {
  188. return msg;
  189. }
  190. }
  191. /**
  192. *
  193. * 区分来源的报警类型枚举
  194. *
  195. */
  196. public enum BigModelWarningTypeRemarkEnum
  197. {
  198. ZERO_SZ_WARNING("0", "水质报警"),
  199. ONE_SH_WARNING("1", "生化报警"),
  200. TWO_YC_WARNING("2", "预测预警"),
  201. THREE_HYS_WARNING("3", "化验室报警"),
  202. ;
  203. private final String code;
  204. private final String msg;
  205. BigModelWarningTypeRemarkEnum(String code, String msg)
  206. {
  207. this.code = code;
  208. this.msg = msg;
  209. }
  210. public String getCode()
  211. {
  212. return code;
  213. }
  214. public String getMsg()
  215. {
  216. return msg;
  217. }
  218. }
  219. /**
  220. *
  221. * 智能投药请求参数枚举
  222. * * 0:进水流量
  223. * * 1:#1好氧池硝酸盐
  224. * * 2:#2好氧池硝酸盐
  225. * * 3:#1缺氧池氨氮
  226. * * 4:#2缺氧池氨氮
  227. * * 5:进水COD
  228. * * 6:进水总氮
  229. * * 7:碳源投加量
  230. *
  231. */
  232. public enum SmartAddMedicineReqEnum
  233. {
  234. JSLL(0, "进水流量"),
  235. HY_1_XSY(1, "#1好氧池硝酸盐"),
  236. HY_2_XSY(2, "#2好氧池硝酸盐"),
  237. QY_1_AD(3, "#1缺氧池氨氮"),
  238. QY_2_AD(4, "#2缺氧池氨氮"),
  239. JSCOD(5, "进水COD"),
  240. JSTN(6, "进水总氮"),
  241. TYTJL(7, "碳源投加量"),
  242. ;
  243. private final int code;
  244. private final String msg;
  245. SmartAddMedicineReqEnum(int code, String msg)
  246. {
  247. this.code = code;
  248. this.msg = msg;
  249. }
  250. public int getCode()
  251. {
  252. return code;
  253. }
  254. public String getMsg()
  255. {
  256. return msg;
  257. }
  258. }
  259. /**
  260. *
  261. * 数据来源枚举
  262. *
  263. */
  264. public enum DataSourceEnum
  265. {
  266. YB("YB", "仪表"),
  267. HY("HY", "化验"),
  268. YC("YC", "预测"),
  269. ;
  270. private final String code;
  271. private final String msg;
  272. DataSourceEnum(String code, String msg)
  273. {
  274. this.code = code;
  275. this.msg = msg;
  276. }
  277. public String getCode()
  278. {
  279. return code;
  280. }
  281. public String getMsg()
  282. {
  283. return msg;
  284. }
  285. }
  286. /**
  287. * 大模型返回结果类型枚举
  288. */
  289. public enum CarbonExtraTeypEnum
  290. {
  291. ZERO(0, "外加碳源矿化产生的化石源CO₂碳排放量"),
  292. ONE(1, "固定式能源燃料消耗产生的碳排放量"),
  293. TWO(2, "污水处理阶段药剂消耗产生的碳排放量"),
  294. THREE(3, "热泵技术-替碳量"),
  295. FOUR(4, "污泥厌氧消化沼气利用的替碳量"),
  296. FIVE(5, "污泥焚烧或热解热能利用的替碳量"),
  297. ;
  298. private final int code;
  299. private final String msg;
  300. CarbonExtraTeypEnum(int code, String msg)
  301. {
  302. this.code = code;
  303. this.msg = msg;
  304. }
  305. public int getCode()
  306. {
  307. return code;
  308. }
  309. public String getMsg()
  310. {
  311. return msg;
  312. }
  313. }
  314. }