Commit f5231b60e09e77e802e9ef22970e8a381158ef51
1 parent
4f6e501a95
Exists in
master
and in
6 other branches
导出
Showing 1 changed file with 11 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java
View file @
f5231b6
| ... | ... | @@ -375,15 +375,22 @@ |
| 375 | 375 | String weight = ""; |
| 376 | 376 | if (queryModel.getBabyWeight() != null && queryModel.getBabyWeight().contains(",")) |
| 377 | 377 | { |
| 378 | + System.out.println("===========" + queryModel.getBabyWeight()); | |
| 378 | 379 | String arrs[] = queryModel.getBabyWeight().split(","); |
| 379 | - System.out.println("======================"+arrs); | |
| 380 | 380 | for (int i = 0 ; i < arrs.length ; i++) |
| 381 | 381 | { |
| 382 | - weight+=(Double.parseDouble(arrs[i]) * 1000)+""; | |
| 383 | - if (i != arrs.length -1) | |
| 382 | + try { | |
| 383 | + weight+=(Double.parseDouble(arrs[i]) * 1000)+""; | |
| 384 | + if (i != arrs.length -1) | |
| 385 | + { | |
| 386 | + weight += ","; | |
| 387 | + } | |
| 388 | + } | |
| 389 | + catch (Exception E) | |
| 384 | 390 | { |
| 385 | - weight += ","; | |
| 391 | + continue; | |
| 386 | 392 | } |
| 393 | + | |
| 387 | 394 | } |
| 388 | 395 | } |
| 389 | 396 |