Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
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
Administrator
dsk-cr20g
Commits
ed8ddaa1
Commit
ed8ddaa1
authored
May 15, 2023
by
zhangyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入参非空校验
parent
a6eb5b4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
EnterpriseController.java
...java/com/dsk/web/controller/dsk/EnterpriseController.java
+3
-1
EnterpriseBody.java
...java/com/dsk/common/core/domain/model/EnterpriseBody.java
+3
-3
No files found.
dsk-admin/src/main/java/com/dsk/web/controller/dsk/EnterpriseController.java
View file @
ed8ddaa1
...
@@ -7,6 +7,8 @@ import io.swagger.annotations.Api;
...
@@ -7,6 +7,8 @@ import io.swagger.annotations.Api;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
/**
/**
* @ClassName EnterpriseController
* @ClassName EnterpriseController
...
@@ -24,7 +26,7 @@ public class EnterpriseController {
...
@@ -24,7 +26,7 @@ public class EnterpriseController {
private
EnterpriseService
enterpriseService
;
private
EnterpriseService
enterpriseService
;
@PostMapping
(
"/infoHeader"
)
@PostMapping
(
"/infoHeader"
)
public
R
infoHeader
(
@RequestBody
EnterpriseBody
body
)
throws
Exception
public
R
infoHeader
(
@RequestBody
@Valid
EnterpriseBody
body
)
throws
Exception
{
{
return
enterpriseService
.
infoHeader
(
body
);
return
enterpriseService
.
infoHeader
(
body
);
}
}
...
...
dsk-common/src/main/java/com/dsk/common/core/domain/model/EnterpriseBody.java
View file @
ed8ddaa1
...
@@ -8,13 +8,13 @@ public class EnterpriseBody
...
@@ -8,13 +8,13 @@ public class EnterpriseBody
* 企业id
* 企业id
*/
*/
@NotNull
(
message
=
"企业id不能为空"
)
@NotNull
(
message
=
"企业id不能为空"
)
private
String
companyId
;
private
Integer
companyId
;
public
String
getCompanyId
()
{
public
Integer
getCompanyId
()
{
return
companyId
;
return
companyId
;
}
}
public
void
setCompanyId
(
String
companyId
)
{
public
void
setCompanyId
(
Integer
companyId
)
{
this
.
companyId
=
companyId
;
this
.
companyId
=
companyId
;
}
}
...
...
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