From 96f46b9168482ce4d64774b0e4433be2820a97ca Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 10 八月 2023 16:57:20 +0800 Subject: [PATCH] 1 --- src/main/resources/mapper/XlsReportMapper.xml | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/XlsReportMapper.xml b/src/main/resources/mapper/XlsReportMapper.xml index 9a644b8..f53c63a 100644 --- a/src/main/resources/mapper/XlsReportMapper.xml +++ b/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> \ No newline at end of file -- Gitblit v1.9.3