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
dda86e09
Commit
dda86e09
authored
Jun 06, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.6.5-社保士兵实缴-核验
parent
d48c5333
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
892 additions
and
6 deletions
+892
-6
TAutoPaymentError.java
...u/cloud/plus/v1/yifu/social/entity/TAutoPaymentError.java
+102
-0
TAutoPaymentErrorSearchVo.java
...oud/plus/v1/yifu/social/vo/TAutoPaymentErrorSearchVo.java
+52
-0
TAutoPaymentErrorController.java
...1/yifu/social/controller/TAutoPaymentErrorController.java
+149
-0
TAutoPaymentErrorMapper.java
...d/plus/v1/yifu/social/mapper/TAutoPaymentErrorMapper.java
+42
-0
TSocialSoldierMapper.java
...loud/plus/v1/yifu/social/mapper/TSocialSoldierMapper.java
+3
-0
TAutoPaymentErrorService.java
...plus/v1/yifu/social/service/TAutoPaymentErrorService.java
+47
-0
TAutoPaymentErrorServiceImpl.java
...ifu/social/service/impl/TAutoPaymentErrorServiceImpl.java
+158
-0
TSocialSoldierServiceImpl.java
...1/yifu/social/service/impl/TSocialSoldierServiceImpl.java
+3
-6
TAutoPaymentErrorMapper.xml
...biz/src/main/resources/mapper/TAutoPaymentErrorMapper.xml
+78
-0
TSocialSoldierMapper.xml
...al-biz/src/main/resources/mapper/TSocialSoldierMapper.xml
+258
-0
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TAutoPaymentError.java
0 → 100644
View file @
dda86e09
/*
* 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
.
entity
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
/**
* 社保士兵实缴核验错误反馈表
*
* @author hgw
* @date 2024-06-06 20:55:31
*/
@Data
@TableName
(
"t_auto_payment_error"
)
@Schema
(
description
=
"社保士兵实缴核验错误反馈表"
)
public
class
TAutoPaymentError
{
/**
* id
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ExcelProperty
(
"id"
)
@Schema
(
description
=
"id"
)
@ExcelIgnore
private
String
id
;
/**
* 主表ID
*/
@ExcelAttribute
(
name
=
"主表ID"
,
isNotEmpty
=
true
,
errorInfo
=
"主表ID不能为空"
,
maxLength
=
32
)
@NotBlank
(
message
=
"主表ID不能为空"
)
@Length
(
max
=
32
,
message
=
"主表ID不能超过32个字符"
)
@ExcelProperty
(
"主表ID"
)
@Schema
(
description
=
"主表ID"
)
@ExcelIgnore
private
String
parentId
;
/**
* 姓名
*/
@ExcelAttribute
(
name
=
"姓名"
,
maxLength
=
32
)
@Length
(
max
=
32
,
message
=
"姓名不能超过32个字符"
)
@ExcelProperty
(
"姓名"
)
@Schema
(
description
=
"姓名"
)
private
String
empName
;
/**
* 证件号码
*/
@ExcelAttribute
(
name
=
"证件号码"
,
maxLength
=
50
)
@Length
(
max
=
50
,
message
=
"证件号码不能超过50个字符"
)
@ExcelProperty
(
"证件号码"
)
@Schema
(
description
=
"证件号码"
)
private
String
certNum
;
/**
* 险种
*/
@ExcelAttribute
(
name
=
"险种"
,
maxLength
=
50
)
@Length
(
max
=
50
,
message
=
"险种不能超过50个字符"
)
@ExcelProperty
(
"险种"
)
@Schema
(
description
=
"险种"
)
private
String
insuranceType
;
/**
* 社保户
*/
@ExcelAttribute
(
name
=
"社保户"
,
maxLength
=
100
)
@Length
(
max
=
100
,
message
=
"社保户不能超过100个字符"
)
@ExcelProperty
(
"社保户"
)
@Schema
(
description
=
"社保户"
)
private
String
socialSecurityAccount
;
/**
* 错误信息
*/
@ExcelAttribute
(
name
=
"错误信息"
,
maxLength
=
50
)
@Length
(
max
=
50
,
message
=
"错误信息不能超过50个字符"
)
@ExcelProperty
(
"错误信息"
)
@Schema
(
description
=
"错误信息"
)
private
String
errorInfo
;
}
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TAutoPaymentErrorSearchVo.java
0 → 100644
View file @
dda86e09
/*
* 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.yifu.cloud.plus.v1.yifu.social.entity.TAutoPaymentError
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.time.LocalDateTime
;
/**
* 社保士兵实缴核验错误反馈表
*
* @author hgw
* @date 2024-06-06 20:55:31
*/
@Data
public
class
TAutoPaymentErrorSearchVo
extends
TAutoPaymentError
{
/**
* 多选导出或删除等操作
*/
@Schema
(
description
=
"选中ID,多个逗号分割"
)
private
String
ids
;
/**
* @Author fxj
* 查询数据起
**/
@Schema
(
description
=
"查询limit 开始"
)
private
int
limitStart
;
/**
* @Author fxj
* 查询数据止
**/
@Schema
(
description
=
"查询limit 数据条数"
)
private
int
limitEnd
;
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TAutoPaymentErrorController.java
0 → 100644
View file @
dda86e09
/*
* 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
.
controller
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TAutoPaymentError
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TAutoPaymentErrorService
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.TAutoPaymentErrorSearchVo
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 社保士兵实缴核验错误反馈表
*
* @author hgw
* @date 2024-06-06 20:55:31
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/tautopaymenterror"
)
@Tag
(
name
=
"社保士兵实缴核验错误反馈表管理"
)
public
class
TAutoPaymentErrorController
{
private
final
TAutoPaymentErrorService
tAutoPaymentErrorService
;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tAutoPaymentError 社保士兵实缴核验错误反馈表
* @return
*/
@Operation
(
description
=
"简单分页查询"
)
@GetMapping
(
"/page"
)
public
R
<
IPage
<
TAutoPaymentError
>>
getTAutoPaymentErrorPage
(
Page
<
TAutoPaymentError
>
page
,
TAutoPaymentErrorSearchVo
tAutoPaymentError
)
{
return
new
R
<>(
tAutoPaymentErrorService
.
getTAutoPaymentErrorPage
(
page
,
tAutoPaymentError
));
}
/**
* 不分页查询
*
* @param tAutoPaymentError 社保士兵实缴核验错误反馈表
* @return
*/
@Operation
(
summary
=
"不分页查询"
,
description
=
"不分页查询"
)
@PostMapping
(
"/noPage"
)
//@PreAuthorize("@pms.hasPermission('social_tautopaymenterror_get')" )
public
R
<
List
<
TAutoPaymentError
>>
getTAutoPaymentErrorNoPage
(
@RequestBody
TAutoPaymentErrorSearchVo
tAutoPaymentError
)
{
return
R
.
ok
(
tAutoPaymentErrorService
.
noPageDiy
(
tAutoPaymentError
));
}
/**
* 通过id查询社保士兵实缴核验错误反馈表
*
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询:hasPermission('social_tautopaymenterror_get')"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('social_tautopaymenterror_get')"
)
public
R
<
TAutoPaymentError
>
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
tAutoPaymentErrorService
.
getById
(
id
));
}
/**
* 新增社保士兵实缴核验错误反馈表
*
* @param tAutoPaymentError 社保士兵实缴核验错误反馈表
* @return R
*/
@Operation
(
summary
=
"新增社保士兵实缴核验错误反馈表"
,
description
=
"新增社保士兵实缴核验错误反馈表:hasPermission('social_tautopaymenterror_add')"
)
@SysLog
(
"新增社保士兵实缴核验错误反馈表"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('social_tautopaymenterror_add')"
)
public
R
<
Boolean
>
save
(
@RequestBody
TAutoPaymentError
tAutoPaymentError
)
{
return
R
.
ok
(
tAutoPaymentErrorService
.
save
(
tAutoPaymentError
));
}
/**
* 修改社保士兵实缴核验错误反馈表
*
* @param tAutoPaymentError 社保士兵实缴核验错误反馈表
* @return R
*/
@Operation
(
summary
=
"修改社保士兵实缴核验错误反馈表"
,
description
=
"修改社保士兵实缴核验错误反馈表:hasPermission('social_tautopaymenterror_edit')"
)
@SysLog
(
"修改社保士兵实缴核验错误反馈表"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('social_tautopaymenterror_edit')"
)
public
R
<
Boolean
>
updateById
(
@RequestBody
TAutoPaymentError
tAutoPaymentError
)
{
return
R
.
ok
(
tAutoPaymentErrorService
.
updateById
(
tAutoPaymentError
));
}
/**
* 通过id删除社保士兵实缴核验错误反馈表
*
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id删除社保士兵实缴核验错误反馈表"
,
description
=
"通过id删除社保士兵实缴核验错误反馈表:hasPermission('social_tautopaymenterror_del')"
)
@SysLog
(
"通过id删除社保士兵实缴核验错误反馈表"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('social_tautopaymenterror_del')"
)
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
tAutoPaymentErrorService
.
removeById
(
id
));
}
/**
* 社保士兵实缴核验错误反馈表 批量导出
*
* @author hgw
* @date 2024-06-06 20:55:31
**/
@Operation
(
description
=
"导出社保士兵实缴核验错误反馈表 hasPermission('social_tautopaymenterror-export')"
)
@PostMapping
(
"/export"
)
@PreAuthorize
(
"@pms.hasPermission('social_tautopaymenterror-export')"
)
public
void
export
(
HttpServletResponse
response
,
@RequestBody
TAutoPaymentErrorSearchVo
searchVo
)
{
if
(
Common
.
isNotNull
(
searchVo
.
getParentId
()))
{
tAutoPaymentErrorService
.
listExport
(
response
,
searchVo
);
}
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TAutoPaymentErrorMapper.java
0 → 100644
View file @
dda86e09
/*
* 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
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TAutoPaymentError
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 社保士兵实缴核验错误反馈表
*
* @author hgw
* @date 2024-06-06 20:55:31
*/
@Mapper
public
interface
TAutoPaymentErrorMapper
extends
BaseMapper
<
TAutoPaymentError
>
{
/**
* 社保士兵实缴核验错误反馈表简单分页查询
*
* @param tAutoPaymentError 社保士兵实缴核验错误反馈表
* @return
*/
IPage
<
TAutoPaymentError
>
getTAutoPaymentErrorPage
(
Page
<
TAutoPaymentError
>
page
,
@Param
(
"tAutoPaymentError"
)
TAutoPaymentError
tAutoPaymentError
);
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TSocialSoldierMapper.java
View file @
dda86e09
...
...
@@ -116,5 +116,8 @@ public interface TSocialSoldierMapper extends BaseMapper<TSocialInfo> {
**/
List
<
SocialSoldierPaymentSelectThreeVo
>
getSoldierPaymentSelectThreeList
();
void
getSoldierPaymentErrorInfoOne
(
@Param
(
"parentId"
)
String
parentId
);
void
getSoldierPaymentErrorInfoTwo
(
@Param
(
"parentId"
)
String
parentId
);
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TAutoPaymentErrorService.java
0 → 100644
View file @
dda86e09
/*
* 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
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TAutoPaymentError
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.TAutoPaymentErrorSearchVo
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 社保士兵实缴核验错误反馈表
*
* @author hgw
* @date 2024-06-06 20:55:31
*/
public
interface
TAutoPaymentErrorService
extends
IService
<
TAutoPaymentError
>
{
/**
* 社保士兵实缴核验错误反馈表简单分页查询
*
* @param tAutoPaymentError 社保士兵实缴核验错误反馈表
* @return
*/
IPage
<
TAutoPaymentError
>
getTAutoPaymentErrorPage
(
Page
<
TAutoPaymentError
>
page
,
TAutoPaymentErrorSearchVo
tAutoPaymentError
);
void
listExport
(
HttpServletResponse
response
,
TAutoPaymentErrorSearchVo
searchVo
);
List
<
TAutoPaymentError
>
noPageDiy
(
TAutoPaymentErrorSearchVo
searchVo
);
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TAutoPaymentErrorServiceImpl.java
0 → 100644
View file @
dda86e09
/*
* 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
.
service
.
impl
;
import
com.alibaba.excel.EasyExcelFactory
;
import
com.alibaba.excel.ExcelWriter
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.DateUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ExcelUtil
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TAutoPaymentError
;
import
com.yifu.cloud.plus.v1.yifu.social.mapper.TAutoPaymentErrorMapper
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TAutoPaymentErrorService
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.TAutoPaymentErrorSearchVo
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.net.URLEncoder
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* 社保士兵实缴核验错误反馈表
*
* @author hgw
* @date 2024-06-06 20:55:31
*/
@Log4j2
@Service
public
class
TAutoPaymentErrorServiceImpl
extends
ServiceImpl
<
TAutoPaymentErrorMapper
,
TAutoPaymentError
>
implements
TAutoPaymentErrorService
{
/**
* 社保士兵实缴核验错误反馈表简单分页查询
*
* @param tAutoPaymentError 社保士兵实缴核验错误反馈表
* @return
*/
@Override
public
IPage
<
TAutoPaymentError
>
getTAutoPaymentErrorPage
(
Page
<
TAutoPaymentError
>
page
,
TAutoPaymentErrorSearchVo
tAutoPaymentError
)
{
return
baseMapper
.
getTAutoPaymentErrorPage
(
page
,
tAutoPaymentError
);
}
/**
* 社保士兵实缴核验错误反馈表批量导出
*
* @param searchVo 社保士兵实缴核验错误反馈表
* @return
*/
@Override
public
void
listExport
(
HttpServletResponse
response
,
TAutoPaymentErrorSearchVo
searchVo
)
{
String
fileName
=
"社保士兵实缴核验错误反馈表批量导出"
+
DateUtil
.
getThisTime
()
+
".xlsx"
;
//获取要导出的列表
List
<
TAutoPaymentError
>
list
=
new
ArrayList
<>();
long
count
=
noPageCountDiy
(
searchVo
);
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcelFactory
.
write
(
out
,
TAutoPaymentError
.
class
).
build
();
int
index
=
0
;
if
(
count
>
CommonConstants
.
ZERO_INT
)
{
for
(
int
i
=
0
;
i
<=
count
;
)
{
// 获取实际记录
searchVo
.
setLimitStart
(
i
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT
);
list
=
noPageDiy
(
searchVo
);
if
(
Common
.
isNotNull
(
list
))
{
ExcelUtil
<
TAutoPaymentError
>
util
=
new
ExcelUtil
<>(
TAutoPaymentError
.
class
);
for
(
TAutoPaymentError
vo
:
list
)
{
util
.
convertEntity
(
vo
,
null
,
null
,
null
);
}
}
if
(
Common
.
isNotNull
(
list
))
{
WriteSheet
writeSheet
=
EasyExcelFactory
.
writerSheet
(
"社保士兵实缴核验错误反馈表"
+
index
).
build
();
excelWriter
.
write
(
list
,
writeSheet
);
index
++;
}
i
+=
CommonConstants
.
EXCEL_EXPORT_LIMIT
;
if
(
Common
.
isNotNull
(
list
))
{
list
.
clear
();
}
}
}
else
{
WriteSheet
writeSheet
=
EasyExcelFactory
.
writerSheet
(
"社保士兵实缴核验错误反馈表"
+
index
).
build
();
excelWriter
.
write
(
list
,
writeSheet
);
}
if
(
Common
.
isNotNull
(
list
))
{
list
.
clear
();
}
out
.
flush
();
excelWriter
.
finish
();
}
catch
(
Exception
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
finally
{
try
{
if
(
null
!=
out
)
{
out
.
close
();
}
}
catch
(
IOException
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
}
}
@Override
public
List
<
TAutoPaymentError
>
noPageDiy
(
TAutoPaymentErrorSearchVo
searchVo
)
{
LambdaQueryWrapper
<
TAutoPaymentError
>
wrapper
=
buildQueryWrapper
(
searchVo
);
List
<
String
>
idList
=
Common
.
getList
(
searchVo
.
getIds
());
if
(
Common
.
isNotNull
(
idList
))
{
wrapper
.
in
(
TAutoPaymentError:
:
getId
,
idList
);
}
if
(
searchVo
.
getLimitStart
()
>=
0
&&
searchVo
.
getLimitEnd
()
>
0
)
{
wrapper
.
last
(
" limit "
+
searchVo
.
getLimitStart
()
+
","
+
searchVo
.
getLimitEnd
());
}
wrapper
.
orderByDesc
(
TAutoPaymentError:
:
getCertNum
);
return
baseMapper
.
selectList
(
wrapper
);
}
private
Long
noPageCountDiy
(
TAutoPaymentErrorSearchVo
searchVo
)
{
LambdaQueryWrapper
<
TAutoPaymentError
>
wrapper
=
buildQueryWrapper
(
searchVo
);
List
<
String
>
idList
=
Common
.
getList
(
searchVo
.
getIds
());
if
(
Common
.
isNotNull
(
idList
))
{
wrapper
.
in
(
TAutoPaymentError:
:
getId
,
idList
);
}
return
baseMapper
.
selectCount
(
wrapper
);
}
private
LambdaQueryWrapper
buildQueryWrapper
(
TAutoPaymentErrorSearchVo
entity
)
{
LambdaQueryWrapper
<
TAutoPaymentError
>
wrapper
=
Wrappers
.
lambdaQuery
();
return
wrapper
;
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialSoldierServiceImpl.java
View file @
dda86e09
...
...
@@ -308,12 +308,9 @@ public class TSocialSoldierServiceImpl extends ServiceImpl<TSocialSoldierMapper,
||
detailListFour
!=
null
&&
!
detailListFour
.
isEmpty
()
)
{
// 核验1:
if
(
detailListOne
!=
null
)
{
for
(
TAutoPaymentDetail
detail
:
detailListOne
)
{
//
//...
}
}
baseMapper
.
getSoldierPaymentErrorInfoOne
(
mainAuto
.
getId
());
// 核验2:
baseMapper
.
getSoldierPaymentErrorInfoTwo
(
mainAuto
.
getId
());
}
}
catch
(
Exception
e
){
e
.
printStackTrace
();
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TAutoPaymentErrorMapper.xml
0 → 100644
View file @
dda86e09
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ 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)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yifu.cloud.plus.v1.yifu.social.mapper.TAutoPaymentErrorMapper"
>
<resultMap
id=
"tAutoPaymentErrorMap"
type=
"com.yifu.cloud.plus.v1.yifu.social.entity.TAutoPaymentError"
>
<id
property=
"id"
column=
"ID"
/>
<result
property=
"parentId"
column=
"PARENT_ID"
/>
<result
property=
"empName"
column=
"EMP_NAME"
/>
<result
property=
"certNum"
column=
"CERT_NUM"
/>
<result
property=
"insuranceType"
column=
"INSURANCE_TYPE"
/>
<result
property=
"errorInfo"
column=
"ERROR_INFO"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.ID,
a.PARENT_ID,
a.EMP_NAME,
a.CERT_NUM,
a.INSURANCE_TYPE,
a.SOCIAL_SECURITY_ACCOUNT,
a.ERROR_INFO
</sql>
<sql
id=
"tAutoPaymentError_where"
>
<if
test=
"tAutoPaymentError != null"
>
<if
test=
"tAutoPaymentError.id != null and tAutoPaymentError.id.trim() != ''"
>
AND a.ID = #{tAutoPaymentError.id}
</if>
<if
test=
"tAutoPaymentError.parentId != null and tAutoPaymentError.parentId.trim() != ''"
>
AND a.PARENT_ID = #{tAutoPaymentError.parentId}
</if>
<if
test=
"tAutoPaymentError.empName != null and tAutoPaymentError.empName.trim() != ''"
>
AND a.EMP_NAME = #{tAutoPaymentError.empName}
</if>
<if
test=
"tAutoPaymentError.socialSecurityAccount != null and tAutoPaymentError.socialSecurityAccount.trim() != ''"
>
AND a.SOCIAL_SECURITY_ACCOUNT = #{tAutoPaymentError.socialSecurityAccount}
</if>
<if
test=
"tAutoPaymentError.certNum != null and tAutoPaymentError.certNum.trim() != ''"
>
AND a.CERT_NUM = #{tAutoPaymentError.certNum}
</if>
<if
test=
"tAutoPaymentError.insuranceType != null and tAutoPaymentError.insuranceType.trim() != ''"
>
AND a.INSURANCE_TYPE = #{tAutoPaymentError.insuranceType}
</if>
<if
test=
"tAutoPaymentError.errorInfo != null and tAutoPaymentError.errorInfo.trim() != ''"
>
AND a.ERROR_INFO = #{tAutoPaymentError.errorInfo}
</if>
</if>
</sql>
<!--tAutoPaymentError简单分页查询-->
<select
id=
"getTAutoPaymentErrorPage"
resultMap=
"tAutoPaymentErrorMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM t_auto_payment_error a
<where>
1=1
<include
refid=
"tAutoPaymentError_where"
/>
</where>
</select>
</mapper>
yifu-social/yifu-social-biz/src/main/resources/mapper/TSocialSoldierMapper.xml
View file @
dda86e09
This diff is collapsed.
Click to expand it.
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