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
57c06e2d
Commit
57c06e2d
authored
Apr 21, 2021
by
zhangch
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://129.211.99.254:8088/hg-hubin/long-tern-care-service
parents
f6fa3491
ec50248a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
69 additions
and
1 deletion
+69
-1
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+10
-1
CfgSrvDisableLevelMapper.java
...n/java/com/hungraim/ltc/dao/CfgSrvDisableLevelMapper.java
+14
-0
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+3
-0
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+19
-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 @
57c06e2d
package
com
.
hungraim
.
ltc
.
controller
;
package
com
.
hungraim
.
ltc
.
controller
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.entity.eval.ChAprEmp
;
import
com.hungraim.ltc.pojo.entity.eval.ChAprEmp
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO
;
...
@@ -89,6 +90,15 @@ public class TaskController {
...
@@ -89,6 +90,15 @@ public class TaskController {
}
}
/**
/**
* 查询失能等级列表
*/
@RequestMapping
(
"/cfgSrvDisableLevelList"
)
public
Result
<
List
<
ChCfgSrvDisableLevel
>>
cfgSrvDisableLevelList
()
{
List
<
ChCfgSrvDisableLevel
>
list
=
taskService
.
cfgSrvDisableLevelList
();
return
Result
.
success
(
list
);
}
/**
* 评定报告新增
* 评定报告新增
*
*
* @param taskId 评定报告id
* @param taskId 评定报告id
...
@@ -150,7 +160,6 @@ public class TaskController {
...
@@ -150,7 +160,6 @@ public class TaskController {
return
Result
.
success
();
return
Result
.
success
();
}
}
/**
/**
* 评定任务分组管理列表
* 评定任务分组管理列表
*
*
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/CfgSrvDisableLevelMapper.java
0 → 100644
View file @
57c06e2d
package
com
.
hungraim
.
ltc
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
/**
* @author czz
*/
@Mapper
@Repository
public
interface
CfgSrvDisableLevelMapper
extends
BaseMapper
<
ChCfgSrvDisableLevel
>
{
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
57c06e2d
package
com
.
hungraim
.
ltc
.
service
;
package
com
.
hungraim
.
ltc
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.entity.eval.ChAprEmp
;
import
com.hungraim.ltc.pojo.entity.eval.ChAprEmp
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO
;
...
@@ -61,4 +62,6 @@ public interface TaskService {
...
@@ -61,4 +62,6 @@ public interface TaskService {
List
<
TaskGroupVO
>
taskGroupList
(
String
name
,
String
certiCode
,
String
tel
);
List
<
TaskGroupVO
>
taskGroupList
(
String
name
,
String
certiCode
,
String
tel
);
Result
<
Object
>
taskGroup
(
Integer
pushId
,
Integer
status
);
Result
<
Object
>
taskGroup
(
Integer
pushId
,
Integer
status
);
List
<
ChCfgSrvDisableLevel
>
cfgSrvDisableLevelList
();
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
57c06e2d
...
@@ -5,12 +5,14 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
...
@@ -5,12 +5,14 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.dao.*
;
import
com.hungraim.ltc.dao.*
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.entity.eval.*
;
import
com.hungraim.ltc.pojo.entity.eval.*
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO
;
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
;
...
@@ -36,6 +38,8 @@ public class TaskServiceImpl implements TaskService {
...
@@ -36,6 +38,8 @@ public class TaskServiceImpl implements TaskService {
private
AprPeronInfoMapper
peronInfoMapper
;
private
AprPeronInfoMapper
peronInfoMapper
;
@Autowired
@Autowired
private
TaskPushMapper
taskPushMapper
;
private
TaskPushMapper
taskPushMapper
;
@Autowired
private
CfgSrvDisableLevelMapper
cfgSrvDisableLevelMapper
;
@Override
@Override
public
IPage
<
TaskDistributionVO
>
taskDistributionList
(
String
organId
,
String
provincial
,
String
city
,
public
IPage
<
TaskDistributionVO
>
taskDistributionList
(
String
organId
,
String
provincial
,
String
city
,
...
@@ -167,6 +171,15 @@ public class TaskServiceImpl implements TaskService {
...
@@ -167,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
();
}
}
...
@@ -186,4 +199,9 @@ public class TaskServiceImpl implements TaskService {
...
@@ -186,4 +199,9 @@ public class TaskServiceImpl implements TaskService {
taskPushMapper
.
updateById
(
chAprTaskPush
);
taskPushMapper
.
updateById
(
chAprTaskPush
);
return
Result
.
success
();
return
Result
.
success
();
}
}
@Override
public
List
<
ChCfgSrvDisableLevel
>
cfgSrvDisableLevelList
()
{
return
cfgSrvDisableLevelMapper
.
selectList
(
new
QueryWrapper
<>());
}
}
}
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/util/SerialNumberUtils.java
0 → 100644
View file @
57c06e2d
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