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
4ad6db7b
Commit
4ad6db7b
authored
Jun 25, 2021
by
郭武斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)修改获取当前用户id
parent
2fab74f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
RescueStationController.java
...ot/module/tzs/biz/controller/RescueStationController.java
+4
-3
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/RescueStationController.java
View file @
4ad6db7b
...
@@ -17,6 +17,7 @@ import org.slf4j.Logger;
...
@@ -17,6 +17,7 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
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
org.typroject.tyboot.core.foundation.context.RequestContext
;
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.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
@@ -53,7 +54,7 @@ public class RescueStationController extends BaseController {
...
@@ -53,7 +54,7 @@ public class RescueStationController extends BaseController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增救援站"
,
notes
=
"新增救援站"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增救援站"
,
notes
=
"新增救援站"
)
public
ResponseModel
<
Boolean
>
saveRescueStation
(
@RequestBody
RescueStationDto
rescueStationDto
)
{
public
ResponseModel
<
Boolean
>
saveRescueStation
(
@RequestBody
RescueStationDto
rescueStationDto
)
{
RescueStation
rescueStation
=
BeanDtoVoUtils
.
convert
(
rescueStationDto
,
RescueStation
.
class
);
RescueStation
rescueStation
=
BeanDtoVoUtils
.
convert
(
rescueStationDto
,
RescueStation
.
class
);
rescueStation
.
setRecUserId
(
get
UserId
());
rescueStation
.
setRecUserId
(
RequestContext
.
getExe
UserId
());
rescueStation
.
setRecDate
(
new
Date
());
rescueStation
.
setRecDate
(
new
Date
());
boolean
save
=
iRescueStationService
.
save
(
rescueStation
);
boolean
save
=
iRescueStationService
.
save
(
rescueStation
);
return
ResponseHelper
.
buildResponse
(
save
);
return
ResponseHelper
.
buildResponse
(
save
);
...
@@ -71,7 +72,7 @@ public class RescueStationController extends BaseController {
...
@@ -71,7 +72,7 @@ public class RescueStationController extends BaseController {
public
ResponseModel
<
Boolean
>
deleteById
(
@PathVariable
Long
id
)
{
public
ResponseModel
<
Boolean
>
deleteById
(
@PathVariable
Long
id
)
{
RescueStation
rescueStation
=
iRescueStationService
.
getById
(
id
);
RescueStation
rescueStation
=
iRescueStationService
.
getById
(
id
);
rescueStation
.
setIsDelete
(
true
);
rescueStation
.
setIsDelete
(
true
);
rescueStation
.
setRecUserId
(
get
UserId
());
rescueStation
.
setRecUserId
(
RequestContext
.
getExe
UserId
());
rescueStation
.
setRecDate
(
new
Date
());
rescueStation
.
setRecDate
(
new
Date
());
boolean
remove
=
iRescueStationService
.
updateById
(
rescueStation
);
boolean
remove
=
iRescueStationService
.
updateById
(
rescueStation
);
return
ResponseHelper
.
buildResponse
(
remove
);
return
ResponseHelper
.
buildResponse
(
remove
);
...
@@ -89,7 +90,7 @@ public class RescueStationController extends BaseController {
...
@@ -89,7 +90,7 @@ public class RescueStationController extends BaseController {
public
ResponseModel
<
Boolean
>
updateByIdRescueStation
(
@RequestBody
RescueStationDto
rescueStationDto
)
{
public
ResponseModel
<
Boolean
>
updateByIdRescueStation
(
@RequestBody
RescueStationDto
rescueStationDto
)
{
RescueStation
rescueStation
=
BeanDtoVoUtils
.
convert
(
rescueStationDto
,
RescueStation
.
class
);
RescueStation
rescueStation
=
BeanDtoVoUtils
.
convert
(
rescueStationDto
,
RescueStation
.
class
);
rescueStation
.
setRecUserId
(
get
UserId
());
rescueStation
.
setRecUserId
(
RequestContext
.
getExe
UserId
());
rescueStation
.
setRecDate
(
new
Date
());
rescueStation
.
setRecDate
(
new
Date
());
boolean
update
=
iRescueStationService
.
updateById
(
rescueStation
);
boolean
update
=
iRescueStationService
.
updateById
(
rescueStation
);
return
ResponseHelper
.
buildResponse
(
update
);
return
ResponseHelper
.
buildResponse
(
update
);
...
...
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