|
@@ -79,10 +79,11 @@ public class AsyncTask {
|
|
|
}
|
|
|
|
|
|
private void handleSHWarning(TXinyiIndustry tXinyiIndustry, TXinyiNormConfig normConfig) {
|
|
|
+ //todo 2024年5月31日13:53:36 生化报警目前只要do的 并且要超标
|
|
|
//判断对应指标是否报警 然后调研大模型获取决策信息
|
|
|
BigDecimal jsSlq = tXinyiIndustry.getJsSlq();
|
|
|
//内回流比报警
|
|
|
- BigDecimal nhlbSjz = normConfig.getNhlbSjz();//400
|
|
|
+ /*BigDecimal nhlbSjz = normConfig.getNhlbSjz();//400
|
|
|
BigDecimal nhlbnkSxz = normConfig.getNhlbnkSxz();//360
|
|
|
BigDecimal nhlbqdsl = normConfig.getNHLBQDSL();
|
|
|
BigDecimal nhlbdsjll = normConfig.getNHLBDSJLL();
|
|
@@ -106,7 +107,7 @@ public class AsyncTask {
|
|
|
if(!Objects.isNull(whlbSjz)){
|
|
|
handleXinYiWarningsSH(whlbSjz, divide, whlbnkXxz, BusinessEnum.WarningCategoryEnum.WHLB.getCode(), tXinyiIndustry, normConfig);
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
|
|
|
//最新的一条日报数据
|
|
@@ -123,7 +124,7 @@ public class AsyncTask {
|
|
|
|
|
|
//碳氮比(需要从日报获取数据)
|
|
|
//进水碳氮比=[b]=[BOD_in]/[TN_in]
|
|
|
- BigDecimal jsTn = tXinyiIndustry.getJsTn();
|
|
|
+ /*BigDecimal jsTn = tXinyiIndustry.getJsTn();
|
|
|
if(!Objects.isNull(jsBod5) && !Objects.isNull(jsTn)){
|
|
|
BigDecimal divide = jsBod5.divide(jsTn, 4, RoundingMode.HALF_UP);
|
|
|
BigDecimal jstdbnkzSxz = normConfig.getJstdbnkzSxz();
|
|
@@ -158,30 +159,31 @@ public class AsyncTask {
|
|
|
handleXinYiWarningsSH(gkz, divide, jsbodycodbzSzj, BusinessEnum.WarningCategoryEnum.BODCODB.getCode(), tXinyiIndustry, normConfig);
|
|
|
}
|
|
|
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
- //好氧区DO(一池)
|
|
|
- BigDecimal shcHyOneDo = tXinyiIndustry.getOneHymdDo();
|
|
|
+ //好氧区DO(一池) 2024年5月31日14:04:37 加数据,让他一直报警
|
|
|
+// BigDecimal shcHyOneDo = tXinyiIndustry.getOneHymdDo();
|
|
|
+ BigDecimal shcHyOneDo = new BigDecimal("5");
|
|
|
BigDecimal hycrjysjzSxz = normConfig.getHycrjysjzSxz();
|
|
|
BigDecimal hycrjyNkz = normConfig.getHycrjyNkz();
|
|
|
if(!Objects.isNull(shcHyOneDo) && !Objects.isNull(hycrjysjzSxz)){
|
|
|
handleXinYiWarningsSH(hycrjysjzSxz, shcHyOneDo, hycrjyNkz, BusinessEnum.WarningCategoryEnum.HYQDO_ONE.getCode(), tXinyiIndustry, normConfig);
|
|
|
}
|
|
|
- //好氧区DO(二池)
|
|
|
- BigDecimal shcHyTwoDo = tXinyiIndustry.getTwoHymdDo();
|
|
|
+ //好氧区DO(二池) 2024年5月31日14:09:36 溶解氧从日报获取 工业的不准
|
|
|
+ BigDecimal shcHyTwoDo = tXinyiDaily.getShcHyTwoDo();
|
|
|
if(!Objects.isNull(shcHyTwoDo) && !Objects.isNull(hycrjysjzSxz)){
|
|
|
handleXinYiWarningsSH(hycrjysjzSxz, shcHyTwoDo, hycrjyNkz, BusinessEnum.WarningCategoryEnum.HYQDO_TWO.getCode(), tXinyiIndustry, normConfig);
|
|
|
}
|
|
|
|
|
|
//气水比(需要从日报获取数据)
|
|
|
- BigDecimal gfjgzts = normConfig.getGFJGZTS();
|
|
|
+ /*BigDecimal gfjgzts = normConfig.getGFJGZTS();
|
|
|
BigDecimal gfjckll = normConfig.getGFJCKLL();
|
|
|
BigDecimal shcqbSjz = normConfig.getShcqbSjz();
|
|
|
if(!Objects.isNull(gfjgzts) && !Objects.isNull(gfjckll) && !Objects.isNull(shcqbSjz) && !Objects.isNull(jsSlq)){
|
|
|
BigDecimal qsb = gfjgzts.multiply(gfjckll).divide(jsSlq, 4, RoundingMode.HALF_UP);
|
|
|
BigDecimal shcqbNkz = normConfig.getShcqbNkz();
|
|
|
handleXinYiWarningsSH(shcqbSjz, qsb, shcqbNkz, BusinessEnum.WarningCategoryEnum.WHLB.getCode(), tXinyiIndustry, normConfig);
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
|
|
|
|