lmstack 3 年之前
父节点
当前提交
e5fc072158
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/qx/didi/mapper/SohResultMapper.java

+ 1 - 1
src/main/java/com/qx/didi/mapper/SohResultMapper.java

@@ -18,6 +18,6 @@ import java.util.List;
  */
 public interface SohResultMapper extends BaseMapper<SohResult> {
 
-    @Select("select time_st as time, FLOOR(DATEDIFF(time_st,'2021-01-01')/7)+1 as weeks, AVG(packsoh) as soh from soh_result where device_id = #{sn} group by weeks order by weeks")
+    @Select("select time_st as time, FLOOR(DATEDIFF(time_st,'2021-01-01')/7)+1 as weeks, AVG(soh) as soh from soh_result where device_id = #{sn} group by weeks order by weeks")
     List<SohResultDto> getSohResult(@Param("sn") String sn);
 }