Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gf_back
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianchao
gf_back
Commits
132352f0
Commit
132352f0
authored
Dec 13, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得到的
parent
3488c2de
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
211 additions
and
21 deletions
+211
-21
C11-space/pps-core-space/src/main/resources/mybatis/mapper/pps/core/space/LineDailyElectricityTrendViewMapper.xml
...er/pps/core/space/LineDailyElectricityTrendViewMapper.xml
+27
-1
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/EnergyConsumptionAnalysisService.java
.../prediction/service/EnergyConsumptionAnalysisService.java
+30
-17
C12-prediction/pps-core-prediction/src/main/resources/mybatis/mapper/pps/core/prediction/ThirdActivePowerViewMapper.xml
...mapper/pps/core/prediction/ThirdActivePowerViewMapper.xml
+40
-1
C12-prediction/pps-core-prediction/src/main/resources/mybatis/mapper/pps/core/prediction/ThirdDailyAccumulationUpdateViewMapper.xml
...ore/prediction/ThirdDailyAccumulationUpdateViewMapper.xml
+53
-1
C12-prediction/pps-core-prediction/src/main/resources/mybatis/mapper/pps/core/prediction/ThirdWellAvgActivePowerViewMapper.xml
...pps/core/prediction/ThirdWellAvgActivePowerViewMapper.xml
+61
-1
No files found.
C11-space/pps-core-space/src/main/resources/mybatis/mapper/pps/core/space/LineDailyElectricityTrendViewMapper.xml
View file @
132352f0
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
</insert>
</insert>
<select
id=
"selectDailyElectricityTrend"
parameterType=
"pps.core.space.entity.LineDailyElectricityTrendView"
<select
id=
"selectDailyElectricityTrend"
parameterType=
"pps.core.space.entity.LineDailyElectricityTrendView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
databaseId=
"MySQL"
>
SELECT
SELECT
IFNULL( SUM( PHOTOVOLTAIC_POWER ), 0 ) AS PHOTOVOLTAIC_POWER,
IFNULL( SUM( PHOTOVOLTAIC_POWER ), 0 ) AS PHOTOVOLTAIC_POWER,
IFNULL( SUM( MUNICIPAL_POWER ), 0 ) AS MUNICIPAL_POWER,
IFNULL( SUM( MUNICIPAL_POWER ), 0 ) AS MUNICIPAL_POWER,
...
@@ -111,6 +111,32 @@
...
@@ -111,6 +111,32 @@
CREATE_DATE
CREATE_DATE
</select>
</select>
<select
id=
"selectDailyElectricityTrend"
parameterType=
"pps.core.space.entity.LineDailyElectricityTrendView"
resultMap=
"BaseResultMap"
databaseId=
"Oracle"
>
SELECT
NVL( SUM( PHOTOVOLTAIC_POWER ), 0 ) AS PHOTOVOLTAIC_POWER,
NVL( SUM( MUNICIPAL_POWER ), 0 ) AS MUNICIPAL_POWER,
NVL( SUM( LAST_PHOTOVOLTAIC_POWER ), 0 ) AS LAST_PHOTOVOLTAIC_POWER,
NVL( SUM( LAST_MUNICIPAL_POWER ), 0 ) AS LAST_MUNICIPAL_POWER,
CREATE_DATE
FROM
LINE_DAILY_ELECTRICITY_TREND
WHERE
STATION_NAME IN
<foreach
collection=
"stationNameList"
open=
"("
close=
")"
separator=
","
item=
"item"
>
#{item}
</foreach>
<if
test=
"systemSource != null"
>
AND SYSTEM_SOURCE = #{systemSource}
</if>
AND CREATE_DATE BETWEEN #{startTime}
AND #{endTime}
GROUP BY
CREATE_DATE
ORDER BY
CREATE_DATE
</select>
<resultMap
id=
"ExtResultMap"
type=
"pps.core.space.entity.LineDailyElectricityTrendView"
extends=
"BaseResultMap"
>
<resultMap
id=
"ExtResultMap"
type=
"pps.core.space.entity.LineDailyElectricityTrendView"
extends=
"BaseResultMap"
>
<result
column=
"DAY_FLAG"
property=
"dayFlag"
/>
<result
column=
"DAY_FLAG"
property=
"dayFlag"
/>
</resultMap>
</resultMap>
...
...
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/EnergyConsumptionAnalysisService.java
View file @
132352f0
...
@@ -601,13 +601,18 @@ public class EnergyConsumptionAnalysisService {
...
@@ -601,13 +601,18 @@ public class EnergyConsumptionAnalysisService {
.
map
(
DynamicQueryBasePowerLinePlantViewOutput:
:
getStationName
)
.
map
(
DynamicQueryBasePowerLinePlantViewOutput:
:
getStationName
)
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
ThirdDailyAccumulationUpdateViewMapper
mapper
=
context
.
getBean
(
ThirdDailyAccumulationUpdateViewMapper
.
class
);
ThirdDailyAccumulationUpdateViewMapper
mapper
=
context
.
getBean
(
ThirdDailyAccumulationUpdateViewMapper
.
class
);
List
<
ThirdDailyAccumulationUpdateView
>
viewList
=
mapper
.
selectPowerStatisticsByDate
(
ThirdDailyAccumulationUpdateView
.
builder
()
List
<
ThirdDailyAccumulationUpdateView
>
viewList
=
null
;
.
today
(
today
)
try
{
.
yesterday
(
DateUtil
.
beginOfDay
(
DateUtil
.
yesterday
()))
viewList
=
mapper
.
selectPowerStatisticsByDate
(
ThirdDailyAccumulationUpdateView
.
builder
()
.
lastYear
(
DateUtil
.
offset
(
today
,
DateField
.
YEAR
,
-
1
))
.
today
(
today
)
.
stationNameList
(
collect
)
.
yesterday
(
DateUtil
.
beginOfDay
(
DateUtil
.
yesterday
()))
.
systemSource
(
oilFieldCode
)
.
lastYear
(
DateUtil
.
offset
(
today
,
DateField
.
YEAR
,
-
1
))
.
build
());
.
stationNameList
(
collect
)
.
systemSource
(
oilFieldCode
)
.
build
());
}
catch
(
RuntimeException
e
)
{
System
.
out
.
println
();
}
outputs
=
XCopyUtils
.
copyNewList
(
viewList
,
PowerStatisticsOutput
.
class
);
outputs
=
XCopyUtils
.
copyNewList
(
viewList
,
PowerStatisticsOutput
.
class
);
//谷电占比
//谷电占比
if
(
BusinessConstant
.
ENV_SY
.
equals
(
oilFieldCode
))
{
if
(
BusinessConstant
.
ENV_SY
.
equals
(
oilFieldCode
))
{
...
@@ -775,9 +780,10 @@ public class EnergyConsumptionAnalysisService {
...
@@ -775,9 +780,10 @@ public class EnergyConsumptionAnalysisService {
.
map
(
DynamicQueryBasePowerLinePlantViewOutput:
:
getStationName
)
.
map
(
DynamicQueryBasePowerLinePlantViewOutput:
:
getStationName
)
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
//查本期
//查本期
String
oilFieldCode
=
ServiceUtil
.
getOilFieldCode
(
context
);
DateTime
endTime
=
DateUtil
.
offsetDay
(
input
.
getEndTime
(),
1
);
DateTime
endTime
=
DateUtil
.
offsetDay
(
input
.
getEndTime
(),
1
);
nowMap
=
this
.
getPowerMap
(
context
,
input
.
getStartTime
(),
endTime
,
collect
,
2
,
null
,
null
);
nowMap
=
this
.
getPowerMap
(
context
,
input
.
getStartTime
(),
endTime
,
collect
,
2
,
oilFieldCode
,
null
);
lastMap
=
this
.
getPowerMap
(
context
,
DateUtil
.
offset
(
input
.
getStartTime
(),
DateField
.
YEAR
,
-
1
),
DateUtil
.
offset
(
endTime
,
DateField
.
YEAR
,
-
1
),
collect
,
2
,
null
,
null
);
lastMap
=
this
.
getPowerMap
(
context
,
DateUtil
.
offset
(
input
.
getStartTime
(),
DateField
.
YEAR
,
-
1
),
DateUtil
.
offset
(
endTime
,
DateField
.
YEAR
,
-
1
),
collect
,
2
,
oilFieldCode
,
null
);
}
else
{
}
else
{
nowMap
=
Collections
.
emptyMap
();
nowMap
=
Collections
.
emptyMap
();
lastMap
=
Collections
.
emptyMap
();
lastMap
=
Collections
.
emptyMap
();
...
@@ -1637,7 +1643,6 @@ public class EnergyConsumptionAnalysisService {
...
@@ -1637,7 +1643,6 @@ public class EnergyConsumptionAnalysisService {
/*-----------------------------------private-----------------------------------*/
/*-----------------------------------private-----------------------------------*/
/**
/**
* 电量统计
* 电量统计
*
*
...
@@ -1655,13 +1660,21 @@ public class EnergyConsumptionAnalysisService {
...
@@ -1655,13 +1660,21 @@ public class EnergyConsumptionAnalysisService {
switch
(
oilFieldCode
)
{
switch
(
oilFieldCode
)
{
case
BusinessConstant
.
ENV_SY
:
case
BusinessConstant
.
ENV_SY
:
StationDailyProductionSituationMapper
situationMapper
=
context
.
getBean
(
StationDailyProductionSituationMapper
.
class
);
StationDailyProductionSituationMapper
situationMapper
=
context
.
getBean
(
StationDailyProductionSituationMapper
.
class
);
List
<
StationDailyProductionSituationEnt
>
list
=
situationMapper
.
selectList
(
new
QueryWrapper
<
StationDailyProductionSituationEnt
>()
QueryWrapper
<
StationDailyProductionSituationEnt
>
queryWrapper
=
new
QueryWrapper
<>();
.
select
(
"IFNULL( ROUND( SUM( daily_electricity_consumption ), 2 ), 0 ) AS daily_electricity_consumption"
,
if
(
CharSequenceUtil
.
equals
(
context
.
getProperty
(
"x.db.databaseId"
),
BusinessConstant
.
ORACLE
))
{
"IFNULL( ROUND( SUM( daily_liquid_production ), 2 ), 0 ) AS daily_liquid_production"
,
queryWrapper
.
select
(
"NVL( ROUND( SUM( daily_electricity_consumption ), 2 ), 0 ) AS daily_electricity_consumption"
,
"IFNULL( ROUND( SUM( photovoltaic_power ), 2 ), 0 ) AS photovoltaic_power"
,
"NVL( ROUND( SUM( daily_liquid_production ), 2 ), 0 ) AS daily_liquid_production"
,
"data_date"
"NVL( ROUND( SUM( photovoltaic_power ), 2 ), 0 ) AS photovoltaic_power"
,
)
"data_date"
.
lambda
()
);
}
else
{
queryWrapper
.
select
(
"IFNULL( ROUND( SUM( daily_electricity_consumption ), 2 ), 0 ) AS daily_electricity_consumption"
,
"IFNULL( ROUND( SUM( daily_liquid_production ), 2 ), 0 ) AS daily_liquid_production"
,
"IFNULL( ROUND( SUM( photovoltaic_power ), 2 ), 0 ) AS photovoltaic_power"
,
"data_date"
);
}
List
<
StationDailyProductionSituationEnt
>
list
=
situationMapper
.
selectList
(
queryWrapper
.
lambda
()
.
in
(
CollUtil
.
isNotEmpty
(
stationNameList
),
StationDailyProductionSituationEnt:
:
getStationName
,
stationNameList
)
.
in
(
CollUtil
.
isNotEmpty
(
stationNameList
),
StationDailyProductionSituationEnt:
:
getStationName
,
stationNameList
)
.
between
(
ObjectUtil
.
isAllNotEmpty
(
startTime
,
endTime
),
StationDailyProductionSituationEnt:
:
getDataDate
,
startTime
,
endTime
)
.
between
(
ObjectUtil
.
isAllNotEmpty
(
startTime
,
endTime
),
StationDailyProductionSituationEnt:
:
getDataDate
,
startTime
,
endTime
)
.
groupBy
(
StationDailyProductionSituationEnt:
:
getDataDate
)
.
groupBy
(
StationDailyProductionSituationEnt:
:
getDataDate
)
...
...
C12-prediction/pps-core-prediction/src/main/resources/mybatis/mapper/pps/core/prediction/ThirdActivePowerViewMapper.xml
View file @
132352f0
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
</select>
</select>
<select
id=
"selectGeneratedPowerHour"
parameterType=
"pps.core.prediction.entity.ThirdActivePowerView"
<select
id=
"selectGeneratedPowerHour"
parameterType=
"pps.core.prediction.entity.ThirdActivePowerView"
resultMap=
"ExtBaseResultMap"
>
resultMap=
"ExtBaseResultMap"
databaseId=
"MySQL"
>
SELECT
SELECT
ROUND( SUM( PHOTOVOLTAIC_POWER ), 2 ) AS PHOTOVOLTAIC_POWER,
ROUND( SUM( PHOTOVOLTAIC_POWER ), 2 ) AS PHOTOVOLTAIC_POWER,
CREATE_DATE
CREATE_DATE
...
@@ -113,6 +113,45 @@
...
@@ -113,6 +113,45 @@
CREATE_DATE
CREATE_DATE
</select>
</select>
<select
id=
"selectGeneratedPowerHour"
parameterType=
"pps.core.prediction.entity.ThirdActivePowerView"
resultMap=
"ExtBaseResultMap"
databaseId=
"Oracle"
>
SELECT
ROUND( SUM( PHOTOVOLTAIC_POWER ), 2 ) AS PHOTOVOLTAIC_POWER,
CREATE_DATE
FROM (SELECT NVL(AVG(PHOTOVOLTAIC_POWER), 0) AS PHOTOVOLTAIC_POWER,
<choose>
<when
test=
"dayFlag == 3"
>
TO_CHAR( CREATE_DATE, 'YYYY-MM-' ) || '01' AS CREATE_DATE,
</when>
<when
test=
"dayFlag == 2"
>
TO_CHAR( CREATE_DATE, 'YYYY-MM-DD' ) AS CREATE_DATE,
</when>
<otherwise>
TO_CHAR( CREATE_DATE, 'YYYY-MM-DD HH24' ) || ':00:00' AS CREATE_DATE,
</otherwise>
</choose>
STATION_NAME
FROM THIRD_ACTIVE_POWER
WHERE (
<if
test=
"stationNames != null and stationNames.size() > 0"
>
STATION_NAME IN
<foreach
collection=
"stationNames"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
AND CREATE_DATE BETWEEN #{startTime}
AND #{endTime}
<if
test=
"systemSource != null"
>
AND SYSTEM_SOURCE = #{systemSource}
</if>
)
GROUP BY STATION_NAME,
CREATE_DATE) Z
GROUP BY CREATE_DATE
ORDER BY
CREATE_DATE
</select>
<select
id=
"selectAvgPhotovoltaicPower"
parameterType=
"pps.core.prediction.entity.ThirdActivePowerView"
<select
id=
"selectAvgPhotovoltaicPower"
parameterType=
"pps.core.prediction.entity.ThirdActivePowerView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT G.STATION_NAME,
SELECT G.STATION_NAME,
...
...
C12-prediction/pps-core-prediction/src/main/resources/mybatis/mapper/pps/core/prediction/ThirdDailyAccumulationUpdateViewMapper.xml
View file @
132352f0
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
</resultMap>
</resultMap>
<select
id=
"selectPowerStatisticsByDate"
parameterType=
"pps.core.prediction.entity.ThirdDailyAccumulationUpdateView"
<select
id=
"selectPowerStatisticsByDate"
parameterType=
"pps.core.prediction.entity.ThirdDailyAccumulationUpdateView"
resultMap=
"ExtResultMap"
>
resultMap=
"ExtResultMap"
databaseId=
"MySQL"
>
SELECT Z.DAY_FLAG,
SELECT Z.DAY_FLAG,
ROUND(Z.PHOTOVOLTAIC_POWER, 2) AS PHOTOVOLTAIC_POWER,
ROUND(Z.PHOTOVOLTAIC_POWER, 2) AS PHOTOVOLTAIC_POWER,
ROUND(Z.DAILY_ELECTRICITY_CONSUMPTION, 2) AS DAILY_ELECTRICITY_CONSUMPTION,
ROUND(Z.DAILY_ELECTRICITY_CONSUMPTION, 2) AS DAILY_ELECTRICITY_CONSUMPTION,
...
@@ -130,6 +130,58 @@
...
@@ -130,6 +130,58 @@
) Z
) Z
</select>
</select>
<select
id=
"selectPowerStatisticsByDate"
parameterType=
"pps.core.prediction.entity.ThirdDailyAccumulationUpdateView"
resultMap=
"ExtResultMap"
databaseId=
"Oracle"
>
SELECT Z.DAY_FLAG,
ROUND(Z.PHOTOVOLTAIC_POWER, 2) AS PHOTOVOLTAIC_POWER,
ROUND(Z.DAILY_ELECTRICITY_CONSUMPTION, 2) AS DAILY_ELECTRICITY_CONSUMPTION,
CASE
Z.DAILY_ELECTRICITY_CONSUMPTION
WHEN 0 THEN
0 ELSE NVL( ROUND( Z.IN_PLACE_CONSUMPTION / Z.DAILY_ELECTRICITY_CONSUMPTION * 100, 2 ), 0 )
END GREEN_ELECTRICITY_RATE,
NVL(ROUND(Z.PHOTOVOLTAIC_POWER - Z.IN_PLACE_CONSUMPTION, 2), 0) AS AVOID_PEAK_RATE
FROM (SELECT NVL(SUM(PHOTOVOLTAIC_POWER), 0) AS PHOTOVOLTAIC_POWER,
NVL(SUM(DAILY_ELECTRICITY_CONSUMPTION), 0) AS DAILY_ELECTRICITY_CONSUMPTION,
NVL(SUM(IN_PLACE_CONSUMPTION), 0) AS IN_PLACE_CONSUMPTION,
1 AS DAY_FLAG
FROM THIRD_DAILY_ACCUMULATION_UPDATE
WHERE
TO_CHAR( CREATE_DATE, 'YYYY-MM-DD HH24' ) || ':00:00' = #{today}
AND SYSTEM_SOURCE = #{systemSource}
AND STATION_NAME IN
<foreach
collection=
"stationNameList"
open=
"("
close=
")"
separator=
","
item=
"item"
>
#{item}
</foreach>
UNION ALL
SELECT NVL(SUM(PHOTOVOLTAIC_POWER), 0) AS PHOTOVOLTAIC_POWER,
NVL(SUM(DAILY_ELECTRICITY_CONSUMPTION), 0) AS DAILY_ELECTRICITY_CONSUMPTION,
NVL(SUM(IN_PLACE_CONSUMPTION), 0) AS IN_PLACE_CONSUMPTION,
2 AS DAY_FLAG
FROM THIRD_DAILY_ACCUMULATION_UPDATE
WHERE
TO_CHAR( CREATE_DATE, 'YYYY-MM-DD HH24' ) || ':00:00' = #{yesterday}
AND SYSTEM_SOURCE = #{systemSource}
AND STATION_NAME IN
<foreach
collection=
"stationNameList"
open=
"("
close=
")"
separator=
","
item=
"item"
>
#{item}
</foreach>
UNION ALL
SELECT NVL(SUM(PHOTOVOLTAIC_POWER), 0) AS PHOTOVOLTAIC_POWER,
NVL(SUM(DAILY_ELECTRICITY_CONSUMPTION), 0) AS DAILY_ELECTRICITY_CONSUMPTION,
NVL(SUM(IN_PLACE_CONSUMPTION), 0) AS IN_PLACE_CONSUMPTION,
3 AS DAY_FLAG
FROM THIRD_DAILY_ACCUMULATION_UPDATE
WHERE
TO_CHAR( CREATE_DATE, 'YYYY-MM-DD HH24' ) || ':00:00' = #{lastYear}
AND SYSTEM_SOURCE = #{systemSource}
AND STATION_NAME IN
<foreach
collection=
"stationNameList"
open=
"("
close=
")"
separator=
","
item=
"item"
>
#{item}
</foreach>
) Z
</select>
<select
id=
"selectPowerTrendByDate"
<select
id=
"selectPowerTrendByDate"
parameterType=
"pps.core.prediction.entity.ThirdDailyAccumulationUpdateView"
parameterType=
"pps.core.prediction.entity.ThirdDailyAccumulationUpdateView"
resultMap=
"ExtResultMap"
>
resultMap=
"ExtResultMap"
>
...
...
C12-prediction/pps-core-prediction/src/main/resources/mybatis/mapper/pps/core/prediction/ThirdWellAvgActivePowerViewMapper.xml
View file @
132352f0
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
</select>
</select>
<select
id=
"selectPowerConsumptionHour"
parameterType=
"pps.core.prediction.entity.ThirdWellAvgActivePowerView"
<select
id=
"selectPowerConsumptionHour"
parameterType=
"pps.core.prediction.entity.ThirdWellAvgActivePowerView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
databaseId=
"MySQL"
>
SELECT
SELECT
<choose>
<choose>
<when
test=
"systemSource == 'SY'"
>
<when
test=
"systemSource == 'SY'"
>
...
@@ -143,4 +143,64 @@
...
@@ -143,4 +143,64 @@
ORDER BY
ORDER BY
INPUT_TIME
INPUT_TIME
</select>
</select>
<select
id=
"selectPowerConsumptionHour"
parameterType=
"pps.core.prediction.entity.ThirdWellAvgActivePowerView"
resultMap=
"BaseResultMap"
databaseId=
"Oracle"
>
SELECT
<choose>
<when
test=
"systemSource == 'SY'"
>
ROUND( SUM( AVG_ACTIVE_POWER )/ 1000, 2 ) AS AVG_ACTIVE_POWER,
</when>
<otherwise>
ROUND( SUM( AVG_ACTIVE_POWER ), 2 ) AS AVG_ACTIVE_POWER,
</otherwise>
</choose>
INPUT_TIME
FROM
(
SELECT
NVL( AVG( AVG_ACTIVE_POWER ), 0 ) AS AVG_ACTIVE_POWER,
Z.INPUT_TIME,
Z.WELL_NUMBER
FROM
(
SELECT
AVG_ACTIVE_POWER,
<choose>
<when
test=
"dayFlag == 3"
>
TO_CHAR( INPUT_TIME, 'YYYY-MM-' ) || '01' AS INPUT_TIME,
</when>
<when
test=
"dayFlag == 2"
>
TO_CHAR( INPUT_TIME, 'YYYY-MM-DD' ) AS INPUT_TIME,
</when>
<otherwise>
TO_CHAR( INPUT_TIME, 'YYYY-MM-DD HH24' ) || ':00:00' AS INPUT_TIME,
</otherwise>
</choose>
WELL_NUMBER
FROM
THIRD_WELL_AVG_ACTIVE_POWER
WHERE
(
<if
test=
"wellNumbers != null and wellNumbers.size() > 0"
>
WELL_NUMBER IN
<foreach
collection=
"wellNumbers"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
AND INPUT_TIME BETWEEN #{startTime}
AND #{endTime}
<if
test=
"systemSource != null"
>
AND SYSTEM_SOURCE = #{systemSource}
</if>
)) Z
GROUP BY
Z.WELL_NUMBER,
Z.INPUT_TIME
) Z
GROUP BY
INPUT_TIME
ORDER BY
INPUT_TIME
</select>
</mapper>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment