Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
6982ecdb
Commit
6982ecdb
authored
Jul 31, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
花名册修改
parent
3203076c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
14 deletions
+43
-14
DispatchConstants.java
...loud/plus/v1/yifu/social/constants/DispatchConstants.java
+2
-2
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+38
-10
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+3
-2
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/constants/DispatchConstants.java
View file @
6982ecdb
...
...
@@ -34,8 +34,8 @@ public class DispatchConstants {
public
static
final
String
DISPATCH_SOCIAL_REDUCE
=
"社保派减"
;
public
static
final
String
SOCIAL_RECORD_ROSTER_EXPORT
=
"社保花名册导出"
;
public
static
final
String
SOCIAL_RECORD_EXPORT
=
"公积金变更清册导出"
;
public
static
final
String
SOCIAL_MEDICAL_EXPORT
=
"
合肥医保花名册
"
;
public
static
final
String
SOCIAL_PERSION_EXPORT
=
"
合肥社保花名册
"
;
public
static
final
String
SOCIAL_MEDICAL_EXPORT
=
"
社保-医疗
"
;
public
static
final
String
SOCIAL_PERSION_EXPORT
=
"
社保-养老三险
"
;
public
static
final
String
DISPATCH_PENSION
=
"养老、"
;
public
static
final
String
DISPATCH_MEDICAL
=
"医疗、"
;
public
static
final
String
DISPATCH_BIRTH
=
"生育、"
;
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
6982ecdb
...
...
@@ -5090,7 +5090,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
**/
@Override
public
void
doexportSocialRecordNew
(
HttpServletResponse
response
,
SocialHandleSearchVo
searchVo
)
{
String
fileName
=
DispatchConstants
.
SOCIAL_MEDICAL_EXPORT
+
DateUtil
.
getThisTime
()
+
CommonConstants
.
XLSX
;
String
fileName
=
DispatchConstants
.
SOCIAL_MEDICAL_EXPORT
+
searchVo
.
getSocialHouseholdName
()
+
"_"
+
searchVo
.
getDisMonth
()
+
CommonConstants
.
XLSX
;
//获取要导出的列表
List
<
TDispatchSocialExportVo
>
list
=
new
ArrayList
<>();
try
(
ServletOutputStream
out
=
response
.
getOutputStream
()){
...
...
@@ -5169,7 +5169,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable0
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable1
);
// 第二次写如也会创建头,然后在第一次的后面写入数据
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable2
);
int
num
=
1
;
for
(
int
i
=
1
;
i
<=
10
;
i
++)
{
vo
=
new
TDispatchSocialExportVo
();
vo
.
setNum
(
num
);
num
++;
list
.
add
(
vo
);
}
excelWriter
.
write
(
list
,
writeSheet
,
writeTable2
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable3
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable4
);
}
...
...
@@ -5204,7 +5211,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable0
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable1
);
// 第二次写如也会创建头,然后在第一次的后面写入数据
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable2
);
int
num
=
1
;
for
(
int
i
=
1
;
i
<=
10
;
i
++)
{
vo
=
new
TDispatchSocialExportVo
();
vo
.
setNum
(
num
);
num
++;
list
.
add
(
vo
);
}
excelWriter
.
write
(
list
,
writeSheet
,
writeTable2
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable3
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable4
);
}
...
...
@@ -5225,7 +5239,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
**/
@Override
public
void
doexportSocialPensionRecord
(
HttpServletResponse
response
,
SocialHandleSearchVo
searchVo
)
{
String
fileName
=
DispatchConstants
.
SOCIAL_PERSION_EXPORT
+
DateUtil
.
getThisTime
()
+
CommonConstants
.
XLSX
;
String
fileName
=
DispatchConstants
.
SOCIAL_PERSION_EXPORT
+
searchVo
.
getSocialHouseholdName
()
+
"_"
+
searchVo
.
getDisMonth
()
+
CommonConstants
.
XLSX
;
//获取要导出的列表
List
<
TDispatchSocialPersionExportVo
>
list
=
new
ArrayList
<>();
try
(
ServletOutputStream
out
=
response
.
getOutputStream
()){
...
...
@@ -5304,7 +5318,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
writeSheet
=
EasyExcel
.
writerSheet
(
"增员"
).
build
();
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable0
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable1
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable2
);
int
num
=
1
;
for
(
int
i
=
1
;
i
<=
10
;
i
++)
{
vo
=
new
TDispatchSocialPersionExportVo
();
vo
.
setNum
(
num
);
num
++;
list
.
add
(
vo
);
}
excelWriter
.
write
(
list
,
writeSheet
,
writeTable2
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable3
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable4
);
}
...
...
@@ -5367,7 +5388,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
writeSheet
=
EasyExcel
.
writerSheet
(
"减员"
).
build
();
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable0
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable1
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable2
);
int
num
=
1
;
for
(
int
i
=
1
;
i
<=
10
;
i
++)
{
reduceVo
=
new
TDispatchSocialPersionReduceExportVo
();
reduceVo
.
setNum
(
num
);
num
++;
listReduce
.
add
(
reduceVo
);
}
excelWriter
.
write
(
listReduce
,
writeSheet
,
writeTable2
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable3
);
}
if
(
excelWriter
!=
null
)
{
...
...
@@ -5989,7 +6017,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
public
List
<
List
<
String
>>
headTwo
(
String
houseName
,
String
cusNo
)
{
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
//表头数据
String
b
=
"单位名称(盖章): "
+
houseName
+
" 单位统一信用代码:"
+
cusNo
;
String
b
=
"单位名称(盖章): "
+
houseName
+
" 单位统一信用代码:"
+
(
null
==
cusNo
?
" "
:
cusNo
)
;
String
c
=
"人员类型: □√单位职工 □灵活就业人员"
;
for
(
int
i
=
1
;
i
<=
13
;
i
++)
{
list
.
add
(
Lists
.
newArrayList
(
b
,
c
));
...
...
@@ -6097,7 +6125,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
public
List
<
List
<
String
>>
persionHeadTwo
(
String
houseName
,
String
cusNo
)
{
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
//表头数据
String
a
=
"单位名称(签章): "
+
houseName
+
" 单位编码:"
+
cusNo
;
String
a
=
"单位名称(签章): "
+
houseName
+
" 单位编码:"
+
(
null
==
cusNo
?
" "
:
cusNo
)
;
//第一列-第十八列
for
(
int
i
=
1
;
i
<=
18
;
i
++)
{
list
.
add
(
Lists
.
newArrayList
(
a
));
...
...
@@ -6217,8 +6245,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
public
List
<
List
<
String
>>
persionReduceHeadTwo
(
String
houseName
,
String
cusNo
)
{
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
//表头数据
String
a
=
"单位名称(签章): "
+
houseName
+
" 单位编码:"
+
cusNo
;
//第一列-第二十五列
String
a
=
"单位名称(签章): "
+
houseName
+
" 单位编码:"
+
(
null
==
cusNo
?
" "
:
cusNo
)
;
//第一列-第二十五列
cusNo
for
(
int
i
=
1
;
i
<=
24
;
i
++)
{
list
.
add
(
Lists
.
newArrayList
(
a
));
}
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
6982ecdb
...
...
@@ -1285,11 +1285,12 @@
SELECT
(@i :=@i+1) as num,
a.EMP_NAME,
a.
EMP_NO,
'' as
EMP_NO,
a.EMP_IDCARD,
CASE (SUBSTR(a.EMP_IDCARD,17,1)%2)
WHEN 1 THEN '男'
WHEN 0 THEN '女'
else '男'
END sex,
case when a.EMP_NATIONAL = 1 then "汉族"
when a.EMP_NATIONAL = 2 then "傣族"
...
...
@@ -1339,7 +1340,7 @@
<select
id=
"getSocialPersionReduceDisRecord"
resultMap=
"socialPersionReduceDisExportMap"
>
SELECT
(@i :=@i+1) as num,
a.
EMP_NO,
'' as
EMP_NO,
a.EMP_NAME,
a.EMP_IDCARD,
DATE_FORMAT(a.CREATE_TIME,"%Y%m") as WORK_DATE,
...
...
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