燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-08-10 208d2d08a381a787e1030328319132de5d92a7cc
1
已修改2个文件
14 ■■■■■ 文件已修改
src/main/java/com/yssh/mapper/XlsReportMapper.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/XlsReportMapper.xml 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/yssh/mapper/XlsReportMapper.java
@@ -1,5 +1,6 @@
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;
@@ -42,4 +43,9 @@
     * 查询年累计值
     */
    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);
}
src/main/resources/mapper/XlsReportMapper.xml
@@ -63,4 +63,12 @@
        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>