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
596964d2
Commit
596964d2
authored
Jul 21, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.5.6' into MVP1.5.6
parents
f9a09ac7
360753b8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
886 additions
and
4 deletions
+886
-4
DispatchConstants.java
...loud/plus/v1/yifu/social/constants/DispatchConstants.java
+2
-0
SocialHandleSearchVo.java
...fu/cloud/plus/v1/yifu/social/vo/SocialHandleSearchVo.java
+24
-0
TDispatchReduceVo.java
.../yifu/cloud/plus/v1/yifu/social/vo/TDispatchReduceVo.java
+1
-1
TDispatchSocialExportVo.java
...cloud/plus/v1/yifu/social/vo/TDispatchSocialExportVo.java
+135
-0
TDispatchSocialPersionExportVo.java
...lus/v1/yifu/social/vo/TDispatchSocialPersionExportVo.java
+166
-0
TDispatchInfoController.java
...us/v1/yifu/social/controller/TDispatchInfoController.java
+23
-1
TDispatchInfoMapper.java
...cloud/plus/v1/yifu/social/mapper/TDispatchInfoMapper.java
+36
-0
TDispatchInfoService.java
...oud/plus/v1/yifu/social/service/TDispatchInfoService.java
+4
-0
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+322
-2
SysHouseHoldInfoMapper.xml
...-biz/src/main/resources/mapper/SysHouseHoldInfoMapper.xml
+4
-0
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+169
-0
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/constants/DispatchConstants.java
View file @
596964d2
...
...
@@ -34,6 +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
DISPATCH_PENSION
=
"养老、"
;
public
static
final
String
DISPATCH_MEDICAL
=
"医疗、"
;
public
static
final
String
DISPATCH_BIRTH
=
"生育、"
;
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/SocialHandleSearchVo.java
View file @
596964d2
...
...
@@ -91,4 +91,28 @@ public class SocialHandleSearchVo extends TDispatchInfo {
@Schema
(
description
=
"mid"
)
@ExcelIgnore
private
String
mId
;
/**
* 单位编号
*/
@TableField
(
exist
=
false
)
@Schema
(
description
=
"单位编号"
)
@ExcelIgnore
private
String
customerNo
;
/**
* 单位统一信用代码
*/
@TableField
(
exist
=
false
)
@Schema
(
description
=
"单位统一信用代码"
)
@ExcelIgnore
private
String
unitCreditCode
;
/**
* 派单增/减月份
*/
@TableField
(
exist
=
false
)
@Schema
(
description
=
"派单增/减月份"
)
@ExcelIgnore
private
String
disMonth
;
}
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchReduceVo.java
View file @
596964d2
...
...
@@ -95,7 +95,7 @@ public class TDispatchReduceVo extends RowIndex implements Serializable {
/**
* 减少原因
*/
@ExcelAttribute
(
name
=
"减少原因"
,
isNotEmpty
=
true
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
REDUCE_SOCIAL_REASON
)
@ExcelAttribute
(
name
=
"减少原因"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
REDUCE_SOCIAL_REASON
)
@Schema
(
description
=
"减少原因"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"减少原因"
)
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchSocialExportVo.java
0 → 100644
View file @
596964d2
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
*
*
* @author huyc
* @date 2023-07-18 11:38:05
*/
@Data
public
class
TDispatchSocialExportVo
implements
Serializable
{
/**
* 序号
*/
@Schema
(
description
=
"序号"
)
@ExcelAttribute
(
name
=
"序号"
)
@ExcelProperty
(
"序号"
)
private
Integer
num
;
/**
* 员工姓名
*/
@Schema
(
description
=
"姓名"
)
@ExcelAttribute
(
name
=
"姓名"
)
@ExcelProperty
(
"姓名"
)
private
String
empName
;
/**
* 身份证件类型
*/
@Schema
(
description
=
"身份证件类型"
)
@ExcelAttribute
(
name
=
"身份证件类型"
)
@ExcelProperty
(
"身份证件类型"
)
private
String
idcardType
;
/**
* 身份证号
*/
@Schema
(
description
=
"身份证件号码"
)
@ExcelAttribute
(
name
=
"身份证件号码"
)
@ExcelProperty
(
"身份证件号码"
)
private
String
empIdcard
;
/**
* 员工类型
*/
@Schema
(
description
=
"参保/停保时间"
)
@ExcelAttribute
(
name
=
"参保/停保时间"
)
@ExcelProperty
(
"参保/停保时间"
)
private
String
disMonth
;
/**
* 申报工资(元)
*/
@Schema
(
description
=
"申报工资(元)"
)
@ExcelAttribute
(
name
=
"申报工资(元)"
)
@ExcelProperty
(
"申报工资(元)"
)
private
BigDecimal
medicalCardinal
;
/**
* 新增
*/
@Schema
(
description
=
"新增"
)
@ExcelAttribute
(
name
=
"新增"
)
@ExcelProperty
(
"新增"
)
private
String
changeTypeOne
;
/**
* 续保
*/
@Schema
(
description
=
"续保"
)
@ExcelAttribute
(
name
=
"续保"
)
@ExcelProperty
(
"续保"
)
private
String
changeTypeTwo
;
/**
* 中断
*/
@Schema
(
description
=
"中断"
)
@ExcelAttribute
(
name
=
"中断"
)
@ExcelProperty
(
"中断"
)
private
String
changeTypeThree
;
/**
* 终止
*/
@Schema
(
description
=
"终止"
)
@ExcelAttribute
(
name
=
"终止"
)
@ExcelProperty
(
"终止"
)
private
String
changeTypeFour
;
/**
* 手机号码
*/
@Schema
(
description
=
"手机号码"
)
@ExcelAttribute
(
name
=
"手机号码"
)
@ExcelProperty
(
"手机号码"
)
private
String
empMobile
;
/**
* 学历
*/
@Schema
(
description
=
"学历"
)
@ExcelAttribute
(
name
=
"学历"
)
@ExcelProperty
(
"学历"
)
private
String
educationName
;
/**
* 备注
*/
@Schema
(
description
=
"备注"
)
@ExcelAttribute
(
name
=
"备注"
)
@ExcelProperty
(
"备注"
)
private
String
remark
;
}
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchSocialPersionExportVo.java
0 → 100644
View file @
596964d2
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
*
*
* @author huyc
* @date 2023-07-18 11:38:05
*/
@Data
public
class
TDispatchSocialPersionExportVo
implements
Serializable
{
/**
* 序号
*/
@Schema
(
description
=
"序号"
)
@ExcelAttribute
(
name
=
"序号"
)
@ExcelProperty
(
"序号"
)
private
Integer
num
;
/**
* 员工姓名
*/
@Schema
(
description
=
"姓名"
)
@ExcelAttribute
(
name
=
"姓名"
)
@ExcelProperty
(
"姓名"
)
private
String
empName
;
/**
* 职工编码
*/
@Schema
(
description
=
"职工编码"
)
@ExcelAttribute
(
name
=
"职工编码"
)
@ExcelProperty
(
"职工编码"
)
private
String
empNo
;
/**
* 社会保障号码
*/
@Schema
(
description
=
"社会保障号码(身份证号码)"
)
@ExcelAttribute
(
name
=
"社会保障号码(身份证号码)"
)
@ExcelProperty
(
"社会保障号码(身份证号码)"
)
private
String
empIdcard
;
/**
* 性别:1男 2女
*/
@ExcelAttribute
(
name
=
"性别"
)
@ExcelProperty
(
"性别"
)
@Schema
(
description
=
"性别"
)
private
String
sex
;
/**
* 民族
*/
@Schema
(
description
=
"民族"
)
@ExcelAttribute
(
name
=
"民族"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
EMP_NATIONAL
)
@ExcelProperty
(
"民族"
)
private
String
empNational
;
/**
* 参加工作时间
*/
@Schema
(
description
=
"参加工作时间"
)
@ExcelAttribute
(
name
=
"参加工作时间"
)
@ExcelProperty
(
"参加工作时间"
)
private
String
workDate
;
/**
* 户口性质
*/
@Schema
(
description
=
"户口性质"
)
@ExcelAttribute
(
name
=
"户口性质"
)
@ExcelProperty
(
"户口性质"
)
private
String
type
;
/**
* 个人身份
*/
@Schema
(
description
=
"个人身份"
)
@ExcelAttribute
(
name
=
"个人身份"
)
@ExcelProperty
(
"个人身份"
)
private
String
signleType
;
/**
* 养老
*/
@Schema
(
description
=
"养老"
)
@ExcelAttribute
(
name
=
"养老"
)
@ExcelProperty
(
"养老"
)
private
String
insuranceTypeOne
;
/**
* 失业
*/
@Schema
(
description
=
"失业"
)
@ExcelAttribute
(
name
=
"失业"
)
@ExcelProperty
(
"失业"
)
private
String
insuranceTypeTwo
;
/**
* 医疗
*/
@Schema
(
description
=
"医疗"
)
@ExcelAttribute
(
name
=
"医疗"
)
@ExcelProperty
(
"医疗"
)
private
String
insuranceTypeThree
;
/**
* 工伤
*/
@Schema
(
description
=
"工伤"
)
@ExcelAttribute
(
name
=
"工伤"
)
@ExcelProperty
(
"工伤"
)
private
String
insuranceTypeFour
;
/**
* 生育
*/
@Schema
(
description
=
"生育"
)
@ExcelAttribute
(
name
=
"生育"
)
@ExcelProperty
(
"生育"
)
private
String
insuranceTypeFive
;
/**
* 月工资收入(元)
*/
@Schema
(
description
=
"月工资收入(元)"
)
@ExcelAttribute
(
name
=
"月工资收入(元)"
)
@ExcelProperty
(
"月工资收入(元)"
)
private
BigDecimal
persionCardinal
;
/**
* 补缴保险属期
*/
@Schema
(
description
=
"补缴保险属期"
)
@ExcelAttribute
(
name
=
"补缴保险属期"
)
@ExcelProperty
(
"补缴保险属期"
)
private
String
dateOne
;
/**
* 户籍所在地
*/
@Schema
(
description
=
"户籍所在地"
)
@ExcelAttribute
(
name
=
"户籍所在地"
)
@ExcelProperty
(
"户籍所在地"
)
private
String
contactAddress
;
/**
* 学历
*/
@Schema
(
description
=
"备注"
)
@ExcelAttribute
(
name
=
"备注"
)
@ExcelProperty
(
"备注"
)
private
String
remark
;
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TDispatchInfoController.java
View file @
596964d2
...
...
@@ -774,6 +774,28 @@ public class TDispatchInfoController {
searchVo
.
setAuthSql
(
searchVo
.
getAuthSql
().
replace
(
CommonConstants
.
A_DEPT_ID
,
"a.SETTLE_DOMAIN"
));
}
searchVo
.
setCreateBy
(
user
.
getId
());
tDispatchInfoService
.
doexportFundRecordChange
(
response
,
searchVo
.
getIdStr
(),
searchVo
);
tDispatchInfoService
.
doexportSocialRecordNew
(
response
,
searchVo
);
}
/**
* @Author huyc
* @Description 导出 导出三险花名册
* @Date 14:01 2023/7/20
* @Param
* @return
**/
@PostMapping
(
"/doexportPensionInfo"
)
@Operation
(
description
=
"导出三险花名册"
)
@SysLog
(
"导出三险花名册"
)
@PreAuthorize
(
"@pms.hasPermission('wxhr:tdispatchinfo_doexportFundRecordChange')"
)
public
void
doexportPensionInfo
(
HttpServletResponse
response
,
HttpServletRequest
request
,
@RequestBody
SocialHandleSearchVo
searchVo
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
menuUtil
.
setAuthSql
(
user
,
searchVo
);
if
(
Common
.
isNotNull
(
searchVo
.
getAuthSql
())
&&
searchVo
.
getAuthSql
().
contains
(
CommonConstants
.
A_DEPT_ID
))
{
searchVo
.
setAuthSql
(
searchVo
.
getAuthSql
().
replace
(
CommonConstants
.
A_DEPT_ID
,
"a.SETTLE_DOMAIN"
));
}
searchVo
.
setCreateBy
(
user
.
getId
());
tDispatchInfoService
.
doexportSocialPensionRecord
(
response
,
searchVo
);
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TDispatchInfoMapper.java
View file @
596964d2
...
...
@@ -154,6 +154,42 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> {
int
getFundRecordCount
(
@Param
(
"tDispatchInfo"
)
SocialHandleSearchVo
dispatchInfo
,
@Param
(
"idsStr"
)
List
<
String
>
idsStr
);
/**
* @Author huyc
* @Description 社保派单医保模版count
* @Date 15:47 2023/7/18
* @Param
* @return
**/
int
getSocialDisRecordCount
(
@Param
(
"tDispatchInfo"
)
SocialHandleSearchVo
dispatchInfo
);
/**
* @Author huyc
* @Description 社保派单医保模版
* @Date 15:47 2023/7/18
* @Param
* @return
**/
List
<
TDispatchSocialExportVo
>
getSocialDisRecord
(
@Param
(
"tDispatchInfo"
)
SocialHandleSearchVo
dispatchInfo
);
/**
* @Author huyc
* @Description 社保派单养老模版count
* @Date 15:47 2023/7/18
* @Param
* @return
**/
int
getSocialPersionDisCount
(
@Param
(
"tDispatchInfo"
)
SocialHandleSearchVo
dispatchInfo
);
/**
* @Author huyc
* @Description 社保派单养老模版
* @Date 15:47 2023/7/18
* @Param
* @return
**/
List
<
TDispatchSocialPersionExportVo
>
getSocialPersionDisRecord
(
@Param
(
"tDispatchInfo"
)
SocialHandleSearchVo
dispatchInfo
);
List
<
FundHandleExportVo
>
getFundRecordList
(
@Param
(
"tDispatchInfo"
)
SocialHandleSearchVo
dispatchInfo
,
@Param
(
"idsStr"
)
List
<
String
>
idsStr
);
/**
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TDispatchInfoService.java
View file @
596964d2
...
...
@@ -93,6 +93,10 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> {
void
doexportFundRecordChange
(
HttpServletResponse
response
,
String
idStr
,
SocialHandleSearchVo
searchVo
);
void
doexportSocialRecordNew
(
HttpServletResponse
response
,
SocialHandleSearchVo
searchVo
);
void
doexportSocialPensionRecord
(
HttpServletResponse
response
,
SocialHandleSearchVo
searchVo
);
/**
* 获取社保和公积金派减日期
* @Author hgw
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
596964d2
This diff is collapsed.
Click to expand it.
yifu-social/yifu-social-biz/src/main/resources/mapper/SysHouseHoldInfoMapper.xml
View file @
596964d2
...
...
@@ -55,6 +55,8 @@
<id
property=
"id"
column=
"ID"
/>
<result
property=
"name"
column=
"NAME"
/>
<result
property=
"type"
column=
"TYPE"
/>
<result
property=
"customerNo"
column=
"CUSTOMER_NO"
/>
<result
property=
"unitCreditCode"
column=
"UNIT_CREDIT_CODE"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
...
...
@@ -150,6 +152,8 @@
SELECT
a.ID,
a.TYPE,
a.CUSTOMER_NO,
a.UNIT_CREDIT_CODE,
a.NAME
FROM sys_house_hold_info a
where HOUSE_TYPE = '0'
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
596964d2
...
...
@@ -175,6 +175,43 @@
<result
property=
"empName"
column=
"EMP_NAME"
/>
</resultMap>
<resultMap
id=
"socialDisExportMap"
type=
"com.yifu.cloud.plus.v1.yifu.social.vo.TDispatchSocialExportVo"
>
<result
property=
"num"
column=
"NUM"
/>
<result
property=
"empIdcard"
column=
"EMP_IDCARD"
/>
<result
property=
"idcardType"
column=
"IDCARD_TYPE"
/>
<result
property=
"empName"
column=
"EMP_NAME"
/>
<result
property=
"medicalCardinal"
column=
"MEDICAL_CARDINAL"
/>
<result
property=
"empMobile"
column=
"EMP_MOBILE"
/>
<result
property=
"educationName"
column=
"EDUCATION_NAME"
/>
<result
property=
"disMonth"
column=
"DIS_MONTH"
/>
<result
property=
"changeTypeOne"
column=
"CHANGE_TYPE_ONE"
/>
<result
property=
"changeTypeTwo"
column=
"CHANGE_TYPE_TWO"
/>
<result
property=
"changeTypeThree"
column=
"CHANGE_TYPE_THREE"
/>
<result
property=
"changeTypeFour"
column=
"CHANGE_TYPE_FOUR"
/>
<result
property=
"remark"
column=
"REMARK"
/>
</resultMap>
<resultMap
id=
"socialPersionDisExportMap"
type=
"com.yifu.cloud.plus.v1.yifu.social.vo.TDispatchSocialPersionExportVo"
>
<result
property=
"num"
column=
"num"
/>
<result
property=
"empIdcard"
column=
"EMP_IDCARD"
/>
<result
property=
"empNo"
column=
"EMP_NO"
/>
<result
property=
"empName"
column=
"EMP_NAME"
/>
<result
property=
"sex"
column=
"sex"
/>
<result
property=
"empNational"
column=
"EMP_NATIONAL"
/>
<result
property=
"workDate"
column=
"WORK_DATE"
/>
<result
property=
"type"
column=
"type"
/>
<result
property=
"signleType"
column=
"SIGNLE_TYPE"
/>
<result
property=
"insuranceTypeOne"
column=
"INSURANCE_TYPE_ONE"
/>
<result
property=
"insuranceTypeTwo"
column=
"INSURANCE_TYPE_TWO"
/>
<result
property=
"insuranceTypeThree"
column=
"INSURANCE_TYPE_THREE"
/>
<result
property=
"insuranceTypeFour"
column=
"INSURANCE_TYPE_FOUR"
/>
<result
property=
"insuranceTypeFive"
column=
"INSURANCE_TYPE_FIVE"
/>
<result
property=
"persionCardinal"
column=
"PERSION_CARDINAL"
/>
<result
property=
"dateOne"
column=
"DATE_ONE"
/>
<result
property=
"contactAddress"
column=
"CONTRACT_ADRESS"
/>
<result
property=
"remark"
column=
"REMARK"
/>
</resultMap>
<!-- 派单审核导出vo -->
<resultMap
id=
"exportAuditMap"
type=
"com.yifu.cloud.plus.v1.yifu.social.vo.TDispatchAuditExportVo"
>
<result
property=
"empName"
column=
"EMP_NAME"
/>
...
...
@@ -1148,6 +1185,83 @@
order by a.APPLY_NO desc
</where>
) a
</select>
<!--tDispatchInfo 社保花名册派单数据count-->
<select
id=
"getSocialDisRecordCount"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
FROM t_dispatch_info a
<where>
<include
refid=
"where_getSocialDisRecord"
/>
</where>
</select>
<!--tDispatchInfo 社保医疗花名册派单数据-->
<select
id=
"getSocialDisRecord"
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 社保养老花名册派单数据-->
<select
id=
"getSocialPersionDisCount"
resultType=
"java.lang.Integer"
>
SELECT count(1)
FROM t_dispatch_info a
<where>
<include
refid=
"where_getSocialPersionDisRecord"
/>
</where>
</select>
<!--tDispatchInfo 社保养老花名册派单数据-->
<select
id=
"getSocialPersionDisRecord"
resultMap=
"socialPersionDisExportMap"
>
SELECT
(@i :=@i+1) as num,
a.EMP_NAME,
a.EMP_NO,
a.EMP_IDCARD,
CASE (SUBSTR(a.EMP_IDCARD,17,1)%2)
WHEN 1 THEN '男'
WHEN 0 THEN '女'
END sex,
a.EMP_NATIONAL,
concat(ifnull(DATE_FORMAT(a.CONTRACT_START,"%Y%m%d"),''),'-',ifnull(DATE_FORMAT(a.CONTRACT_END,"%Y%m%d"),'')) as WORK_DATE,
'非农业户口(城镇)' as type,
'企业职工' as SIGNLE_TYPE,
'√' as INSURANCE_TYPE_ONE,
'√' as INSURANCE_TYPE_TWO,
'' as INSURANCE_TYPE_THREE,
'√' as INSURANCE_TYPE_FOUR,
'' as INSURANCE_TYPE_FIVE,
s.RECORD_BASE as PERSION_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,
'安徽省合肥市' as CONTRACT_START,
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_getSocialPersionDisRecord"
/>
</where>
</select>
<!--tDispatchInfo 公积金变更清册查询-->
<select
id=
"getFundRecordList"
resultMap=
"fundHandleMap"
>
SELECT
...
...
@@ -1561,6 +1675,61 @@
</if>
</sql>
<sql
id=
"where_getSocialDisRecord"
>
a.DELETE_FLAG = 0
AND a.social_id is not null
AND a.STATUS = "2"
AND a.DISPATCH_ITEM like concat('%','医疗','%')
<if
test=
"tDispatchInfo != null"
>
<if
test=
"tDispatchInfo.socialHouseholdName != null and tDispatchInfo.socialHouseholdName.trim() != ''"
>
AND a.SOCIAL_HOUSEHOLD_NAME = #{tDispatchInfo.socialHouseholdName}
</if>
<if
test=
"tDispatchInfo.type != null and tDispatchInfo.type.trim() != ''"
>
AND a.TYPE = #{tDispatchInfo.type}
</if>
<if
test=
"tDispatchInfo.socialHouseholdName != null and tDispatchInfo.socialHouseholdName.trim() != ''"
>
AND a.SOCIAL_HOUSEHOLD_NAME = #{tDispatchInfo.socialHouseholdName}
</if>
<if
test=
"tDispatchInfo.disMonth != null and tDispatchInfo.disMonth.trim() != ''"
>
AND replace(DATE_FORMAT(a.CREATE_TIME,"%Y-%m"),'-','') = #{tDispatchInfo.disMonth}
</if>
<if
test=
"tDispatchInfo.socialHandleStatus != null and tDispatchInfo.socialHandleStatus.trim() != ''"
>
AND a.SOCIAL_HANDLE_STATUS = #{tDispatchInfo.socialHandleStatus}
</if>
<if
test=
"tDispatchInfo.authSql != null and tDispatchInfo.authSql.trim() != ''"
>
${tDispatchInfo.authSql}
</if>
</if>
</sql>
<sql
id=
"where_getSocialPersionDisRecord"
>
a.DELETE_FLAG = 0
AND a.social_id is not null
AND a.STATUS = "2"
AND (a.DISPATCH_ITEM like concat('%','工伤','%') or a.DISPATCH_ITEM like concat('%','养老','%'))
<if
test=
"tDispatchInfo != null"
>
<if
test=
"tDispatchInfo.socialHouseholdName != null and tDispatchInfo.socialHouseholdName.trim() != ''"
>
AND a.SOCIAL_HOUSEHOLD_NAME = #{tDispatchInfo.socialHouseholdName}
</if>
<if
test=
"tDispatchInfo.type != null and tDispatchInfo.type.trim() != ''"
>
AND a.TYPE = #{tDispatchInfo.type}
</if>
<if
test=
"tDispatchInfo.socialHouseholdName != null and tDispatchInfo.socialHouseholdName.trim() != ''"
>
AND a.SOCIAL_HOUSEHOLD_NAME = #{tDispatchInfo.socialHouseholdName}
</if>
<if
test=
"tDispatchInfo.disMonth != null and tDispatchInfo.disMonth.trim() != ''"
>
AND replace(DATE_FORMAT(a.CREATE_TIME,"%Y-%m"),'-','') = #{tDispatchInfo.disMonth}
</if>
<if
test=
"tDispatchInfo.socialHandleStatus != null and tDispatchInfo.socialHandleStatus.trim() != ''"
>
AND a.SOCIAL_HANDLE_STATUS = #{tDispatchInfo.socialHandleStatus}
</if>
<if
test=
"tDispatchInfo.authSql != null and tDispatchInfo.authSql.trim() != ''"
>
${tDispatchInfo.authSql}
</if>
</if>
</sql>
<!-- 获取当日最大的编码 -->
<select
id=
"getMaxDispatchCode"
resultType=
"java.lang.String"
>
SELECT ifnull(max(right(e.APPLY_NO,4)),0) APPLY_NO FROM t_dispatch_info e where e.DELETE_FLAG = 0 and e.CREATE_TIME>DATE_FORMAT(now(),'%Y-%m-%d')
...
...
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