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
979b40fe
Commit
979b40fe
authored
Jul 31, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.5.6' into MVP1.5.6
parents
cfc363e7
f9de1200
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
82 additions
and
20 deletions
+82
-20
DispatchConstants.java
...loud/plus/v1/yifu/social/constants/DispatchConstants.java
+2
-2
CustomCellWriteWidthOneConfig.java
.../v1/yifu/social/config/CustomCellWriteWidthOneConfig.java
+1
-1
TDispatchInfoMapper.java
...cloud/plus/v1/yifu/social/mapper/TDispatchInfoMapper.java
+9
-0
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+42
-14
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+28
-3
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/constants/DispatchConstants.java
View file @
979b40fe
...
@@ -34,8 +34,8 @@ public class DispatchConstants {
...
@@ -34,8 +34,8 @@ public class DispatchConstants {
public
static
final
String
DISPATCH_SOCIAL_REDUCE
=
"社保派减"
;
public
static
final
String
DISPATCH_SOCIAL_REDUCE
=
"社保派减"
;
public
static
final
String
SOCIAL_RECORD_ROSTER_EXPORT
=
"社保花名册导出"
;
public
static
final
String
SOCIAL_RECORD_ROSTER_EXPORT
=
"社保花名册导出"
;
public
static
final
String
SOCIAL_RECORD_EXPORT
=
"公积金变更清册导出"
;
public
static
final
String
SOCIAL_RECORD_EXPORT
=
"公积金变更清册导出"
;
public
static
final
String
SOCIAL_MEDICAL_EXPORT
=
"
合肥医保花名册
"
;
public
static
final
String
SOCIAL_MEDICAL_EXPORT
=
"
社保-医疗
"
;
public
static
final
String
SOCIAL_PERSION_EXPORT
=
"
合肥社保花名册
"
;
public
static
final
String
SOCIAL_PERSION_EXPORT
=
"
社保-养老三险
"
;
public
static
final
String
DISPATCH_PENSION
=
"养老、"
;
public
static
final
String
DISPATCH_PENSION
=
"养老、"
;
public
static
final
String
DISPATCH_MEDICAL
=
"医疗、"
;
public
static
final
String
DISPATCH_MEDICAL
=
"医疗、"
;
public
static
final
String
DISPATCH_BIRTH
=
"生育、"
;
public
static
final
String
DISPATCH_BIRTH
=
"生育、"
;
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/config/CustomCellWriteWidthOneConfig.java
View file @
979b40fe
...
@@ -36,7 +36,7 @@ public class CustomCellWriteWidthOneConfig extends AbstractColumnWidthStyleStrat
...
@@ -36,7 +36,7 @@ public class CustomCellWriteWidthOneConfig extends AbstractColumnWidthStyleStrat
sheet
.
setColumnWidth
(
11
,
1000
);
sheet
.
setColumnWidth
(
11
,
1000
);
sheet
.
setColumnWidth
(
12
,
1000
);
sheet
.
setColumnWidth
(
12
,
1000
);
sheet
.
setColumnWidth
(
13
,
1000
);
sheet
.
setColumnWidth
(
13
,
1000
);
sheet
.
setColumnWidth
(
14
,
1
5
00
);
sheet
.
setColumnWidth
(
14
,
1
8
00
);
sheet
.
setColumnWidth
(
15
,
5000
);
sheet
.
setColumnWidth
(
15
,
5000
);
sheet
.
setColumnWidth
(
16
,
3200
);
sheet
.
setColumnWidth
(
16
,
3200
);
sheet
.
setColumnWidth
(
17
,
3000
);
sheet
.
setColumnWidth
(
17
,
3000
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TDispatchInfoMapper.java
View file @
979b40fe
...
@@ -172,6 +172,15 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> {
...
@@ -172,6 +172,15 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> {
**/
**/
List
<
TDispatchSocialExportVo
>
getSocialDisRecord
(
@Param
(
"tDispatchInfo"
)
SocialHandleSearchVo
dispatchInfo
);
List
<
TDispatchSocialExportVo
>
getSocialDisRecord
(
@Param
(
"tDispatchInfo"
)
SocialHandleSearchVo
dispatchInfo
);
/**
* @Author huyc
* @Description 社保派单医保模版
* @Date 15:47 2023/7/18
* @Param
* @return
**/
List
<
TDispatchSocialExportVo
>
getSocialReduceDisRecord
(
@Param
(
"tDispatchInfo"
)
SocialHandleSearchVo
dispatchInfo
);
/**
/**
* @Author huyc
* @Author huyc
* @Description 社保派单养老模版count
* @Description 社保派单养老模版count
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
979b40fe
...
@@ -5090,7 +5090,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5090,7 +5090,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
**/
**/
@Override
@Override
public
void
doexportSocialRecordNew
(
HttpServletResponse
response
,
SocialHandleSearchVo
searchVo
)
{
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
<>();
List
<
TDispatchSocialExportVo
>
list
=
new
ArrayList
<>();
try
(
ServletOutputStream
out
=
response
.
getOutputStream
()){
try
(
ServletOutputStream
out
=
response
.
getOutputStream
()){
...
@@ -5169,7 +5169,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5169,7 +5169,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable0
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable0
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable1
);
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
,
writeTable3
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable4
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable4
);
}
}
...
@@ -5177,7 +5184,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5177,7 +5184,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
searchVo
.
setType
(
CommonConstants
.
ONE_STRING
);
searchVo
.
setType
(
CommonConstants
.
ONE_STRING
);
long
count1
=
getSocialDisRecordCount
(
searchVo
);
long
count1
=
getSocialDisRecordCount
(
searchVo
);
if
(
count1
>
CommonConstants
.
ZERO_INT
){
if
(
count1
>
CommonConstants
.
ZERO_INT
){
list
=
getSocial
DisRecord
(
searchVo
);
list
=
baseMapper
.
getSocialReduce
DisRecord
(
searchVo
);
if
(
Common
.
isNotNull
(
list
))
{
if
(
Common
.
isNotNull
(
list
))
{
//判断list的大小是否大于10
//判断list的大小是否大于10
if
(
list
.
size
()
<
10
)
{
if
(
list
.
size
()
<
10
)
{
...
@@ -5204,7 +5211,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5204,7 +5211,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable0
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable0
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable1
);
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
,
writeTable3
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable4
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable4
);
}
}
...
@@ -5225,7 +5239,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5225,7 +5239,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
**/
**/
@Override
@Override
public
void
doexportSocialPensionRecord
(
HttpServletResponse
response
,
SocialHandleSearchVo
searchVo
)
{
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
<>();
List
<
TDispatchSocialPersionExportVo
>
list
=
new
ArrayList
<>();
try
(
ServletOutputStream
out
=
response
.
getOutputStream
()){
try
(
ServletOutputStream
out
=
response
.
getOutputStream
()){
...
@@ -5304,7 +5318,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5304,7 +5318,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
writeSheet
=
EasyExcel
.
writerSheet
(
"增员"
).
build
();
writeSheet
=
EasyExcel
.
writerSheet
(
"增员"
).
build
();
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable0
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable0
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable1
);
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
,
writeTable3
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable4
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable4
);
}
}
...
@@ -5367,7 +5388,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5367,7 +5388,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
writeSheet
=
EasyExcel
.
writerSheet
(
"减员"
).
build
();
writeSheet
=
EasyExcel
.
writerSheet
(
"减员"
).
build
();
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable0
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable0
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable1
);
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
);
excelWriter
.
write
(
new
ArrayList
<>(),
writeSheet
,
writeTable3
);
}
}
if
(
excelWriter
!=
null
)
{
if
(
excelWriter
!=
null
)
{
...
@@ -5989,7 +6017,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5989,7 +6017,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
public
List
<
List
<
String
>>
headTwo
(
String
houseName
,
String
cusNo
)
{
public
List
<
List
<
String
>>
headTwo
(
String
houseName
,
String
cusNo
)
{
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
//表头数据
//表头数据
String
b
=
"单位名称(盖章): "
+
houseName
+
" 单位统一信用代码:"
+
cusNo
;
String
b
=
"单位名称(盖章): "
+
houseName
+
" 单位统一信用代码:"
+
(
null
==
cusNo
?
" "
:
cusNo
)
;
String
c
=
"人员类型: □√单位职工 □灵活就业人员"
;
String
c
=
"人员类型: □√单位职工 □灵活就业人员"
;
for
(
int
i
=
1
;
i
<=
13
;
i
++)
{
for
(
int
i
=
1
;
i
<=
13
;
i
++)
{
list
.
add
(
Lists
.
newArrayList
(
b
,
c
));
list
.
add
(
Lists
.
newArrayList
(
b
,
c
));
...
@@ -6097,7 +6125,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6097,7 +6125,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
public
List
<
List
<
String
>>
persionHeadTwo
(
String
houseName
,
String
cusNo
)
{
public
List
<
List
<
String
>>
persionHeadTwo
(
String
houseName
,
String
cusNo
)
{
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
//表头数据
//表头数据
String
a
=
"单位名称(签章): "
+
houseName
+
" 单位编码:"
+
cusNo
;
String
a
=
"单位名称(签章): "
+
houseName
+
" 单位编码:"
+
(
null
==
cusNo
?
" "
:
cusNo
)
;
//第一列-第十八列
//第一列-第十八列
for
(
int
i
=
1
;
i
<=
18
;
i
++)
{
for
(
int
i
=
1
;
i
<=
18
;
i
++)
{
list
.
add
(
Lists
.
newArrayList
(
a
));
list
.
add
(
Lists
.
newArrayList
(
a
));
...
@@ -6122,7 +6150,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6122,7 +6150,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//第三列
//第三列
list
.
add
(
Lists
.
newArrayList
(
"职工编码"
,
"职工编码"
));
list
.
add
(
Lists
.
newArrayList
(
"职工编码"
,
"职工编码"
));
//第四列
//第四列
list
.
add
(
Lists
.
newArrayList
(
"社会保障号码
(身份证号码)"
,
"社会保障号码
(身份证号码)"
));
list
.
add
(
Lists
.
newArrayList
(
"社会保障号码
(身份证号码)"
,
"社会保障号码
(身份证号码)"
));
//第五列
//第五列
list
.
add
(
Lists
.
newArrayList
(
"性别"
,
"性别"
));
list
.
add
(
Lists
.
newArrayList
(
"性别"
,
"性别"
));
//第六列
//第六列
...
@@ -6200,7 +6228,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6200,7 +6228,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
public
List
<
List
<
String
>>
persionReduceHeadOne
()
{
public
List
<
List
<
String
>>
persionReduceHeadOne
()
{
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
//表头数据
//表头数据
String
a
=
"
社 会 保 险 缴 费 单 位 人 员 减 少 花 名 册"
;
String
a
=
"社 会 保 险 缴 费 单 位 人 员 减 少 花 名 册"
;
//第一列-第二十五列
//第一列-第二十五列
for
(
int
i
=
1
;
i
<=
24
;
i
++)
{
for
(
int
i
=
1
;
i
<=
24
;
i
++)
{
list
.
add
(
Lists
.
newArrayList
(
a
));
list
.
add
(
Lists
.
newArrayList
(
a
));
...
@@ -6217,8 +6245,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6217,8 +6245,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
public
List
<
List
<
String
>>
persionReduceHeadTwo
(
String
houseName
,
String
cusNo
)
{
public
List
<
List
<
String
>>
persionReduceHeadTwo
(
String
houseName
,
String
cusNo
)
{
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
//表头数据
//表头数据
String
a
=
"单位名称(签章): "
+
houseName
+
" 单位编码:"
+
cusNo
;
String
a
=
"单位名称(签章): "
+
houseName
+
" 单位编码:"
+
(
null
==
cusNo
?
" "
:
cusNo
)
;
//第一列-第二十五列
//第一列-第二十五列
cusNo
for
(
int
i
=
1
;
i
<=
24
;
i
++)
{
for
(
int
i
=
1
;
i
<=
24
;
i
++)
{
list
.
add
(
Lists
.
newArrayList
(
a
));
list
.
add
(
Lists
.
newArrayList
(
a
));
}
}
...
@@ -6242,7 +6270,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6242,7 +6270,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//第三列
//第三列
list
.
add
(
Lists
.
newArrayList
(
"姓名"
,
"姓名"
));
list
.
add
(
Lists
.
newArrayList
(
"姓名"
,
"姓名"
));
//第四列
//第四列
list
.
add
(
Lists
.
newArrayList
(
"社会保障号码
(身份证号码)"
,
"社会保障号码
(身份证号码)"
));
list
.
add
(
Lists
.
newArrayList
(
"社会保障号码
(身份证号码)"
,
"社会保障号码
(身份证号码)"
));
//第五列
//第五列
list
.
add
(
Lists
.
newArrayList
(
"停止缴费时间"
,
"停止缴费时间"
));
list
.
add
(
Lists
.
newArrayList
(
"停止缴费时间"
,
"停止缴费时间"
));
//减少原因
//减少原因
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
979b40fe
...
@@ -1247,6 +1247,30 @@
...
@@ -1247,6 +1247,30 @@
</where>
</where>
</select>
</select>
<!--tDispatchInfo 社保医疗花名册派单数据-->
<select
id=
"getSocialReduceDisRecord"
resultMap=
"socialDisExportMap"
>
SELECT
(@i :=@i+1) as NUM,
a.EMP_NAME,
'身份证' as IDCARD_TYPE,
a.EMP_IDCARD,
replace(DATE_FORMAT(a.CREATE_TIME,"%Y-%m"),'-','') as DIS_MONTH,
s.UNIT_MEDICAL_CARDINAL as MEDICAL_CARDINAL,
'' as CHANGE_TYPE_ONE,
'' as CHANGE_TYPE_TWO,
'√' as CHANGE_TYPE_THREE,
'' as CHANGE_TYPE_FOUR,
a.EMP_MOBILE,
a.EDUCATION_NAME,
a.EMP_MOBILE as REMARK
FROM t_dispatch_info a
left join t_social_info s on s.id=a.SOCIAL_ID
,(select @i:=0) as itable
<where>
<include
refid=
"where_getSocialDisRecord"
/>
</where>
</select>
<!--tDispatchInfo 社保养老花名册派单数据-->
<!--tDispatchInfo 社保养老花名册派单数据-->
<select
id=
"getSocialPersionDisCount"
resultType=
"java.lang.Integer"
>
<select
id=
"getSocialPersionDisCount"
resultType=
"java.lang.Integer"
>
SELECT count(1)
SELECT count(1)
...
@@ -1261,11 +1285,12 @@
...
@@ -1261,11 +1285,12 @@
SELECT
SELECT
(@i :=@i+1) as num,
(@i :=@i+1) as num,
a.EMP_NAME,
a.EMP_NAME,
a.
EMP_NO,
'' as
EMP_NO,
a.EMP_IDCARD,
a.EMP_IDCARD,
CASE (SUBSTR(a.EMP_IDCARD,17,1)%2)
CASE (SUBSTR(a.EMP_IDCARD,17,1)%2)
WHEN 1 THEN '男'
WHEN 1 THEN '男'
WHEN 0 THEN '女'
WHEN 0 THEN '女'
else '男'
END sex,
END sex,
case when a.EMP_NATIONAL = 1 then "汉族"
case when a.EMP_NATIONAL = 1 then "汉族"
when a.EMP_NATIONAL = 2 then "傣族"
when a.EMP_NATIONAL = 2 then "傣族"
...
@@ -1291,7 +1316,7 @@
...
@@ -1291,7 +1316,7 @@
'' as INSURANCE_TYPE_FIVE,
'' as INSURANCE_TYPE_FIVE,
s.RECORD_BASE as PERSION_CARDINAL,
s.RECORD_BASE as PERSION_CARDINAL,
s.UNIT_MEDICAL_CARDINAL as MEDICAL_CARDINAL,
s.UNIT_MEDICAL_CARDINAL as MEDICAL_CARDINAL,
concat(ifnull(DATE_FORMAT(a.CONTRACT_START,"%Y%m
%d"),''),'-',ifnull(DATE_FORMAT(a.CONTRACT_END,"%Y%m%d
"),'')) as DATE_ONE,
concat(ifnull(DATE_FORMAT(a.CONTRACT_START,"%Y%m
"),''),'-',ifnull(DATE_FORMAT(a.CONTRACT_END,"%Y%m
"),'')) as DATE_ONE,
'安徽省合肥市' as CONTRACT_ADRESS,
'安徽省合肥市' as CONTRACT_ADRESS,
a.EMP_MOBILE as REMARK
a.EMP_MOBILE as REMARK
FROM t_dispatch_info a
FROM t_dispatch_info a
...
@@ -1315,7 +1340,7 @@
...
@@ -1315,7 +1340,7 @@
<select
id=
"getSocialPersionReduceDisRecord"
resultMap=
"socialPersionReduceDisExportMap"
>
<select
id=
"getSocialPersionReduceDisRecord"
resultMap=
"socialPersionReduceDisExportMap"
>
SELECT
SELECT
(@i :=@i+1) as num,
(@i :=@i+1) as num,
a.
EMP_NO,
'' as
EMP_NO,
a.EMP_NAME,
a.EMP_NAME,
a.EMP_IDCARD,
a.EMP_IDCARD,
DATE_FORMAT(a.CREATE_TIME,"%Y%m") as WORK_DATE,
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