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
bf3f9a8e
Commit
bf3f9a8e
authored
Apr 22, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加校验
parent
78baaeee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+14
-1
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
+6
-1
No files found.
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
bf3f9a8e
...
@@ -129,6 +129,15 @@ public class TaskController {
...
@@ -129,6 +129,15 @@ public class TaskController {
if
(
person1
==
null
)
{
if
(
person1
==
null
)
{
return
Result
.
failed
(
"鉴定人员1不能为空!"
);
return
Result
.
failed
(
"鉴定人员1不能为空!"
);
}
}
if
(
taskId
==
null
)
{
return
Result
.
failed
(
"评定任务id不能为空!"
);
}
if
(
disableLevelId
==
null
)
{
return
Result
.
failed
(
"失能等级id不能为空!"
);
}
if
(
StringUtils
.
isBlank
(
evaluateTime
))
{
return
Result
.
failed
(
"评估时间不能为空!"
);
}
Date
evaluateDate
;
Date
evaluateDate
;
try
{
try
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
...
@@ -136,7 +145,11 @@ public class TaskController {
...
@@ -136,7 +145,11 @@ public class TaskController {
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
return
Result
.
failed
(
"评估时间格式不正确!"
);
return
Result
.
failed
(
"评估时间格式不正确!"
);
}
}
taskService
.
addReport
(
taskId
,
person1
,
person2
,
person3
,
evaluateDate
,
disableLevelId
,
polNo
,
remark
);
Result
<
Object
>
objectResult
=
taskService
.
addReport
(
taskId
,
person1
,
person2
,
person3
,
evaluateDate
,
disableLevelId
,
polNo
,
remark
);
if
(!
ResultCode
.
SUCCESS
.
getCode
().
equals
(
objectResult
.
getCode
()))
{
//失败
return
Result
.
failed
(
objectResult
.
getMsg
());
}
return
Result
.
success
();
return
Result
.
success
();
}
}
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
bf3f9a8e
...
@@ -51,7 +51,7 @@ public interface TaskService {
...
@@ -51,7 +51,7 @@ public interface TaskService {
List
<
AprEmpVO
>
aprEmpList
(
String
organName
,
String
name
,
String
tel
,
String
groupLeader
);
List
<
AprEmpVO
>
aprEmpList
(
String
organName
,
String
name
,
String
tel
,
String
groupLeader
);
void
addReport
(
Integer
taskId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
);
Result
<
Object
>
addReport
(
Integer
taskId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
);
void
updateReport
(
Integer
reportId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateDate
,
Integer
disableLevelId
,
String
polNo
,
String
remark
);
void
updateReport
(
Integer
reportId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateDate
,
Integer
disableLevelId
,
String
polNo
,
String
remark
);
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
bf3f9a8e
...
@@ -63,7 +63,11 @@ public class TaskServiceImpl implements TaskService {
...
@@ -63,7 +63,11 @@ public class TaskServiceImpl implements TaskService {
}
}
@Override
@Override
public
void
addReport
(
Integer
taskId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
)
{
public
Result
<
Object
>
addReport
(
Integer
taskId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
)
{
ChAprTask
task
=
taskMapper
.
selectById
(
taskId
);
if
(
task
!=
null
)
{
return
Result
.
failed
(
"已存在的评定任务报告!"
);
}
ChAprReport
report
=
new
ChAprReport
();
ChAprReport
report
=
new
ChAprReport
();
report
.
setTaskId
(
taskId
);
report
.
setTaskId
(
taskId
);
report
.
setEffTime
(
new
Date
());
report
.
setEffTime
(
new
Date
());
...
@@ -93,6 +97,7 @@ public class TaskServiceImpl implements TaskService {
...
@@ -93,6 +97,7 @@ public class TaskServiceImpl implements TaskService {
personInfo
.
setFcd
(
new
Date
());
personInfo
.
setFcd
(
new
Date
());
personInfoMapper
.
insert
(
personInfo
);
personInfoMapper
.
insert
(
personInfo
);
}
}
return
Result
.
success
();
}
}
@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