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
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
192 additions
and
21 deletions
+192
-21
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
+50
-11
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 {
}
/**
* 评定任务分组管理列表详情详情
*
* @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 组号
...
...
@@ -245,7 +259,7 @@ public class TaskController {
return
Result
.
failed
(
"组号不能为空!"
);
}
if
(
status
==
null
||
status
<
0
||
status
>
5
)
{
Result
.
failed
(
"状态异常!"
);
return
Result
.
failed
(
"状态异常!"
);
}
Result
<
Object
>
objectResult
=
taskService
.
taskGroupByGroup
(
groupNumber
,
status
);
if
(!
ResultCode
.
SUCCESS
.
getCode
().
equals
(
objectResult
.
getCode
()))
{
...
...
@@ -258,16 +272,16 @@ public class TaskController {
/**
* 评定任务分组管理
*
* @param pushId 任务
清单
id
* @param pushId 任务
组
id
* @param status 分组状态 未分配(拒绝(重新分配)):0;已分配:1;已接受:2;已完成:3;拒绝(中止):4,拒绝(终止):5
*/
@RequestMapping
(
"/taskGroup"
)
public
Result
taskGroup
(
Integer
pushId
,
Integer
status
)
{
if
(
status
==
null
||
status
<
0
||
status
>
5
)
{
Result
.
failed
(
"状态异常!"
);
return
Result
.
failed
(
"状态异常!"
);
}
if
(
pushId
==
null
)
{
Result
.
failed
(
"任务组
不能为空!"
);
return
Result
.
failed
(
"任务组id
不能为空!"
);
}
Result
<
Object
>
objectResult
=
taskService
.
taskGroup
(
pushId
,
status
);
if
(!
ResultCode
.
SUCCESS
.
getCode
().
equals
(
objectResult
.
getCode
()))
{
...
...
@@ -277,5 +291,4 @@ public class TaskController {
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> {
List
<
PersonInfoVO
>
personInfoList
(
String
reportId
);
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 {
List
<
TaskGroupInfoVO
>
taskGroupInfoList
(
String
groupNumber
);
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 {
//生成组
ChAprTaskPush
taskPush
=
new
ChAprTaskPush
();
taskPush
.
setTime
(
new
Date
());
taskPush
.
setAssignTime
(
new
Date
());
taskPush
.
setGroupNumber
(
SerialNumberUtils
.
getSerialNumber
(
empId
));
taskPush
.
setTaskId
(
Long
.
get
Long
(
id
));
taskPush
.
setEmpId
(
Long
.
get
Long
(
empId
));
taskPush
.
setTaskId
(
Long
.
parse
Long
(
id
));
taskPush
.
setEmpId
(
Long
.
parse
Long
(
empId
));
taskPush
.
setStatus
((
short
)
1
);
taskPush
.
setIsManual
((
short
)
1
);
taskPushMapper
.
insert
(
taskPush
);
...
...
@@ -234,4 +235,9 @@ public class TaskServiceImpl implements TaskService {
}
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 @@
</where>
</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 emp.emp_id empId,
srvOrgan.srv_organ_name srvOrganName,
...
...
@@ -249,17 +262,42 @@
where push.group_number = #{groupNumber}
</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
id=
"taskGroupInfoListInfo"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.TaskGroupInfoListInfoVO"
>
SELECT push.TASK_PUSH_ID taskPushId,
disable.real_name realName,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where disable.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) districtProvincial,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where disable.DISTRICT_CITY = dis.DISTRICT_CODE) districPity,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where disable.DISTRICT_AREA = dis.DISTRICT_CODE) districtArea,
disable.certi_code certiCode,
disable.birthday birthday,
disable.gender gender,
disable.tel tel,
(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>
</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 {
//评定起点地址
private
String
routeStatrtLocation
;
//组号
private
Integer
groupNumber
;
private
String
groupNumber
;
//评定人员姓名
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 {
*/
public
static
String
getSerialNumber
(
String
key
)
{
DateFormat
dateFormat
=
new
SimpleDateFormat
(
DateUtils
.
DATE_PATTERN_yyyyMMddHHMMss
);
dateFormat
.
format
(
new
Date
());
return
dateFormat
.
toString
()
+
key
;
return
dateFormat
.
format
(
new
Date
())
+
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