| | |
| | | package com.yssh.dao; |
| | | |
| | | import com.yssh.entity.VocCoords; |
| | | import com.yssh.entity.VocVals; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | /** |
| | | * 根据时间查询 |
| | | * |
| | | * @param time 时间(示例:2023060514) |
| | | * @param startVal 起始值(可为空) |
| | | * @param time 时间(示例:2023060514) |
| | | * @return |
| | | */ |
| | | public List<VocVals> selectByTime(@Param("time") String time, @Param("startVal") Double startVal); |
| | | public List<VocVals> selectByTime(@Param("time") String time); |
| | | |
| | | /** |
| | | * 根据时间统计 |
| | |
| | | * @return 行数 |
| | | */ |
| | | public int countByTime(@Param("time") String time); |
| | | |
| | | /** |
| | | * 根据X,Y值查询地址 |
| | | * |
| | | * @param x X值 |
| | | * @param y Y值 |
| | | * @return 地址 |
| | | */ |
| | | public List<VocCoords> selectCoords(@Param("x") Integer x, @Param("y") Integer y); |
| | | |
| | | /** |
| | | * 插入一条数据 |
| | |
| | | * @return 影响行数 |
| | | */ |
| | | public int deleteLastYear(); |
| | | |
| | | /** |
| | | * 根据时间删除数据 |
| | | * |
| | | * @param time 时间(示例:2023060514) |
| | | * @return 影响行数 |
| | | */ |
| | | public int deleteByTime(@Param("time") String time); |
| | | } |