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
f8fdc546
Commit
f8fdc546
authored
May 11, 2021
by
zhangch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务计划详情回显接口调整
parent
b769b9e0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
+18
-6
SrvTaskInfoVO.java
...va/com/hungraim/ltc/pojo/vo/governance/SrvTaskInfoVO.java
+2
-1
DateUtils.java
...n-core/src/main/java/com/hungraim/ltc/util/DateUtils.java
+11
-0
SrvTaskController.java
...hungraim/ltc/governance/controller/SrvTaskController.java
+3
-3
SrvTaskServiceImpl.java
...graim/ltc/governance/service/impl/SrvTaskServiceImpl.java
+2
-2
No files found.
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/SrvTaskInfoVO.java
View file @
f8fdc546
...
...
@@ -3,6 +3,7 @@ package com.hungraim.ltc.pojo.vo.governance;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* 服务计划详情VO
...
...
@@ -42,7 +43,7 @@ public class SrvTaskInfoVO implements Serializable {
/**
* 具体护理日期 yyyy-MM-dd
*/
private
String
[]
taskDetails
;
private
List
<
String
>
taskDetails
;
/**
* 服务计划状态
*/
...
...
common/common-core/src/main/java/com/hungraim/ltc/util/DateUtils.java
View file @
f8fdc546
...
...
@@ -266,6 +266,17 @@ public class DateUtils {
}
/**
* 把date转换成yyyy-MM-dd格式的字符串
* @param date 日期对象
* @return yyyy-MM-dd字符串
*/
public
static
String
dateToStr_yyyy_MM_dd
(
Date
date
)
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
DATE_PATTERN_yyyy_MM_dd
);
String
dateCh
=
formatter
.
format
(
date
);
return
dateCh
;
}
/**
* 将短时间格式时间转换为字符串 yyyy-MM-dd_HH_MM_ss
*
* @param dateDate
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/SrvTaskController.java
View file @
f8fdc546
...
...
@@ -127,7 +127,7 @@ public class SrvTaskController {
if
(
srvTaskInfoVO
.
getSrvEmpId
()
==
null
)
{
return
Result
.
failed
(
"护理人员id不能为空!"
);
}
if
(
srvTaskInfoVO
.
getTaskDetails
()
==
null
||
srvTaskInfoVO
.
getTaskDetails
().
length
<=
0
)
{
if
(
srvTaskInfoVO
.
getTaskDetails
()
==
null
||
srvTaskInfoVO
.
getTaskDetails
().
size
()
<=
0
)
{
return
Result
.
failed
(
"具体护理日期不能为空!"
);
}
List
<
Date
>
dates
=
new
ArrayList
<>();
...
...
@@ -160,14 +160,14 @@ public class SrvTaskController {
for
(
int
i
=
0
;
i
<
taskList
.
size
();
i
++)
{
String
taskId
=
taskList
.
get
(
i
).
getSrvTaskId
();
String
srvEmpId
=
taskList
.
get
(
i
).
getSrvEmpId
();
String
[]
taskDetails
=
taskList
.
get
(
i
).
getTaskDetails
();
List
<
String
>
taskDetails
=
taskList
.
get
(
i
).
getTaskDetails
();
if
(
StringUtils
.
isBlank
(
taskId
))
{
return
Result
.
failed
(
"taskId不能为空!"
);
}
if
(
StringUtils
.
isBlank
(
srvEmpId
))
{
return
Result
.
failed
(
"护理人员id不能为空!"
);
}
if
(
taskDetails
==
null
||
taskDetails
.
length
<=
0
)
{
if
(
taskDetails
==
null
||
taskDetails
.
size
()
<=
0
)
{
return
Result
.
failed
(
"具体护理日期不能为空!"
);
}
List
<
Date
>
dates
=
new
ArrayList
<>();
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvTaskServiceImpl.java
View file @
f8fdc546
...
...
@@ -74,10 +74,10 @@ public class SrvTaskServiceImpl implements SrvTaskService {
List
<
String
>
srvDateList
=
new
ArrayList
<>();
for
(
ChSrvTaskDetail
detail
:
taskDetails
)
{
Date
srvDate
=
detail
.
getSrvDate
();
//服务日期
String
s
=
DateUtils
.
dateToStr
yyyyMM
dd
(
srvDate
);
String
s
=
DateUtils
.
dateToStr
_yyyy_MM_
dd
(
srvDate
);
srvDateList
.
add
(
s
);
}
vo
.
setTaskDetails
(
srvDateList
.
toArray
(
new
String
[
0
])
);
vo
.
setTaskDetails
(
srvDateList
);
}
return
srvTaskInfoList
;
}
...
...
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