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
f2edd7f9
Commit
f2edd7f9
authored
Apr 25, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询拒绝原因
parent
03792232
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
8 deletions
+17
-8
DisableServiceImpl.java
...ava/com/hungraim/ltc/service/impl/DisableServiceImpl.java
+1
-0
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+6
-4
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+1
-1
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+5
-1
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+4
-2
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/DisableServiceImpl.java
View file @
f2edd7f9
...
...
@@ -92,6 +92,7 @@ public class DisableServiceImpl implements DisableService {
@Override
public
void
addDisable
(
ChDisableApply
chDisableApply
)
{
chDisableApply
.
setEffTime
(
new
Date
());
disableApplyMapper
.
insert
(
chDisableApply
);
}
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
f2edd7f9
...
...
@@ -260,18 +260,20 @@ public class TaskController {
/**
* 评定任务分组管理(整组操作)
*
* @param groupNumber 组号
* @param status 分组状态 未分配(拒绝(重新分配)):0;已分配:1;已接受:2;已完成:3;拒绝(中止):4,拒绝(终止):5
* @param groupNumber 组号
* @param status 分组状态 未分配(拒绝(重新分配)):0;已分配:1;已接受:2;已完成:3;拒绝(中止):4,拒绝(终止):5
* @param refuseReason 拒绝原因id
* @param refuseRemark 拒绝备注
*/
@RequestMapping
(
"/taskGroupByGroup"
)
public
Result
taskGroupByGroup
(
String
groupNumber
,
Integer
status
)
{
public
Result
taskGroupByGroup
(
String
groupNumber
,
Integer
status
,
Integer
refuseReason
,
String
refuseRemark
)
{
if
(
StringUtils
.
isBlank
(
groupNumber
))
{
return
Result
.
failed
(
"组号不能为空!"
);
}
if
(
status
==
null
||
status
<
0
||
status
>
5
)
{
return
Result
.
failed
(
"状态异常!"
);
}
Result
<
Object
>
objectResult
=
taskService
.
taskGroupByGroup
(
groupNumber
,
status
);
Result
<
Object
>
objectResult
=
taskService
.
taskGroupByGroup
(
groupNumber
,
status
,
refuseReason
,
refuseRemark
);
if
(!
ResultCode
.
SUCCESS
.
getCode
().
equals
(
objectResult
.
getCode
()))
{
//失败
return
Result
.
failed
(
objectResult
.
getMsg
());
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
f2edd7f9
...
...
@@ -68,7 +68,7 @@ public interface TaskService {
List
<
TaskGroupInfoVO
>
taskGroupInfoList
(
String
groupNumber
);
Result
<
Object
>
taskGroupByGroup
(
String
groupNumber
,
Integer
status
);
Result
<
Object
>
taskGroupByGroup
(
String
groupNumber
,
Integer
status
,
Integer
refuseReason
,
String
refuseRemark
);
TaskGroupInfoListInfoVO
taskGroupInfoListInfo
(
String
pushId
);
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
f2edd7f9
...
...
@@ -237,7 +237,7 @@ public class TaskServiceImpl implements TaskService {
}
@Override
public
Result
<
Object
>
taskGroupByGroup
(
String
groupNumber
,
Integer
status
)
{
public
Result
<
Object
>
taskGroupByGroup
(
String
groupNumber
,
Integer
status
,
Integer
refuseReason
,
String
refuseRemark
)
{
List
<
ChAprTaskPush
>
pushList
=
taskPushMapper
.
selectList
(
new
QueryWrapper
<
ChAprTaskPush
>().
eq
(
"group_number"
,
groupNumber
));
if
(
pushList
==
null
||
pushList
.
size
()
<=
0
)
{
return
Result
.
failed
(
"不存在的组!"
);
...
...
@@ -251,6 +251,10 @@ public class TaskServiceImpl implements TaskService {
for
(
ChAprTaskPush
push
:
pushList
)
{
//更新任务组状态
push
.
setStatus
(
status
.
shortValue
());
if
(
status
==
4
||
status
==
5
||
status
==
0
)
{
push
.
setRefuseReason
(
refuseReason
.
shortValue
());
push
.
setRefuseRemark
(
refuseRemark
);
}
taskPushMapper
.
updateById
(
push
);
//更新评定任务状态
ChAprTask
chAprTask
=
taskMapper
.
selectById
(
push
.
getTaskId
());
...
...
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
f2edd7f9
...
...
@@ -45,7 +45,7 @@
task.accept_time acceptTime,
task.finish_time finishTime,
task.task_status taskStatus,
push
.refuse_reason refuseReason,
reason
.refuse_reason refuseReason,
push.refuse_remark refuseRemark
from CH_APR_TASK task
left join ch_apr_organ organ on task.apr_organ_id = organ.apr_organ_id
...
...
@@ -54,6 +54,7 @@
left join ch_apr_task_push push on task.task_id = push.task_id
left join ch_apr_task_emp cate on task.task_id = cate.task_id
left join ch_apr_report report on report.TASK_ID = task.TASK_ID
left join ch_refuse_reason reason on push.refuse_reason = reason.refuse_reason_id
<where>
<if
test=
"organIds != null"
>
and task.apr_organ_id in
...
...
@@ -253,13 +254,14 @@
emp.real_name empRealName,
emp.certi_code empCertiCode,
push.status status,
push.Refuse_reason
refuseReason,/*拒绝原因*/
reason.Refuse_reason
refuseReason,/*拒绝原因*/
push.Refuse_remark remark/*备注*/
from ch_apr_task_push push
left join ch_apr_task task on push.task_id = task.task_id
left join CH_FND_ORGAN organ on organ.organ_id = task.organ_id
left join ch_disable_info disable on task.disable_info_id = disable.disab_info_id
left join ch_apr_emp emp on emp.emp_id = push.emp_id
left join ch_refuse_reason reason on push.refuse_reason = reason.refuse_reason_id
where push.group_number = #{groupNumber}
</select>
...
...
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