|
@@ -169,6 +169,9 @@ public class McYdServiceImpl implements McYdService {
|
|
|
String[] textFieldCodes=textFieldCode.split(",");
|
|
|
for (int i = 0; i < numberFieldCodes.length; i++) {
|
|
|
BigDecimal number = NumberUtil.toBigDecimal(UtilMap.getNumberStr(item,numberFieldCodes[i]));
|
|
|
+ if(number==null){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
// 创建一个 DecimalFormat 实例,指定千位分隔符模式
|
|
|
DecimalFormat df = new DecimalFormat("#,###.00");
|
|
|
// 格式化 double 数值
|
|
@@ -184,6 +187,9 @@ public class McYdServiceImpl implements McYdService {
|
|
|
String[] mainTextKeys=UtilMap.getString(map,"mainTextKeys").split(",");
|
|
|
for (int i = 0; i < mainNumKeys.length; i++) {
|
|
|
BigDecimal number = NumberUtil.toBigDecimal(UtilMap.getNumberStr(formData,(mainNumKeys[i])));
|
|
|
+ if(number==null){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
// 创建一个 DecimalFormat 实例,指定千位分隔符模式
|
|
|
DecimalFormat df = new DecimalFormat("#,###.00");
|
|
|
// 格式化 double 数值
|