|
@@ -4718,15 +4718,18 @@ public class AsyncTask {
|
|
}
|
|
}
|
|
|
|
|
|
private String getJsNh3StrByList(List<TXinyiIndustry> tXinyiIndustries) {
|
|
private String getJsNh3StrByList(List<TXinyiIndustry> tXinyiIndustries) {
|
|
|
|
+ log.info("需要拼接的对应多条数据的原始值为{}", JSON.toJSONString(tXinyiIndustries));
|
|
// return StringUtil.join(tXinyiIndustries.stream().map(TXinyiIndustry::getJsNh3).collect(Collectors.toList()) , "mg/L、");
|
|
// return StringUtil.join(tXinyiIndustries.stream().map(TXinyiIndustry::getJsNh3).collect(Collectors.toList()) , "mg/L、");
|
|
int size = tXinyiIndustries.size();
|
|
int size = tXinyiIndustries.size();
|
|
StringBuilder sb = new StringBuilder();
|
|
StringBuilder sb = new StringBuilder();
|
|
for (int i = 0; i < size; i++) {
|
|
for (int i = 0; i < size; i++) {
|
|
TXinyiIndustry tXinyiIndustry = tXinyiIndustries.get(i);
|
|
TXinyiIndustry tXinyiIndustry = tXinyiIndustries.get(i);
|
|
- if(i < size - 1)
|
|
|
|
|
|
+ /*if(i < size - 1)
|
|
sb.append(DecimalUtils.getAbsAndScale(tXinyiIndustry.getJsNh3(), INT_2)).append("mg/L、");
|
|
sb.append(DecimalUtils.getAbsAndScale(tXinyiIndustry.getJsNh3(), INT_2)).append("mg/L、");
|
|
else
|
|
else
|
|
- sb.append("mg/L");
|
|
|
|
|
|
+ sb.append("mg/L");*/
|
|
|
|
+ //2025年05月08日14:07:50 bug修复:传过来几条数据,都需要拼接
|
|
|
|
+ sb.append(DecimalUtils.getAbsAndScale(tXinyiIndustry.getJsNh3(), INT_2)).append("mg/L、");
|
|
}
|
|
}
|
|
return sb.toString();
|
|
return sb.toString();
|
|
}
|
|
}
|