Browse Source

修改soc和soh表名

lmstack 3 years ago
parent
commit
101f59ebdb
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/java/com/lm/lib/controller/ShowDataController.java

+ 3 - 3
src/main/java/com/lm/lib/controller/ShowDataController.java

@@ -194,7 +194,7 @@ public Map<String, Object> gpsInfo() throws IOException {
         RspRealTimeInfo rspRealTimeInfo = new RspRealTimeInfo();
 
         if (StringUtils.hasLength(sn)) {
-            String sql = "select t1.soh from soh_result t1  where " + "t1.sn='" + sn + "' order by time_st desc limit 1";
+            String sql = "select t1.soh from cellstateestimation_soh t1  where " + "t1.sn='" + sn + "' order by time_st desc limit 1";
             Map<String, Object> sohData;
             try {
                 sohData = qxcasJdbcTemplate.queryForMap(sql);
@@ -274,7 +274,7 @@ public Map<String, Object> gpsInfo() throws IOException {
         RspHealthInfo rspHealthInfo = new RspHealthInfo();
 
         if (StringUtils.hasLength(sn)) {
-            String sql = "select t1.soh from soh_result t1  where " + "t1.sn='" + sn + "' order by time_st desc limit 1";
+            String sql = "select t1.soh from cellstateestimation_soh t1  where " + "t1.sn='" + sn + "' order by time_st desc limit 1";
             Map<String, Object> sohData;
             try {
                 sohData = qxcasJdbcTemplate.queryForMap(sql);
@@ -295,7 +295,7 @@ public Map<String, Object> gpsInfo() throws IOException {
                 rspHealthInfo.setSoh("-");
 
 
-            sql = "select cellsoc_diff from consistency_delta_soc where sn = '" + sn + "' order by time desc limit 1";
+            sql = "select cellsoc_diff from cellstateestimation_uniform_socvoltdiff where sn = '" + sn + "' order by time desc limit 1";
             Map<String, Object> consisData;
             try {
                 consisData = qxcasJdbcTemplate.queryForMap(sql);