Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
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
hubin
long-tern-care-service
Commits
21a7e84e
Commit
21a7e84e
authored
Mar 11, 2022
by
liuxun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
aa23b382
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
SaveStopTime.java
...ava/com/hungraim/ltc/pojo/vo/governance/SaveStopTime.java
+17
-0
BuildBedController.java
...ungraim/ltc/governance/controller/BuildBedController.java
+3
-3
No files found.
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/SaveStopTime.java
0 → 100644
View file @
21a7e84e
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
governance
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.Date
;
@Data
public
class
SaveStopTime
{
private
Long
srvSendId
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
stopTime
;
}
governance/src/main/java/com/hungraim/ltc/governance/controller/BuildBedController.java
View file @
21a7e84e
...
...
@@ -250,12 +250,12 @@ public class BuildBedController {
* 终止录入
*/
@PostMapping
(
"/saveStopTime"
)
public
Result
<
Boolean
>
saveStopTime
(
@Request
Param
Long
srvSendId
,
@RequestParam
Date
s
topTime
){
ChSrvSend
chSrvSend
=
sendService
.
getById
(
s
rvSendId
);
public
Result
<
Boolean
>
saveStopTime
(
@Request
Body
SaveStopTime
saveS
topTime
){
ChSrvSend
chSrvSend
=
sendService
.
getById
(
s
aveStopTime
.
getSrvSendId
()
);
if
(
chSrvSend
==
null
){
return
Result
.
failed
(
"提交失败,服务分配记录不存在"
);
}
chSrvSend
.
setStopTime
(
s
topTime
);
chSrvSend
.
setStopTime
(
s
aveStopTime
.
getStopTime
()
);
sendService
.
updateById
(
chSrvSend
);
return
Result
.
success
(
true
);
}
...
...
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