Commit 6cf0c80446fd1b1c911ba7a6f4be98330a872f1f
1 parent
926f92c7
发车准点率sql查询合计int出现小数点.0,去小数
Showing
1 changed file
with
3 additions
and
3 deletions
src/main/java/com/bsth/service/report/impl/CalcSheetServiceImpl.java
| @@ -121,9 +121,9 @@ public class CalcSheetServiceImpl extends BaseServiceImpl<CalcSheet, Integer> im | @@ -121,9 +121,9 @@ public class CalcSheetServiceImpl extends BaseServiceImpl<CalcSheet, Integer> im | ||
| 121 | s.setXl(rs.getString("xl")); | 121 | s.setXl(rs.getString("xl")); |
| 122 | s.setXlName(rs.getString("xl_name")); | 122 | s.setXlName(rs.getString("xl_name")); |
| 123 | s.setId(rs.getInt("id")); | 123 | s.setId(rs.getInt("id")); |
| 124 | - s.setJhszfcs(rs.getString("jhszfcs")); | ||
| 125 | - s.setSjszfczds(rs.getString("sjszfczds")); | ||
| 126 | - s.setSjszddzds(rs.getString("sjszddzds")); | 124 | + s.setJhszfcs(rs.getString("jhszfcs").split("\\.")[0]); |
| 125 | + s.setSjszfczds(rs.getString("sjszfczds").split("\\.")[0]); | ||
| 126 | + s.setSjszddzds(rs.getString("sjszddzds").split("\\.")[0]); | ||
| 127 | int jhfc=Integer.parseInt(rs.getString("jhszfcs").split("\\.")[0]); | 127 | int jhfc=Integer.parseInt(rs.getString("jhszfcs").split("\\.")[0]); |
| 128 | int zdfc=Integer.parseInt(rs.getString("sjszfczds").split("\\.")[0]); | 128 | int zdfc=Integer.parseInt(rs.getString("sjszfczds").split("\\.")[0]); |
| 129 | int zddd=Integer.parseInt(rs.getString("sjszddzds").split("\\.")[0]); | 129 | int zddd=Integer.parseInt(rs.getString("sjszddzds").split("\\.")[0]); |