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 | 2 | |
| 3 | 3 | import com.bsth.server_rs.base_info.line.buffer.LineBufferData; |
| 4 | 4 | import org.joda.time.DateTime; |
| 5 | +import org.slf4j.Logger; | |
| 6 | +import org.slf4j.LoggerFactory; | |
| 5 | 7 | import org.springframework.beans.factory.annotation.Autowired; |
| 6 | 8 | import org.springframework.jdbc.core.JdbcTemplate; |
| 7 | 9 | import org.springframework.jdbc.core.RowMapper; |
| ... | ... | @@ -26,6 +28,8 @@ import java.util.*; |
| 26 | 28 | @Produces({MediaType.APPLICATION_JSON}) |
| 27 | 29 | public class RateService { |
| 28 | 30 | |
| 31 | + private final static Logger log = LoggerFactory.getLogger(RateService.class); | |
| 32 | + | |
| 29 | 33 | @Autowired |
| 30 | 34 | private JdbcTemplate jdbcTemplate; |
| 31 | 35 | |
| ... | ... | @@ -81,7 +85,7 @@ public class RateService { |
| 81 | 85 | map1.put("rq", map.get("date")); |
| 82 | 86 | map1.put("xlbm", map.get("lineCode")); |
| 83 | 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 | 89 | map1.put("jhzxbc", map.get("jhbc")); |
| 86 | 90 | map1.put("sjzxbc", map.get("sjbc")); |
| 87 | 91 | map1.put("bczxl", map.get("bczxl")); |
| ... | ... | @@ -103,7 +107,7 @@ public class RateService { |
| 103 | 107 | map1.put("rq", map.get("date")); |
| 104 | 108 | map1.put("xlbm", map.get("lineCode")); |
| 105 | 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 | 111 | map1.put("sybcs", map.get("jhsmbcs")); |
| 108 | 112 | map1.put("zdbcs", map.get("sjsmbczds")); |
| 109 | 113 | map1.put("smbczdl", map.get("smbczdl")); |
| ... | ... | @@ -125,7 +129,7 @@ public class RateService { |
| 125 | 129 | map1.put("rq", map.get("date")); |
| 126 | 130 | map1.put("xlbm", map.get("lineCode")); |
| 127 | 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 | 133 | map1.put("sybcs", map.get("jhszfcs")); |
| 130 | 134 | map1.put("zdbcs", map.get("sjszfczds")); |
| 131 | 135 | map1.put("qqzfczdl", map.get("szfczdl")); | ... | ... |