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
d197a594
Commit
d197a594
authored
Dec 09, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得到的
parent
b96a1f90
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
132 additions
and
5 deletions
+132
-5
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/BasePowerLineDieselViewMapper.xml
...is/mapper/pps/core/base/BasePowerLineDieselViewMapper.xml
+23
-1
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/BasePowerLinePlantViewMapper.xml
...tis/mapper/pps/core/base/BasePowerLinePlantViewMapper.xml
+23
-1
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/BasePowerLineStorageViewMapper.xml
...s/mapper/pps/core/base/BasePowerLineStorageViewMapper.xml
+23
-1
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/BasePowerLineViewMapper.xml
.../mybatis/mapper/pps/core/base/BasePowerLineViewMapper.xml
+39
-1
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/BasePowerLineWellheadViewMapper.xml
.../mapper/pps/core/base/BasePowerLineWellheadViewMapper.xml
+24
-1
No files found.
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/BasePowerLineDieselViewMapper.xml
View file @
d197a594
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
WHERE L.LINE_ID = #{lineId}
WHERE L.LINE_ID = #{lineId}
</select>
</select>
<insert
id=
"batchInsertList"
parameterType=
"list"
>
<insert
id=
"batchInsertList"
parameterType=
"list"
databaseId=
"MySQL"
>
INSERT INTO BASE_POWER_LINE_DIESEL ( ID, CREATE_BY_ID, CREATE_BY_NAME, CREATE_TIME, MODIFY_BY_ID,
INSERT INTO BASE_POWER_LINE_DIESEL ( ID, CREATE_BY_ID, CREATE_BY_NAME, CREATE_TIME, MODIFY_BY_ID,
MODIFY_BY_NAME, MODIFY_TIME, LINE_ID, DIESEL_ID, OU_ID )
MODIFY_BY_NAME, MODIFY_TIME, LINE_ID, DIESEL_ID, OU_ID )
VALUES
VALUES
...
@@ -73,4 +73,26 @@
...
@@ -73,4 +73,26 @@
)
)
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"batchInsertList"
parameterType=
"list"
databaseId=
"Oracle"
>
INSERT ALL
<foreach
collection=
"list"
item=
"item"
>
INTO BASE_POWER_LINE_DIESEL ( ID, CREATE_BY_ID, CREATE_BY_NAME, CREATE_TIME, MODIFY_BY_ID,
MODIFY_BY_NAME, MODIFY_TIME, LINE_ID, DIESEL_ID, OU_ID )
VALUES
(
#{item.id},
#{item.createById},
#{item.createByName},
#{item.createTime},
#{item.modifyById},
#{item.modifyByName},
#{item.modifyTime},
#{item.lineId},
#{item.dieselId},
#{item.ouId}
)
</foreach>
SELECT * FROM DUAL
</insert>
</mapper>
</mapper>
\ No newline at end of file
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/BasePowerLinePlantViewMapper.xml
View file @
d197a594
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
WHERE L.LINE_ID = #{lineId}
WHERE L.LINE_ID = #{lineId}
</select>
</select>
<insert
id=
"batchInsertList"
parameterType=
"list"
>
<insert
id=
"batchInsertList"
parameterType=
"list"
databaseId=
"MySQL"
>
INSERT INTO BASE_POWER_LINE_PLANT ( ID, CREATE_BY_ID, CREATE_BY_NAME, CREATE_TIME, MODIFY_BY_ID,
INSERT INTO BASE_POWER_LINE_PLANT ( ID, CREATE_BY_ID, CREATE_BY_NAME, CREATE_TIME, MODIFY_BY_ID,
MODIFY_BY_NAME, MODIFY_TIME, LINE_ID, PLANT_ID, OU_ID )
MODIFY_BY_NAME, MODIFY_TIME, LINE_ID, PLANT_ID, OU_ID )
VALUES
VALUES
...
@@ -77,6 +77,28 @@
...
@@ -77,6 +77,28 @@
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"batchInsertList"
parameterType=
"list"
databaseId=
"Oracle"
>
INSERT ALL
<foreach
collection=
"list"
item=
"item"
>
INTO BASE_POWER_LINE_PLANT ( ID, CREATE_BY_ID, CREATE_BY_NAME, CREATE_TIME, MODIFY_BY_ID,
MODIFY_BY_NAME, MODIFY_TIME, LINE_ID, PLANT_ID, OU_ID )
VALUES
(
#{item.id},
#{item.createById},
#{item.createByName},
#{item.createTime},
#{item.modifyById},
#{item.modifyByName},
#{item.modifyTime},
#{item.lineId},
#{item.plantId},
#{item.ouId}
)
</foreach>
SELECT * FROM DUAL
</insert>
<select
id=
"selectPlantListByParam"
parameterType=
"pps.core.base.entity.BasePowerLinePlantView"
<select
id=
"selectPlantListByParam"
parameterType=
"pps.core.base.entity.BasePowerLinePlantView"
resultMap=
"ExtendsResultMap"
>
resultMap=
"ExtendsResultMap"
>
SELECT L.ID,
SELECT L.ID,
...
...
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/BasePowerLineStorageViewMapper.xml
View file @
d197a594
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
S.LINE_ID
S.LINE_ID
</select>
</select>
<insert
id=
"batchInsertList"
parameterType=
"list"
>
<insert
id=
"batchInsertList"
parameterType=
"list"
databaseId=
"MySQL"
>
INSERT INTO BASE_POWER_LINE_STORAGE ( ID, CREATE_BY_ID, CREATE_BY_NAME, CREATE_TIME, MODIFY_BY_ID,
INSERT INTO BASE_POWER_LINE_STORAGE ( ID, CREATE_BY_ID, CREATE_BY_NAME, CREATE_TIME, MODIFY_BY_ID,
MODIFY_BY_NAME, MODIFY_TIME, LINE_ID, STORAGE_ID, OU_ID )
MODIFY_BY_NAME, MODIFY_TIME, LINE_ID, STORAGE_ID, OU_ID )
VALUES
VALUES
...
@@ -95,4 +95,26 @@
...
@@ -95,4 +95,26 @@
)
)
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"batchInsertList"
parameterType=
"list"
databaseId=
"Oracle"
>
INSERT ALL
<foreach
collection=
"list"
item=
"item"
>
INTO BASE_POWER_LINE_STORAGE ( ID, CREATE_BY_ID, CREATE_BY_NAME, CREATE_TIME, MODIFY_BY_ID,
MODIFY_BY_NAME, MODIFY_TIME, LINE_ID, STORAGE_ID, OU_ID )
VALUES
(
#{item.id},
#{item.createById},
#{item.createByName},
#{item.createTime},
#{item.modifyById},
#{item.modifyByName},
#{item.modifyTime},
#{item.lineId},
#{item.storageId},
#{item.ouId}
)
</foreach>
SELECT * FROM DUAL
</insert>
</mapper>
</mapper>
\ No newline at end of file
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/BasePowerLineViewMapper.xml
View file @
d197a594
...
@@ -59,7 +59,8 @@
...
@@ -59,7 +59,8 @@
ID=#{id}
ID=#{id}
</select>
</select>
<select
id=
"selectList"
parameterType=
"pps.core.base.entity.BasePowerLineView"
resultMap=
"ExtendsResultMap"
>
<select
id=
"selectList"
parameterType=
"pps.core.base.entity.BasePowerLineView"
resultMap=
"ExtendsResultMap"
databaseId=
"MySQL"
>
SELECT
SELECT
B.ID,
B.ID,
B.OU_ID,
B.OU_ID,
...
@@ -94,4 +95,41 @@
...
@@ -94,4 +95,41 @@
B.LINE_TYPE_KEY ASC,
B.LINE_TYPE_KEY ASC,
B.LINE_NAME ASC
B.LINE_NAME ASC
</select>
</select>
<select
id=
"selectList"
parameterType=
"pps.core.base.entity.BasePowerLineView"
resultMap=
"ExtendsResultMap"
databaseId=
"Oracle"
>
SELECT
B.ID,
B.OU_ID,
B.UPPER_LINE_ID,
B.LINE_NAME,
B.GRID_TYPE_KEY,
B.LINE_TYPE_KEY,
B.STRATEGY_ID,
B.IS_SHARE_DISPATCH,
B.IS_REVERSE_DISPATCH,
B.START_INTERVAL,
( SELECT LINE_NAME FROM BASE_POWER_LINE L WHERE L.ID = B.UPPER_LINE_ID ) AS UPPER_LINE_NAME,
( SELECT COUNT( 1 ) FROM BASE_POWER_LINE_WELLHEAD W WHERE B.ID = W.LINE_ID ) AS WELLHEAD_COUNT,
O.OU_NAME
FROM BASE_POWER_LINE B
LEFT JOIN SYS_ORGANIZATION O ON B.OU_ID = O.ID
WHERE
B.IS_DELETED = 1
AND O.IS_DELETED = 1
AND B.OU_ID IN
<foreach
collection=
"ouList"
open=
"("
close=
")"
separator=
","
item=
"item"
>
#{item}
</foreach>
<if
test=
"lineName != null and lineName != ''"
>
AND B.LINE_NAME LIKE '%' || #{lineName} || '%'
</if>
<if
test=
"lineTypeKey != null and lineTypeKey != ''"
>
AND B.LINE_TYPE_KEY = #{lineTypeKey}
</if>
ORDER BY
O.OU_NAME ASC,
B.LINE_TYPE_KEY ASC,
B.LINE_NAME ASC
</select>
</mapper>
</mapper>
\ No newline at end of file
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/BasePowerLineWellheadViewMapper.xml
View file @
d197a594
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
</if>
</if>
</select>
</select>
<insert
id=
"batchInsertList"
parameterType=
"list"
>
<insert
id=
"batchInsertList"
parameterType=
"list"
databaseId=
"MySQL"
>
INSERT INTO BASE_POWER_LINE_WELLHEAD ( ID, CREATE_BY_ID, CREATE_BY_NAME, CREATE_TIME, MODIFY_BY_ID,
INSERT INTO BASE_POWER_LINE_WELLHEAD ( ID, CREATE_BY_ID, CREATE_BY_NAME, CREATE_TIME, MODIFY_BY_ID,
MODIFY_BY_NAME, MODIFY_TIME, LINE_ID, WELLHEAD_ID, OU_ID, START_SEQ )
MODIFY_BY_NAME, MODIFY_TIME, LINE_ID, WELLHEAD_ID, OU_ID, START_SEQ )
VALUES
VALUES
...
@@ -135,6 +135,29 @@
...
@@ -135,6 +135,29 @@
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"batchInsertList"
parameterType=
"list"
databaseId=
"Oracle"
>
INSERT ALL
<foreach
collection=
"list"
item=
"item"
>
INTO BASE_POWER_LINE_WELLHEAD ( ID, CREATE_BY_ID, CREATE_BY_NAME, CREATE_TIME, MODIFY_BY_ID,
MODIFY_BY_NAME, MODIFY_TIME, LINE_ID, WELLHEAD_ID, OU_ID, START_SEQ )
VALUES
(
#{item.id},
#{item.createById},
#{item.createByName},
#{item.createTime},
#{item.modifyById},
#{item.modifyByName},
#{item.modifyTime},
#{item.lineId},
#{item.wellheadId},
#{item.ouId},
#{item.startSeq}
)
</foreach>
SELECT * FROM DUAL
</insert>
<select
id=
"selectWellheadListByPlant"
parameterType=
"pps.core.base.entity.BasePowerLineWellheadView"
<select
id=
"selectWellheadListByPlant"
parameterType=
"pps.core.base.entity.BasePowerLineWellheadView"
resultMap=
"ExtendsResultMap"
>
resultMap=
"ExtendsResultMap"
>
SELECT B.WELL_NUMBER
SELECT B.WELL_NUMBER
...
...
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