|
@@ -581,30 +581,66 @@ public class WarningController extends BaseController {
|
|
|
|
|
|
//下面的有疑问 R是计算出来的 单位怎么算
|
|
|
//29 二沉池表面负荷报警 二沉池表面负荷=[e]=[Q_in]/([n_er]*[A_er])m³/(m²·h)
|
|
|
+ BigDecimal jsl = tXinyiDaily.getJSL();
|
|
|
+ BigDecimal eccsl = normConfig.getECCSL();
|
|
|
+ BigDecimal eccsjzzj = normConfig.getECCSJZZJ();
|
|
|
+ BigDecimal eccbmfhznkzSxz = normConfig.getEccbmfhznkzSxz();
|
|
|
+ if(!Objects.isNull(eccbmfhznkzSxz) && !Objects.isNull(jsl) && !Objects.isNull(eccsl) && !Objects.isNull(eccsjzzj)){
|
|
|
+ BigDecimal eccArea = new BigDecimal(Math.PI).multiply(eccsjzzj).multiply(eccsjzzj).divide(new BigDecimal("4"));
|
|
|
+ BigDecimal multiply = jsl.divide(eccsl).multiply(eccArea);
|
|
|
+ if(multiply.compareTo(eccbmfhznkzSxz) > 0)
|
|
|
+ System.out.println("二沉池表面负荷报警别为 一级");
|
|
|
+ System.out.println("二沉池表面负荷报警级别为数据正常~~~");
|
|
|
+ System.out.println("--------------29");
|
|
|
+ }
|
|
|
|
|
|
|
|
|
//30 二沉池固体负荷报警
|
|
|
// 二沉池固体负荷=[f]=(1+[R])*[Q_in]*24*[MLSS]/[n_er]/[A_er]/1000kg/(㎡·d)
|
|
|
- BigDecimal jsl = tXinyiDaily.getJSL();
|
|
|
BigDecimal eccglfhnkzSxz = normConfig.getEccglfhnkzSxz();
|
|
|
- BigDecimal eccsl = normConfig.getECCSL();
|
|
|
-
|
|
|
if(!Objects.isNull(whlR) && !Objects.isNull(eccglfhnkzSxz) && !Objects.isNull(jsl)
|
|
|
- && !Objects.isNull(shcHyOneMlss) && !Objects.isNull(shcHyTwoMlss)){
|
|
|
- BigDecimal shcqbNkz = normConfig.getShcqbNkz();
|
|
|
- if(qsb.compareTo(shcqbSjz) > 0)
|
|
|
- System.out.println("生化池气水比报警别为 一级");
|
|
|
- if(!Objects.isNull(shcqbNkz) && qsb.compareTo(shcqbNkz) > 0 && qsb.compareTo(shcqbSjz) <= 0)
|
|
|
- System.out.println("生化池气水比报警别为 二级");
|
|
|
- System.out.println("生化池气水比报警级别为数据正常~~~");
|
|
|
- System.out.println("--------------26");
|
|
|
+ && !Objects.isNull(shcHyOneMlss) && !Objects.isNull(shcHyTwoMlss) && !Objects.isNull(eccsl) && !Objects.isNull(eccsjzzj)){
|
|
|
+ BigDecimal avgMlss = shcHyOneMlss.add(shcHyTwoMlss).divide(new BigDecimal("2"));
|
|
|
+ BigDecimal eccArea = new BigDecimal(Math.PI).multiply(eccsjzzj).multiply(eccsjzzj).divide(new BigDecimal("4"));
|
|
|
+ BigDecimal divide = whlR.add(new BigDecimal("1")).multiply(jsl).multiply(new BigDecimal("24")).multiply(avgMlss).divide(eccsl).divide(eccArea).divide(new BigDecimal("1000"));
|
|
|
+ if(divide.compareTo(eccglfhnkzSxz) > 0)
|
|
|
+ System.out.println("二沉池固体负荷报警别为 一级");
|
|
|
+ BigDecimal eccgtfhSjz = normConfig.getEccgtfhSjz();
|
|
|
+ if(!Objects.isNull(eccgtfhSjz) && divide.compareTo(eccgtfhSjz) > 0 && divide.compareTo(eccglfhnkzSxz) <= 0)
|
|
|
+ System.out.println("二沉池固体负荷报警别为 二级");
|
|
|
+ System.out.println("二沉池固体负荷报警级别为数据正常~~~");
|
|
|
+ System.out.println("--------------30");
|
|
|
}
|
|
|
|
|
|
|
|
|
//31 深度处理反冲洗水量比例报警 深度处理反冲洗水量=[j]=[Q_fan]*[n_fan]*[η_fan]/[Q_in]*100%
|
|
|
+ BigDecimal fcxbsjll = normConfig.getFCXBSJLL();
|
|
|
+ BigDecimal fclbsl = normConfig.getFCLBSL();
|
|
|
+ BigDecimal fcxbgzxl = normConfig.getFCXBGZXL();
|
|
|
+ if(!Objects.isNull(jsl) && !Objects.isNull(fcxbsjll) && !Objects.isNull(fclbsl) && !Objects.isNull(fcxbgzxl)){
|
|
|
+ BigDecimal divide = fcxbsjll.multiply(fclbsl).multiply(fcxbgzxl).divide(jsl);
|
|
|
+ BigDecimal fcxslblsjzXxz = normConfig.getFcxslblsjzXxz();
|
|
|
+ if(!Objects.isNull(fcxslblsjzXxz) && divide.compareTo(fcxslblsjzXxz) < 0)
|
|
|
+ System.out.println("深度处理反冲洗水量比例报警别为 一级");
|
|
|
+ BigDecimal fcxslblsjzSxz = normConfig.getFcxslblsjzSxz();
|
|
|
+ if(!Objects.isNull(fcxslblsjzSxz) && divide.compareTo(fcxslblsjzSxz) > 0)
|
|
|
+ System.out.println("深度处理反冲洗水量比例报警别为 一级");
|
|
|
+ System.out.println("深度处理反冲洗水量比例报警级别为数据正常~~~");
|
|
|
+ System.out.println("--------------31");
|
|
|
+ }
|
|
|
|
|
|
- //32 深度处理峰值过滤速度报警 深度处理峰值过滤速度=[q]=[Q_in]/[n_sha]/[A_sha]m/h
|
|
|
|
|
|
+ //32 深度处理峰值过滤速度报警 深度处理峰值过滤速度=[q]=[Q_in]/[n_sha]/[A_sha]m/h
|
|
|
+ BigDecimal hxslcsl = normConfig.getHXSLCSL();
|
|
|
+ BigDecimal hxslcglmj = normConfig.getHXSLCGLMJ();
|
|
|
+ BigDecimal sdclfzglsdSjz = normConfig.getSdclfzglsdSjz();
|
|
|
+ if(!Objects.isNull(hxslcsl) && !Objects.isNull(hxslcglmj) && !Objects.isNull(jsl) && !Objects.isNull(sdclfzglsdSjz)){
|
|
|
+ BigDecimal divide = jsl.divide(hxslcsl).divide(hxslcglmj);
|
|
|
+ if(divide.compareTo(sdclfzglsdSjz) >0 )
|
|
|
+ System.out.println("深度处理峰值过滤速度报警别为 一级");
|
|
|
+ System.out.println("深度处理峰值过滤速度报警级别为数据正常~~~");
|
|
|
+ System.out.println("--------------32");
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|