|
@@ -15,6 +15,7 @@ import com.slibra.business.req.DecisionReq;
|
|
|
import com.slibra.business.res.ChartBasic;
|
|
|
import com.slibra.business.res.ShowValueChartBasic;
|
|
|
import com.slibra.business.service.ITXinyiForecastComparisonService;
|
|
|
+import com.slibra.common.DecimalUtils;
|
|
|
import com.slibra.common.constant.MyConstants;
|
|
|
import com.slibra.common.enums.BusinessEnum;
|
|
|
import com.slibra.common.enums.DataSourceType;
|
|
@@ -2039,32 +2040,32 @@ public class RyTask
|
|
|
String originStr = SHORT_REPORT_BEGIN.replace("#{0}", yesterdayData.getTestDate());
|
|
|
StringBuilder sb = new StringBuilder(originStr);
|
|
|
for (TXinyiDaily dailyTwoRecord : dailyTwoRecords) {
|
|
|
- sb.append("进水:");
|
|
|
- sb.append("进水COD").append(dailyTwoRecord.getJsCod()).append("mg/L");
|
|
|
- sb.append("进水总氮").append(dailyTwoRecord.getJsTn()).append("mg/L");
|
|
|
- sb.append("进水总磷").append(dailyTwoRecord.getJsTp()).append("mg/L");
|
|
|
- sb.append("进水氨氮").append(dailyTwoRecord.getJsNh3()).append("mg/L");
|
|
|
- sb.append("进水SS").append(dailyTwoRecord.getJsSs()).append("mg/L");
|
|
|
- sb.append("进水水量").append(dailyTwoRecord.getJSL()).append("m³/d").append(";");
|
|
|
+ sb.append(formateDateStr(dailyTwoRecord.getTestDate())).append("进水:");
|
|
|
+ sb.append("进水COD").append(DecimalUtils.getAbsAndScale(dailyTwoRecord.getJsCod(), 2)).append("mg/L");
|
|
|
+ sb.append("进水总氮").append(DecimalUtils.getAbsAndScale(dailyTwoRecord.getJsTn(), 2)).append("mg/L");
|
|
|
+ sb.append("进水总磷").append(DecimalUtils.getAbsAndScale(dailyTwoRecord.getJsTp(), 2)).append("mg/L");
|
|
|
+ sb.append("进水氨氮").append(DecimalUtils.getAbsAndScale(dailyTwoRecord.getJsNh3(), 2)).append("mg/L");
|
|
|
+ sb.append("进水SS").append(DecimalUtils.getAbsAndScale(dailyTwoRecord.getJsSs(), 2)).append("mg/L");
|
|
|
+ sb.append("进水水量").append(DecimalUtils.getAbsAndScale(dailyTwoRecord.getJSL(), 2)).append("m³/d").append(";");
|
|
|
sb.append("出水:");
|
|
|
- sb.append("出水COD").append(dailyTwoRecord.getCsCod()).append("mg/L");
|
|
|
- sb.append("出水总氮").append(dailyTwoRecord.getCsTn()).append("mg/L");
|
|
|
- sb.append("出水总磷").append(dailyTwoRecord.getCsTp()).append("mg/L");
|
|
|
- sb.append("出水氨氮").append(dailyTwoRecord.getCsNh3()).append("mg/L");
|
|
|
- sb.append("出水SS").append(dailyTwoRecord.getCsSs()).append("mg/L");
|
|
|
- sb.append("出水水量").append(dailyTwoRecord.getCSL()).append("m³/d").append("。");
|
|
|
+ sb.append("出水COD").append(DecimalUtils.getAbsAndScale(dailyTwoRecord.getCsCod(), 2)).append("mg/L");
|
|
|
+ sb.append("出水总氮").append(DecimalUtils.getAbsAndScale(dailyTwoRecord.getCsTn(), 2)).append("mg/L");
|
|
|
+ sb.append("出水总磷").append(DecimalUtils.getAbsAndScale(dailyTwoRecord.getCsTp(), 2)).append("mg/L");
|
|
|
+ sb.append("出水氨氮").append(DecimalUtils.getAbsAndScale(dailyTwoRecord.getCsNh3(), 2)).append("mg/L");
|
|
|
+ sb.append("出水SS").append(DecimalUtils.getAbsAndScale(dailyTwoRecord.getCsSs(), 2)).append("mg/L");
|
|
|
+ sb.append("出水水量").append(DecimalUtils.getAbsAndScale(dailyTwoRecord.getCSL(), 2)).append("m³/d").append("。\n");
|
|
|
}
|
|
|
sb.append(SHORT_REPORT_END);
|
|
|
- sb.append("进水COD:").append(normConfig.getJscodSjz()).append("mg/L");
|
|
|
- sb.append("进水总氮:").append(normConfig.getJszdSjz()).append("mg/L");
|
|
|
- sb.append("进水总磷:").append(normConfig.getJszlSjz()).append("mg/L");
|
|
|
- sb.append("进水氨氮:").append(normConfig.getJsadSjz()).append("mg/L");
|
|
|
- sb.append("进水SS:").append(normConfig.getJsssSjz()).append("mg/L");
|
|
|
- sb.append("出水COD:").append(normConfig.getCscodBzz()).append("mg/L");
|
|
|
- sb.append("出水总氮:").append(normConfig.getCszzBzz()).append("mg/L");
|
|
|
- sb.append("出水总磷:").append(normConfig.getCszlBzz()).append("mg/L");
|
|
|
- sb.append("出水氨氮:").append(normConfig.getCsadBzz()).append("mg/L");
|
|
|
- sb.append("出水SS:").append(normConfig.getCsssBzz()).append("mg/L").append("。");
|
|
|
+ sb.append("进水COD:").append(DecimalUtils.getAbsAndScale(normConfig.getJscodSjz(), 2)).append("mg/L");
|
|
|
+ sb.append("进水总氮:").append(DecimalUtils.getAbsAndScale(normConfig.getJszdSjz(), 2)).append("mg/L");
|
|
|
+ sb.append("进水总磷:").append(DecimalUtils.getAbsAndScale(normConfig.getJszlSjz(), 2)).append("mg/L");
|
|
|
+ sb.append("进水氨氮:").append(DecimalUtils.getAbsAndScale(normConfig.getJsadSjz(), 2)).append("mg/L");
|
|
|
+ sb.append("进水SS:").append(DecimalUtils.getAbsAndScale(normConfig.getJsssSjz(), 2)).append("mg/L");
|
|
|
+ sb.append("出水COD:").append(DecimalUtils.getAbsAndScale(normConfig.getCscodBzz(), 2)).append("mg/L");
|
|
|
+ sb.append("出水总氮:").append(DecimalUtils.getAbsAndScale(normConfig.getCszzBzz(), 2)).append("mg/L");
|
|
|
+ sb.append("出水总磷:").append(DecimalUtils.getAbsAndScale(normConfig.getCszlBzz(), 2)).append("mg/L");
|
|
|
+ sb.append("出水氨氮:").append(DecimalUtils.getAbsAndScale(normConfig.getCsadBzz(), 2)).append("mg/L");
|
|
|
+ sb.append("出水SS:").append(DecimalUtils.getAbsAndScale(normConfig.getCsssBzz(), 2)).append("mg/L").append("。");
|
|
|
return sb.toString();
|
|
|
}
|
|
|
|