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
8ad30bb6
Commit
8ad30bb6
authored
Apr 20, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评定任务分配
parent
348d4eb6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
16 deletions
+27
-16
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+16
-8
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+3
-3
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+8
-5
No files found.
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
8ad30bb6
...
@@ -68,11 +68,11 @@ public class TaskController {
...
@@ -68,11 +68,11 @@ public class TaskController {
}
}
/**
/**
* 查询
失能
人员列表
* 查询
评定
人员列表
*/
*/
@RequestMapping
(
"/aprEmpList"
)
@RequestMapping
(
"/aprEmpList"
)
public
Result
<
List
<
ChAprEmp
>>
aprEmpList
()
{
public
Result
<
List
<
ChAprEmp
>>
aprEmpList
(
Integer
organId
)
{
List
<
ChAprEmp
>
chAprEmps
=
taskService
.
aprEmpList
();
List
<
ChAprEmp
>
chAprEmps
=
taskService
.
aprEmpList
(
organId
);
return
Result
.
success
(
chAprEmps
);
return
Result
.
success
(
chAprEmps
);
}
}
...
@@ -82,7 +82,11 @@ public class TaskController {
...
@@ -82,7 +82,11 @@ public class TaskController {
@RequestMapping
(
"/addReport"
)
@RequestMapping
(
"/addReport"
)
public
Result
addReport
(
@RequestBody
ChAprReport
chAprReport
)
{
public
Result
addReport
(
@RequestBody
ChAprReport
chAprReport
)
{
chAprReport
.
setEffTime
(
new
Date
());
chAprReport
.
setEffTime
(
new
Date
());
taskService
.
addReport
(
chAprReport
);
int
count
=
taskService
.
addReport
(
chAprReport
);
if
(
count
!=
1
)
{
//失败
return
Result
.
failed
();
}
return
Result
.
success
();
return
Result
.
success
();
}
}
...
@@ -91,7 +95,11 @@ public class TaskController {
...
@@ -91,7 +95,11 @@ public class TaskController {
*/
*/
@RequestMapping
(
"/updateReport"
)
@RequestMapping
(
"/updateReport"
)
public
Result
updateReport
(
String
reportId
,
Integer
disableLevelId
,
String
polNo
,
String
remark
)
{
public
Result
updateReport
(
String
reportId
,
Integer
disableLevelId
,
String
polNo
,
String
remark
)
{
taskService
.
updateReport
(
reportId
,
disableLevelId
,
polNo
,
remark
);
int
count
=
taskService
.
updateReport
(
reportId
,
disableLevelId
,
polNo
,
remark
);
if
(
count
!=
1
)
{
//失败
return
Result
.
failed
();
}
return
Result
.
success
();
return
Result
.
success
();
}
}
...
@@ -100,9 +108,9 @@ public class TaskController {
...
@@ -100,9 +108,9 @@ public class TaskController {
*/
*/
@RequestMapping
(
"/allotTask"
)
@RequestMapping
(
"/allotTask"
)
public
Result
allotTask
(
String
taskId
,
String
empId
)
{
public
Result
allotTask
(
String
taskId
,
String
empId
)
{
int
cout
=
taskService
.
allotTask
(
taskId
,
empId
);
int
cou
n
t
=
taskService
.
allotTask
(
taskId
,
empId
);
if
(
cout
!=
1
)
{
if
(
cou
n
t
!=
1
)
{
//
数据插入
失败
//失败
return
Result
.
failed
();
return
Result
.
failed
();
}
}
return
Result
.
success
();
return
Result
.
success
();
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
8ad30bb6
...
@@ -45,11 +45,11 @@ public interface TaskService {
...
@@ -45,11 +45,11 @@ public interface TaskService {
*/
*/
List
<
TaskReportVO
>
taskReportList
();
List
<
TaskReportVO
>
taskReportList
();
List
<
ChAprEmp
>
aprEmpList
();
List
<
ChAprEmp
>
aprEmpList
(
Integer
organId
);
void
addReport
(
ChAprReport
chAprReport
);
int
addReport
(
ChAprReport
chAprReport
);
void
updateReport
(
String
reportId
,
Integer
disableLevelId
,
String
polNo
,
String
remark
);
int
updateReport
(
String
reportId
,
Integer
disableLevelId
,
String
polNo
,
String
remark
);
int
allotTask
(
String
taskId
,
String
empId
);
int
allotTask
(
String
taskId
,
String
empId
);
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
8ad30bb6
...
@@ -56,22 +56,25 @@ public class TaskServiceImpl implements TaskService {
...
@@ -56,22 +56,25 @@ public class TaskServiceImpl implements TaskService {
}
}
@Override
@Override
public
List
<
ChAprEmp
>
aprEmpList
()
{
public
List
<
ChAprEmp
>
aprEmpList
(
Integer
organId
)
{
QueryWrapper
queryWrapper
=
new
QueryWrapper
<
ChAprEmp
>();
queryWrapper
.
eq
(
"IS_LOCK"
,
0
);
queryWrapper
.
eq
(
"apr_organ_id"
,
organId
);
return
aprEmpMapper
.
selectList
(
new
QueryWrapper
<
ChAprEmp
>().
eq
(
"IS_LOCK"
,
0
));
return
aprEmpMapper
.
selectList
(
new
QueryWrapper
<
ChAprEmp
>().
eq
(
"IS_LOCK"
,
0
));
}
}
@Override
@Override
public
void
addReport
(
ChAprReport
chAprReport
)
{
public
int
addReport
(
ChAprReport
chAprReport
)
{
aprReportMapper
.
insert
(
chAprReport
);
return
aprReportMapper
.
insert
(
chAprReport
);
}
}
@Override
@Override
public
void
updateReport
(
String
reportId
,
Integer
disableLevelId
,
String
polNo
,
String
remark
)
{
public
int
updateReport
(
String
reportId
,
Integer
disableLevelId
,
String
polNo
,
String
remark
)
{
ChAprReport
chAprReport
=
aprReportMapper
.
selectById
(
reportId
);
ChAprReport
chAprReport
=
aprReportMapper
.
selectById
(
reportId
);
chAprReport
.
setDisableLevelId
(
disableLevelId
);
chAprReport
.
setDisableLevelId
(
disableLevelId
);
chAprReport
.
setPolNo
(
polNo
);
chAprReport
.
setPolNo
(
polNo
);
chAprReport
.
setRemark
(
remark
);
chAprReport
.
setRemark
(
remark
);
aprReportMapper
.
updateById
(
chAprReport
);
return
aprReportMapper
.
updateById
(
chAprReport
);
}
}
@Override
@Override
...
...
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