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
82c98e4b
Commit
82c98e4b
authored
May 30, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.6.5-工资申报+工资调整的推送
parent
5c22143a
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
367 additions
and
73 deletions
+367
-73
SocialTask.java
...n/java/com/yifu/cloud/plus/v1/job/compont/SocialTask.java
+14
-2
TSocialSoldierShenBaoTask.java
...plus/v1/yifu/social/entity/TSocialSoldierShenBaoTask.java
+18
-18
SocialSoldierSalaryShenBaoVo.java
.../plus/v1/yifu/social/vo/SocialSoldierSalaryShenBaoVo.java
+49
-0
SocialSoldierSalaryTiaoZhengVo.java
...lus/v1/yifu/social/vo/SocialSoldierSalaryTiaoZhengVo.java
+51
-0
SocialConfig.java
...m/yifu/cloud/plus/v1/yifu/social/config/SocialConfig.java
+16
-0
TSocialSoldierController.java
...s/v1/yifu/social/controller/TSocialSoldierController.java
+15
-1
TSocialSoldierMapper.java
...loud/plus/v1/yifu/social/mapper/TSocialSoldierMapper.java
+15
-0
TSocialSoldierShenBaoTaskMapper.java
...1/yifu/social/mapper/TSocialSoldierShenBaoTaskMapper.java
+4
-4
TSocialSoldierPushService.java
...lus/v1/yifu/social/service/TSocialSoldierPushService.java
+8
-0
TSocialSoldierShenBaoTaskService.java
...yifu/social/service/TSocialSoldierShenBaoTaskService.java
+4
-4
TSocialSoldierPushServiceImpl.java
...fu/social/service/impl/TSocialSoldierPushServiceImpl.java
+82
-11
TSocialSoldierServiceImpl.java
...1/yifu/social/service/impl/TSocialSoldierServiceImpl.java
+0
-1
TSocialSoldierShenBaoTaskServiceImpl.java
...al/service/impl/TSocialSoldierShenBaoTaskServiceImpl.java
+7
-7
TSocialSoldierMapper.xml
...al-biz/src/main/resources/mapper/TSocialSoldierMapper.xml
+59
-0
TSocialSoldierShenBaoTaskMapper.xml
...main/resources/mapper/TSocialSoldierShenBaoTaskMapper.xml
+25
-25
No files found.
yifu-job/yifu-job-api/src/main/java/com/yifu/cloud/plus/v1/job/compont/SocialTask.java
View file @
82c98e4b
...
...
@@ -197,7 +197,7 @@ public class SocialTask {
/**
* @Description: 3每日定时任务推送社保士兵审核结果查询
* @Author: hgw
* @Date: 202
2/7/27 19:39
* @Date: 202
4-5-30 17:33:35
* @return: void
**/
public
void
doInnerPushSoldierByAudit
()
{
...
...
@@ -209,7 +209,7 @@ public class SocialTask {
/**
* @Description: 4每日定时任务获取社保士兵审核结果查询
* @Author: hgw
* @Date: 202
2/7/27 19:39
* @Date: 202
4-5-30 17:33:35
* @return: void
**/
public
void
doInnerGetSixJobByAudit
()
{
...
...
@@ -218,4 +218,16 @@ public class SocialTask {
log
.
info
(
"------------4每日定时任务获取社保士兵审核结果查询-定时任务结束------------"
);
}
/**
* @Description: 5每月5号推送工资申报、调整(实缴使用)
* @Author: hgw
* @Date: 2024-5-30 17:33:35
* @return: void
**/
public
void
doInnerPushSalaryByShenBao
()
{
log
.
info
(
"------------5每月5号推送工资申报、调整(实缴使用)-定时任务开始------------"
);
HttpDaprUtil
.
invokeMethodPost
(
daprProperties
.
getAppUrl
(),
daprProperties
.
getAppId
(),
"/tsocialsoldier/inner/doInnerPushSalaryByShenBao"
,
""
,
Object
.
class
,
SecurityConstants
.
FROM_IN
);
log
.
info
(
"------------5每月5号推送工资申报、调整(实缴使用)-定时任务结束------------"
);
}
}
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TSocial
AutoAudit
Task.java
→
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TSocial
SoldierShenBao
Task.java
View file @
82c98e4b
...
...
@@ -31,16 +31,16 @@ import org.hibernate.validator.constraints.Length;
import
javax.validation.constraints.NotBlank
;
/**
* 社保
自动化审核提交后的审核结果查询
记录表
* 社保
工资申报、调整推送的
记录表
*
* @author hgw
* @date 2024-
05-23 17:40:3
7
* @date 2024-
5-30 09:53:5
7
*/
@Data
@TableName
(
"t_social_
auto_audit
_task"
)
@TableName
(
"t_social_
soldier_shen_bao
_task"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"社保
自动化审核提交后的审核结果查询
记录表"
)
public
class
TSocial
AutoAudit
Task
extends
BaseEntity
{
@Schema
(
description
=
"社保
工资申报、调整推送
记录表"
)
public
class
TSocial
SoldierShenBao
Task
extends
BaseEntity
{
/**
* id
...
...
@@ -50,22 +50,22 @@ public class TSocialAutoAuditTask extends BaseEntity {
@Schema
(
description
=
"id"
)
private
String
id
;
/**
*
审核查询
的任务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"
)
private
String
a
udit
Id
;
@ExcelAttribute
(
name
=
"
推送的任务ID"
,
isNotEmpty
=
true
,
errorInfo
=
"推送
的任务ID不能为空"
,
maxLength
=
32
)
@NotBlank
(
message
=
"
推送
的任务ID不能为空"
)
@Length
(
max
=
32
,
message
=
"
推送
的任务ID不能超过32个字符"
)
@ExcelProperty
(
"
推送
的任务ID"
)
@Schema
(
description
=
"
推送
的任务ID"
)
private
String
a
dd
Id
;
/**
* 1
养工失;2医生大
* 1
申报;2调整
*/
@ExcelAttribute
(
name
=
"1
养工失;2医生大"
,
isNotEmpty
=
true
,
errorInfo
=
"1养工失;2医生大不能为空
"
,
maxLength
=
1
)
@NotBlank
(
message
=
"1
养工失;2医生大
不能为空"
)
@Length
(
max
=
1
,
message
=
"1
养工失;2医生大
不能超过1个字符"
)
@ExcelProperty
(
"1
养工失;2医生大
"
)
@Schema
(
description
=
"1
养工失;2医生大
"
)
@ExcelAttribute
(
name
=
"1
申报;2调整"
,
isNotEmpty
=
true
,
errorInfo
=
"1申报;2调整
"
,
maxLength
=
1
)
@NotBlank
(
message
=
"1
申报;2调整
不能为空"
)
@Length
(
max
=
1
,
message
=
"1
申报;2调整
不能超过1个字符"
)
@ExcelProperty
(
"1
申报;2调整
"
)
@Schema
(
description
=
"1
申报;2调整
"
)
private
String
type
;
}
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/SocialSoldierSalaryShenBaoVo.java
0 → 100644
View file @
82c98e4b
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @Author hgw
* @Description 社保士兵实缴前置-工资申报
* @Date 2024-5-29 18:20:26
**/
@Data
public
class
SocialSoldierSalaryShenBaoVo
implements
Serializable
{
// #单位编号 单位名称 *姓名 *身份证件类型代码 *身份证件号码 分组 原申报工资 *新缴费工资 养老保险缴费工资
// #失业保险险缴费工资 医疗保险缴费工资 大额医疗补助缴费工资 工伤保险缴费工资 申报方式 回传信息
@ExcelProperty
(
"单位编号"
)
private
String
companyNo
;
@ExcelProperty
(
"单位名称"
)
private
String
companyName
;
@ExcelProperty
(
"*姓名"
)
private
String
empName
;
@ExcelProperty
(
"*身份证件类型代码"
)
private
String
empIdCardType
;
@ExcelProperty
(
"*身份证件号码"
)
private
String
empIdCard
;
@ExcelProperty
(
"分组"
)
private
String
fenZu
;
@ExcelProperty
(
"原申报工资"
)
private
String
oldSalary
;
@ExcelProperty
(
"*新缴费工资"
)
private
String
newSalary
;
@ExcelProperty
(
"养老保险缴费工资"
)
private
String
yangLao
;
@ExcelProperty
(
"失业保险险缴费工资"
)
private
String
shiYe
;
@ExcelProperty
(
"医疗保险缴费工资"
)
private
String
yiLiao
;
@ExcelProperty
(
"大额医疗补助缴费工资"
)
private
String
daBing
;
@ExcelProperty
(
"工伤保险缴费工资"
)
private
String
gongShang
;
@ExcelProperty
(
"申报方式"
)
private
String
shenBaoType
;
@ExcelProperty
(
"回传信息"
)
private
String
returnInfo
;
}
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/SocialSoldierSalaryTiaoZhengVo.java
0 → 100644
View file @
82c98e4b
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @Author hgw
* @Description 社保士兵实缴前置-工资调整
* @Date 2024-5-29 18:20:26
**/
@Data
public
class
SocialSoldierSalaryTiaoZhengVo
implements
Serializable
{
// 单位编号 单位名称 生效年份 *姓名 *身份证件类型代码 *身份证件号码 分组 原申报工资 *新缴费工资 养老保险缴费工资
// 失业保险险缴费工资 医疗保险缴费工资 工伤保险缴费工资 申报方式 回传信息
@ExcelProperty
(
"单位编号"
)
private
String
companyNo
;
@ExcelProperty
(
"单位名称"
)
private
String
companyName
;
@ExcelProperty
(
"生效年份"
)
private
String
shengXiaoYear
;
@ExcelProperty
(
"*姓名"
)
private
String
empName
;
@ExcelProperty
(
"*身份证件类型代码"
)
private
String
empIdCardType
;
@ExcelProperty
(
"*身份证件号码"
)
private
String
empIdCard
;
@ExcelProperty
(
"分组"
)
private
String
fenZu
;
@ExcelProperty
(
"原申报工资"
)
private
String
oldSalary
;
@ExcelProperty
(
"*新缴费工资"
)
private
String
newSalary
;
@ExcelProperty
(
"养老保险缴费工资"
)
private
String
yangLao
;
@ExcelProperty
(
"失业保险险缴费工资"
)
private
String
shiYe
;
@ExcelProperty
(
"医疗保险缴费工资"
)
private
String
yiLiao
;
@ExcelProperty
(
"工伤保险缴费工资"
)
private
String
gongShang
;
@ExcelProperty
(
"申报方式"
)
private
String
shenBaoType
;
@ExcelProperty
(
"回传信息"
)
private
String
returnInfo
;
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/config/SocialConfig.java
View file @
82c98e4b
...
...
@@ -117,6 +117,8 @@ public class SocialConfig {
sheMap
.
put
(
"社保减员"
,
sheBaoArrObj
.
getString
(
"value"
));
}
else
if
(
"审核数据查询"
.
equals
(
sheBaoArrObj
.
get
(
"label"
)))
{
sheMap
.
put
(
"审核数据查询"
,
sheBaoArrObj
.
getString
(
"value"
));
}
else
if
(
"社保批量调基文件下载"
.
equals
(
sheBaoArrObj
.
get
(
"label"
)))
{
sheMap
.
put
(
"社保批量调基文件下载"
,
sheBaoArrObj
.
getString
(
"value"
));
}
}
}
else
if
(
"医保"
.
equals
(
childrenArrObj
.
get
(
"label"
)))
{
...
...
@@ -129,6 +131,20 @@ public class SocialConfig {
sheMap
.
put
(
"医保减员"
,
sheBaoArrObj
.
getString
(
"value"
));
}
else
if
(
"审核数据信息查询"
.
equals
(
sheBaoArrObj
.
get
(
"label"
)))
{
sheMap
.
put
(
"审核数据信息查询"
,
sheBaoArrObj
.
getString
(
"value"
));
}
else
if
(
"单位缴费明细查询"
.
equals
(
sheBaoArrObj
.
get
(
"label"
)))
{
sheMap
.
put
(
"单位缴费明细查询"
,
sheBaoArrObj
.
getString
(
"value"
));
}
}
}
else
if
(
"社保费管理客户端"
.
equals
(
childrenArrObj
.
get
(
"label"
)))
{
sheBaoArr
=
(
JSONArray
)
childrenArrObj
.
get
(
"children"
);
for
(
int
k
=
0
;
k
<
sheBaoArr
.
size
();
k
++)
{
sheBaoArrObj
=
(
JSONObject
)
sheBaoArr
.
get
(
k
);
if
(
"年度缴费工资申报"
.
equals
(
sheBaoArrObj
.
get
(
"label"
)))
{
sheMap
.
put
(
"年度缴费工资申报"
,
sheBaoArrObj
.
getString
(
"value"
));
}
else
if
(
"年度缴费工资调整"
.
equals
(
sheBaoArrObj
.
get
(
"label"
)))
{
sheMap
.
put
(
"年度缴费工资调整"
,
sheBaoArrObj
.
getString
(
"value"
));
}
else
if
(
"日常申报导出"
.
equals
(
sheBaoArrObj
.
get
(
"label"
)))
{
sheMap
.
put
(
"日常申报导出"
,
sheBaoArrObj
.
getString
(
"value"
));
}
}
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TSocialSoldierController.java
View file @
82c98e4b
...
...
@@ -121,10 +121,24 @@ public class TSocialSoldierController {
**/
@Operation
(
description
=
"4每日定时任务获取社保士兵审核结果查询"
)
@PostMapping
(
"/inner/doInnerGetSixJobByAudit"
)
@SysLog
(
"
3
每日定时任务获取社保士兵审核结果查询"
)
@SysLog
(
"
4
每日定时任务获取社保士兵审核结果查询"
)
@Inner
public
R
<
String
>
doInnerGetSixJobByAudit
()
{
return
tSocialSoldierService
.
getSixJobByAudit
();
}
/**
* @Description: 5推送工资申报、调整(实缴使用)
* @Author: hgw
* @Date: 2024-5-30 17:32:43
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
@Operation
(
description
=
"5每月5号推送工资申报、调整(实缴使用)"
)
@PostMapping
(
"/inner/doInnerPushSalaryByShenBao"
)
@SysLog
(
"5每月5号推送工资申报、调整(实缴使用)"
)
@Inner
public
R
<
String
>
doInnerPushSalaryByShenBao
()
{
return
tSocialSoldierPushService
.
pushSalaryByShenBao
();
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TSocialSoldierMapper.java
View file @
82c98e4b
...
...
@@ -79,5 +79,20 @@ public interface TSocialSoldierMapper extends BaseMapper<TSocialInfo> {
**/
List
<
SocialSoldierYsdAuditVo
>
getSocialSoldierYsdAddAuditVoList
();
/**
* @Description: 工资申报
* @Author: hgw
* @Date: 2024/5/29 18:32
* @return: java.util.List<com.yifu.cloud.plus.v1.yifu.social.vo.SocialSoldierSalaryShenBaoVo>
**/
List
<
SocialSoldierSalaryShenBaoVo
>
getSoldierSalaryByShenBaoList
();
/**
* @Description: 工资调整
* @Author: hgw
* @Date: 2024/5/29 18:32
* @return: java.util.List<com.yifu.cloud.plus.v1.yifu.social.vo.SocialSoldierSalaryShenBaoVo>
**/
List
<
SocialSoldierSalaryTiaoZhengVo
>
getSoldierSalaryByTiaoZhengList
();
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TSocial
AutoAudit
TaskMapper.java
→
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TSocial
SoldierShenBao
TaskMapper.java
View file @
82c98e4b
...
...
@@ -18,7 +18,7 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocial
AutoAudit
Task
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocial
SoldierShenBao
Task
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -31,12 +31,12 @@ import java.util.List;
* @date 2024-05-23 17:40:37
*/
@Mapper
public
interface
TSocial
AutoAuditTaskMapper
extends
BaseMapper
<
TSocialAutoAudit
Task
>
{
public
interface
TSocial
SoldierShenBaoTaskMapper
extends
BaseMapper
<
TSocialSoldierShenBao
Task
>
{
/**
* 社保自动化审核提交后的审核结果查询记录表简单分页查询
*
* @param tSocial
AutoAudit
Task 社保自动化审核提交后的审核结果查询记录表
* @param tSocial
SoldierShenBao
Task 社保自动化审核提交后的审核结果查询记录表
* @return
*/
List
<
TSocial
AutoAuditTask
>
getTSocialAutoAuditTaskList
(
@Param
(
"tSocialAutoAuditTask"
)
TSocialAutoAuditTask
tSocialAutoAudit
Task
);
List
<
TSocial
SoldierShenBaoTask
>
getTSocialSoldierShenBaoTaskList
(
@Param
(
"tSocialSoldierShenBaoTask"
)
TSocialSoldierShenBaoTask
tSocialSoldierShenBao
Task
);
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TSocialSoldierPushService.java
View file @
82c98e4b
...
...
@@ -58,4 +58,12 @@ public interface TSocialSoldierPushService extends IService<TSocialInfo> {
**/
R
<
String
>
pushSoldierByAudit
();
/**
* @Description: 推送工资申报、调整(实缴使用)
* @Author: hgw
* @Date: 2024-5-29 17:47:10
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
R
<
String
>
pushSalaryByShenBao
();
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TSocial
AutoAudit
TaskService.java
→
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TSocial
SoldierShenBao
TaskService.java
View file @
82c98e4b
...
...
@@ -18,7 +18,7 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocial
AutoAudit
Task
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocial
SoldierShenBao
Task
;
import
java.util.List
;
...
...
@@ -28,12 +28,12 @@ import java.util.List;
* @author hgw
* @date 2024-05-23 17:40:37
*/
public
interface
TSocial
AutoAuditTaskService
extends
IService
<
TSocialAutoAudit
Task
>
{
public
interface
TSocial
SoldierShenBaoTaskService
extends
IService
<
TSocialSoldierShenBao
Task
>
{
/**
* 社保自动化审核提交后的审核结果查询记录表简单分页查询
*
* @param tSocial
AutoAudit
Task 社保自动化审核提交后的审核结果查询记录表
* @param tSocial
SoldierShenBao
Task 社保自动化审核提交后的审核结果查询记录表
* @return
*/
List
<
TSocial
AutoAuditTask
>
getTSocialAutoAuditTaskList
(
TSocialAutoAuditTask
tSocialAutoAudit
Task
);
List
<
TSocial
SoldierShenBaoTask
>
getTSocialSoldierShenBaoTaskList
(
TSocialSoldierShenBaoTask
tSocialSoldierShenBao
Task
);
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialSoldierPushServiceImpl.java
View file @
82c98e4b
...
...
@@ -25,16 +25,13 @@ 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.R
;
import
com.yifu.cloud.plus.v1.yifu.social.config.SocialConfig
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocialAutoAuditTask
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocialInfo
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocialSoldierShenBaoTask
;
import
com.yifu.cloud.plus.v1.yifu.social.mapper.TSocialSoldierMapper
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TSocial
AutoAudit
TaskService
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TSocial
SoldierShenBao
TaskService
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TSocialInfoService
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TSocialSoldierPushService
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.SocialSoldierSetVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.SocialSoldierYgsAddVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.SocialSoldierYgsAuditVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.SocialSoldierYsdAuditVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.*
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.log4j.Log4j2
;
import
org.apache.commons.compress.utils.IOUtils
;
...
...
@@ -47,10 +44,7 @@ import org.springframework.web.multipart.MultipartFile;
import
org.springframework.web.multipart.commons.CommonsMultipartFile
;
import
java.io.*
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
/**
* 社保士兵-推送
...
...
@@ -66,7 +60,7 @@ public class TSocialSoldierPushServiceImpl extends ServiceImpl<TSocialSoldierMap
private
RestTemplate
restTemplate
=
new
RestTemplate
();
private
final
SocialConfig
socialConfig
;
private
final
TSocialInfoService
tSocialInfoService
;
private
final
TSocial
AutoAuditTaskService
tSocialAutoAudit
TaskService
;
private
final
TSocial
SoldierShenBaoTaskService
tSocialSoldierShenBao
TaskService
;
/**
* @param socialList
...
...
@@ -298,6 +292,29 @@ public class TSocialSoldierPushServiceImpl extends ServiceImpl<TSocialSoldierMap
return
R
.
ok
(
"推送成功!!"
);
}
/**
* @Description: 推送审核结果的查询
* @Author: hgw
* @Date: 2024/5/23 18:09
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
public
R
<
String
>
getOneAppGetModuleDetailByShenBao
(
TSocialSoldierShenBaoTask
task
,
MultipartFile
file
,
String
type
)
{
// 1获取模板id——社保增员、社保减员、医保增员、医保减员
Map
<
String
,
String
>
moduleDetailMap
=
socialConfig
.
getOneModuleDetailMap
(
restTemplate
);
if
(
moduleDetailMap
!=
null
&&
!
moduleDetailMap
.
isEmpty
()
&&
moduleDetailMap
.
get
(
type
)
!=
null
)
{
// 2获取机器id
String
terminalId
=
socialConfig
.
getTwoTerminalId
(
restTemplate
,
moduleDetailMap
.
get
(
type
));
if
(
Common
.
isNotNull
(
terminalId
))
{
// 3上传文件,获取文件地址
String
fileAddUrl
=
socialConfig
.
getThreeTerminalId
(
restTemplate
,
file
);
// 4 推送办理任务,返回任务id:
String
addId
=
socialConfig
.
getFourAppAdd
(
restTemplate
,
fileAddUrl
,
moduleDetailMap
.
get
(
type
),
terminalId
);
task
.
setAddId
(
addId
);
tSocialSoldierShenBaoTaskService
.
save
(
task
);
}
}
return
R
.
ok
(
"推送成功!"
);
}
/**
* @Description: 推送审核结果的查询
* @Author: hgw
...
...
@@ -328,6 +345,22 @@ public class TSocialSoldierPushServiceImpl extends ServiceImpl<TSocialSoldierMap
return
R
.
ok
(
"推送成功!"
);
}
/**
* @Description: 组装社保与医保的文件流
* @Author: hgw
* @Date: 2024/5/23 17:59
* @return: org.springframework.web.multipart.MultipartFile
**/
public
MultipartFile
getFile
(
List
list
,
Class
clazz
,
String
sheetName
)
{
String
fileName
=
"soldierFile"
+
DateUtil
.
getThisTime
()
+
new
Date
().
getTime
()
+
CommonConstants
.
XLSX
;
if
(
list
!=
null
)
{
EasyExcelFactory
.
write
(
fileName
,
clazz
).
sheet
(
sheetName
).
doWrite
(
list
);
File
file
=
new
File
(
fileName
);
return
getMultipartFile
(
file
);
}
return
null
;
}
/**
* @Description: 组装社保与医保的文件流
* @Author: hgw
...
...
@@ -345,4 +378,42 @@ public class TSocialSoldierPushServiceImpl extends ServiceImpl<TSocialSoldierMap
return
getMultipartFile
(
file
);
}
/**
* @Description: 推送社保士兵工资申报、调整
* @Author: hgw
* @Date: 2024-5-23 18:02:27
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
@Override
public
R
<
String
>
pushSalaryByShenBao
()
{
// 养工失待审核列表
List
<
SocialSoldierSalaryShenBaoVo
>
shenBaolist
=
baseMapper
.
getSoldierSalaryByShenBaoList
();
log
.
info
(
"工资申报列表="
+
shenBaolist
);
String
sheetName
=
"年度缴费工资申报"
;
if
(
shenBaolist
!=
null
&&
!
shenBaolist
.
isEmpty
())
{
MultipartFile
file
=
this
.
getFile
(
shenBaolist
,
SocialSoldierSalaryShenBaoVo
.
class
,
sheetName
);
if
(
Common
.
isNotNull
(
file
))
{
TSocialSoldierShenBaoTask
task
=
new
TSocialSoldierShenBaoTask
();
task
.
setType
(
CommonConstants
.
ONE_STRING
);
this
.
getOneAppGetModuleDetailByShenBao
(
task
,
file
,
sheetName
);
}
}
// 养工失待审核列表
List
<
SocialSoldierSalaryTiaoZhengVo
>
tiaoZhenglist
=
baseMapper
.
getSoldierSalaryByTiaoZhengList
();
log
.
info
(
"工资调整列表="
+
tiaoZhenglist
);
sheetName
=
"年度缴费工资调整"
;
if
(
tiaoZhenglist
!=
null
&&
!
tiaoZhenglist
.
isEmpty
())
{
MultipartFile
file
=
this
.
getFile
(
tiaoZhenglist
,
SocialSoldierSalaryTiaoZhengVo
.
class
,
sheetName
);
if
(
Common
.
isNotNull
(
file
))
{
TSocialSoldierShenBaoTask
task
=
new
TSocialSoldierShenBaoTask
();
task
.
setType
(
CommonConstants
.
TWO_STRING
);
this
.
getOneAppGetModuleDetailByShenBao
(
task
,
file
,
sheetName
);
}
}
if
(
shenBaolist
==
null
||
tiaoZhenglist
==
null
)
{
return
R
.
failed
(
"无数据,推送结束!"
);
}
return
R
.
ok
(
"推送成功!!"
);
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialSoldierServiceImpl.java
View file @
82c98e4b
...
...
@@ -52,7 +52,6 @@ import java.io.*;
import
java.net.HttpURLConnection
;
import
java.net.URL
;
import
java.net.URLEncoder
;
import
java.nio.charset.StandardCharsets
;
import
java.text.DecimalFormat
;
import
java.util.*
;
import
java.util.zip.ZipEntry
;
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocial
AutoAudit
TaskServiceImpl.java
→
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocial
SoldierShenBao
TaskServiceImpl.java
View file @
82c98e4b
...
...
@@ -17,9 +17,9 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocial
AutoAudit
Task
;
import
com.yifu.cloud.plus.v1.yifu.social.mapper.TSocial
AutoAudit
TaskMapper
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TSocial
AutoAudit
TaskService
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocial
SoldierShenBao
Task
;
import
com.yifu.cloud.plus.v1.yifu.social.mapper.TSocial
SoldierShenBao
TaskMapper
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TSocial
SoldierShenBao
TaskService
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
...
...
@@ -33,16 +33,16 @@ import java.util.List;
*/
@Log4j2
@Service
public
class
TSocial
AutoAuditTaskServiceImpl
extends
ServiceImpl
<
TSocialAutoAuditTaskMapper
,
TSocialAutoAuditTask
>
implements
TSocialAutoAudit
TaskService
{
public
class
TSocial
SoldierShenBaoTaskServiceImpl
extends
ServiceImpl
<
TSocialSoldierShenBaoTaskMapper
,
TSocialSoldierShenBaoTask
>
implements
TSocialSoldierShenBao
TaskService
{
/**
* 社保自动化审核提交后的审核结果查询记录表简单分页查询
*
* @param tSocial
AutoAudit
Task 社保自动化审核提交后的审核结果查询记录表
* @param tSocial
SoldierShenBao
Task 社保自动化审核提交后的审核结果查询记录表
* @return
*/
@Override
public
List
<
TSocial
AutoAuditTask
>
getTSocialAutoAuditTaskList
(
TSocialAutoAuditTask
tSocialAutoAudit
Task
)
{
return
baseMapper
.
getTSocial
AutoAuditTaskList
(
tSocialAutoAudit
Task
);
public
List
<
TSocial
SoldierShenBaoTask
>
getTSocialSoldierShenBaoTaskList
(
TSocialSoldierShenBaoTask
tSocialSoldierShenBao
Task
)
{
return
baseMapper
.
getTSocial
SoldierShenBaoTaskList
(
tSocialSoldierShenBao
Task
);
}
}
yifu-social/yifu-social-biz/src/main/resources/mapper/TSocialSoldierMapper.xml
View file @
82c98e4b
...
...
@@ -221,4 +221,63 @@
group by s.id
</select>
<!-- 工资申报 -->
<select
id=
"getSoldierSalaryByShenBaoList"
resultType=
"com.yifu.cloud.plus.v1.yifu.social.vo.SocialSoldierSalaryShenBaoVo"
>
select
a.companyNo,a.companyName,a.empName,a.empIdCardType,a.empIdCard,a.fenZu,a.oldSalary
,a.newSalary,a.yangLao,a.shiYe,a.yiLiao,a.daBing,a.gongShang,a.shenBaoType,a.returnInfo
from (
select
'' companyNo,s.SOCIAL_HOUSEHOLD_NAME companyName,s.EMP_NAME empName,'201 - 居民身份证' empIdCardType
,s.EMP_IDCARD empIdCard,'' fenZu,'' oldSalary,s.RECORD_BASE newSalary,s.UNIT_PENSION_CARDINAL yangLao
,s.UNIT_UNEMPLOYMENT_CARDINAL shiYe,s.UNIT_MEDICAL_CARDINAL yiLiao,s.UNIT_BIGAILMENT_CARDINAL daBing
,s.UNIT_WORK_INJURY_CARDINAL gongShang,'按人申报' shenBaoType,'1' returnInfo
from t_social_info s
left join t_dispatch_info d on s.id=d.SOCIAL_ID
where DATE_FORMAT(d.CREATE_TIME,'%Y%m') = DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 1 MONTH),'%Y%m')
and s.HANDLE_STATUS in ('1','5','6','7') and d.type = '0' and DATE_FORMAT(s.SOCIAL_START_DATE,'%Y%m')
<![CDATA[ < ]]>
DATE_FORMAT(now(),'%Y%m')
union all
select
'' companyNo,s.SOCIAL_HOUSEHOLD_NAME companyName,s.EMP_NAME empName,'201 - 居民身份证' empIdCardType
,s.EMP_IDCARD empIdCard,'' fenZu,'' oldSalary,s.RECORD_BASE newSalary,s.UNIT_PENSION_CARDINAL yangLao
,s.UNIT_UNEMPLOYMENT_CARDINAL shiYe,s.UNIT_MEDICAL_CARDINAL yiLiao,s.UNIT_BIGAILMENT_CARDINAL daBing
,s.UNIT_WORK_INJURY_CARDINAL gongShang,'按人申报' shenBaoType,'2' returnInfo
from t_social_info s
left join t_dispatch_info d on s.id=d.SOCIAL_ID
where DATE_FORMAT(d.CREATE_TIME,'%Y%m') = DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 1 MONTH),'%Y%m')
and s.HANDLE_STATUS = '3' and d.type = '0' and DATE_FORMAT(s.SOCIAL_START_DATE,'%Y%m')
<![CDATA[ < ]]>
DATE_FORMAT(now(),'%Y%m')
) a GROUP BY a.empIdCard
</select>
<!-- 工资调整 -->
<select
id=
"getSoldierSalaryByTiaoZhengList"
resultType=
"com.yifu.cloud.plus.v1.yifu.social.vo.SocialSoldierSalaryTiaoZhengVo"
>
select
a.companyNo,a.companyName,a.shengXiaoYear,a.empName,a.empIdCardType,a.empIdCard,a.fenZu,a.oldSalary
,a.newSalary,a.yangLao,a.shiYe,a.yiLiao,a.gongShang,a.shenBaoType,a.returnInfo
from (
select
'' companyNo,s.SOCIAL_HOUSEHOLD_NAME companyName,'' shengXiaoYear,s.EMP_NAME empName,'201 - 居民身份证' empIdCardType
,s.EMP_IDCARD empIdCard,'' fenZu,'' oldSalary,s.RECORD_BASE newSalary,s.UNIT_PENSION_CARDINAL yangLao
,s.UNIT_UNEMPLOYMENT_CARDINAL shiYe,s.UNIT_MEDICAL_CARDINAL yiLiao
,s.UNIT_WORK_INJURY_CARDINAL gongShang,'按人申报' shenBaoType,'1' returnInfo
from t_social_info s
left join t_dispatch_info d on s.id=d.SOCIAL_ID
where DATE_FORMAT(d.CREATE_TIME,'%Y%m') = DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 1 MONTH),'%Y%m')
and s.HANDLE_STATUS in ('1','5','6','7') and d.type = '0'
and DATE_FORMAT(s.SOCIAL_START_DATE,'%Y%m')
<![CDATA[ < ]]>
DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 1 YEAR),'%Y12')
union all
select
'' companyNo,s.SOCIAL_HOUSEHOLD_NAME companyName,'' shengXiaoYear,s.EMP_NAME empName,'201 - 居民身份证' empIdCardType
,s.EMP_IDCARD empIdCard,'' fenZu,'' oldSalary,s.RECORD_BASE newSalary,s.UNIT_PENSION_CARDINAL yangLao
,s.UNIT_UNEMPLOYMENT_CARDINAL shiYe,s.UNIT_MEDICAL_CARDINAL yiLiao
,s.UNIT_WORK_INJURY_CARDINAL gongShang,'按人申报' shenBaoType,'2' returnInfo
from t_social_info s
left join t_dispatch_info d on s.id=d.SOCIAL_ID
where DATE_FORMAT(d.CREATE_TIME,'%Y%m') = DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 1 MONTH),'%Y%m')
and s.HANDLE_STATUS = '3' and d.type = '0'
and DATE_FORMAT(s.SOCIAL_START_DATE,'%Y%m')
<![CDATA[ < ]]>
DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 1 YEAR),'%Y12')
) a GROUP BY a.empIdCard
</select>
</mapper>
yifu-social/yifu-social-biz/src/main/resources/mapper/TSocial
AutoAudit
TaskMapper.xml
→
yifu-social/yifu-social-biz/src/main/resources/mapper/TSocial
SoldierShenBao
TaskMapper.xml
View file @
82c98e4b
...
...
@@ -21,11 +21,11 @@
<!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.TSocial
AutoAudit
TaskMapper"
>
<mapper
namespace=
"com.yifu.cloud.plus.v1.yifu.social.mapper.TSocial
SoldierShenBao
TaskMapper"
>
<resultMap
id=
"tSocial
AutoAuditTaskMap"
type=
"com.yifu.cloud.plus.v1.yifu.social.entity.TSocialAutoAudit
Task"
>
<resultMap
id=
"tSocial
SoldierShenBaoTaskMap"
type=
"com.yifu.cloud.plus.v1.yifu.social.entity.TSocialSoldierShenBao
Task"
>
<id
property=
"id"
column=
"ID"
/>
<result
property=
"a
uditId"
column=
"AUDIT
_ID"
/>
<result
property=
"a
ddId"
column=
"ADD
_ID"
/>
<result
property=
"type"
column=
"TYPE"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
...
...
@@ -35,7 +35,7 @@
</resultMap>
<sql
id=
"Base_Column_List"
>
a.ID,
a.A
UDIT
_ID,
a.A
DD
_ID,
a.TYPE,
a.CREATE_BY,
a.UPDATE_BY,
...
...
@@ -43,42 +43,42 @@
a.UPDATE_TIME,
a.CREATE_TIME
</sql>
<sql
id=
"tSocial
AutoAudit
Task_where"
>
<if
test=
"tSocial
AutoAudit
Task != null"
>
<if
test=
"tSocial
AutoAuditTask.id != null and tSocialAutoAudit
Task.id.trim() != ''"
>
AND a.ID = #{tSocial
AutoAudit
Task.id}
<sql
id=
"tSocial
SoldierShenBao
Task_where"
>
<if
test=
"tSocial
SoldierShenBao
Task != null"
>
<if
test=
"tSocial
SoldierShenBaoTask.id != null and tSocialSoldierShenBao
Task.id.trim() != ''"
>
AND a.ID = #{tSocial
SoldierShenBao
Task.id}
</if>
<if
test=
"tSocial
AutoAuditTask.auditId != null and tSocialAutoAuditTask.audit
Id.trim() != ''"
>
AND a.A
UDIT_ID = #{tSocialAutoAuditTask.audit
Id}
<if
test=
"tSocial
SoldierShenBaoTask.addId != null and tSocialSoldierShenBaoTask.add
Id.trim() != ''"
>
AND a.A
DD_ID = #{tSocialSoldierShenBaoTask.add
Id}
</if>
<if
test=
"tSocial
AutoAuditTask.type != null and tSocialAutoAudit
Task.type.trim() != ''"
>
AND a.TYPE = #{tSocial
AutoAudit
Task.type}
<if
test=
"tSocial
SoldierShenBaoTask.type != null and tSocialSoldierShenBao
Task.type.trim() != ''"
>
AND a.TYPE = #{tSocial
SoldierShenBao
Task.type}
</if>
<if
test=
"tSocial
AutoAuditTask.createBy != null and tSocialAutoAudit
Task.createBy.trim() != ''"
>
AND a.CREATE_BY = #{tSocial
AutoAudit
Task.createBy}
<if
test=
"tSocial
SoldierShenBaoTask.createBy != null and tSocialSoldierShenBao
Task.createBy.trim() != ''"
>
AND a.CREATE_BY = #{tSocial
SoldierShenBao
Task.createBy}
</if>
<if
test=
"tSocial
AutoAuditTask.updateBy != null and tSocialAutoAudit
Task.updateBy.trim() != ''"
>
AND a.UPDATE_BY = #{tSocial
AutoAudit
Task.updateBy}
<if
test=
"tSocial
SoldierShenBaoTask.updateBy != null and tSocialSoldierShenBao
Task.updateBy.trim() != ''"
>
AND a.UPDATE_BY = #{tSocial
SoldierShenBao
Task.updateBy}
</if>
<if
test=
"tSocial
AutoAuditTask.createName != null and tSocialAutoAudit
Task.createName.trim() != ''"
>
AND a.CREATE_NAME = #{tSocial
AutoAudit
Task.createName}
<if
test=
"tSocial
SoldierShenBaoTask.createName != null and tSocialSoldierShenBao
Task.createName.trim() != ''"
>
AND a.CREATE_NAME = #{tSocial
SoldierShenBao
Task.createName}
</if>
<if
test=
"tSocial
AutoAudit
Task.updateTime != null"
>
AND a.UPDATE_TIME = #{tSocial
AutoAudit
Task.updateTime}
<if
test=
"tSocial
SoldierShenBao
Task.updateTime != null"
>
AND a.UPDATE_TIME = #{tSocial
SoldierShenBao
Task.updateTime}
</if>
<if
test=
"tSocial
AutoAudit
Task.createTime != null"
>
AND a.CREATE_TIME = #{tSocial
AutoAudit
Task.createTime}
<if
test=
"tSocial
SoldierShenBao
Task.createTime != null"
>
AND a.CREATE_TIME = #{tSocial
SoldierShenBao
Task.createTime}
</if>
</if>
</sql>
<!--list-->
<select
id=
"getTSocial
AutoAuditTaskList"
resultMap=
"tSocialAutoAudit
TaskMap"
>
<select
id=
"getTSocial
SoldierShenBaoTaskList"
resultMap=
"tSocialSoldierShenBao
TaskMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM t_social_
auto_audit
_task a
FROM t_social_
soldier_shen_bao
_task a
<where>
1=1
<include
refid=
"tSocial
AutoAudit
Task_where"
/>
<include
refid=
"tSocial
SoldierShenBao
Task_where"
/>
</where>
</select>
</mapper>
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