Commit dfa9ba0edad59a569510237f7ac8988170fe4e68
1 parent
8b14b75a
1.产研院3个率
Showing
1 changed file
with
7 additions
and
3 deletions
src/main/java/com/bsth/server_rs/rate/RateService.java
| @@ -2,6 +2,8 @@ package com.bsth.server_rs.rate; | @@ -2,6 +2,8 @@ package com.bsth.server_rs.rate; | ||
| 2 | 2 | ||
| 3 | import com.bsth.server_rs.base_info.line.buffer.LineBufferData; | 3 | import com.bsth.server_rs.base_info.line.buffer.LineBufferData; |
| 4 | import org.joda.time.DateTime; | 4 | import org.joda.time.DateTime; |
| 5 | +import org.slf4j.Logger; | ||
| 6 | +import org.slf4j.LoggerFactory; | ||
| 5 | import org.springframework.beans.factory.annotation.Autowired; | 7 | import org.springframework.beans.factory.annotation.Autowired; |
| 6 | import org.springframework.jdbc.core.JdbcTemplate; | 8 | import org.springframework.jdbc.core.JdbcTemplate; |
| 7 | import org.springframework.jdbc.core.RowMapper; | 9 | import org.springframework.jdbc.core.RowMapper; |
| @@ -26,6 +28,8 @@ import java.util.*; | @@ -26,6 +28,8 @@ import java.util.*; | ||
| 26 | @Produces({MediaType.APPLICATION_JSON}) | 28 | @Produces({MediaType.APPLICATION_JSON}) |
| 27 | public class RateService { | 29 | public class RateService { |
| 28 | 30 | ||
| 31 | + private final static Logger log = LoggerFactory.getLogger(RateService.class); | ||
| 32 | + | ||
| 29 | @Autowired | 33 | @Autowired |
| 30 | private JdbcTemplate jdbcTemplate; | 34 | private JdbcTemplate jdbcTemplate; |
| 31 | 35 | ||
| @@ -81,7 +85,7 @@ public class RateService { | @@ -81,7 +85,7 @@ public class RateService { | ||
| 81 | map1.put("rq", map.get("date")); | 85 | map1.put("rq", map.get("date")); |
| 82 | map1.put("xlbm", map.get("lineCode")); | 86 | map1.put("xlbm", map.get("lineCode")); |
| 83 | map1.put("xlmc", map.get("lineName")); | 87 | map1.put("xlmc", map.get("lineName")); |
| 84 | - map1.put("ssgs", LineBufferData.findOne(String.valueOf(map.get("lineName")))); | 88 | + map1.put("ssgs", LineBufferData.findOne(String.valueOf(map.get("lineCode")))); |
| 85 | map1.put("jhzxbc", map.get("jhbc")); | 89 | map1.put("jhzxbc", map.get("jhbc")); |
| 86 | map1.put("sjzxbc", map.get("sjbc")); | 90 | map1.put("sjzxbc", map.get("sjbc")); |
| 87 | map1.put("bczxl", map.get("bczxl")); | 91 | map1.put("bczxl", map.get("bczxl")); |
| @@ -103,7 +107,7 @@ public class RateService { | @@ -103,7 +107,7 @@ public class RateService { | ||
| 103 | map1.put("rq", map.get("date")); | 107 | map1.put("rq", map.get("date")); |
| 104 | map1.put("xlbm", map.get("lineCode")); | 108 | map1.put("xlbm", map.get("lineCode")); |
| 105 | map1.put("xlmc", map.get("lineName")); | 109 | map1.put("xlmc", map.get("lineName")); |
| 106 | - map1.put("ssgs", LineBufferData.findOne(String.valueOf(map.get("lineName")))); | 110 | + map1.put("ssgs", LineBufferData.findOne(String.valueOf(map.get("lineCode")))); |
| 107 | map1.put("sybcs", map.get("jhsmbcs")); | 111 | map1.put("sybcs", map.get("jhsmbcs")); |
| 108 | map1.put("zdbcs", map.get("sjsmbczds")); | 112 | map1.put("zdbcs", map.get("sjsmbczds")); |
| 109 | map1.put("smbczdl", map.get("smbczdl")); | 113 | map1.put("smbczdl", map.get("smbczdl")); |
| @@ -125,7 +129,7 @@ public class RateService { | @@ -125,7 +129,7 @@ public class RateService { | ||
| 125 | map1.put("rq", map.get("date")); | 129 | map1.put("rq", map.get("date")); |
| 126 | map1.put("xlbm", map.get("lineCode")); | 130 | map1.put("xlbm", map.get("lineCode")); |
| 127 | map1.put("xlmc", map.get("lineName")); | 131 | map1.put("xlmc", map.get("lineName")); |
| 128 | - map1.put("ssgs", LineBufferData.findOne(String.valueOf(map.get("lineName")))); | 132 | + map1.put("ssgs", LineBufferData.findOne(String.valueOf(map.get("lineCode")))); |
| 129 | map1.put("sybcs", map.get("jhszfcs")); | 133 | map1.put("sybcs", map.get("jhszfcs")); |
| 130 | map1.put("zdbcs", map.get("sjszfczds")); | 134 | map1.put("zdbcs", map.get("sjszfczds")); |
| 131 | map1.put("qqzfczdl", map.get("szfczdl")); | 135 | map1.put("qqzfczdl", map.get("szfczdl")); |