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
06fc5a46
Commit
06fc5a46
authored
Mar 21, 2022
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
ca08556b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
MaintenanceCompanyController.java
...e/common/biz/controller/MaintenanceCompanyController.java
+4
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/MaintenanceCompanyController.java
View file @
06fc5a46
...
@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestParam;
...
@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
@@ -80,6 +81,9 @@ public class MaintenanceCompanyController extends BaseController {
...
@@ -80,6 +81,9 @@ public class MaintenanceCompanyController extends BaseController {
@PostMapping
(
value
=
"/person/save"
)
@PostMapping
(
value
=
"/person/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增维保人员"
,
notes
=
"新增维保人员"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增维保人员"
,
notes
=
"新增维保人员"
)
public
ResponseModel
<
MaintenanceCompany
>
saveMaintenancePerson
(
@RequestBody
MaintenanceCompany
model
)
{
public
ResponseModel
<
MaintenanceCompany
>
saveMaintenancePerson
(
@RequestBody
MaintenanceCompany
model
)
{
if
(
model
.
getSequenceNbr
()!=
null
)
{
throw
new
BadRequest
(
"当前用户已经存在"
);
}
model
.
setType
(
PERSON
);
model
.
setType
(
PERSON
);
return
ResponseHelper
.
buildResponse
(
maintenanceCompanyService
.
savePersonDetail
(
model
));
return
ResponseHelper
.
buildResponse
(
maintenanceCompanyService
.
savePersonDetail
(
model
));
}
}
...
...
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