Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
ops
Commits
b2aa9c20
Commit
b2aa9c20
authored
Aug 29, 2024
by
wujipeng
Browse files
优化
parent
9d1d2c16
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/ruzhoukj/sms/controller/ProjectController.java
View file @
b2aa9c20
...
...
@@ -37,7 +37,7 @@ public class ProjectController {
public
ResponseEntity
<
List
<
ProjectEntity
>>
getProjectList
(
@RequestParam
(
name
=
"page"
,
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
@RequestParam
(
name
=
"projectName"
,
defaultValue
=
""
)
String
projectName
,
@RequestParam
(
name
=
"userId"
,
defaultValue
=
""
)
in
t
userId
)
{
@RequestParam
(
name
=
"userId"
,
defaultValue
=
""
)
Str
in
g
userId
)
{
ProjectQueryRequestEntity
data
=
new
ProjectQueryRequestEntity
();
data
.
setProjectName
(
projectName
);
data
.
setPageSize
(
pageSize
);
...
...
@@ -54,8 +54,8 @@ public class ProjectController {
* @return 项目详情
*/
@GetMapping
(
"/{id}"
)
public
ResponseEntity
<
ProjectEntity
>
getProjectById
(
@PathVariable
Integer
id
)
{
ProjectEntity
project
=
projectService
.
getProjectById
(
id
);
public
ResponseEntity
<
ProjectEntity
>
getProjectById
(
@PathVariable
String
id
)
{
ProjectEntity
project
=
projectService
.
getProjectById
(
Integer
.
valueOf
(
id
)
)
;
return
ResponseEntity
.
ok
(
project
);
}
...
...
src/main/java/com/ruzhoukj/sms/entity/ProjectQueryRequestEntity.java
View file @
b2aa9c20
...
...
@@ -12,5 +12,5 @@ public class ProjectQueryRequestEntity {
private
String
projectName
;
private
int
page
;
private
int
pageSize
;
private
int
userId
;
}
\ No newline at end of file
private
String
userId
;
}
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