Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RuoYi-Vue-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
融通安全管理系统
RuoYi-Vue-master
Commits
9edc8b71
Commit
9edc8b71
authored
Dec 08, 2023
by
dlkong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
风险巡查岗位新增时返回主键id
parent
f44b10c3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/CurrentRiskPostController.java
...censoftrongtong/controller/CurrentRiskPostController.java
+1
-1
censoft-rongtong/src/main/resources/mapper/system/CurrentRiskPostMapper.xml
...rc/main/resources/mapper/system/CurrentRiskPostMapper.xml
+1
-1
No files found.
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/CurrentRiskPostController.java
View file @
9edc8b71
...
@@ -89,7 +89,7 @@ public class CurrentRiskPostController extends BaseController
...
@@ -89,7 +89,7 @@ public class CurrentRiskPostController extends BaseController
{
{
Long
currentRiskPostId
=
currentRiskPost
.
getId
();
Long
currentRiskPostId
=
currentRiskPost
.
getId
();
if
(
currentRiskPostId
==
null
){
if
(
currentRiskPostId
==
null
){
currentRiskPostService
.
insertCurrentRiskPost
(
currentRiskPost
);
int
id
=
currentRiskPostService
.
insertCurrentRiskPost
(
currentRiskPost
);
currentRiskPostId
=
currentRiskPost
.
getId
();
currentRiskPostId
=
currentRiskPost
.
getId
();
}
else
{
}
else
{
currentRiskPostService
.
updateCurrentRiskPost
(
currentRiskPost
);
currentRiskPostService
.
updateCurrentRiskPost
(
currentRiskPost
);
...
...
censoft-rongtong/src/main/resources/mapper/system/CurrentRiskPostMapper.xml
View file @
9edc8b71
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
where id = #{id}
where id = #{id}
</select>
</select>
<insert
id=
"insertCurrentRiskPost"
parameterType=
"com.censoft.censoftrongtong.domain.CurrentRiskPost"
useGeneratedKeys=
"true"
>
<insert
id=
"insertCurrentRiskPost"
parameterType=
"com.censoft.censoftrongtong.domain.CurrentRiskPost"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into current_risk_post
insert into current_risk_post
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"id != null"
>
id,
</if>
...
...
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