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
f5732181
Commit
f5732181
authored
Apr 25, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置预约日期和备注接口
parent
55bd9ae6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
2 deletions
+58
-2
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+33
-0
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+2
-0
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+16
-1
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+1
-0
TaskGroupInfoVO.java
.../com/hungraim/ltc/pojo/vo/assessment/TaskGroupInfoVO.java
+6
-1
No files found.
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
f5732181
...
@@ -300,4 +300,37 @@ public class TaskController {
...
@@ -300,4 +300,37 @@ public class TaskController {
return
Result
.
success
();
return
Result
.
success
();
}
}
/**
* 设置预约日期和备注
*
* @param pushId 分组id
* @param time 预约日期 yyyy-MM-dd
* @param remark 备注
*/
@RequestMapping
(
"/updatePushTimeAndRemark"
)
public
Result
updatePushTimeAndRemark
(
String
pushId
,
String
time
,
String
remark
)
{
if
(
StringUtils
.
isBlank
(
pushId
))
{
return
Result
.
failed
(
"分组id不能为空!"
);
}
if
(
StringUtils
.
isBlank
(
time
))
{
return
Result
.
failed
(
"预约日期不能为空!"
);
}
if
(
StringUtils
.
isBlank
(
remark
))
{
return
Result
.
failed
(
"备注不能为空!"
);
}
Date
timeDate
;
try
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
timeDate
=
sdf
.
parse
(
time
);
}
catch
(
ParseException
e
)
{
return
Result
.
failed
(
"预约日期格式不正确!"
);
}
Result
<
Object
>
objectResult
=
taskService
.
updatePushTimeAndRemark
(
pushId
,
timeDate
,
remark
);
if
(!
ResultCode
.
SUCCESS
.
getCode
().
equals
(
objectResult
.
getCode
()))
{
//失败
return
Result
.
failed
(
objectResult
.
getMsg
());
}
return
Result
.
success
();
}
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
f5732181
...
@@ -72,4 +72,6 @@ public interface TaskService {
...
@@ -72,4 +72,6 @@ public interface TaskService {
TaskGroupInfoListInfoVO
taskGroupInfoListInfo
(
String
pushId
);
TaskGroupInfoListInfoVO
taskGroupInfoListInfo
(
String
pushId
);
List
<
AllotTaskHisVO
>
allotTaskHisList
();
List
<
AllotTaskHisVO
>
allotTaskHisList
();
Result
<
Object
>
updatePushTimeAndRemark
(
String
pushId
,
Date
timeDate
,
String
remark
);
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
f5732181
...
@@ -174,7 +174,6 @@ public class TaskServiceImpl implements TaskService {
...
@@ -174,7 +174,6 @@ public class TaskServiceImpl implements TaskService {
}
}
//生成组
//生成组
ChAprTaskPush
taskPush
=
new
ChAprTaskPush
();
ChAprTaskPush
taskPush
=
new
ChAprTaskPush
();
taskPush
.
setTime
(
new
Date
());
taskPush
.
setAssignTime
(
new
Date
());
taskPush
.
setAssignTime
(
new
Date
());
taskPush
.
setGroupNumber
(
SerialNumberUtils
.
getSerialNumber
(
empId
));
taskPush
.
setGroupNumber
(
SerialNumberUtils
.
getSerialNumber
(
empId
));
taskPush
.
setTaskId
(
Long
.
parseLong
(
id
));
taskPush
.
setTaskId
(
Long
.
parseLong
(
id
));
...
@@ -245,4 +244,19 @@ public class TaskServiceImpl implements TaskService {
...
@@ -245,4 +244,19 @@ public class TaskServiceImpl implements TaskService {
public
List
<
AllotTaskHisVO
>
allotTaskHisList
()
{
public
List
<
AllotTaskHisVO
>
allotTaskHisList
()
{
return
taskMapper
.
allotTaskHisList
();
return
taskMapper
.
allotTaskHisList
();
}
}
@Override
public
Result
<
Object
>
updatePushTimeAndRemark
(
String
pushId
,
Date
timeDate
,
String
remark
)
{
ChAprTaskPush
chAprTaskPush
=
taskPushMapper
.
selectById
(
pushId
);
if
(
chAprTaskPush
==
null
)
{
return
Result
.
failed
(
"无效的分组id!"
);
}
chAprTaskPush
.
setTime
(
timeDate
);
chAprTaskPush
.
setRefuseRemark
(
remark
);
int
i
=
taskPushMapper
.
updateById
(
chAprTaskPush
);
if
(
i
<=
0
)
{
return
Result
.
failed
(
"更新失败!"
);
}
return
Result
.
success
();
}
}
}
\ No newline at end of file
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
f5732181
...
@@ -233,6 +233,7 @@
...
@@ -233,6 +233,7 @@
<select
id=
"taskGroupInfoList"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.TaskGroupInfoVO"
>
<select
id=
"taskGroupInfoList"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.TaskGroupInfoVO"
>
select push.task_push_id taskPushId,
select push.task_push_id taskPushId,
push.time time,
push.time time,
push.assignTime assignTime,
push.Group_number groupNumber,
push.Group_number groupNumber,
task.apr_organ_id aprOrganId,
task.apr_organ_id aprOrganId,
organ.ORGAN_NAME organName,
organ.ORGAN_NAME organName,
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/assessment/TaskGroupInfoVO.java
View file @
f5732181
...
@@ -15,11 +15,16 @@ public class TaskGroupInfoVO {
...
@@ -15,11 +15,16 @@ public class TaskGroupInfoVO {
*/
*/
private
String
taskPushId
;
private
String
taskPushId
;
/**
/**
*
分组日期
*
预约时间
*/
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
time
;
private
Date
time
;
/**
/**
* 分组日期
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
assignTime
;
/**
* 组号
* 组号
*/
*/
private
String
groupNumber
;
private
String
groupNumber
;
...
...
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