Commit c0846036 authored by hongguangwu's avatar hongguangwu

文本超长

parent a543d938
...@@ -254,6 +254,11 @@ public class SalaryAccountUtil implements Serializable { ...@@ -254,6 +254,11 @@ public class SalaryAccountUtil implements Serializable {
cellValueBig = new BigDecimal(cellValueStr); cellValueBig = new BigDecimal(cellValueStr);
cellValueBig = cellValueBig.setScale(2, BigDecimal.ROUND_HALF_UP); //四舍五入 cellValueBig = cellValueBig.setScale(2, BigDecimal.ROUND_HALF_UP); //四舍五入
if (cellValueBig.toString().length() > 11) { if (cellValueBig.toString().length() > 11) {
if (cellValueBig.toString().length() > 500) {
errorFlag = false;
errorList.add(new ErrorMessage((i + 2), "文本超长!"));
continue;
}
sai.setTextValue(cellValueBig.toString()); sai.setTextValue(cellValueBig.toString());
} else { } else {
sai.setSalaryMoney(cellValueBig); sai.setSalaryMoney(cellValueBig);
......
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