|
@@ -136,13 +136,15 @@ public class HospProfitAndLossServiceImpl extends ServiceImpl<HospProfitAndLossM
|
|
throw new CostException("reportForm名称为" + i.getReportName() + "计算公式不正确");
|
|
throw new CostException("reportForm名称为" + i.getReportName() + "计算公式不正确");
|
|
}
|
|
}
|
|
String replace = calcFormula.replace("[", "").replace("]", "").replace("-", ",").replace("+", ",");
|
|
String replace = calcFormula.replace("[", "").replace("]", "").replace("-", ",").replace("+", ",");
|
|
-// ArrayList<String> strings = CollUtil.newArrayList(replace.split(StrUtil.COMMA));
|
|
|
|
ArrayList<String> strings = CollUtil.newArrayList(replace.split(","));
|
|
ArrayList<String> strings = CollUtil.newArrayList(replace.split(","));
|
|
Map<Integer, Object> map = new ConcurrentHashMap<>();
|
|
Map<Integer, Object> map = new ConcurrentHashMap<>();
|
|
for (int j = 0; j < strings.size(); j++) {
|
|
for (int j = 0; j < strings.size(); j++) {
|
|
map.put(j, strings.get(j));
|
|
map.put(j, strings.get(j));
|
|
}
|
|
}
|
|
-// ReUtil.contains(, "+" + calcFormula);
|
|
|
|
|
|
+ String s = "+" + calcFormula.replace("[", "").replace("]", "").replace("\\d+", ",");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
});
|
|
});
|
|
// 处理小计
|
|
// 处理小计
|
|
this.saveBatch(list);
|
|
this.saveBatch(list);
|