diff --git a/op-modules/op-energy/src/main/resources/mapper/report/ReportPointDnbMapper.xml b/op-modules/op-energy/src/main/resources/mapper/report/ReportPointDnbMapper.xml index c5dc66ae0..21d1a9f99 100644 --- a/op-modules/op-energy/src/main/resources/mapper/report/ReportPointDnbMapper.xml +++ b/op-modules/op-energy/src/main/resources/mapper/report/ReportPointDnbMapper.xml @@ -92,13 +92,13 @@ (SELECT t.monitor_id FROM base_monitor_info t WHERE dbo.FIND_IN_SET(#{monitorSubset}, ancestors) > 0)) - and CONVERT(VARCHAR(17), begin_time, 120) between #{params.beginBeginTime} and #{params.endBeginTime} + and CONVERT(VARCHAR(19), begin_time, 120) between #{params.beginBeginTime} and #{params.endBeginTime} - and CONVERT(VARCHAR(17), begin_time, 120) between #{params.startTime} and #{params.endTime} + and CONVERT(VARCHAR(19), begin_time, 120) between #{params.startTime} and #{params.endTime} - and CONVERT(VARCHAR(17), begin_time, 120) between #{params.beginCollectTime} and #{params.endCollectTime} + and CONVERT(VARCHAR(19), begin_time, 120) between #{params.beginCollectTime} and #{params.endCollectTime} and end_time = #{endTime} and record_time = #{recordTime} @@ -125,7 +125,7 @@ select ert.monitor_id, ert.monitor_name, ert.pointTime, sum(isnull(ert.expend,0)) expend from ( - select rpd.monitor_id, m.monitor_name, left(CONVERT(VARCHAR(17), rpd.begin_time, 120), 10) pointTime, rpd.expend + select rpd.monitor_id, m.monitor_name, left(CONVERT(VARCHAR(19), rpd.begin_time, 120), 10) pointTime, rpd.expend from report_point_dnb rpd left join base_monitor_info m on m.monitor_id = rpd.monitor_id @@ -171,7 +171,7 @@ - and left(CONVERT(VARCHAR(17), rpd.begin_time, 120), 10) between #{startDay} and #{endDay} + and left(CONVERT(VARCHAR(19), rpd.begin_time, 120), 10) between #{startDay} and #{endDay} ) ert @@ -196,7 +196,7 @@ max(ert.meter_value) meter_value, max(ert.monitor_addr) address from ( - select rpd.monitor_id, m.monitor_name, left(CONVERT(VARCHAR(17), rpd.begin_time, 120), #{params.timeSub}) pointTime, rpd.expend, + select rpd.monitor_id, m.monitor_name, left(CONVERT(VARCHAR(19), rpd.begin_time, 120), #{params.timeSub}) pointTime, rpd.expend, rpd.meter_value,m.monitor_addr from report_point_dnb rpd left join base_monitor_info m on m.monitor_id = rpd.monitor_id @@ -246,7 +246,7 @@ left join base_public_user bpu on bmp.public_share_id = bpu.id - and left(CONVERT(VARCHAR(17), rpd.begin_time, 120),10) between #{beginCollectTime} and #{endCollectTime} + and left(CONVERT(VARCHAR(19), rpd.begin_time, 120),10) between #{beginCollectTime} and #{endCollectTime} and rpd.monitor_id IN @@ -460,7 +460,7 @@ left join base_monitor_info m on m.monitor_id = rpd.monitor_id WHERE 1=1 - and CONVERT(VARCHAR(17), rpd.begin_time, 120) between #{params.startTime} and #{params.endTime} + and CONVERT(VARCHAR(19), rpd.begin_time, 120) between #{params.startTime} and #{params.endTime} and rpd.monitor_id IN @@ -475,13 +475,13 @@ select ert.pointTime, sum(isnull(ert.expend,0)) expend from ( - select left(left(CONVERT(VARCHAR(17), rpd.begin_time, 120), 10), #{timeSub}) pointTime, rpd.expend + select left(left(CONVERT(VARCHAR(19), rpd.begin_time, 120), 10), #{timeSub}) pointTime, rpd.expend from report_point_water rpd left join base_monitor_info m on m.monitor_id = rpd.monitor_id @@ -134,7 +134,7 @@ and rpd.begin_time between #{startTime} and #{endTime} - and left(CONVERT(VARCHAR(17), rpd.begin_time, 120), 10) between #{startDay} and #{endDay} + and left(CONVERT(VARCHAR(19), rpd.begin_time, 120), 10) between #{startDay} and #{endDay} ) ert @@ -144,7 +144,7 @@