| | |
| | | package com.yssh.mapper; |
| | | |
| | | import com.yssh.entity.SuYuan700; |
| | | import com.yssh.entity.xls.XlsReport; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | * 查询年累计值 |
| | | */ |
| | | double selectYearAccumulate(@Param("time") String time, @Param("name") String name); |
| | | |
| | | /** |
| | | * 根据时间查询溯源 |
| | | */ |
| | | List<SuYuan700> selectSuYuanByTime(@Param("id") String id, @Param("start") Integer start, @Param("end") Integer end); |
| | | } |
| | |
| | | from yssh_qxsh |
| | | where time like #{time} and name = #{name}; |
| | | </select> |
| | | |
| | | <!-- 根据时间查询溯源 --> |
| | | <select id="selectSuYuanByTime" resultType="com.yssh.entity.SuYuan700"> |
| | | select * |
| | | from suyuan_46 |
| | | where su_yuan_id = #{id} and create_time between #{start} and #{end} |
| | | order by time; |
| | | </select> |
| | | </mapper> |