src/main/resources/mapper/XlsReportMapper.xml
@@ -64,4 +64,15 @@ where su_yuan_id = #{id} and create_time between #{start} and #{end} order by create_time; </select> <!-- 根据时间段查询溯源 --> <select id="selectSuYuanByStartAndEnd" resultType="com.yssh.entity.SuYuan700"> select * from suyuan_46 where su_yuan_id = #{id} and date_format(create_time, '%Y%m%d%H') in ( select time from yssh_qxsh where value > #{yjz} and name = #{name} and time between #{start} and #{end} ); </select> </mapper>