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
17d89cd9
Commit
17d89cd9
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
3a3ebd3c
cc40bdb8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
114 additions
and
23 deletions
+114
-23
TDispatchSocialPersionReduceExportVo.java
.../yifu/social/vo/TDispatchSocialPersionReduceExportVo.java
+7
-0
CustomCellWriteWidthTwoConfig.java
.../v1/yifu/social/config/CustomCellWriteWidthTwoConfig.java
+6
-5
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+7
-7
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+94
-11
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchSocialPersionReduceExportVo.java
View file @
17d89cd9
...
@@ -132,6 +132,13 @@ public class TDispatchSocialPersionReduceExportVo implements Serializable {
...
@@ -132,6 +132,13 @@ public class TDispatchSocialPersionReduceExportVo implements Serializable {
@ExcelAttribute
(
name
=
"停薪留职"
)
@ExcelAttribute
(
name
=
"停薪留职"
)
@ExcelProperty
(
"停薪留职"
)
@ExcelProperty
(
"停薪留职"
)
private
String
typeH
;
private
String
typeH
;
/**
* 合同期满
*/
@Schema
(
description
=
"合同期满"
)
@ExcelAttribute
(
name
=
"合同期满"
)
@ExcelProperty
(
"合同期满"
)
private
String
typeZ
;
/**
/**
* 解除合同
* 解除合同
*/
*/
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/config/CustomCellWriteWidthTwoConfig.java
View file @
17d89cd9
...
@@ -26,7 +26,7 @@ public class CustomCellWriteWidthTwoConfig extends AbstractColumnWidthStyleStrat
...
@@ -26,7 +26,7 @@ public class CustomCellWriteWidthTwoConfig extends AbstractColumnWidthStyleStrat
//要求将当前列的列宽设置为33英寸,理论值应该是33×256=8448,
//要求将当前列的列宽设置为33英寸,理论值应该是33×256=8448,
//但是这里的设值是8648,具体原因请看下面的计算逻辑
//但是这里的设值是8648,具体原因请看下面的计算逻辑
sheet
.
setColumnWidth
(
0
,
1000
);
sheet
.
setColumnWidth
(
0
,
1000
);
sheet
.
setColumnWidth
(
1
,
4
000
);
sheet
.
setColumnWidth
(
1
,
3
000
);
sheet
.
setColumnWidth
(
3
,
5000
);
sheet
.
setColumnWidth
(
3
,
5000
);
sheet
.
setColumnWidth
(
5
,
1000
);
sheet
.
setColumnWidth
(
5
,
1000
);
sheet
.
setColumnWidth
(
6
,
1000
);
sheet
.
setColumnWidth
(
6
,
1000
);
...
@@ -40,13 +40,14 @@ public class CustomCellWriteWidthTwoConfig extends AbstractColumnWidthStyleStrat
...
@@ -40,13 +40,14 @@ public class CustomCellWriteWidthTwoConfig extends AbstractColumnWidthStyleStrat
sheet
.
setColumnWidth
(
14
,
1500
);
sheet
.
setColumnWidth
(
14
,
1500
);
sheet
.
setColumnWidth
(
15
,
1500
);
sheet
.
setColumnWidth
(
15
,
1500
);
sheet
.
setColumnWidth
(
16
,
1500
);
sheet
.
setColumnWidth
(
16
,
1500
);
sheet
.
setColumnWidth
(
17
,
1
0
00
);
sheet
.
setColumnWidth
(
17
,
1
5
00
);
sheet
.
setColumnWidth
(
18
,
1000
);
sheet
.
setColumnWidth
(
18
,
1000
);
sheet
.
setColumnWidth
(
19
,
1
5
00
);
sheet
.
setColumnWidth
(
19
,
1
0
00
);
sheet
.
setColumnWidth
(
20
,
1500
);
sheet
.
setColumnWidth
(
20
,
1500
);
sheet
.
setColumnWidth
(
21
,
1
0
00
);
sheet
.
setColumnWidth
(
21
,
1
5
00
);
sheet
.
setColumnWidth
(
22
,
1000
);
sheet
.
setColumnWidth
(
22
,
1000
);
sheet
.
setColumnWidth
(
23
,
4000
);
sheet
.
setColumnWidth
(
23
,
1000
);
sheet
.
setColumnWidth
(
24
,
3500
);
}
}
}
}
}
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
17d89cd9
...
@@ -5335,7 +5335,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -5335,7 +5335,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//获取要导出的列表
//获取要导出的列表
List
<
TDispatchSocialPersionReduceExportVo
>
listReduce
=
new
ArrayList
<>();
List
<
TDispatchSocialPersionReduceExportVo
>
listReduce
=
new
ArrayList
<>();
List
<
Integer
>
columnIndex
=
Arrays
.
asList
(
0
,
2
3
);
List
<
Integer
>
columnIndex
=
Arrays
.
asList
(
0
,
2
4
);
CustomCellStyleStrategy
customCellStyleStrategy1
=
new
CustomCellStyleStrategy
(
columnIndex
);
CustomCellStyleStrategy
customCellStyleStrategy1
=
new
CustomCellStyleStrategy
(
columnIndex
);
CustomCellStyleOneStrategy
customCellStyleStrategy2
=
new
CustomCellStyleOneStrategy
(
columnIndex
);
CustomCellStyleOneStrategy
customCellStyleStrategy2
=
new
CustomCellStyleOneStrategy
(
columnIndex
);
CustomCellStyleTwoStrategy
customCellStyleStrategy3
=
new
CustomCellStyleTwoStrategy
(
columnIndex
);
CustomCellStyleTwoStrategy
customCellStyleStrategy3
=
new
CustomCellStyleTwoStrategy
(
columnIndex
);
...
@@ -6211,7 +6211,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6211,7 +6211,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
public
List
<
List
<
String
>>
persionHead1
()
{
public
List
<
List
<
String
>>
persionHead1
()
{
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
//表头数据
//表头数据
String
b
=
"填
报
人: 单位联系电话: 社保经办机构审核人: "
+
"填报日期: "
+
DateUtil
.
getYear
(
DateUtil
.
getCurrentDateTime
())+
" 年"
+
" "
+
DateUtil
.
getMonth
(
DateUtil
.
getCurrentDateTime
())
+
" 月"
+
" "
+
DateUtil
.
getDay
(
DateUtil
.
getCurrentDateTime
())
+
" 日"
;
String
b
=
"填
表
人: 单位联系电话: 社保经办机构审核人: "
+
"填报日期: "
+
DateUtil
.
getYear
(
DateUtil
.
getCurrentDateTime
())+
" 年"
+
" "
+
DateUtil
.
getMonth
(
DateUtil
.
getCurrentDateTime
())
+
" 月"
+
" "
+
DateUtil
.
getDay
(
DateUtil
.
getCurrentDateTime
())
+
" 日"
;
//第一列-第十八列
//第一列-第十八列
for
(
int
i
=
1
;
i
<=
18
;
i
++)
{
for
(
int
i
=
1
;
i
<=
18
;
i
++)
{
list
.
add
(
Lists
.
newArrayList
(
b
));
list
.
add
(
Lists
.
newArrayList
(
b
));
...
@@ -6230,7 +6230,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6230,7 +6230,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//表头数据
//表头数据
String
a
=
"社 会 保 险 缴 费 单 位 人 员 减 少 花 名 册"
;
String
a
=
"社 会 保 险 缴 费 单 位 人 员 减 少 花 名 册"
;
//第一列-第二十五列
//第一列-第二十五列
for
(
int
i
=
1
;
i
<=
2
4
;
i
++)
{
for
(
int
i
=
1
;
i
<=
2
5
;
i
++)
{
list
.
add
(
Lists
.
newArrayList
(
a
));
list
.
add
(
Lists
.
newArrayList
(
a
));
}
}
return
list
;
return
list
;
...
@@ -6247,7 +6247,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6247,7 +6247,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//表头数据
//表头数据
String
a
=
"单位名称(签章): "
+
houseName
+
" 单位编码:"
+
(
null
==
cusNo
?
" "
:
cusNo
);
String
a
=
"单位名称(签章): "
+
houseName
+
" 单位编码:"
+
(
null
==
cusNo
?
" "
:
cusNo
);
//第一列-第二十五列cusNo
//第一列-第二十五列cusNo
for
(
int
i
=
1
;
i
<=
2
4
;
i
++)
{
for
(
int
i
=
1
;
i
<=
2
5
;
i
++)
{
list
.
add
(
Lists
.
newArrayList
(
a
));
list
.
add
(
Lists
.
newArrayList
(
a
));
}
}
return
list
;
return
list
;
...
@@ -6274,7 +6274,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6274,7 +6274,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//第五列
//第五列
list
.
add
(
Lists
.
newArrayList
(
"停止缴费时间"
,
"停止缴费时间"
));
list
.
add
(
Lists
.
newArrayList
(
"停止缴费时间"
,
"停止缴费时间"
));
//减少原因
//减少原因
List
<
String
>
orderSpeaces
=
Lists
.
newArrayList
(
"辞职"
,
"辞退"
,
"参军"
,
"上学"
,
"劳改"
,
"劳教"
,
"除名"
,
"人员失踪"
,
"停薪留职"
,
"解除合同"
,
"统筹内调出"
,
"调出统筹范围"
,
"退休"
,
"死亡"
,
"出国定居"
,
"港澳台定居"
,
"退保"
,
"其他"
);
List
<
String
>
orderSpeaces
=
Lists
.
newArrayList
(
"辞职"
,
"辞退"
,
"参军"
,
"上学"
,
"劳改"
,
"劳教"
,
"除名"
,
"人员失踪"
,
"停薪留职"
,
"
合同期满"
,
"
解除合同"
,
"统筹内调出"
,
"调出统筹范围"
,
"退休"
,
"死亡"
,
"出国定居"
,
"港澳台定居"
,
"退保"
,
"其他"
);
orderSpeaces
.
forEach
(
e
->{
orderSpeaces
.
forEach
(
e
->{
list
.
add
(
Lists
.
newArrayList
(
c
,
e
)
);
list
.
add
(
Lists
.
newArrayList
(
c
,
e
)
);
});
});
...
@@ -6293,9 +6293,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -6293,9 +6293,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//表头数据
//表头数据
String
a
=
"说明1、“减少原因”栏可对应选项打“√”; \n"
+
String
a
=
"说明1、“减少原因”栏可对应选项打“√”; \n"
+
"2、本表需填制一式二份,经办机构审核盖章后方可有效,一份单位自存,一份报市社会保险经办机构。"
;
"2、本表需填制一式二份,经办机构审核盖章后方可有效,一份单位自存,一份报市社会保险经办机构。"
;
String
b
=
"填
报
人: 单位联系电话: 社保经办机构审核人: "
+
"填报日期: "
+
DateUtil
.
getYear
(
DateUtil
.
getCurrentDateTime
())+
" 年"
+
" "
+
DateUtil
.
getMonth
(
DateUtil
.
getCurrentDateTime
())
+
" 月"
+
" "
+
DateUtil
.
getDay
(
DateUtil
.
getCurrentDateTime
())
+
" 日"
;
String
b
=
"填
表
人: 单位联系电话: 社保经办机构审核人: "
+
"填报日期: "
+
DateUtil
.
getYear
(
DateUtil
.
getCurrentDateTime
())+
" 年"
+
" "
+
DateUtil
.
getMonth
(
DateUtil
.
getCurrentDateTime
())
+
" 月"
+
" "
+
DateUtil
.
getDay
(
DateUtil
.
getCurrentDateTime
())
+
" 日"
;
//第一列-第十八列
//第一列-第十八列
for
(
int
i
=
1
;
i
<=
2
4
;
i
++)
{
for
(
int
i
=
1
;
i
<=
2
5
;
i
++)
{
list
.
add
(
Lists
.
newArrayList
(
a
,
b
));
list
.
add
(
Lists
.
newArrayList
(
a
,
b
));
}
}
return
list
;
return
list
;
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
17d89cd9
...
@@ -236,6 +236,7 @@
...
@@ -236,6 +236,7 @@
<result
property=
"typeO"
column=
"typeO"
/>
<result
property=
"typeO"
column=
"typeO"
/>
<result
property=
"typeP"
column=
"typeP"
/>
<result
property=
"typeP"
column=
"typeP"
/>
<result
property=
"typeQ"
column=
"typeQ"
/>
<result
property=
"typeQ"
column=
"typeQ"
/>
<result
property=
"typeZ"
column=
"typeZ"
/>
<result
property=
"remark"
column=
"REMARK"
/>
<result
property=
"remark"
column=
"REMARK"
/>
</resultMap>
</resultMap>
...
@@ -1215,18 +1216,33 @@
...
@@ -1215,18 +1216,33 @@
<!--tDispatchInfo 社保花名册派单数据count-->
<!--tDispatchInfo 社保花名册派单数据count-->
<select
id=
"getSocialDisRecordCount"
resultType=
"java.lang.Integer"
>
<select
id=
"getSocialDisRecordCount"
resultType=
"java.lang.Integer"
>
SELECT
SELECT
count(1) from (
count(1)
SELECT 1
FROM t_dispatch_info a
FROM t_dispatch_info a
<where>
<where>
<include
refid=
"where_getSocialDisRecord"
/>
<include
refid=
"where_getSocialDisRecord"
/>
</where>
</where>
group by a.EMP_IDCARD) h
</select>
</select>
<!--tDispatchInfo 社保医疗花名册派单数据-->
<!--tDispatchInfo 社保医疗花名册派单数据-->
<select
id=
"getSocialDisRecord"
resultMap=
"socialDisExportMap"
>
<select
id=
"getSocialDisRecord"
resultMap=
"socialDisExportMap"
>
SELECT
SELECT
(@i :=@i+1) as NUM,
(@i :=@i+1) as NUM,
h.EMP_NAME,
h.IDCARD_TYPE,
h.EMP_IDCARD,
h.DIS_MONTH,
h.MEDICAL_CARDINAL,
h.CHANGE_TYPE_ONE,
h.CHANGE_TYPE_TWO,
h.CHANGE_TYPE_THREE,
h.CHANGE_TYPE_FOUR,
h.EMP_MOBILE,
h.EDUCATION_NAME,
h.REMARK
from (
select
a.EMP_NAME,
a.EMP_NAME,
'身份证' as IDCARD_TYPE,
'身份证' as IDCARD_TYPE,
a.EMP_IDCARD,
a.EMP_IDCARD,
...
@@ -1241,16 +1257,30 @@
...
@@ -1241,16 +1257,30 @@
a.EMP_MOBILE as REMARK
a.EMP_MOBILE as REMARK
FROM t_dispatch_info a
FROM t_dispatch_info a
left join t_social_info s on s.id=a.SOCIAL_ID
left join t_social_info s on s.id=a.SOCIAL_ID
,(select @i:=0) as itable
<where>
<where>
<include
refid=
"where_getSocialDisRecord"
/>
<include
refid=
"where_getSocialDisRecord"
/>
</where>
</where>
group by a.EMP_IDCARD) h,(select @i:=0) as itable
</select>
</select>
<!--tDispatchInfo 社保医疗花名册派单数据-->
<!--tDispatchInfo 社保医疗花名册派单数据-->
<select
id=
"getSocialReduceDisRecord"
resultMap=
"socialDisExportMap"
>
<select
id=
"getSocialReduceDisRecord"
resultMap=
"socialDisExportMap"
>
SELECT
SELECT
(@i :=@i+1) as NUM,
(@i :=@i+1) as NUM,
h.EMP_NAME,
h.IDCARD_TYPE,
h.EMP_IDCARD,
h.DIS_MONTH,
h.MEDICAL_CARDINAL,
h.CHANGE_TYPE_ONE,
h.CHANGE_TYPE_TWO,
h.CHANGE_TYPE_THREE,
h.CHANGE_TYPE_FOUR,
h.EMP_MOBILE,
h.EDUCATION_NAME,
h.REMARK
from (
select
a.EMP_NAME,
a.EMP_NAME,
'身份证' as IDCARD_TYPE,
'身份证' as IDCARD_TYPE,
a.EMP_IDCARD,
a.EMP_IDCARD,
...
@@ -1265,25 +1295,47 @@
...
@@ -1265,25 +1295,47 @@
a.EMP_MOBILE as REMARK
a.EMP_MOBILE as REMARK
FROM t_dispatch_info a
FROM t_dispatch_info a
left join t_social_info s on s.id=a.SOCIAL_ID
left join t_social_info s on s.id=a.SOCIAL_ID
,(select @i:=0) as itable
<where>
<where>
<include
refid=
"where_getSocialDisRecord"
/>
<include
refid=
"where_getSocialDisRecord"
/>
</where>
</where>
group by a.EMP_IDCARD) h,(select @i:=0) as itable
</select>
</select>
<!--tDispatchInfo 社保养老花名册派单数据-->
<!--tDispatchInfo 社保养老花名册派单数据-->
<select
id=
"getSocialPersionDisCount"
resultType=
"java.lang.Integer"
>
<select
id=
"getSocialPersionDisCount"
resultType=
"java.lang.Integer"
>
SELECT count(1)
SELECT count(1) from (
select 1
FROM t_dispatch_info a
FROM t_dispatch_info a
<where>
<where>
<include
refid=
"where_getSocialPersionDisRecord"
/>
<include
refid=
"where_getSocialPersionDisRecord"
/>
</where>
</where>
group by a.EMP_IDCARD) h
</select>
</select>
<!--tDispatchInfo 社保养老花名册派单数据-->
<!--tDispatchInfo 社保养老花名册派单数据-->
<select
id=
"getSocialPersionDisRecord"
resultMap=
"socialPersionDisExportMap"
>
<select
id=
"getSocialPersionDisRecord"
resultMap=
"socialPersionDisExportMap"
>
SELECT
SELECT
(@i :=@i+1) as num,
(@i :=@i+1) as num,
h.EMP_NAME,
h.EMP_NO,
h.EMP_IDCARD,
h.sex,
h.EMP_NATIONAL,
h.WORK_DATE,
h.type,
h.SIGNLE_TYPE,
h.INSURANCE_TYPE_ONE,
h.INSURANCE_TYPE_TWO,
h.INSURANCE_TYPE_THREE,
h.INSURANCE_TYPE_FOUR,
h.INSURANCE_TYPE_FIVE,
h.PERSION_CARDINAL,
h.MEDICAL_CARDINAL,
h.DATE_ONE,
h.CONTRACT_ADRESS,
h.REMARK
FROM (
SELECT
a.EMP_NAME,
a.EMP_NAME,
'' as EMP_NO,
'' as EMP_NO,
a.EMP_IDCARD,
a.EMP_IDCARD,
...
@@ -1321,25 +1373,52 @@
...
@@ -1321,25 +1373,52 @@
a.EMP_MOBILE as REMARK
a.EMP_MOBILE as REMARK
FROM t_dispatch_info a
FROM t_dispatch_info a
left join t_social_info s on s.id=a.SOCIAL_ID
left join t_social_info s on s.id=a.SOCIAL_ID
,(select @i:=0) as itable
<where>
<where>
<include
refid=
"where_getSocialPersionDisRecord"
/>
<include
refid=
"where_getSocialPersionDisRecord"
/>
</where>
</where>
group by a.EMP_IDCARD)h,(select @i:=0) as itable
</select>
</select>
<!--tDispatchInfo 社保养老花名册派单数据-->
<!--tDispatchInfo 社保养老花名册派单数据-->
<select
id=
"getSocialPersionReduceDisCount"
resultType=
"java.lang.Integer"
>
<select
id=
"getSocialPersionReduceDisCount"
resultType=
"java.lang.Integer"
>
SELECT count(1)
SELECT count(1) from (
SELECT 1
FROM t_dispatch_info a
FROM t_dispatch_info a
<where>
<where>
<include
refid=
"where_getSocialPersionDisRecord"
/>
<include
refid=
"where_getSocialPersionDisRecord"
/>
</where>
</where>
group by a.EMP_IDCARD) h
</select>
</select>
<!--tDispatchInfo 社保养老花名册派单数据-->
<!--tDispatchInfo 社保养老花名册派单数据-->
<select
id=
"getSocialPersionReduceDisRecord"
resultMap=
"socialPersionReduceDisExportMap"
>
<select
id=
"getSocialPersionReduceDisRecord"
resultMap=
"socialPersionReduceDisExportMap"
>
SELECT
SELECT
(@i :=@i+1) as num,
(@i :=@i+1) as num,
h.EMP_NO,
h.EMP_NAME,
h.EMP_IDCARD,
h.WORK_DATE,
h.typeA,
h.typeB,
h.typeC,
h.typeD,
h.typeE,
h.typeW,
h.typeF,
h.typeG,
h.typeH,
h.typeZ,
h.typeJ,
h.typeK,
h.typeL,
h.typeM,
h.typeN,
h.typeO,
h.typeP,
h.typeQ,
h.REMARK
FROM (
SELECT
'' as EMP_NO,
'' as EMP_NO,
a.EMP_NAME,
a.EMP_NAME,
a.EMP_IDCARD,
a.EMP_IDCARD,
...
@@ -1353,6 +1432,7 @@
...
@@ -1353,6 +1432,7 @@
'' as typeF,
'' as typeF,
'' as typeG,
'' as typeG,
'' as typeH,
'' as typeH,
'' as typeZ,
'' as typeJ,
'' as typeJ,
'' as typeK,
'' as typeK,
'' as typeL,
'' as typeL,
...
@@ -1364,10 +1444,10 @@
...
@@ -1364,10 +1444,10 @@
a.EMP_MOBILE as REMARK
a.EMP_MOBILE as REMARK
FROM t_dispatch_info a
FROM t_dispatch_info a
left join t_social_info s on s.id=a.SOCIAL_ID
left join t_social_info s on s.id=a.SOCIAL_ID
,(select @i:=0) as itable
<where>
<where>
<include
refid=
"where_getSocialPersionDisRecord"
/>
<include
refid=
"where_getSocialPersionDisRecord"
/>
</where>
</where>
group by a.EMP_IDCARD) h,(select @i:=0) as itable
</select>
</select>
<!--tDispatchInfo 公积金变更清册查询-->
<!--tDispatchInfo 公积金变更清册查询-->
...
@@ -1810,8 +1890,8 @@
...
@@ -1810,8 +1890,8 @@
<sql
id=
"where_getSocialPersionDisRecord"
>
<sql
id=
"where_getSocialPersionDisRecord"
>
a.DELETE_FLAG = 0
a.DELETE_FLAG = 0
AND a.social_id is not null
AND a.social_id is not null
AND a.STATUS
= "2"
AND a.STATUS
in ('2','4')
AND (a.DISPATCH_ITEM like concat('%','工伤','%') or a.DISPATCH_ITEM like concat('%','养老','%'))
AND (a.DISPATCH_ITEM like concat('%','工伤','%') or a.DISPATCH_ITEM like concat('%','养老','%')
or a.DISPATCH_ITEM like concat('%','失业','%')
)
<if
test=
"tDispatchInfo != null"
>
<if
test=
"tDispatchInfo != null"
>
<if
test=
"tDispatchInfo.socialHouseholdName != null and tDispatchInfo.socialHouseholdName.trim() != ''"
>
<if
test=
"tDispatchInfo.socialHouseholdName != null and tDispatchInfo.socialHouseholdName.trim() != ''"
>
AND a.SOCIAL_HOUSEHOLD_NAME = #{tDispatchInfo.socialHouseholdName}
AND a.SOCIAL_HOUSEHOLD_NAME = #{tDispatchInfo.socialHouseholdName}
...
@@ -1822,9 +1902,12 @@
...
@@ -1822,9 +1902,12 @@
<if
test=
"tDispatchInfo.disMonth != null and tDispatchInfo.disMonth.trim() != ''"
>
<if
test=
"tDispatchInfo.disMonth != null and tDispatchInfo.disMonth.trim() != ''"
>
AND replace(DATE_FORMAT(a.CREATE_TIME,"%Y-%m"),'-','') = #{tDispatchInfo.disMonth}
AND replace(DATE_FORMAT(a.CREATE_TIME,"%Y-%m"),'-','') = #{tDispatchInfo.disMonth}
</if>
</if>
<if
test=
"tDispatchInfo.socialHandleStatus != null and tDispatchInfo.socialHandleStatus.trim() != ''"
>
<if
test=
"tDispatchInfo.socialHandleStatus != null and tDispatchInfo.socialHandleStatus.trim() != ''
and tDispatchInfo.socialHandleStatus != 1
"
>
AND a.SOCIAL_HANDLE_STATUS = #{tDispatchInfo.socialHandleStatus}
AND a.SOCIAL_HANDLE_STATUS = #{tDispatchInfo.socialHandleStatus}
</if>
</if>
<if
test=
"tDispatchInfo.socialHandleStatus != null and tDispatchInfo.socialHandleStatus.trim() != '' and tDispatchInfo.socialHandleStatus == 1"
>
AND a.SOCIAL_HANDLE_STATUS in ('1','3')
</if>
<if
test=
"tDispatchInfo.authSql != null and tDispatchInfo.authSql.trim() != ''"
>
<if
test=
"tDispatchInfo.authSql != null and tDispatchInfo.authSql.trim() != ''"
>
${tDispatchInfo.authSql}
${tDispatchInfo.authSql}
</if>
</if>
...
...
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