Commit 6cc0ce28 by ghxdhr

修改空指针bug

parent 01d06d41
...@@ -142,7 +142,7 @@ public class SingleSheetMoreItemOperation implements Operation { ...@@ -142,7 +142,7 @@ public class SingleSheetMoreItemOperation implements Operation {
} }
if (sampleIdMap.size() != 0 && config.getDataAttribute().startsWith(collectionDatePrefix)) { if (sampleIdMap.size() != 0 && config.getDataAttribute().startsWith(collectionDatePrefix)) {
String mapKey = config.getDataAttribute().substring(4); String mapKey = config.getDataAttribute().substring(4);
if (sampleIdMap.get(vo.getId()).size() > 0) { if (sampleIdMap.get(vo.getId()) != null && sampleIdMap.get(vo.getId()).size() > 0) {
if (null != config.getRoundNum()) { // 需要修约 if (null != config.getRoundNum()) { // 需要修约
// ROUND(A,小数位数)-(MOD(A*10^(小数位数+1),20)=5)*10^(-小数位数) // ROUND(A,小数位数)-(MOD(A*10^(小数位数+1),20)=5)*10^(-小数位数)
String formula = "ROUND(%s,%s)-(MOD(%s*10^(%s+1),20)=5)*10^(-%s)"; String formula = "ROUND(%s,%s)-(MOD(%s*10^(%s+1),20)=5)*10^(-%s)";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment