Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
项目统一框架
amos-boot-biz
Commits
4804f134
Commit
4804f134
authored
Mar 02, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
8382f00b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
PipeController.java
...n/amos/boot/module/ugp/biz/controller/PipeController.java
+5
-4
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/PipeController.java
View file @
4804f134
...
...
@@ -49,10 +49,11 @@ public class PipeController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增管段信息"
,
notes
=
"新增管段信息"
)
public
ResponseModel
<
List
<
PipeDto
>>
save
(
@RequestBody
List
<
PipeDto
>
list
)
{
public
ResponseModel
<
List
<
PipeDto
>>
save
(
@RequestBody
List
<
PipeDto
>
list
,
@RequestParam
(
value
=
"projectId"
)
Long
projectId
)
{
List
<
PipeDto
>
result
=
new
ArrayList
<>();
list
.
forEach
(
item
->
{
item
.
setProjectId
(
1234567890L
);
item
.
setProjectId
(
projectId
);
PipeDto
withModel
=
pipeService
.
createWithModel
(
item
);
result
.
add
(
withModel
);
});
...
...
@@ -73,11 +74,11 @@ public class PipeController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/addPipeMessage"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增管段信息
"
,
notes
=
"新增管段信息
"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增管段信息
-json"
,
notes
=
"新增管段信息-json
"
)
public
ResponseModel
<
Object
>
save
(
@RequestParam
(
value
=
"json"
)
String
json
,
@RequestParam
(
value
=
"projectId"
)
Long
projectId
)
{
pipeService1
.
addPipeMessage
(
json
,
projectId
);
return
ResponseHelper
.
buildResponse
(
"s"
);
return
ResponseHelper
.
buildResponse
(
json
);
}
...
...
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