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
625c524a
Commit
625c524a
authored
Apr 25, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评定任务分组管理列表详情详情
parent
85f8712c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
204 additions
and
33 deletions
+204
-33
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+18
-5
TaskMapper.java
...ervice/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
+2
-0
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+2
-0
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+9
-2
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+62
-23
TaskGroupInfoListInfoVO.java
...graim/ltc/pojo/vo/assessment/TaskGroupInfoListInfoVO.java
+109
-0
TaskGroupVO.java
...java/com/hungraim/ltc/pojo/vo/assessment/TaskGroupVO.java
+1
-1
SerialNumberUtils.java
...rc/main/java/com/hungraim/ltc/util/SerialNumberUtils.java
+1
-2
No files found.
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
625c524a
...
@@ -234,6 +234,20 @@ public class TaskController {
...
@@ -234,6 +234,20 @@ public class TaskController {
}
}
/**
/**
* 评定任务分组管理列表详情详情
*
* @param pushId 任务组id
*/
@RequestMapping
(
"/taskGroupInfoListInfo"
)
public
Result
<
TaskGroupInfoListInfoVO
>
taskGroupInfoListInfo
(
String
pushId
)
{
if
(
StringUtils
.
isBlank
(
pushId
))
{
return
Result
.
failed
(
"任务组id不能为空!"
);
}
TaskGroupInfoListInfoVO
taskGroupInfoListInfoVO
=
taskService
.
taskGroupInfoListInfo
(
pushId
);
return
Result
.
success
(
taskGroupInfoListInfoVO
);
}
/**
* 评定任务分组管理(整组操作)
* 评定任务分组管理(整组操作)
*
*
* @param groupNumber 组号
* @param groupNumber 组号
...
@@ -245,7 +259,7 @@ public class TaskController {
...
@@ -245,7 +259,7 @@ public class TaskController {
return
Result
.
failed
(
"组号不能为空!"
);
return
Result
.
failed
(
"组号不能为空!"
);
}
}
if
(
status
==
null
||
status
<
0
||
status
>
5
)
{
if
(
status
==
null
||
status
<
0
||
status
>
5
)
{
Result
.
failed
(
"状态异常!"
);
return
Result
.
failed
(
"状态异常!"
);
}
}
Result
<
Object
>
objectResult
=
taskService
.
taskGroupByGroup
(
groupNumber
,
status
);
Result
<
Object
>
objectResult
=
taskService
.
taskGroupByGroup
(
groupNumber
,
status
);
if
(!
ResultCode
.
SUCCESS
.
getCode
().
equals
(
objectResult
.
getCode
()))
{
if
(!
ResultCode
.
SUCCESS
.
getCode
().
equals
(
objectResult
.
getCode
()))
{
...
@@ -258,16 +272,16 @@ public class TaskController {
...
@@ -258,16 +272,16 @@ public class TaskController {
/**
/**
* 评定任务分组管理
* 评定任务分组管理
*
*
* @param pushId 任务
清单
id
* @param pushId 任务
组
id
* @param status 分组状态 未分配(拒绝(重新分配)):0;已分配:1;已接受:2;已完成:3;拒绝(中止):4,拒绝(终止):5
* @param status 分组状态 未分配(拒绝(重新分配)):0;已分配:1;已接受:2;已完成:3;拒绝(中止):4,拒绝(终止):5
*/
*/
@RequestMapping
(
"/taskGroup"
)
@RequestMapping
(
"/taskGroup"
)
public
Result
taskGroup
(
Integer
pushId
,
Integer
status
)
{
public
Result
taskGroup
(
Integer
pushId
,
Integer
status
)
{
if
(
status
==
null
||
status
<
0
||
status
>
5
)
{
if
(
status
==
null
||
status
<
0
||
status
>
5
)
{
Result
.
failed
(
"状态异常!"
);
return
Result
.
failed
(
"状态异常!"
);
}
}
if
(
pushId
==
null
)
{
if
(
pushId
==
null
)
{
Result
.
failed
(
"任务组
不能为空!"
);
return
Result
.
failed
(
"任务组id
不能为空!"
);
}
}
Result
<
Object
>
objectResult
=
taskService
.
taskGroup
(
pushId
,
status
);
Result
<
Object
>
objectResult
=
taskService
.
taskGroup
(
pushId
,
status
);
if
(!
ResultCode
.
SUCCESS
.
getCode
().
equals
(
objectResult
.
getCode
()))
{
if
(!
ResultCode
.
SUCCESS
.
getCode
().
equals
(
objectResult
.
getCode
()))
{
...
@@ -277,5 +291,4 @@ public class TaskController {
...
@@ -277,5 +291,4 @@ public class TaskController {
return
Result
.
success
();
return
Result
.
success
();
}
}
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
View file @
625c524a
...
@@ -50,4 +50,6 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
...
@@ -50,4 +50,6 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
List
<
PersonInfoVO
>
personInfoList
(
String
reportId
);
List
<
PersonInfoVO
>
personInfoList
(
String
reportId
);
List
<
TaskGroupInfoVO
>
taskGroupInfoList
(
String
groupNumber
);
List
<
TaskGroupInfoVO
>
taskGroupInfoList
(
String
groupNumber
);
TaskGroupInfoListInfoVO
taskGroupInfoListInfo
(
String
pushId
);
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
625c524a
...
@@ -68,4 +68,6 @@ public interface TaskService {
...
@@ -68,4 +68,6 @@ public interface TaskService {
List
<
TaskGroupInfoVO
>
taskGroupInfoList
(
String
groupNumber
);
List
<
TaskGroupInfoVO
>
taskGroupInfoList
(
String
groupNumber
);
Result
<
Object
>
taskGroupByGroup
(
String
groupNumber
,
Integer
status
);
Result
<
Object
>
taskGroupByGroup
(
String
groupNumber
,
Integer
status
);
TaskGroupInfoListInfoVO
taskGroupInfoListInfo
(
String
pushId
);
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
625c524a
...
@@ -175,9 +175,10 @@ public class TaskServiceImpl implements TaskService {
...
@@ -175,9 +175,10 @@ public class TaskServiceImpl implements TaskService {
//生成组
//生成组
ChAprTaskPush
taskPush
=
new
ChAprTaskPush
();
ChAprTaskPush
taskPush
=
new
ChAprTaskPush
();
taskPush
.
setTime
(
new
Date
());
taskPush
.
setTime
(
new
Date
());
taskPush
.
setAssignTime
(
new
Date
());
taskPush
.
setGroupNumber
(
SerialNumberUtils
.
getSerialNumber
(
empId
));
taskPush
.
setGroupNumber
(
SerialNumberUtils
.
getSerialNumber
(
empId
));
taskPush
.
setTaskId
(
Long
.
get
Long
(
id
));
taskPush
.
setTaskId
(
Long
.
parse
Long
(
id
));
taskPush
.
setEmpId
(
Long
.
get
Long
(
empId
));
taskPush
.
setEmpId
(
Long
.
parse
Long
(
empId
));
taskPush
.
setStatus
((
short
)
1
);
taskPush
.
setStatus
((
short
)
1
);
taskPush
.
setIsManual
((
short
)
1
);
taskPush
.
setIsManual
((
short
)
1
);
taskPushMapper
.
insert
(
taskPush
);
taskPushMapper
.
insert
(
taskPush
);
...
@@ -234,4 +235,9 @@ public class TaskServiceImpl implements TaskService {
...
@@ -234,4 +235,9 @@ public class TaskServiceImpl implements TaskService {
}
}
return
Result
.
success
();
return
Result
.
success
();
}
}
@Override
public
TaskGroupInfoListInfoVO
taskGroupInfoListInfo
(
String
pushId
)
{
return
taskMapper
.
taskGroupInfoListInfo
(
pushId
);
}
}
}
\ No newline at end of file
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
625c524a
...
@@ -151,6 +151,19 @@
...
@@ -151,6 +151,19 @@
</where>
</where>
</select>
</select>
<select
id=
"personInfoList"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.PersonInfoVO"
>
SELECT emp.emp_id empId,
organ.organ_name orgaName,
emp.real_name realName,
emp.tel tel,
emp.certi_code certiCode
FROM ch_apr_person_info info
LEFT JOIN ch_apr_emp emp ON info.emp_id = emp.emp_id
LEFT JOIN ch_apr_organ organ ON organ.apr_organ_id = emp.apr_organ_id
where info.report_id = #{reportId}
order by info.info_id desc
</select>
<select
id=
"aprEmpList"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.AprEmpVO"
>
<select
id=
"aprEmpList"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.AprEmpVO"
>
SELECT emp.emp_id empId,
SELECT emp.emp_id empId,
srvOrgan.srv_organ_name srvOrganName,
srvOrgan.srv_organ_name srvOrganName,
...
@@ -229,18 +242,18 @@
...
@@ -229,18 +242,18 @@
disable.real_name realName,
disable.real_name realName,
disable.gender gender,
disable.gender gender,
disable.birthday birthday,
disable.birthday birthday,
disable.certi_code
certiCode,
disable.certi_code certiCode,
push.Planned_arrival_time
plannedArrivalTime,
push.Planned_arrival_time plannedArrivalTime,
push.Planned_departure_time
plannedDepartureTime,
push.Planned_departure_time plannedDepartureTime,
push.Distance_station_kilometers
distanceStationKilometers,
push.Distance_station_kilometers distanceStationKilometers,
push.Distance_station_travel_time
distanceStationTravelTime,
push.Distance_station_travel_time distanceStationTravelTime,
push.Total_distance
totalDistance,
push.Total_distance totalDistance,
push.Length_of_time
lengthOfTime,
push.Length_of_time lengthOfTime,
emp.real_name
empRealName,
emp.real_name empRealName,
emp.certi_code
empCertiCode,
emp.certi_code empCertiCode,
push.status
status,
push.status status,
push.Refuse_reason
refuseReason,/*拒绝原因*/
push.Refuse_reason refuseReason,/*拒绝原因*/
push.Refuse_remark
remark/*备注*/
push.Refuse_remark remark/*备注*/
from ch_apr_task_push push
from ch_apr_task_push push
left join ch_apr_task task on push.task_id = task.task_id
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_FND_ORGAN organ on organ.organ_id = task.organ_id
...
@@ -249,17 +262,42 @@
...
@@ -249,17 +262,42 @@
where push.group_number = #{groupNumber}
where push.group_number = #{groupNumber}
</select>
</select>
<select
id=
"personInfoList"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.PersonInfoVO"
>
<select
id=
"taskGroupInfoListInfo"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.TaskGroupInfoListInfoVO"
>
SELECT emp.emp_id empId,
SELECT push.TASK_PUSH_ID taskPushId,
organ.organ_name orgaName,
disable.real_name realName,
emp.real_name realName,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where disable.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) districtProvincial,
emp.tel tel,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where disable.DISTRICT_CITY = dis.DISTRICT_CODE) districPity,
emp.certi_code certiCode
(select DISTRICT_NAME from CH_FND_DISTRICT dis where disable.DISTRICT_AREA = dis.DISTRICT_CODE) districtArea,
FROM ch_apr_person_info info
disable.certi_code certiCode,
LEFT JOIN ch_apr_emp emp ON info.emp_id = emp.emp_id
disable.birthday birthday,
LEFT JOIN ch_apr_organ organ ON organ.apr_organ_id = emp.apr_organ_id
disable.gender gender,
where info.report_id = #{reportId}
disable.tel tel,
order by info.info_id desc
(SELECT DISE_TYPE_CODE FROM CH_FND_DISEASE_TYPE WHERE disable.DISE_TYPE_F = DISE_TYPE_ID) diseTypeF,
(SELECT DISE_TYPE_CODE FROM CH_FND_DISEASE_TYPE WHERE disable.DISE_TYPE_S = DISE_TYPE_ID) diseTypeS,
disable.disease_desc diseaseDesc,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE disable.adress_district_provincial = dis.DISTRICT_CODE) adressDistrictProvincial,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE disable.adress_district_city = dis.DISTRICT_CODE) adressDistrictCity,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE disable.Adress_district_code = dis.DISTRICT_CODE) adressDistrictCode,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE disable.ACPT_PROVINCIAL = dis.DISTRICT_CODE) acptProvincial,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE disable.ACPT_CITY = dis.DISTRICT_CODE) acptCity,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE disable.ACPT_AREA = dis.DISTRICT_CODE) acptArea,
task.eff_time effTime,
task.Last_apr_date lastAprDate,
emp.real_name empRealName,
emp.certi_code empCertiCode,
emp.tel empTel,
push.accept_time acceptTime,
push.refuse_reason refuseReason,
organ.organ_name refuseOrganName,
push.refuse_emp refuseEmp,
push.status status,
push.refuse_remark refuseRemark
FROM ch_apr_task_push push
LEFT JOIN ch_apr_task task ON push.TASK_ID = task.TASK_ID
left join ch_disable_info disable on task.disable_info_id = disable.disab_info_id
LEFT JOIN ch_apr_emp emp on task.apr_emp_id = emp.emp_id
LEFT JOIN CH_APR_ORGAN organ on push.refuse_organ_name = organ.apr_organ_id
where push.task_push_id = #{pushId}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/assessment/TaskGroupInfoListInfoVO.java
0 → 100644
View file @
625c524a
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
assessment
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
TaskGroupInfoListInfoVO
{
/**
* 分组id
*/
private
String
taskPushId
;
/**
* 申请人姓名
*/
private
String
realName
;
/**
* 所在省市区
*/
private
String
districtProvincial
;
private
String
districPity
;
private
String
districtArea
;
/**
* 身份证号码
*/
private
String
certiCode
;
/**
* 出生年月
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
birthday
;
/**
* 性别
*/
private
String
gender
;
/**
* 手机号
*/
private
String
tel
;
/**
* 诊断疾病
*/
private
String
diseTypeF
;
private
String
diseTypeS
;
/**
* 病情描述及诊断
*/
private
String
diseaseDesc
;
/**
* 现住址
*/
private
String
adressDistrictProvincial
;
private
String
adressDistrictCity
;
private
String
adressDistrictCode
;
/**
* 接受评定地址
*/
private
String
acptProvincial
;
private
String
acptCity
;
private
String
acptArea
;
/**
* 申请日期
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
effTime
;
/**
* 评定截止日期
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
lastAprDate
;
/**
* 组长姓名
*/
private
String
empRealName
;
/**
* 组长身份证号码
*/
private
String
empCertiCode
;
/**
* 组长手机号码
*/
private
String
empTel
;
/**
* 拒绝时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
acceptTime
;
/**
* 拒绝原因
*/
private
String
refuseReason
;
/**
* 操作机构
*/
private
String
refuseOrganName
;
/**
* 操作人
*/
private
String
refuseEmp
;
/**
* 状态
*/
private
String
status
;
/**
* 备注
*/
private
String
refuseRemark
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/assessment/TaskGroupVO.java
View file @
625c524a
...
@@ -24,7 +24,7 @@ public class TaskGroupVO {
...
@@ -24,7 +24,7 @@ public class TaskGroupVO {
//评定起点地址
//评定起点地址
private
String
routeStatrtLocation
;
private
String
routeStatrtLocation
;
//组号
//组号
private
Integer
groupNumber
;
private
String
groupNumber
;
//评定人员姓名
//评定人员姓名
private
String
realName
;
private
String
realName
;
//评定人员身份证号码
//评定人员身份证号码
...
...
common/common-core/src/main/java/com/hungraim/ltc/util/SerialNumberUtils.java
View file @
625c524a
...
@@ -17,7 +17,6 @@ public class SerialNumberUtils {
...
@@ -17,7 +17,6 @@ public class SerialNumberUtils {
*/
*/
public
static
String
getSerialNumber
(
String
key
)
{
public
static
String
getSerialNumber
(
String
key
)
{
DateFormat
dateFormat
=
new
SimpleDateFormat
(
DateUtils
.
DATE_PATTERN_yyyyMMddHHMMss
);
DateFormat
dateFormat
=
new
SimpleDateFormat
(
DateUtils
.
DATE_PATTERN_yyyyMMddHHMMss
);
dateFormat
.
format
(
new
Date
());
return
dateFormat
.
format
(
new
Date
())
+
key
;
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