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
ec50248a
Commit
ec50248a
authored
Apr 21, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
鉴定任务分配时生成组
parent
f3779264
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+0
-1
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+10
-0
SerialNumberUtils.java
...rc/main/java/com/hungraim/ltc/util/SerialNumberUtils.java
+23
-0
No files found.
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
ec50248a
...
@@ -160,7 +160,6 @@ public class TaskController {
...
@@ -160,7 +160,6 @@ public class TaskController {
return
Result
.
success
();
return
Result
.
success
();
}
}
/**
/**
* 评定任务分组管理列表
* 评定任务分组管理列表
*
*
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
ec50248a
...
@@ -12,6 +12,7 @@ import com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO;
...
@@ -12,6 +12,7 @@ import com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO;
import
com.hungraim.ltc.pojo.vo.assessment.TaskReportVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskReportVO
;
import
com.hungraim.ltc.service.TaskService
;
import
com.hungraim.ltc.service.TaskService
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.SerialNumberUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -170,6 +171,15 @@ public class TaskServiceImpl implements TaskService {
...
@@ -170,6 +171,15 @@ public class TaskServiceImpl implements TaskService {
if
(
count
!=
1
)
{
if
(
count
!=
1
)
{
return
Result
.
failed
(
"修改失败!"
);
return
Result
.
failed
(
"修改失败!"
);
}
}
//生成组
ChAprTaskPush
taskPush
=
new
ChAprTaskPush
();
taskPush
.
setTime
(
new
Date
());
taskPush
.
setGroupNumber
(
SerialNumberUtils
.
getSerialNumber
(
empId
.
toString
()));
taskPush
.
setTaskId
(
Long
.
getLong
(
id
));
taskPush
.
setEmpId
(
empId
.
longValue
());
taskPush
.
setStatus
((
short
)
1
);
taskPush
.
setIsManual
((
short
)
1
);
taskPushMapper
.
insert
(
taskPush
);
}
}
return
Result
.
success
();
return
Result
.
success
();
}
}
...
...
common/common-core/src/main/java/com/hungraim/ltc/util/SerialNumberUtils.java
0 → 100644
View file @
ec50248a
package
com
.
hungraim
.
ltc
.
util
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
/**
* 流水号生成工具
*/
public
class
SerialNumberUtils
{
/**
* 生成流水号(当前时间的年月日时分秒+key)
*
* @param key 一秒内不会重复的字符串保证流水号的唯一性
* @return 流水号
*/
public
static
String
getSerialNumber
(
String
key
)
{
DateFormat
dateFormat
=
new
SimpleDateFormat
(
DateUtils
.
DATE_PATTERN_yyyyMMddHHMMss
);
dateFormat
.
format
(
new
Date
());
return
dateFormat
.
toString
()
+
key
;
}
}
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