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
39945f01
Commit
39945f01
authored
Aug 02, 2023
by
wangzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature-wzb :公积金表格导出及代发户添加
parent
eb04ba3b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
18 deletions
+24
-18
application-dev.yml
...ry/yifu-salary-biz/src/main/resources/application-dev.yml
+0
-1
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+23
-16
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+1
-1
No files found.
yifu-salary/yifu-salary-biz/src/main/resources/application-dev.yml
View file @
39945f01
...
...
@@ -8,7 +8,6 @@ spring:
redis
:
host
:
127.0.0.1
port
:
6379
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
39945f01
...
...
@@ -6020,10 +6020,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
@Override
public
void
doexportFundInfo
(
HttpServletResponse
response
,
SocialHandleSearchVo
searchVo
)
{
String
fileName
=
DispatchConstants
.
FUND_RECORD_EXPORT
+
DateUtil
.
getThisTime
()
+
CommonConstants
.
XLSX
;
String
fileName
=
DispatchConstants
.
FUND_RECORD_EXPORT
+
"_"
+
searchVo
.
getProvidentHouseholdName
()
+
"_"
+
searchVo
.
getDisMonth
()
+
CommonConstants
.
XLSX
;
//获取要导出的列表
List
<
TDispatchFundPersionExportVo
>
list
=
new
ArrayList
<>();
List
<
TDispatchFundSumExportVo
>
listOne
=
new
ArrayList
<>();
try
(
ServletOutputStream
out
=
response
.
getOutputStream
()){
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
...
...
@@ -6072,7 +6071,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//但是这里的设值是8648,具体原因请看下面的计算逻辑
sheet
.
setColumnWidth
(
0
,
3000
);
sheet
.
setColumnWidth
(
1
,
4000
);
sheet
.
setColumnWidth
(
2
,
2
000
);
sheet
.
setColumnWidth
(
2
,
3
000
);
sheet
.
setColumnWidth
(
3
,
6000
);
sheet
.
setColumnWidth
(
4
,
4000
);
sheet
.
setColumnWidth
(
6
,
5000
);
...
...
@@ -6116,7 +6115,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
list
.
add
(
vo
);
}
}
writeSheet
=
EasyExcel
.
writerSheet
(
"变更清册"
).
build
();
writeSheet
=
EasyExcel
.
writerSheet
(
searchVo
.
getDisMonth
()
).
build
();
// 第一次写入会创建头
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable0
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable1
);
...
...
@@ -6654,9 +6653,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
houseName
!=
null
)
{
CompanyProVo
companyProVo
=
companyProVo
(
houseName
);
HouseNameConfigVo
vo
=
getFundSumExportVoTwo
(
houseName
);
if
(
fundAccount
==
null
)
{
fundAccount
=
""
;
}
String
a
=
"单位名称(签章): "
+
houseName
+
" 单位公积金账号:"
+
vo
.
getCustomerNo
()
+
" 单边缴纳比例:"
+
companyProVo
.
getCompanyPro
()+
"%"
;
//第一列-第十八列
...
...
@@ -6708,12 +6705,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
//表头数据
String
a
=
""
;
String
b
=
""
;
String
c
=
""
;
String
d
=
""
;
String
b
=
"
"
;
String
c
=
"
"
;
String
d
=
"
"
;
//第一列
TDispatchFundSumExportVo
dispatchFundSumExportVo
=
getFundSumExportVo
(
searchVo
);
if
(
Common
.
isNotNull
(
dispatchFundSumExportVo
))
{
if
(
dispatchFundSumExportVo
.
getNumOne
()!=
null
)
{
a
=
dispatchFundSumExportVo
.
getNumOne
().
toString
();
}
...
...
@@ -6728,17 +6727,25 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
d
=
dispatchFundSumExportVo
.
getMonenyTwo
().
toString
();
}
if
(
dispatchFundSumExportVo
.
getNumOne
()==
0
){
a
=
""
;
}
if
(
dispatchFundSumExportVo
.
getNumTwo
()==
0
){
b
=
" "
;
}
list
.
add
(
Lists
.
newArrayList
(
"项目合计"
,
"项目合计"
,
"本月小计"
));
//第二列
list
.
add
(
Lists
.
newArrayList
(
"项目合计"
,
"项目合计"
,
"本月小计"
));
//第三列
list
.
add
(
Lists
.
newArrayList
(
"本月增加汇款"
,
"人数"
,
a
));
list
.
add
(
Lists
.
newArrayList
(
"本月增加汇款"
,
"人数"
,
b
));
list
.
add
(
Lists
.
newArrayList
(
"本月增加汇款"
,
"金额"
,
c
));
//第四列
list
.
add
(
Lists
.
newArrayList
(
"本月减少汇款"
,
"人数"
,
b
));
list
.
add
(
Lists
.
newArrayList
(
"本月减少汇款"
,
"人数"
,
a
));
//第五列
list
.
add
(
Lists
.
newArrayList
(
"本月减少汇款"
,
"金额"
,
d
));
//第六列
...
...
@@ -6777,10 +6784,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//表头数据
list
.
add
(
Lists
.
newArrayList
(
"备注"
,
"备注"
));
list
.
add
(
Lists
.
newArrayList
(
"备注"
,
"备注"
));
String
a
=
"1
、
新增人员必须填写身份证号码。\n"
+
"2
、
本表只提供单位缴存人数变动使用。\n"
+
"3
、
对于工资基数调整及个人补缴业务不得使用此表。\n"
+
"4.单位封存人员启封时,如缴存基数发生变化须附基数调整清册。
本单位承诺变更清册中所填内容均真实、 \n"
+
"
合法、有效,如有不实之处,单位承担相应的法律责任及由此产生的一切后果。"
;
String
a
=
"1
.
新增人员必须填写身份证号码。\n"
+
"2
.
本表只提供单位缴存人数变动使用。\n"
+
"3
.
对于工资基数调整及个人补缴业务不得使用此表。\n"
+
"4.单位封存人员启封时,如缴存基数发生变化须附基数调整清册。
本单位承诺\n"
+
"变更清册中所填内容均真实、
合法、有效,如有不实之处,单位承担相应的法律责任及由此产生的一切后果。"
;
for
(
int
i
=
2
;
i
<=
7
;
i
++)
{
list
.
add
(
Lists
.
newArrayList
(
a
));
}
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
39945f01
...
...
@@ -1934,7 +1934,7 @@
<sql
id=
"where_getFundDisRecord"
>
a.DELETE_FLAG = 0
AND a.fund_id is not null
AND a.STATUS
= "2"
AND a.STATUS
in ('2','4')
AND a.DISPATCH_ITEM like concat('%','公积金','%')
<if
test=
"tDispatchInfo != null"
>
<if
test=
"tDispatchInfo.providentHouseholdName != null and tDispatchInfo.providentHouseholdName.trim() != ''"
>
...
...
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