|
@@ -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);
|
|
|
}
|