Commit ac5a9908 authored by hongguangwu's avatar hongguangwu

MVP1.6.3-优化逗号

parent 58dd59d5
...@@ -907,10 +907,16 @@ public class TSalaryStandardOriginalServiceImpl extends ServiceImpl<TSalaryStand ...@@ -907,10 +907,16 @@ public class TSalaryStandardOriginalServiceImpl extends ServiceImpl<TSalaryStand
if (Common.isNotNull(value)) { if (Common.isNotNull(value)) {
try { try {
if ("REDUCE".equals(detail.getFlag())) { if ("REDUCE".equals(detail.getFlag())) {
if (value.contains(",")) {
value = value.replace(",","");
}
value = String.valueOf(new BigDecimal(value).negate()); value = String.valueOf(new BigDecimal(value).negate());
} }
oldValue = newRowMap.get(detail.getModelName()); oldValue = newRowMap.get(detail.getModelName());
if (Common.isNotNull(oldValue)) { if (Common.isNotNull(oldValue)) {
if (oldValue.contains(",")) {
oldValue = oldValue.replace(",","");
}
value = String.valueOf(new BigDecimal(oldValue).add(new BigDecimal(value)) value = String.valueOf(new BigDecimal(oldValue).add(new BigDecimal(value))
.setScale(SalaryConstants.PLACES, BigDecimal.ROUND_HALF_UP)); .setScale(SalaryConstants.PLACES, BigDecimal.ROUND_HALF_UP));
} }
......
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