Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6130d5c5
authored
Sep 15, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref: GET请求在大区查询时参数过长, 暂改为POST 参数放入请求体, 风险任然存在
1 parent
36c36984
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/controller/OrganizationController.java
project-order/src/main/java/com/dituhui/pea/order/controller/OrganizationController.java
View file @
6130d5c
...
...
@@ -9,6 +9,8 @@ import com.dituhui.pea.order.service.OrganizationService;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -42,8 +44,8 @@ public class OrganizationController {
return
res
;
}
@
Ge
tMapping
(
"/organization/engineer/list"
)
public
Result
<?>
getEngineersByTeams
(
OrganizationEngineersByTeamsDTO
.
Request
reqDTO
)
{
@
Pos
tMapping
(
"/organization/engineer/list"
)
public
Result
<?>
getEngineersByTeams
(
@RequestBody
OrganizationEngineersByTeamsDTO
.
Request
reqDTO
)
{
Result
<?>
res
=
null
;
try
{
res
=
organizationService
.
getEngineersByTeams
(
reqDTO
.
getTeamIds
());
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment