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
a0532dfd
Commit
a0532dfd
authored
Dec 09, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得到的
parent
7d84d8ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
128 additions
and
2 deletions
+128
-2
C11-space/pps-core-space/src/main/java/pps/core/space/service/SpaceInstitutionDetailService.java
...pps/core/space/service/SpaceInstitutionDetailService.java
+2
-0
C11-space/pps-core-space/src/main/resources/mybatis/mapper/pps/core/space/SpaceInstitutionDurationViewMapper.xml
...per/pps/core/space/SpaceInstitutionDurationViewMapper.xml
+43
-1
C11-space/pps-core-space/src/main/resources/mybatis/mapper/pps/core/space/SpaceInstitutionWellheadViewMapper.xml
...per/pps/core/space/SpaceInstitutionWellheadViewMapper.xml
+83
-1
No files found.
C11-space/pps-core-space/src/main/java/pps/core/space/service/SpaceInstitutionDetailService.java
View file @
a0532dfd
...
...
@@ -92,6 +92,8 @@ public class SpaceInstitutionDetailService extends SpaceOptimizeBaseService {
return
XTransactionHelper
.
begin
(
context
,
()
->
{
//新增间开配置
SpaceInstitutionDetailMapper
mapper
=
context
.
getBean
(
SpaceInstitutionDetailMapper
.
class
);
entity
.
setOptimizeState
(
1
);
entity
.
setIsCurrentBasic
(
1
);
mapper
.
insert
(
entity
);
String
institutionId
=
entity
.
getId
();
List
<
CreateSpaceInstitutionWellheadInput
>
wellheadList
=
input
.
getWellheadList
();
...
...
C11-space/pps-core-space/src/main/resources/mybatis/mapper/pps/core/space/SpaceInstitutionDurationViewMapper.xml
View file @
a0532dfd
...
...
@@ -53,7 +53,7 @@
ID=#{id}
</select>
<insert
id=
"batchInsertList"
parameterType=
"list"
>
<insert
id=
"batchInsertList"
parameterType=
"list"
databaseId=
"MySQL"
>
INSERT INTO SPACE_INSTITUTION_DURATION (
ID,
CREATE_BY_ID,
...
...
@@ -88,4 +88,46 @@
)
</foreach>
</insert>
<insert
id=
"batchInsertList"
parameterType=
"list"
databaseId=
"Oracle"
>
INSERT ALL
<foreach
collection=
"list"
item=
"item"
>
INTO SPACE_INSTITUTION_DURATION (
ID,
CREATE_BY_ID,
CREATE_BY_NAME,
CREATE_TIME,
MODIFY_BY_ID,
MODIFY_BY_NAME,
MODIFY_TIME,
INSTITUTION_ID,
CONFIG_ID,
WELLHEAD_ID,
<if
test=
"item.generationTypeKey != null and item.generationTypeKey != ''"
>
GENERATION_TYPE_KEY,
</if>
OPEN_WELL_TIME,
CLOSE_WELL_TIME
)
VALUES
(
#{item.id},
#{item.createById},
#{item.createByName},
#{item.createTime},
#{item.modifyById},
#{item.modifyByName},
#{item.modifyTime},
#{item.institutionId},
#{item.configId},
#{item.wellheadId},
<if
test=
"item.generationTypeKey != null and item.generationTypeKey != ''"
>
#{item.generationTypeKey},
</if>
#{item.openWellTime},
#{item.closeWellTime}
)
</foreach>
SELECT * FROM DUAL
</insert>
</mapper>
\ No newline at end of file
C11-space/pps-core-space/src/main/resources/mybatis/mapper/pps/core/space/SpaceInstitutionWellheadViewMapper.xml
View file @
a0532dfd
...
...
@@ -69,7 +69,7 @@
ID=#{id}
</select>
<insert
id=
"batchInsertList"
parameterType=
"list"
>
<insert
id=
"batchInsertList"
parameterType=
"list"
databaseId=
"MySQL"
>
INSERT INTO SPACE_INSTITUTION_WELLHEAD (
ID,
CREATE_BY_ID,
...
...
@@ -121,6 +121,88 @@
</foreach>
</insert>
<insert
id=
"batchInsertList"
parameterType=
"list"
databaseId=
"Oracle"
>
INSERT ALL
<foreach
collection=
"list"
item=
"item"
>
INTO SPACE_INSTITUTION_WELLHEAD (
ID,
CREATE_BY_ID,
CREATE_BY_NAME,
CREATE_TIME,
MODIFY_BY_ID,
MODIFY_BY_NAME,
MODIFY_TIME,
INSTITUTION_ID,
WELLHEAD_ID,
WELL_NUMBER,
RUN_TYPE_KEY,
INTERVAL_TYPE_KEY,
INTERVAL_DESCRIBE,
START_SEQ
<if
test=
"item.openWellDay != null"
>
, OPEN_WELL_DAY
</if>
<if
test=
"item.closeWellDay != null"
>
, CLOSE_WELL_DAY
</if>
<if
test=
"item.runDuration != null"
>
, RUN_DURATION
</if>
<if
test=
"item.maxOpen != null"
>
, MAX_OPEN
</if>
<if
test=
"item.minOpen != null"
>
, MIN_OPEN
</if>
<if
test=
"item.maxClose != null"
>
, MAX_CLOSE
</if>
<if
test=
"item.minClose != null"
>
, MIN_CLOSE
</if>
)
VALUES
(
#{item.id},
#{item.createById},
#{item.createByName},
#{item.createTime},
#{item.modifyById},
#{item.modifyByName},
#{item.modifyTime},
#{item.institutionId},
#{item.wellheadId},
#{item.wellNumber},
#{item.runTypeKey},
#{item.intervalTypeKey},
#{item.intervalDescribe},
#{item.startSeq}
<if
test=
"item.openWellDay != null"
>
, #{item.openWellDay}
</if>
<if
test=
"item.closeWellDay != null"
>
, #{item.closeWellDay}
</if>
<if
test=
"item.runDuration != null"
>
, #{item.runDuration}
</if>
<if
test=
"item.maxOpen != null"
>
, #{item.maxOpen}
</if>
<if
test=
"item.minOpen != null"
>
, #{item.minOpen}
</if>
<if
test=
"item.maxClose != null"
>
, #{item.maxClose}
</if>
<if
test=
"item.minClose != null"
>
, #{item.minClose}
</if>
)
</foreach>
SELECT * FROM DUAL
</insert>
<select
id=
"selectListByInstitutionIds"
parameterType=
"pps.core.space.entity.SpaceInstitutionWellheadView"
resultMap=
"BaseResultMap"
>
SELECT
...
...
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