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
53ef1544
Commit
53ef1544
authored
Mar 23, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_nursing_records_20230214' into dev_ch_master
parents
a1af3342
4963d527
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
344 additions
and
199 deletions
+344
-199
ChDisabFreeRdInfoMapper.xml
...ice/src/main/resources/mapper/ChDisabFreeRdInfoMapper.xml
+1
-1
DisableController.java
...n/java/com/hungraim/ltc/controller/DisableController.java
+12
-0
ChSrvOrganEmpMapper.java
...c/main/java/com/hungraim/ltc/dao/ChSrvOrganEmpMapper.java
+0
-2
DisableService.java
...rc/main/java/com/hungraim/ltc/service/DisableService.java
+1
-0
DisableServiceImpl.java
...ava/com/hungraim/ltc/service/impl/DisableServiceImpl.java
+34
-6
SrvOrganEmpServiceImpl.java
...com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
+0
-15
ChDisableApplyMapper.xml
...ervice/src/main/resources/mapper/ChDisableApplyMapper.xml
+6
-5
ChSrvOrganEmpMapper.xml
...service/src/main/resources/mapper/ChSrvOrganEmpMapper.xml
+8
-5
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+3
-22
ChAssessAccountsDetailMapper.java
...va/com/hungraim/ltc/dao/ChAssessAccountsDetailMapper.java
+10
-0
ChAssessDetailAccountsMapper.java
...va/com/hungraim/ltc/dao/ChAssessDetailAccountsMapper.java
+0
-22
TaskMapper.java
...ervice/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
+4
-2
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+5
-3
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+29
-34
ChAssessDetailAccountsMapper.xml
...rc/main/resources/mapper/ChAssessDetailAccountsMapper.xml
+6
-1
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+14
-55
ChAssessDetailAccounts.java
...im/ltc/pojo/entity/assessment/ChAssessDetailAccounts.java
+3
-0
AprEmpExportVO.java
...a/com/hungraim/ltc/pojo/vo/assessment/AprEmpExportVO.java
+17
-8
DisableExportVO.java
...ava/com/hungraim/ltc/pojo/vo/disable/DisableExportVO.java
+15
-6
DisableVO.java
...main/java/com/hungraim/ltc/pojo/vo/disable/DisableVO.java
+4
-2
SrvOrganEmpExportVo.java
...com/hungraim/ltc/pojo/vo/disable/SrvOrganEmpExportVo.java
+14
-6
AprOrganController.java
...ungraim/ltc/governance/controller/AprOrganController.java
+24
-0
BuildBedController.java
...ungraim/ltc/governance/controller/BuildBedController.java
+13
-0
SrvProgramController.java
...graim/ltc/governance/controller/SrvProgramController.java
+12
-3
AprOrganMapper.java
.../java/com/hungraim/ltc/governance/dao/AprOrganMapper.java
+4
-0
AprOrganService.java
.../com/hungraim/ltc/governance/service/AprOrganService.java
+4
-0
DisableInfoServie.java
...om/hungraim/ltc/governance/service/DisableInfoServie.java
+1
-1
AprOrganServiceImpl.java
...raim/ltc/governance/service/impl/AprOrganServiceImpl.java
+25
-0
DisableInfoServieImpl.java
...im/ltc/governance/service/impl/DisableInfoServieImpl.java
+8
-0
AprOrganMapper.xml
...ces/com/hungraim/ltc/governance/mapper/AprOrganMapper.xml
+67
-0
No files found.
account/account-service/src/main/resources/mapper/ChDisabFreeRdInfoMapper.xml
View file @
53ef1544
...
...
@@ -25,7 +25,7 @@
left join CH_SRV_ORGAN organ on organ.SRV_ORGAN_ID = detail.SRV_ORGAN_ID
<where>
<if
test=
"req.realName != null and req.realName != ''"
>
and info.REAL_NAME
= #{req.realName}
and info.REAL_NAME
like CONCAT(CONCAT('%',#{req.realName}) ,'%')
</if>
<if
test=
"req.accountsTime != null and req.accountsTime != ''"
>
and to_char(detail.accounts_time,'yyyy-MM-dd') = #{req.accountsTime}
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/controller/DisableController.java
View file @
53ef1544
...
...
@@ -556,4 +556,16 @@ public class DisableController {
return
Result
.
success
(
disableExitHis
);
}
@RequestMapping
(
"/getDisableCertiCode"
)
public
Result
getDisableCertiCode
(
String
certiCode
)
{
if
(
certiCode
==
null
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
Integer
integer
=
disableService
.
selectByCertiCode
(
certiCode
);
if
(
integer
>
0
)
{
return
Result
.
failed
(
"失能申请已存在该人员身份证,请联系管理员"
);
}
return
Result
.
success
();
}
}
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ChSrvOrganEmpMapper.java
View file @
53ef1544
...
...
@@ -3,11 +3,9 @@ package com.hungraim.ltc.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvOrganEmp
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpExportVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpListVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/DisableService.java
View file @
53ef1544
...
...
@@ -186,4 +186,5 @@ public interface DisableService {
List
<
ChDisableExit
>
getDisableExitHis
(
Integer
disableInfoId
);
Integer
selectByCertiCode
(
String
certiCode
);
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/DisableServiceImpl.java
View file @
53ef1544
...
...
@@ -116,8 +116,23 @@ public class DisableServiceImpl implements DisableService {
if
(
StrUtil
.
isNotBlank
(
organId
))
{
organIds
=
Arrays
.
asList
(
organId
.
split
(
","
));
}
return
disableApplyMapper
.
disableList
(
page
,
organIds
,
districtProvincial
,
Page
<
DisableVO
>
disableVOPage
=
disableApplyMapper
.
disableList
(
page
,
organIds
,
districtProvincial
,
districtCity
,
districtArea
,
realName
,
certiCode
,
dataFrom
,
srvOrganName
,
applyMethod
);
List
<
DisableVO
>
records
=
disableVOPage
.
getRecords
();
for
(
DisableVO
record
:
records
)
{
String
birthday
=
record
.
getBirthday
();
if
(
StringUtils
.
isNotEmpty
(
birthday
))
{
Date
birthdayDate
=
DateUtils
.
strToDate
(
birthday
);
try
{
int
age
=
DateUtils
.
getAge
(
birthdayDate
);
record
.
setAge
(
age
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
return
disableVOPage
;
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
...
...
@@ -567,12 +582,18 @@ public class DisableServiceImpl implements DisableService {
districtCity
,
districtArea
,
realName
,
certiCode
,
dataFrom
,
applyMethod
);
for
(
DisableExportVO
record
:
records
)
{
StringBuilder
stringBuilder
=
new
StringBuilder
();
if
(
record
.
getProvincial
().
equals
(
record
.
getCity
())){
stringBuilder
.
append
(
record
.
getProvincial
());
}
else
{
stringBuilder
.
append
(
record
.
getProvincial
()).
append
(
record
.
getCity
());
}
stringBuilder
.
append
(
record
.
getProvincial
()).
append
(
record
.
getCity
()).
append
(
record
.
getArea
());
record
.
setProvinCialcityArea
(
stringBuilder
.
toString
());
String
birthday
=
record
.
getBirthday
();
if
(
StringUtils
.
isNotEmpty
(
birthday
))
{
Date
birthdayDate
=
DateUtils
.
strToDate
(
birthday
);
try
{
int
age
=
DateUtils
.
getAge
(
birthdayDate
);
record
.
setAge
(
age
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
ExportParams
exportParams
=
new
ExportParams
();
exportParams
.
setType
(
ExcelType
.
XSSF
);
// 对应xlsx
...
...
@@ -649,6 +670,13 @@ public class DisableServiceImpl implements DisableService {
}
@Override
public
Integer
selectByCertiCode
(
String
certiCode
){
List
<
ChDisableApply
>
chDisableApplies
=
disableApplyMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChDisableApply
>()
.
eq
(
ChDisableApply:
:
getCertiCode
,
certiCode
));
return
chDisableApplies
.
size
();
}
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
View file @
53ef1544
...
...
@@ -143,21 +143,6 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
Short
isLock
,
Short
empType
)
{
List
<
Long
>
organIds
=
organService
.
getOrganIds
(
organId
,
isInvolveChild
);
List
<
SrvOrganEmpExportVo
>
srvOrganEmpExportList
=
chSrvOrganEmpMapper
.
getSrvOrganEmpExportList
(
organIds
,
srvOrganId
,
empName
,
srvOrganName
,
certifNum
,
isLock
,
empType
);
// for (SrvOrganEmpExportVo record : srvOrganEmpExportList) {
// StringBuilder stringBuilder = new StringBuilder();
// if(record == null){
// break;
// }
// if(StringUtils.isEmpty(record.getProvincial())){
// stringBuilder.append("--");
// }else if( record.getProvincial().equals(record.getCity())){
// stringBuilder.append(record.getProvincial());
// }else {
// stringBuilder.append(record.getProvincial()).append(record.getCity());
// }
// record.setProvinCialcityArea(stringBuilder.toString());
// }
ExportParams
exportParams
=
new
ExportParams
();
exportParams
.
setType
(
ExcelType
.
XSSF
);
// 对应xlsx
Workbook
workbook
=
ExcelExportUtil
.
exportExcel
(
exportParams
,
SrvOrganEmpExportVo
.
class
,
srvOrganEmpExportList
);
...
...
apply/apply-service/src/main/resources/mapper/ChDisableApplyMapper.xml
View file @
53ef1544
...
...
@@ -10,7 +10,7 @@
a.DISTRICT_CITY city,
a.DISTRICT_AREA area,
a.REAL_NAME name,
a.birthday
birthday,
to_char(a.birthday,'yyyy-MM-dd')
birthday,
a.CERTI_CODE certiCode,
a.TREATMENT_TYPE treatmentTyte,
a.OPER_NAME operName,
...
...
@@ -182,12 +182,14 @@
<select
id=
"disableExportList"
resultType=
"com.hungraim.ltc.pojo.vo.disable.DisableExportVO"
>
select a.APPLY_ID applyId,
o.ORGAN_NAME organName,
o.organ_name fndOrganName,
a.organ_id organId,
(select dis.district_name from ch_fnd_district dis where a.DISTRICT_PROVINCIAL = dis.district_code) provincial,
(select dis.district_name from ch_fnd_district dis where a.DISTRICT_CITY = dis.district_code) city,
(select dis.district_name from ch_fnd_district dis where a.district_area = dis.district_code) area,
a.DISTRICT_AREA area,
a.REAL_NAME name,
a.birthday
birthday,
to_char(a.birthday,'yyyy-MM-dd')
birthday,
a.CERTI_CODE certiCode,
a.TREATMENT_TYPE treatmentTyte,
a.OPER_NAME operName,
...
...
@@ -196,10 +198,9 @@
a.tel tel,
a.fixed_tel fixedTel,
m.MODE_NAME srvModeName,
a.DISE_TYPE_S
diseTypeS,
(select DISE_TYPE_CODE from CH_FND_DISEASE_TYPE where a.DISE_TYPE_S = DISE_TYPE_ID)
diseTypeS,
to_char(a.eff_time,'yyyy-MM-dd HH24:mi:ss') effTime,
DECODE(a.data_from, '1','核心','2', '手机端','3', '待遇申请') dataFrom,
a.APPLY_STATUS applyStatus,
decode(a.APPLY_STATUS,'1','待审核','2','审核通过','3','审核不通过') applyStatus,
a.APPLY_METHOD applyMethod
from CH_DISABLE_APPLY a
LEFT JOIN CH_FND_ORGAN o ON a.organ_id = o.ORGAN_ID
...
...
apply/apply-service/src/main/resources/mapper/ChSrvOrganEmpMapper.xml
View file @
53ef1544
...
...
@@ -101,13 +101,13 @@
T1.EMP_NAME empName,
DECODE(T1.gender, 'M','男','F', '女','N', '不确定') gender,
T1.AGE age,
T1.CERTIF_TYPE
certifType,
( case T1.CERTIF_TYPE when '1' then '身份证' else '未知' end )
certifType,
T1.CERTIF_NUM certifNum,
T1.MOBILE_PHONE mobilePhone,
T1.EMP_TYPE_ID empType
Id,
T1.EDU_ID eduId
,
T1.EMP_TYPE empType
,
T1.IS_LOCK
isLock,
education.EDU_CODE edu
Id,
DECODE(T1.EMP_TYPE,'0','护理人员','1','管理人员') empType
,
emptype.TYPE_NAME empTypeId
,
DECODE(T1.IS_LOCK,'0','有效','1','失效')
isLock,
T1.EFF_TIME effTime,
(select dis.district_name from ch_fnd_district dis where T4.DISTRICT_PROVINCIAL = dis.district_code) provincial,
(select dis.district_name from ch_fnd_district dis where T4.DISTRICT_CITY = dis.district_code) city,
...
...
@@ -117,6 +117,9 @@
FROM CH_SRV_ORGAN_EMP T1
LEFT JOIN CH_SRV_ORGAN T4 ON T1.SRV_ORGAN_ID = T4.SRV_ORGAN_ID
LEFT JOIN CH_FND_ORGAN T5 ON T1.ORGAN_ID = T5.ORGAN_ID
left join CH_CFG_SRV_EMP_TYPE emptype on T1.emp_type_id = emptype.EMP_TYPE_ID--护理人员资质
--学历表
LEFT JOIN CH_FND_EDUCATION education ON T1.EDU_ID = education.EDU_ID
<where>
<if
test=
"organIds != null and organIds.size() > 0"
>
AND T1.ORGAN_ID IN
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
53ef1544
...
...
@@ -2,7 +2,6 @@ package com.hungraim.ltc.controller;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.dao.AprReportMapper
;
...
...
@@ -84,9 +83,9 @@ public class TaskController {
* @param tel 失能人员手机号码
*/
@RequestMapping
(
"/taskReportList"
)
public
Result
<
Page
<
TaskReportVO
>>
taskReportList
(
@RequestParam
(
defaultValue
=
"1"
)
Integer
pageNum
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
pageSize
,
String
name
,
String
certiCode
,
String
tel
)
{
public
Result
<
Page
<
TaskReportVO
>>
taskReportList
(
@RequestParam
(
defaultValue
=
"1"
)
Integer
pageNum
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
pageSize
,
String
name
,
String
certiCode
,
String
tel
,
String
riskLevel
,
Integer
evaluateType
)
{
Page
<
TaskReportVO
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
page
=
taskService
.
taskReportList
(
page
,
name
,
certiCode
,
tel
);
page
=
taskService
.
taskReportList
(
page
,
name
,
certiCode
,
tel
,
riskLevel
,
evaluateType
);
log
.
info
(
"评定报告录入:"
+
JSONObject
.
toJSONString
(
page
));
return
Result
.
success
(
page
);
}
...
...
@@ -685,25 +684,7 @@ public class TaskController {
return
Result
.
failed
(
"没有查到日常生活活动能力数据"
);
}
/**
* 评定人员导出
*
* @param provincial 失能人员所在省
* @param city 失能人员所在市
* @param area 失能人员所在区
* @param organName 评定机构名称
* @param realName 评定人员姓名
* @param tel 评定人员手机号码
* @param groupLeader 是否组长0组长,1非组长
*/
@GetMapping
(
"/aprEmpExport"
)
public
void
aprEmpExport
(
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
realName
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
,
String
groupLeader
,
HttpServletResponse
response
){
Workbook
workbook
=
taskService
.
aprEmpExport
(
provincial
,
city
,
area
,
organName
,
realName
,
tel
,
certiCode
,
isLock
,
empType
,
groupLeader
);
// 命名表格
String
fileName
=
"aprEmp.xlsx"
;
FileUtils
.
exportResponse
(
workbook
,
fileName
,
response
);
}
/**
* 查询评估结算列表
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/ChAssessAccountsDetailMapper.java
View file @
53ef1544
...
...
@@ -2,12 +2,21 @@ package com.hungraim.ltc.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAssessDetailAccounts
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAssessDetailAccountsResp
;
import
com.hungraim.ltc.pojo.vo.account.AssessAccountsExportResp
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Mapper
@Repository
public
interface
ChAssessAccountsDetailMapper
extends
BaseMapper
<
ChAssessDetailAccounts
>
{
List
<
ChAssessDetailAccountsResp
>
queryAssessAccountsDetail
(
String
assessAccountsId
);
List
<
AssessAccountsExportResp
>
assessAccountDetailExport
(
String
assessAccountsId
);
ChAssessDetailAccounts
selectAssessDetailInfo
(
Integer
applyId
,
Integer
empId
,
Integer
evaluateType
);
}
\ No newline at end of file
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/ChAssessDetailAccountsMapper.java
deleted
100644 → 0
View file @
a1af3342
package
com
.
hungraim
.
ltc
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAssessDetailAccounts
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAssessDetailAccountsResp
;
import
com.hungraim.ltc.pojo.vo.account.AssessAccountsExportResp
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
* @author mq
*/
@Mapper
@Repository
public
interface
ChAssessDetailAccountsMapper
extends
BaseMapper
<
ChAssessDetailAccounts
>
{
List
<
ChAssessDetailAccountsResp
>
queryAssessAccountsDetail
(
String
assessAccountsId
);
List
<
AssessAccountsExportResp
>
assessAccountDetailExport
(
String
assessAccountsId
);
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
View file @
53ef1544
...
...
@@ -56,7 +56,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
/**
* 评定报告录入列表
*/
Page
<
TaskReportVO
>
taskReportList
(
Page
<
TaskReportVO
>
page
,
String
name
,
String
certiCode
,
String
tel
);
Page
<
TaskReportVO
>
taskReportList
(
Page
<
TaskReportVO
>
page
,
String
name
,
String
certiCode
,
String
tel
,
String
riskLevel
,
Integer
evaluateType
);
TaskReportVO
getReportById
(
String
reportId
);
...
...
@@ -76,9 +76,11 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
Page
<
TaskGroupInfoByPageVO
>
taskGroupInfoListByPage
(
String
aprEmpId
,
String
appointStartTime
,
String
appointEndTime
,
String
queryBeginDate
,
String
queryEndDate
,
String
groupNo
,
Integer
pageNo
,
Integer
pageSize
);
List
<
AprEmpExportVO
>
aprEmpExportList
(
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
,
String
groupLeader
);
int
insertSrvSend
(
Integer
disableInfoId
);
ChDisableInfo
selectDisableBycertiCode
(
@Param
(
"certiCode"
)
String
certiCode
);
Integer
selectReportByTaskId
(
String
taskId
);
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
53ef1544
...
...
@@ -3,7 +3,10 @@ package com.hungraim.ltc.service;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.assessment.*
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprReport
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprTask
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAssessDetailAccountsResp
;
import
com.hungraim.ltc.pojo.entity.assessment.ChRefuseReason
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.vo.ReportUpdateVO
;
import
com.hungraim.ltc.pojo.vo.account.AssessAccountsListResp
;
...
...
@@ -28,7 +31,7 @@ public interface TaskService {
String
street
,
String
realName
,
String
certiCode
,
String
taskName
,
String
taskTel
,
String
daysRemaining
,
String
taskStatus
,
String
isReturn
,
String
area
,
int
type
);
Page
<
TaskReportVO
>
taskReportList
(
Page
<
TaskReportVO
>
page
,
String
name
,
String
certiCode
,
String
tel
);
Page
<
TaskReportVO
>
taskReportList
(
Page
<
TaskReportVO
>
page
,
String
name
,
String
certiCode
,
String
tel
,
String
riskLevel
,
Integer
evaluateType
);
List
<
AprEmpVO
>
aprEmpList
(
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
groupLeader
);
...
...
@@ -88,7 +91,6 @@ public interface TaskService {
Map
taskReportFractionDtlQueryList
();
Workbook
aprEmpExport
(
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
,
String
groupLeader
);
void
assessAccount
(
ReportDetailVO
reportDetailVo
);
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
53ef1544
...
...
@@ -14,10 +14,7 @@ import com.hungraim.ltc.dao.*;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.assessment.*
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApply
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableInfo
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.vo.ReportUpdateVO
;
import
com.hungraim.ltc.pojo.vo.account.AssessAccountsExportResp
;
import
com.hungraim.ltc.pojo.vo.account.AssessAccountsListResp
;
...
...
@@ -29,7 +26,6 @@ import com.hungraim.ltc.service.TppesApiException;
import
com.hungraim.ltc.util.*
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
net.sf.jsqlparser.expression.LongValue
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.poi.ss.usermodel.Workbook
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -67,11 +63,10 @@ public class TaskServiceImpl implements TaskService {
private
final
ChTaskReportFractionDtlMapper
chTaskReportFractionDtlMapper
;
private
final
ChAssessAccountsDetailMapper
chAssessAccountsDetailMapper
;
private
final
ChAssessAccountsMapper
chAssessAccountsMapper
;
private
final
ChAssess
DetailAccounts
Mapper
chAssessDetailAccountsMapper
;
private
final
ChAssess
AccountsDetail
Mapper
chAssessDetailAccountsMapper
;
...
...
@@ -120,8 +115,8 @@ public class TaskServiceImpl implements TaskService {
* @param tel 失能人员手机号码
*/
@Override
public
Page
<
TaskReportVO
>
taskReportList
(
Page
<
TaskReportVO
>
page
,
String
name
,
String
certiCode
,
String
tel
)
{
return
taskMapper
.
taskReportList
(
page
,
name
,
certiCode
,
tel
);
public
Page
<
TaskReportVO
>
taskReportList
(
Page
<
TaskReportVO
>
page
,
String
name
,
String
certiCode
,
String
tel
,
String
riskLevel
,
Integer
evaluateType
)
{
return
taskMapper
.
taskReportList
(
page
,
name
,
certiCode
,
tel
,
riskLevel
,
evaluateType
);
}
/**
...
...
@@ -242,7 +237,9 @@ public class TaskServiceImpl implements TaskService {
// 根据评定机构id和评估结算时间查找表里有没有数据,有数据直接累加费用
// 评定人员结算表插入
if
(
person1
!=
null
)
{
ChAssessDetailAccounts
chAssessDetailAccounts
=
new
ChAssessDetailAccounts
();
ChAssessDetailAccounts
chAssessDetailAccounts
=
chAssessDetailAccountsMapper
.
selectAssessDetailInfo
(
chDisableInfo
.
getApplyId
(),
person1
,
reportDetailVo
.
getEvaluateType
());
if
(
Objects
.
isNull
(
chAssessDetailAccounts
)){
chAssessDetailAccounts
=
new
ChAssessDetailAccounts
();
chAssessDetailAccounts
.
setEmpId
(
String
.
valueOf
(
person1
));
ChAprEmp
chAprEmp
=
aprEmpMapper
.
selectById
(
person1
);
...
...
@@ -252,6 +249,7 @@ public class TaskServiceImpl implements TaskService {
chAssessDetailAccounts
.
setCreationTime
(
new
Date
());
chAssessDetailAccounts
.
setAccountsTime
(
evaluateDate
);
chAssessDetailAccounts
.
setAssessTime
(
evaluateDate
);
chAssessDetailAccounts
.
setEvaluateType
(
reportDetailVo
.
getEvaluateType
());
Integer
aprempTypeIdS
=
chAprEmp
.
getAprempTypeIdS
();
// 1 评估员上门评估,每人次 100 元
// 5 评估专家上门评估,每人次 150 元
...
...
@@ -260,12 +258,18 @@ public class TaskServiceImpl implements TaskService {
Long
assessAccountsId
=
saveAssess
(
aprOrganId
,
assessCost
,
srvModeId
,
evaluateDate
);
if
(
assessAccountsId
!=
null
){
chAssessDetailAccounts
.
setAssessAccountsId
(
assessAccountsId
);
chAssessAccountsDetailMapper
.
insert
(
chAssessDetailAccounts
);
chAssessDetailAccountsMapper
.
insert
(
chAssessDetailAccounts
);
}
}
else
{
log
.
info
(
"{},该失能人员已进行评估结算,护理人员:{}"
,
chDisableInfo
.
getApplyId
(),
person1
);
}
}
if
(
person2
!=
null
)
{
ChAssessDetailAccounts
chAssessDetailAccounts
=
new
ChAssessDetailAccounts
();
ChAssessDetailAccounts
chAssessDetailAccounts
=
chAssessDetailAccountsMapper
.
selectAssessDetailInfo
(
chDisableInfo
.
getApplyId
(),
person2
,
reportDetailVo
.
getEvaluateType
());
if
(
Objects
.
isNull
(
chAssessDetailAccounts
))
{
chAssessDetailAccounts
=
new
ChAssessDetailAccounts
();
chAssessDetailAccounts
.
setEmpId
(
String
.
valueOf
(
person2
));
ChAprEmp
chAprEmp
=
aprEmpMapper
.
selectById
(
person2
);
Integer
aprOrganId
=
chAprEmp
.
getAprOrganId
();
...
...
@@ -274,15 +278,19 @@ public class TaskServiceImpl implements TaskService {
chAssessDetailAccounts
.
setCreationTime
(
new
Date
());
chAssessDetailAccounts
.
setAccountsTime
(
evaluateDate
);
chAssessDetailAccounts
.
setAssessTime
(
evaluateDate
);
chAssessDetailAccounts
.
setEvaluateType
(
reportDetailVo
.
getEvaluateType
());
Integer
aprempTypeIdS
=
chAprEmp
.
getAprempTypeIdS
();
// 1 评估员上门评估,每人次 100 元
// 5 评估专家上门评估,每人次 150 元
String
assessCost
=
aprempTypeIdS
==
1
?
"100"
:
"150"
;
String
assessCost
=
aprempTypeIdS
==
1
?
"100"
:
"150"
;
chAssessDetailAccounts
.
setAssessCost
(
assessCost
);
Long
assessAccountsId
=
saveAssess
(
aprOrganId
,
assessCost
,
srvModeId
,
evaluateDate
);
if
(
assessAccountsId
!=
null
)
{
Long
assessAccountsId
=
saveAssess
(
aprOrganId
,
assessCost
,
srvModeId
,
evaluateDate
);
if
(
assessAccountsId
!=
null
)
{
chAssessDetailAccounts
.
setAssessAccountsId
(
assessAccountsId
);
chAssessAccountsDetailMapper
.
insert
(
chAssessDetailAccounts
);
chAssessDetailAccountsMapper
.
insert
(
chAssessDetailAccounts
);
}
}
else
{
log
.
info
(
"{},该失能人员已进行评估结算,护理人员:{}"
,
chDisableInfo
.
getApplyId
(),
person2
);
}
}
...
...
@@ -440,6 +448,7 @@ public class TaskServiceImpl implements TaskService {
reportDetailVO
.
setPerson2
(
vo
.
getPerson2
());
reportDetailVO
.
setDisableLevelId
(
vo
.
getDisableLevelId
());
reportDetailVO
.
setEvaluateTime
(
vo
.
getEvaluateTime
());
reportDetailVO
.
setEvaluateType
(
vo
.
getEvaluateType
());
assessAccount
(
reportDetailVO
);
}
...
...
@@ -477,6 +486,10 @@ public class TaskServiceImpl implements TaskService {
if
(
task
==
null
)
{
return
Result
.
failed
(
"无效的taskId!"
);
}
Integer
integer
=
taskMapper
.
selectReportByTaskId
(
id
);
if
(
integer
>
0
){
return
Result
.
failed
(
"有已分配未进行评定报告录入的单子,请先录入!"
);
}
//更新评定任务信息
task
.
setAprOrganId
(
chAprEmp
.
getAprOrganId
());
//鉴定机构id
task
.
setAprEmpId
(
Integer
.
parseInt
(
empId
));
//评定人员id
...
...
@@ -872,25 +885,7 @@ public class TaskServiceImpl implements TaskService {
return
typeHashMap
;
}
@Override
public
Workbook
aprEmpExport
(
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
,
String
groupLeader
)
{
List
<
AprEmpExportVO
>
aprEmpExportList
=
taskMapper
.
aprEmpExportList
(
provincial
,
city
,
area
,
organName
,
name
,
tel
,
certiCode
,
isLock
,
empType
,
groupLeader
);
for
(
AprEmpExportVO
record
:
aprEmpExportList
)
{
StringBuilder
stringBuilder
=
new
StringBuilder
();
if
(
org
.
springframework
.
util
.
StringUtils
.
isEmpty
(
record
.
getDistrictProvincial
())){
stringBuilder
.
append
(
"--"
);
}
else
if
(
record
.
getDistrictProvincial
().
equals
(
record
.
getDistrictCity
())){
stringBuilder
.
append
(
record
.
getDistrictProvincial
());
}
else
{
stringBuilder
.
append
(
record
.
getDistrictProvincial
()).
append
(
record
.
getDistrictCity
());
}
record
.
setDistrictProvincial
(
stringBuilder
.
toString
());
}
ExportParams
exportParams
=
new
ExportParams
();
exportParams
.
setType
(
ExcelType
.
XSSF
);
// 对应xlsx
Workbook
workbook
=
ExcelExportUtil
.
exportExcel
(
exportParams
,
AprEmpExportVO
.
class
,
aprEmpExportList
);
return
workbook
;
}
@Override
...
...
assessment/assessment-service/src/main/resources/mapper/ChAssessDetailAccountsMapper.xml
View file @
53ef1544
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.hungraim.ltc.dao.ChAssess
DetailAccounts
Mapper"
>
<mapper
namespace=
"com.hungraim.ltc.dao.ChAssess
AccountsDetail
Mapper"
>
<select
id=
"queryAssessAccountsDetail"
...
...
@@ -38,5 +38,10 @@ FROM
left join CH_APR_EMP t4 on t4.EMP_ID = t1.EMP_ID
where t1.ASSESS_ACCOUNTS_ID = #{assessAccountsId}
</select>
<select
id=
"selectAssessDetailInfo"
resultType=
"com.hungraim.ltc.pojo.entity.assessment.ChAssessDetailAccounts"
>
select * from CH_ASSESS_ACCOUNTS_DETAIL d where d.APPLY_ID =#{applyId} and d.EMP_ID = #{empId}
and d.EVALUATE_TYPE = #{evaluateType}
</select>
</mapper>
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
53ef1544
...
...
@@ -223,6 +223,13 @@
<if
test=
"tel != null and tel != ''"
>
and info.tel = #{tel}
</if>
<if
test=
"riskLevel != null and riskLevel != ''"
>
and lev.DISABLE_LEVEL_ID = #{riskLevel}
</if>
<if
test=
"evaluateType != null"
>
and report.EVALUATE_TYPE = #{evaluateType}
</if>
</where>
</select>
...
...
@@ -480,61 +487,6 @@
<select
id=
"aprEmpExportList"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.AprEmpExportVO"
>
SELECT emp.emp_id empId,
srvOrgan.srv_organ_name srvOrganName,
organ.organ_code organCode,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) districtProvincial,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_CITY = dis.DISTRICT_CODE) districtCity,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_AREA = dis.DISTRICT_CODE) districtArea,
organ.organ_name organName,
o.organ_name fndOrganName,
organ.UNIFIED_SOCIAL_CREDIT_CODE unifiedSocialCreditCode,
emp.real_name realName,
DECODE(emp.gender, 'M','男','F', '女','N', '不确定') gender,
emp.AGE age,
emp.certi_code certiCode,
emp.tel tel,
DECODE(emp.EMP_TYPE, '0','评定人员','1', '管理人员','2','医生','3','护士') empType,
DECODE(emp.Group_leader, '0','组长','1', '非组长') groupLeader,
DECODE(emp.IS_LOCK, '0','有效','1', '失效') isLock
FROM ch_apr_emp emp
LEFT JOIN ch_apr_organ organ ON emp.apr_organ_id = organ.apr_organ_id
LEFT JOIN ch_srv_organ srvOrgan ON organ.organ_id = srvOrgan.srv_organ_id
LEFT JOIN ch_fnd_organ o ON o.organ_id = srvOrgan.organ_id
<where>
<if
test=
"provincial != null and provincial != ''"
>
and (SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) = #{provincial}
</if>
<if
test=
"city != null and city != ''"
>
and (SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_CITY = dis.DISTRICT_CODE) = #{city}
</if>
<if
test=
"area != null and area != ''"
>
and (SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_AREA = dis.DISTRICT_CODE) = #{area}
</if>
<if
test=
"organName != null and organName != ''"
>
and organ.organ_name like CONCAT(CONCAT('%',#{organName}) ,'%')
</if>
<if
test=
"name != null and name != ''"
>
and emp.real_name like CONCAT(CONCAT('%',#{name}) ,'%')
</if>
<if
test=
"certiCode != null and certiCode != ''"
>
and emp.certi_code = #{certiCode}
</if>
<if
test=
"tel != null and tel != ''"
>
and emp.tel = #{tel}
</if>
<if
test=
"groupLeader != null and groupLeader != ''"
>
and emp.group_leader = #{groupLeader}
</if>
<if
test=
"empType != null and empType != ''"
>
and emp.emp_type = #{empType}
</if>
<if
test=
"isLock != null and isLock != ''"
>
and emp.is_lock = #{isLock}
</if>
</where>
</select>
<insert
id=
"insertSrvSend"
>
insert INTO ch_srv_send(SRV_SEND_ID,DISAB_INFO_ID,FCD,STATUS) values
...
...
@@ -545,4 +497,10 @@
<select
id=
"selectDisableBycertiCode"
resultType=
"com.hungraim.ltc.pojo.entity.disable.ChDisableInfo"
>
select * from CH_DISABLE_INFO info where info.CERTI_CODE = #{certiCode} and rownum = 1 order by info.FCD desc
</select>
<select
id=
"selectReportByTaskId"
resultType=
"java.lang.Integer"
>
select count(1) from CH_APR_REPORT r left join CH_APR_TASK t on r.TASK_ID = t.TASK_ID
where r.TASK_ID = #{taskId} and t.TASK_STATUS !=3
</select>
</mapper>
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/assessment/ChAssessDetailAccounts.java
View file @
53ef1544
...
...
@@ -54,6 +54,8 @@ public class ChAssessDetailAccounts implements Serializable {
private
String
assessCost
;
private
Integer
evaluateType
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/assessment/AprEmpExportVO.java
View file @
53ef1544
...
...
@@ -17,14 +17,11 @@ public class AprEmpExportVO {
@Excel
(
name
=
"适用机构"
,
width
=
20
)
private
String
fndOrganName
;
@Excel
(
name
=
"所在省市"
,
width
=
20
)
private
String
districtProvincial
;
/*
@Excel(name = "所在省市",width = 20)
private String districtProvincial;
*/
@Excel
(
name
=
"评定机构名称"
,
width
=
20
)
private
String
organName
;
//
@Excel
(
name
=
"统一社会信用代码"
,
width
=
20
)
private
String
unifiedSocialCreditCode
;
@Excel
(
name
=
"评定人员名称"
,
width
=
20
)
private
String
realName
;
...
...
@@ -32,14 +29,26 @@ public class AprEmpExportVO {
@Excel
(
name
=
"评定人员性别"
)
private
String
gender
;
@Excel
(
name
=
"评定人员年龄"
)
private
String
age
;
@Excel
(
name
=
"评定人员身份证号码"
,
width
=
20
)
@Excel
(
name
=
"评定人员证件类型"
,
width
=
20
)
private
String
certifTypeId
;
@Excel
(
name
=
"评定人员证件号码"
,
width
=
20
)
private
String
certiCode
;
@Excel
(
name
=
"评定人员手机号码"
,
width
=
20
)
private
String
tel
;
/* //
@Excel(name = "统一社会信用代码",width = 20)
private String unifiedSocialCreditCode;*/
@Excel
(
name
=
"评定人员资质"
,
width
=
20
)
private
String
aprempTypeS
;
@Excel
(
name
=
"人员类型"
,
width
=
20
)
private
String
empType
;
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/disable/DisableExportVO.java
View file @
53ef1544
...
...
@@ -15,7 +15,11 @@ import java.io.Serializable;
@Data
public
class
DisableExportVO
implements
Serializable
{
@Excel
(
name
=
"所在省市"
)
@Excel
(
name
=
"适用机构"
,
width
=
20
)
private
String
fndOrganName
;
@Excel
(
name
=
"所在省市"
,
width
=
20
)
private
String
provinCialcityArea
;
@Excel
(
name
=
"失能人员姓名"
,
width
=
20
)
...
...
@@ -24,7 +28,10 @@ public class DisableExportVO implements Serializable {
@Excel
(
name
=
"性别"
)
private
String
gender
;
@Excel
(
name
=
"出生日期"
,
exportFormat
=
"yyyy-MM-dd"
,
width
=
15
)
//@Excel(name = "出生日期",exportFormat = "yyyy-MM-dd",width = 15)
@Excel
(
name
=
"年龄"
)
private
int
age
;
private
String
birthday
;
@Excel
(
name
=
"失能人员身份证号码"
,
width
=
25
)
...
...
@@ -36,19 +43,21 @@ public class DisableExportVO implements Serializable {
@Excel
(
name
=
"申请服务方式"
)
private
String
srvModeName
;
/*
@Excel(name = "诊断疾病" ,width = 20)
private String dise
ase;*/
@Excel
(
name
=
"诊断疾病"
,
width
=
20
)
private
String
dise
TypeS
;
@Excel
(
name
=
"申请时间"
,
width
=
20
)
private
String
effTime
;
/* @Excel(name = "申请来源
")
private String
dataFrom;*/
@Excel
(
name
=
"状态
"
)
private
String
applyStatus
;
private
String
provincial
;
private
String
city
;
private
String
area
;
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/disable/DisableVO.java
View file @
53ef1544
...
...
@@ -30,8 +30,10 @@ public class DisableVO implements Serializable {
//联系人姓名
private
String
opername
;
//年龄
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
birthday
;
/* @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date birthday;*/
private
String
birthday
;
private
int
age
;
//性别
private
String
gender
;
//失能人员身份证号码
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/disable/SrvOrganEmpExportVo.java
View file @
53ef1544
...
...
@@ -36,21 +36,29 @@ public class SrvOrganEmpExportVo {
@Excel
(
name
=
"护理人员年龄"
)
private
String
age
;
@Excel
(
name
=
"护理人员证件类型"
,
width
=
20
)
private
String
certifType
;
@Excel
(
name
=
"护理人员证件号码"
,
width
=
20
)
private
String
certifNum
;
@Excel
(
name
=
"护理人员手机号码"
,
width
=
20
)
private
String
mobilePhone
;
/* @Excel(name = "联系人姓名",width = 20)
private String linkName;*/
@Excel
(
name
=
"护理人员资质"
,
width
=
20
)
private
String
empTypeId
;
@Excel
(
name
=
"文件水平"
,
width
=
20
)
private
String
eduId
;
@Excel
(
name
=
"人员类型"
,
width
=
20
)
private
String
empType
;
@Excel
(
name
=
"
联系人电话
"
,
width
=
20
)
private
String
linkTel
;
@Excel
(
name
=
"
状态
"
,
width
=
20
)
private
String
isLock
;
@Excel
(
name
=
"床位数"
)
private
String
bunk
;
private
String
provincial
;
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/AprOrganController.java
View file @
53ef1544
...
...
@@ -12,13 +12,16 @@ import com.hungraim.ltc.pojo.vo.governance.AprEmpInfoVO;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganVO
;
import
com.hungraim.ltc.util.FileUtils
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.ResultCode
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.poi.ss.usermodel.Workbook
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
...
...
@@ -237,6 +240,27 @@ public class AprOrganController {
return
Result
.
success
(
page
);
}
/**
* 评定人员导出
*
* @param provincial 失能人员所在省
* @param city 失能人员所在市
* @param area 失能人员所在区
* @param organName 评定机构名称
* @param realName 评定人员姓名
* @param tel 评定人员手机号码
* @param groupLeader 是否组长0组长,1非组长
*/
@GetMapping
(
"/aprEmpExport"
)
public
void
aprEmpExport
(
Long
organId
,
Boolean
isIncluded
,
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
realName
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
,
String
groupLeader
,
HttpServletResponse
response
){
Workbook
workbook
=
aprOrganService
.
aprEmpExport
(
organId
,
isIncluded
,
provincial
,
city
,
area
,
organName
,
realName
,
tel
,
certiCode
,
isLock
,
empType
,
groupLeader
);
// 命名表格
String
fileName
=
"aprEmp.xlsx"
;
FileUtils
.
exportResponse
(
workbook
,
fileName
,
response
);
}
/**
* 获取评定机构人员信息
*
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/BuildBedController.java
View file @
53ef1544
...
...
@@ -245,6 +245,19 @@ public class BuildBedController {
if
(
chSrvSendsList
.
size
()
>
0
)
{
return
Result
.
failed
(
"已分配护理机构,请先终止或退出再操作"
);
}
Integer
srvModeId
=
disableInfoServie
.
querySrvModeId
(
disabInfoId
);
Long
srvModeId1
=
chSrvSend
.
getSrvModeId
();
if
(
srvModeId
!=
srvModeId1
.
intValue
()){
String
srvModeName
=
null
;
if
(
srvModeId
==
1
){
srvModeName
=
"医疗"
;
}
else
if
(
srvModeId
==
2
){
srvModeName
=
"养老"
;
}
else
if
(
srvModeId
==
3
){
srvModeName
=
"上门"
;
}
return
Result
.
failed
(
"选择的服务方式和失能人员申请的不一致,申请的服务方式为"
+
srvModeName
);
}
chSrvSend
.
setAllotTime
(
new
Date
());
chSrvSend
.
setStatus
(
Short
.
valueOf
(
"1"
));
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/SrvProgramController.java
View file @
53ef1544
...
...
@@ -13,6 +13,7 @@ import com.hungraim.ltc.util.Result;
import
com.hungraim.ltc.util.ResultCode
;
import
com.hungraim.ltc.util.TokenParsingUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -52,16 +53,24 @@ public class SrvProgramController {
* @return 返回列表
*/
@RequestMapping
(
"/programList"
)
public
Result
getProgramList
(
@RequestHeader
(
"Authorization"
)
String
token
,
String
realName
,
String
realTel
,
String
programStatus
,
Integer
pageNum
,
Integer
pageSize
)
{
long
srvOrganId
=
TokenParsingUtil
.
TokenParsing
(
token
,
"srvOrganId"
);
public
Result
getProgramList
(
@RequestHeader
(
"Authorization"
)
String
token
,
String
srvOrganId
,
String
realName
,
String
realTel
,
String
programStatus
,
Integer
pageNum
,
Integer
pageSize
)
{
long
srvOrganId
L
=
TokenParsingUtil
.
TokenParsing
(
token
,
"srvOrganId"
);
if
(
pageNum
==
null
||
pageNum
<
1
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
if
(
pageSize
==
null
||
pageSize
<
1
)
{
pageSize
=
10
;
}
Long
srvOrganIdLong
=
0L
;
if
(
StringUtils
.
isNotEmpty
(
srvOrganId
)){
srvOrganIdLong
=
Long
.
valueOf
(
srvOrganId
);
}
if
(
srvOrganIdL
!=
0
){
srvOrganIdLong
=
srvOrganIdL
;
}
Page
<
SvrSendListVo
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
page
=
srvProgramService
.
getProgramList
(
page
,
srvOrganId
,
realName
,
realTel
,
programStatus
);
page
=
srvProgramService
.
getProgramList
(
page
,
srvOrganId
Long
,
realName
,
realTel
,
programStatus
);
return
Result
.
success
(
page
);
}
...
...
governance/src/main/java/com/hungraim/ltc/governance/dao/AprOrganMapper.java
View file @
53ef1544
...
...
@@ -3,6 +3,7 @@ package com.hungraim.ltc.governance.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChAprOrgan
;
import
com.hungraim.ltc.pojo.vo.assessment.AprEmpExportVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganVO
;
import
org.apache.ibatis.annotations.Mapper
;
...
...
@@ -16,4 +17,7 @@ public interface AprOrganMapper extends BaseMapper<ChAprOrgan> {
Page
<
AprOrganVO
>
aprOrganList
(
Page
<
AprOrganVO
>
page
,
List
<
Long
>
organIds
,
String
organName
,
String
code
);
Page
<
AprEmpVO
>
aprEmpList
(
Page
<
AprEmpVO
>
page
,
List
<
Long
>
organIds
,
String
organName
,
String
realName
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
);
List
<
AprEmpExportVO
>
aprEmpExportList
(
List
<
Long
>
organIds
,
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
,
String
groupLeader
);
}
governance/src/main/java/com/hungraim/ltc/governance/service/AprOrganService.java
View file @
53ef1544
...
...
@@ -11,6 +11,7 @@ import com.hungraim.ltc.pojo.vo.governance.AprEmpInfoVO;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganVO
;
import
org.apache.poi.ss.usermodel.Workbook
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
...
...
@@ -36,6 +37,9 @@ public interface AprOrganService extends IService<ChAprOrgan> {
Page
<
AprEmpVO
>
aprEmpList
(
Page
<
AprEmpVO
>
page
,
Long
organId
,
Boolean
isIncluded
,
String
organName
,
String
realName
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
);
Workbook
aprEmpExport
(
Long
organId
,
Boolean
isIncluded
,
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
,
String
groupLeader
);
void
addOrUpdateAprEmp
(
AprEmpInfoVO
chAprEmp
);
List
<
ChCfgAprempType
>
cfgAprEmpType
(
String
parAprempTypeId
);
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/DisableInfoServie.java
View file @
53ef1544
...
...
@@ -13,5 +13,5 @@ public interface DisableInfoServie extends IService<ChDisableInfo> {
Page
<
DisableInfoVo
>
querySrvYet
(
Integer
disableInfoId
,
int
current
,
int
limit
,
Integer
status
,
Integer
sendId
);
Integer
querySrvModeId
(
Long
disabInfoId
);
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/AprOrganServiceImpl.java
View file @
53ef1544
package
com
.
hungraim
.
ltc
.
governance
.
service
.
impl
;
import
cn.afterturn.easypoi.excel.ExcelExportUtil
;
import
cn.afterturn.easypoi.excel.entity.ExportParams
;
import
cn.afterturn.easypoi.excel.entity.enmus.ExcelType
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
...
...
@@ -14,6 +17,7 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChAprOrgan;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprOrganType
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprempType
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChFndEducation
;
import
com.hungraim.ltc.pojo.vo.assessment.AprEmpExportVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganInfoVO
;
...
...
@@ -25,6 +29,7 @@ import com.hungraim.ltc.util.ResultCode;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.poi.ss.usermodel.Workbook
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -155,6 +160,26 @@ public class AprOrganServiceImpl extends ServiceImpl<AprOrganMapper, ChAprOrgan>
return
aprOrganMapper
.
aprEmpList
(
page
,
organIds
,
organName
,
realName
,
tel
,
certiCode
,
isLock
,
empType
);
}
@Override
public
Workbook
aprEmpExport
(
Long
organId
,
Boolean
isIncluded
,
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
,
String
groupLeader
)
{
Result
<
List
<
Long
>>
organChild
=
null
;
List
<
Long
>
organIds
=
null
;
if
(
organId
!=
null
)
{
if
(
isIncluded
==
null
)
{
isIncluded
=
false
;
}
organChild
=
organFeignService
.
getOrganChild
(
organId
,
isIncluded
);
organIds
=
organChild
.
getData
();
}
List
<
AprEmpExportVO
>
aprEmpExportList
=
aprOrganMapper
.
aprEmpExportList
(
organIds
,
provincial
,
city
,
area
,
organName
,
name
,
tel
,
certiCode
,
isLock
,
empType
,
groupLeader
);
ExportParams
exportParams
=
new
ExportParams
();
exportParams
.
setType
(
ExcelType
.
XSSF
);
// 对应xlsx
Workbook
workbook
=
ExcelExportUtil
.
exportExcel
(
exportParams
,
AprEmpExportVO
.
class
,
aprEmpExportList
);
return
workbook
;
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
void
addOrUpdateAprEmp
(
AprEmpInfoVO
chAprEmp
)
{
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/DisableInfoServieImpl.java
View file @
53ef1544
...
...
@@ -19,4 +19,12 @@ public class DisableInfoServieImpl extends ServiceImpl<DisableInfoMapper, ChDisa
Page
<
SrvSendVO
>
page
=
new
Page
<>(
current
,
limit
);
return
this
.
baseMapper
.
querySrvYet
(
page
,
disableInfoId
,
status
,
sendId
);
}
@Override
public
Integer
querySrvModeId
(
Long
disabInfoId
){
ChDisableInfo
chDisableInfo
=
baseMapper
.
selectById
(
disabInfoId
);
Integer
srvModeId
=
chDisableInfo
.
getSrvModeId
();
return
srvModeId
;
}
}
governance/src/main/resources/com/hungraim/ltc/governance/mapper/AprOrganMapper.xml
View file @
53ef1544
...
...
@@ -128,4 +128,71 @@
and emp.emp_type = #{empType}
</if>
</select>
<select
id=
"aprEmpExportList"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.AprEmpExportVO"
>
SELECT emp.emp_id empId,
srvOrgan.srv_organ_name srvOrganName,
organ.organ_code organCode,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) districtProvincial,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_CITY = dis.DISTRICT_CODE) districtCity,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_AREA = dis.DISTRICT_CODE) districtArea,
organ.organ_name organName,
o.organ_name fndOrganName,
organ.UNIFIED_SOCIAL_CREDIT_CODE unifiedSocialCreditCode,
(select type.APREMP_NAME from CH_CFG_APREMP_TYPE type where type.APREMP_TYPE_ID = emp.APREMP_TYPE_ID_S) aprempTypeS,
emp.real_name realName,
DECODE(emp.gender, 'M','男','F', '女','N', '不确定') gender,
emp.AGE age,
( case emp.CERTIF_TYPE_ID when '1' then '身份证' else '未知' end ) certifTypeId,
emp.certi_code certiCode,
emp.tel tel,
DECODE(emp.EMP_TYPE, '0','评定人员','1', '管理人员','2','医生','3','护士') empType,
DECODE(emp.Group_leader, '0','组长','1', '非组长') groupLeader,
DECODE(emp.IS_LOCK, '0','有效','1', '失效') isLock
FROM ch_apr_emp emp
LEFT JOIN ch_apr_organ organ ON emp.apr_organ_id = organ.apr_organ_id
LEFT JOIN ch_srv_organ srvOrgan ON organ.organ_id = srvOrgan.srv_organ_id
LEFT JOIN ch_fnd_organ o ON o.organ_id = srvOrgan.organ_id
<where>
and organ.STATUS = 0
<if
test=
"organIds != null"
>
and organ.organ_id in
<foreach
collection=
"organIds"
item=
"organId"
open=
"("
close=
")"
separator=
","
>
#{organId}
</foreach>
</if>
<if
test=
"provincial != null and provincial != ''"
>
and (SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) = #{provincial}
</if>
<if
test=
"city != null and city != ''"
>
and (SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_CITY = dis.DISTRICT_CODE) = #{city}
</if>
<if
test=
"area != null and area != ''"
>
and (SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_AREA = dis.DISTRICT_CODE) = #{area}
</if>
<if
test=
"organName != null and organName != ''"
>
and organ.organ_name like CONCAT(CONCAT('%',#{organName}) ,'%')
</if>
<if
test=
"name != null and name != ''"
>
and emp.real_name like CONCAT(CONCAT('%',#{name}) ,'%')
</if>
<if
test=
"certiCode != null and certiCode != ''"
>
and emp.certi_code = #{certiCode}
</if>
<if
test=
"tel != null and tel != ''"
>
and emp.tel = #{tel}
</if>
<if
test=
"groupLeader != null and groupLeader != ''"
>
and emp.group_leader = #{groupLeader}
</if>
<if
test=
"empType != null and empType != ''"
>
and emp.emp_type = #{empType}
</if>
<if
test=
"isLock != null and isLock != ''"
>
and emp.is_lock = #{isLock}
</if>
</where>
</select>
</mapper>
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