BusinessEnum.java 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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. ;
  78. private final String code;
  79. private final String msg;
  80. WarningCategoryEnum(String code, String msg)
  81. {
  82. this.code = code;
  83. this.msg = msg;
  84. }
  85. public String getCode()
  86. {
  87. return code;
  88. }
  89. public String getMsg()
  90. {
  91. return msg;
  92. }
  93. }
  94. /**
  95. * 大模型返回结果类型枚举
  96. */
  97. public enum BigModelBizEnum
  98. {
  99. OK("OK", "正常结束"),
  100. ERROR("ERROR", "出现错误"),
  101. DECISION_ALERT("DECISION_ALERT", "弹窗类型"),
  102. DECISION_DEBUGGER("DECISION_DEBUGGER", "中间过程"),
  103. DECISION_REPORT("DECISION_REPORT", "最终的输出结果"),
  104. DECISION_SIMULATE("DECISION_SIMULATE", "仿真推荐值"),
  105. ;
  106. private final String code;
  107. private final String msg;
  108. BigModelBizEnum(String code, String msg)
  109. {
  110. this.code = code;
  111. this.msg = msg;
  112. }
  113. public String getCode()
  114. {
  115. return code;
  116. }
  117. public String getMsg()
  118. {
  119. return msg;
  120. }
  121. }
  122. /**
  123. *
  124. * 展示单位相关的枚举
  125. *
  126. */
  127. public enum BigModelUnitEnum
  128. {
  129. PERCENT("%", "%"),
  130. MG_L("mg/L", "mg/L"),
  131. KGBOD_KGMLSS_D("kgBOD/(kgMLSS·d)", "kgBOD/(kgMLSS·d)"),
  132. M3_M3("m³/m³", "m³/m³"),
  133. M3_M2_H("m³/(m²·h)", "m³/(m²·h)"),
  134. KG_M2_D("kg/(m²·d)", "kg/(m²·d)"),
  135. NULL("", ""),
  136. ;
  137. private final String code;
  138. private final String msg;
  139. BigModelUnitEnum(String code, String msg)
  140. {
  141. this.code = code;
  142. this.msg = msg;
  143. }
  144. public String getCode()
  145. {
  146. return code;
  147. }
  148. public String getMsg()
  149. {
  150. return msg;
  151. }
  152. }
  153. /**
  154. * 预测调用参数枚举
  155. */
  156. public enum BigModelForecastEnum
  157. {
  158. ZLSY("zlsy", "zlsy"),
  159. XSY1("xsy1", "xsy1"),
  160. XSY2("xsy2", "xsy2"),
  161. TN("tn", "tn"),
  162. COD("cod", "cod"),
  163. SS("ss", "ss"),
  164. NH3("nh3", "nh3"),
  165. TP("tp", "tp"),
  166. ;
  167. private final String code;
  168. private final String msg;
  169. BigModelForecastEnum(String code, String msg)
  170. {
  171. this.code = code;
  172. this.msg = msg;
  173. }
  174. public String getCode()
  175. {
  176. return code;
  177. }
  178. public String getMsg()
  179. {
  180. return msg;
  181. }
  182. }
  183. /**
  184. *
  185. * 区分来源的报警类型枚举
  186. *
  187. */
  188. public enum BigModelWarningTypeRemarkEnum
  189. {
  190. ZERO_SZ_WARNING("0", "水质报警"),
  191. ONE_SH_WARNING("1", "生化报警"),
  192. TWO_YC_WARNING("2", "预测预警"),
  193. THREE_HYS_WARNING("3", "化验室报警"),
  194. ;
  195. private final String code;
  196. private final String msg;
  197. BigModelWarningTypeRemarkEnum(String code, String msg)
  198. {
  199. this.code = code;
  200. this.msg = msg;
  201. }
  202. public String getCode()
  203. {
  204. return code;
  205. }
  206. public String getMsg()
  207. {
  208. return msg;
  209. }
  210. }
  211. /**
  212. *
  213. * 智能投药请求参数枚举
  214. * * 0:进水流量
  215. * * 1:#1好氧池硝酸盐
  216. * * 2:#2好氧池硝酸盐
  217. * * 3:#1缺氧池氨氮
  218. * * 4:#2缺氧池氨氮
  219. * * 5:进水COD
  220. * * 6:进水总氮
  221. * * 7:碳源投加量
  222. *
  223. */
  224. public enum SmartAddMedicineReqEnum
  225. {
  226. JSLL(0, "进水流量"),
  227. HY_1_XSY(1, "#1好氧池硝酸盐"),
  228. HY_2_XSY(2, "#2好氧池硝酸盐"),
  229. QY_1_AD(3, "#1缺氧池氨氮"),
  230. QY_2_AD(4, "#2缺氧池氨氮"),
  231. JSCOD(5, "进水COD"),
  232. JSTN(6, "进水总氮"),
  233. TYTJL(7, "碳源投加量"),
  234. ;
  235. private final int code;
  236. private final String msg;
  237. SmartAddMedicineReqEnum(int code, String msg)
  238. {
  239. this.code = code;
  240. this.msg = msg;
  241. }
  242. public int getCode()
  243. {
  244. return code;
  245. }
  246. public String getMsg()
  247. {
  248. return msg;
  249. }
  250. }
  251. /**
  252. *
  253. * 数据来源枚举
  254. *
  255. */
  256. public enum DataSourceEnum
  257. {
  258. YB("YB", "仪表"),
  259. HY("HY", "化验"),
  260. YC("YC", "预测"),
  261. ;
  262. private final String code;
  263. private final String msg;
  264. DataSourceEnum(String code, String msg)
  265. {
  266. this.code = code;
  267. this.msg = msg;
  268. }
  269. public String getCode()
  270. {
  271. return code;
  272. }
  273. public String getMsg()
  274. {
  275. return msg;
  276. }
  277. }
  278. /**
  279. * 大模型返回结果类型枚举
  280. */
  281. public enum CarbonExtraTeypEnum
  282. {
  283. ZERO(0, "外加碳源矿化产生的化石源CO₂碳排放量"),
  284. ONE(1, "固定式能源燃料消耗产生的碳排放量"),
  285. TWO(2, "污水处理阶段药剂消耗产生的碳排放量"),
  286. THREE(3, "热泵技术-替碳量"),
  287. FOUR(4, "污泥厌氧消化沼气利用的替碳量"),
  288. FIVE(5, "污泥焚烧或热解热能利用的替碳量"),
  289. ;
  290. private final int code;
  291. private final String msg;
  292. CarbonExtraTeypEnum(int code, String msg)
  293. {
  294. this.code = code;
  295. this.msg = msg;
  296. }
  297. public int getCode()
  298. {
  299. return code;
  300. }
  301. public String getMsg()
  302. {
  303. return msg;
  304. }
  305. }
  306. }