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
34a023c7
Commit
34a023c7
authored
Mar 16, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出条件查询
parent
98760722
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
61 additions
and
26 deletions
+61
-26
SrvOrganEmpServiceImpl.java
...com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
+14
-14
ChSrvOrganEmpMapper.xml
...service/src/main/resources/mapper/ChSrvOrganEmpMapper.xml
+1
-1
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+4
-4
TaskMapper.java
...ervice/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
+1
-1
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+1
-1
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+2
-2
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+12
-1
AprEmpExportVO.java
...a/com/hungraim/ltc/pojo/vo/assessment/AprEmpExportVO.java
+6
-0
SrvOrganEmpExportVo.java
...com/hungraim/ltc/pojo/vo/disable/SrvOrganEmpExportVo.java
+20
-2
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
View file @
34a023c7
...
...
@@ -144,20 +144,20 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
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
());
}
//
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/ChSrvOrganEmpMapper.xml
View file @
34a023c7
...
...
@@ -99,7 +99,7 @@
T5.ORGAN_NAME organName,
T4.UNIFIED_SOCIAL_CREDIT_CODE unifiedSocialCreditCode,
T1.EMP_NAME empName,
T1.GENDER
gender,
DECODE(T1.gender, 'M','男','F', '女','N', '不确定')
gender,
T1.AGE age,
T1.CERTIF_TYPE certifType,
T1.CERTIF_NUM certifNum,
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
34a023c7
...
...
@@ -692,14 +692,14 @@ public class TaskController {
* @param city 失能人员所在市
* @param area 失能人员所在区
* @param organName 评定机构名称
* @param
n
ame 评定人员姓名
* @param
realN
ame 评定人员姓名
* @param tel 评定人员手机号码
* @param groupLeader 是否组长0组长,1非组长
*/
@GetMapping
(
"/aprEmpExport"
)
public
void
aprEmpExport
(
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
groupLeader
,
HttpServletResponse
response
){
Workbook
workbook
=
taskService
.
aprEmpExport
(
provincial
,
city
,
area
,
organName
,
n
ame
,
tel
,
groupLeader
);
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
,
realN
ame
,
tel
,
certiCode
,
isLock
,
empType
,
groupLeader
);
// 命名表格
String
fileName
=
"aprEmp.xlsx"
;
FileUtils
.
exportResponse
(
workbook
,
fileName
,
response
);
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
View file @
34a023c7
...
...
@@ -75,7 +75,7 @@ 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
groupLeader
);
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
);
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
34a023c7
...
...
@@ -88,7 +88,7 @@ public interface TaskService {
Map
taskReportFractionDtlQueryList
();
Workbook
aprEmpExport
(
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
groupLeader
);
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 @
34a023c7
...
...
@@ -826,8 +826,8 @@ public class TaskServiceImpl implements TaskService {
}
@Override
public
Workbook
aprEmpExport
(
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
groupLeader
)
{
List
<
AprEmpExportVO
>
aprEmpExportList
=
taskMapper
.
aprEmpExportList
(
provincial
,
city
,
area
,
organName
,
name
,
tel
,
groupLeader
);
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
())){
...
...
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
34a023c7
...
...
@@ -495,7 +495,9 @@
emp.AGE age,
emp.certi_code certiCode,
emp.tel tel,
DECODE(emp.Group_leader, '0','组长','1', '非组长') groupLeader
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
...
...
@@ -516,12 +518,21 @@
<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>
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/assessment/AprEmpExportVO.java
View file @
34a023c7
...
...
@@ -41,9 +41,15 @@ public class AprEmpExportVO {
@Excel
(
name
=
"评定人员手机号码"
,
width
=
20
)
private
String
tel
;
@Excel
(
name
=
"人员类型"
,
width
=
20
)
private
String
empType
;
@Excel
(
name
=
"是否组长"
)
private
String
groupLeader
;
@Excel
(
name
=
"状态"
)
private
String
isLock
;
private
String
districtCity
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/disable/SrvOrganEmpExportVo.java
View file @
34a023c7
...
...
@@ -15,8 +15,10 @@ public class SrvOrganEmpExportVo {
@Excel
(
name
=
"适用机构名称"
,
width
=
20
)
private
String
organName
;
/*
@Excel(name = "机构地址",width = 20)
private String provinCialcityArea;
*/
@Excel
(
name
=
"护理机构名称"
,
width
=
20
)
private
String
srvOrganName
;
...
...
@@ -24,8 +26,24 @@ public class SrvOrganEmpExportVo {
@Excel
(
name
=
"统一社会信用代码"
,
width
=
20
)
private
String
unifiedSocialCreditCode
;
@Excel
(
name
=
"联系人姓名"
,
width
=
20
)
private
String
linkName
;
@Excel
(
name
=
"护理人员姓名"
,
width
=
20
)
private
String
empName
;
@Excel
(
name
=
"护理人员性别"
)
private
String
gender
;
@Excel
(
name
=
"护理人员年龄"
)
private
String
age
;
@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
)
...
...
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