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
a44e1474
Commit
a44e1474
authored
Aug 02, 2023
by
wangzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature-wzb :公积金表格修改
parent
39945f01
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
10 deletions
+60
-10
CustomCellStyleFiveStrategy.java
...us/v1/yifu/social/config/CustomCellStyleFiveStrategy.java
+48
-0
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+6
-6
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+6
-4
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/config/CustomCellStyleFiveStrategy.java
0 → 100644
View file @
a44e1474
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
config
;
import
com.alibaba.excel.metadata.Head
;
import
com.alibaba.excel.write.metadata.style.WriteCellStyle
;
import
com.alibaba.excel.write.metadata.style.WriteFont
;
import
com.alibaba.excel.write.style.AbstractVerticalCellStyleStrategy
;
import
org.apache.poi.ss.usermodel.BorderStyle
;
import
org.apache.poi.ss.usermodel.HorizontalAlignment
;
import
org.apache.poi.ss.usermodel.IndexedColors
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
@Component
public
class
CustomCellStyleFiveStrategy
extends
AbstractVerticalCellStyleStrategy
{
/**
* 操作列
*/
private
List
<
Integer
>
columnIndexes
;
public
CustomCellStyleFiveStrategy
(
List
<
Integer
>
columnIndexes
)
{
this
.
columnIndexes
=
columnIndexes
;
}
@Override
protected
WriteCellStyle
headCellStyle
(
Head
head
)
{
// 获取样式实例
WriteCellStyle
headWriteCellStyle
=
new
WriteCellStyle
();
// 获取字体实例
WriteFont
headWriteFont
=
new
WriteFont
();
// 设置字体样式
headWriteFont
.
setFontName
(
"宋体"
);
// 设置字体大小
headWriteFont
.
setFontHeightInPoints
((
short
)
12
);
// 边框
headWriteFont
.
setBold
(
false
);
headWriteCellStyle
.
setFillForegroundColor
(
IndexedColors
.
WHITE
.
getIndex
());
headWriteCellStyle
.
setWriteFont
(
headWriteFont
);
headWriteCellStyle
.
setHorizontalAlignment
(
HorizontalAlignment
.
CENTER
);
headWriteCellStyle
.
setBorderLeft
(
BorderStyle
.
NONE
);
headWriteCellStyle
.
setBorderBottom
(
BorderStyle
.
NONE
);
headWriteCellStyle
.
setBorderRight
(
BorderStyle
.
NONE
);
headWriteCellStyle
.
setBorderTop
(
BorderStyle
.
NONE
);
return
headWriteCellStyle
;
}
}
\ No newline at end of file
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
a44e1474
...
@@ -6044,7 +6044,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6044,7 +6044,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
CustomCellStyleTwoStrategy
customCellStyleStrategyTwo
=
new
CustomCellStyleTwoStrategy
(
columnIndexes
);
CustomCellStyleTwoStrategy
customCellStyleStrategyTwo
=
new
CustomCellStyleTwoStrategy
(
columnIndexes
);
CustomCellStyleThreeStrategy
customCellStyleStrategyThree
=
new
CustomCellStyleThreeStrategy
(
columnIndexes
);
CustomCellStyleThreeStrategy
customCellStyleStrategyThree
=
new
CustomCellStyleThreeStrategy
(
columnIndexes
);
CustomCellStyleFourStrategy
customCellStyleStrategyFour
=
new
CustomCellStyleFourStrategy
(
columnIndexes
);
CustomCellStyleFourStrategy
customCellStyleStrategyFour
=
new
CustomCellStyleFourStrategy
(
columnIndexes
);
CustomCellStyleFiveStrategy
customCellStyleStrategyFive
=
new
CustomCellStyleFiveStrategy
(
columnIndexes
);
writeTable0
=
EasyExcel
.
writerTable
(
0
).
writeTable0
=
EasyExcel
.
writerTable
(
0
).
head
(
headFisrt
()).
head
(
headFisrt
()).
registerWriteHandler
(
customCellStyleStrategy
).
registerWriteHandler
(
customCellStyleStrategy
).
...
@@ -6071,7 +6071,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6071,7 +6071,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//但是这里的设值是8648,具体原因请看下面的计算逻辑
//但是这里的设值是8648,具体原因请看下面的计算逻辑
sheet
.
setColumnWidth
(
0
,
3000
);
sheet
.
setColumnWidth
(
0
,
3000
);
sheet
.
setColumnWidth
(
1
,
4000
);
sheet
.
setColumnWidth
(
1
,
4000
);
sheet
.
setColumnWidth
(
2
,
3
000
);
sheet
.
setColumnWidth
(
2
,
4
000
);
sheet
.
setColumnWidth
(
3
,
6000
);
sheet
.
setColumnWidth
(
3
,
6000
);
sheet
.
setColumnWidth
(
4
,
4000
);
sheet
.
setColumnWidth
(
4
,
4000
);
sheet
.
setColumnWidth
(
6
,
5000
);
sheet
.
setColumnWidth
(
6
,
5000
);
...
@@ -6087,16 +6087,16 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6087,16 +6087,16 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
writeTable3
=
EasyExcel
.
writerTable
(
3
).
writeTable3
=
EasyExcel
.
writerTable
(
3
).
head
(
headQ
(
searchVo
)).
head
(
headQ
(
searchVo
)).
registerWriteHandler
(
customCellStyleStrategyThree
).
registerWriteHandler
(
customCellStyleStrategyThree
).
registerWriteHandler
(
new
SimpleRowHeightStyleStrategy
((
short
)
50
,(
short
)
20
))
registerWriteHandler
(
new
SimpleRowHeightStyleStrategy
((
short
)
25
,(
short
)
20
))
.
build
();
.
build
();
writeTable4
=
EasyExcel
.
writerTable
(
4
).
writeTable4
=
EasyExcel
.
writerTable
(
4
).
head
(
FundHeadR
()).
head
(
FundHeadR
()).
registerWriteHandler
(
customCellStyleStrategyFour
).
registerWriteHandler
(
customCellStyleStrategyFour
).
registerWriteHandler
(
new
SimpleRowHeightStyleStrategy
((
short
)
5
0
,(
short
)
20
))
registerWriteHandler
(
new
SimpleRowHeightStyleStrategy
((
short
)
4
0
,(
short
)
20
))
.
build
();
.
build
();
writeTable5
=
EasyExcel
.
writerTable
(
5
).
writeTable5
=
EasyExcel
.
writerTable
(
5
).
head
(
FundHeadT
()).
head
(
FundHeadT
()).
registerWriteHandler
(
customCellStyleStrategy
Two
).
registerWriteHandler
(
customCellStyleStrategy
Five
).
registerWriteHandler
(
new
SimpleRowHeightStyleStrategy
((
short
)
25
,(
short
)
20
))
registerWriteHandler
(
new
SimpleRowHeightStyleStrategy
((
short
)
25
,(
short
)
20
))
.
build
();
.
build
();
//派增的数据
//派增的数据
...
@@ -6787,7 +6787,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6787,7 +6787,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
String
a
=
"1.新增人员必须填写身份证号码。\n"
+
String
a
=
"1.新增人员必须填写身份证号码。\n"
+
"2.本表只提供单位缴存人数变动使用。\n"
+
"2.本表只提供单位缴存人数变动使用。\n"
+
"3.对于工资基数调整及个人补缴业务不得使用此表。\n"
+
"3.对于工资基数调整及个人补缴业务不得使用此表。\n"
+
"4.单位封存人员启封时,如缴存基数发生变化须附基数调整清册
。 本单位承诺\n"
+
"
变更清册中所填内容均真实、合法、有效,如有不实之处,单位承担相应的法律责任及由此产生的一切后果。"
;
"4.单位封存人员启封时,如缴存基数发生变化须附基数调整清册
\n"
+
"本单位承诺
变更清册中所填内容均真实、合法、有效,如有不实之处,单位承担相应的法律责任及由此产生的一切后果。"
;
for
(
int
i
=
2
;
i
<=
7
;
i
++)
{
for
(
int
i
=
2
;
i
<=
7
;
i
++)
{
list
.
add
(
Lists
.
newArrayList
(
a
));
list
.
add
(
Lists
.
newArrayList
(
a
));
}
}
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
a44e1474
...
@@ -2025,7 +2025,9 @@
...
@@ -2025,7 +2025,9 @@
s.UNIT_PROVIDENG_CARDINAL AS DEPOSIT_BASE ,
s.UNIT_PROVIDENG_CARDINAL AS DEPOSIT_BASE ,
replace( DATE_FORMAT(s.PROVIDENT_START,"%Y-%m"),'-','') as ORIGINATE,
replace( DATE_FORMAT(s.PROVIDENT_START,"%Y-%m"),'-','') as ORIGINATE,
replace( DATE_FORMAT(DATE(CURDATE()),"%Y-%m"),'-','') as END,
replace( DATE_FORMAT(DATE(CURDATE()),"%Y-%m"),'-','') as END,
(abs(PERIOD_DIFF( replace( DATE_FORMAT(s.PROVIDENT_START,"%m"),'-',''),replace( DATE_FORMAT(DATE(CURDATE()),"%m"),'-','')))+1) *S.UNIT_PROVIDENG_CARDINAL*0.12
ROUND(SUM((abs(PERIOD_DIFF(replace(DATE_FORMAT(s.PROVIDENT_START,"%Y-%m"), '-', ''),
#{tDispatchInfo.disMonth})))*s.UNIT_PROVIDENT_PER*s.UNIT_PROVIDENG_CARDINAL )
)
AS SUPPLEMENTART_AMOUNT
AS SUPPLEMENTART_AMOUNT
FROM t_dispatch_info a
FROM t_dispatch_info a
left join t_provident_fund s on s.id=a.FUND_ID
left join t_provident_fund s on s.id=a.FUND_ID
...
@@ -2047,9 +2049,9 @@
...
@@ -2047,9 +2049,9 @@
</where>
</where>
</select>
</select>
<select
id=
"getFundSumExportVoOne"
resultMap=
"FundSupplementary"
>
<select
id=
"getFundSumExportVoOne"
resultMap=
"FundSupplementary"
>
SELECT
ROUND(SUM((abs(PERIOD_DIFF(replace(DATE_FORMAT(s.PROVIDENT_START, "%m"), '-', ''),
SELECT
replace(DATE_FORMAT(DATE(CURDATE()),"%m"), '-', ''))) + 1) *
ROUND(SUM((abs(PERIOD_DIFF(replace(DATE_FORMAT(s.PROVIDENT_START,"%Y-%m"), '-', ''),
S.UNIT_PROVIDENG_CARDINAL * 0.12
)
#{tDispatchInfo.disMonth})))*0.1*s.UNIT_PROVIDENG_CARDINAL
)
) AS SUPPLEMENTART_AMOUNT_SUM
) AS SUPPLEMENTART_AMOUNT_SUM
FROM t_dispatch_info a
FROM t_dispatch_info a
left join t_provident_fund s on s.id = a.FUND_ID
left join t_provident_fund s on s.id = a.FUND_ID
...
...
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