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
6703d4e4
Commit
6703d4e4
authored
Oct 11, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.7.16' into MVP1.7.16
parents
36f148cb
18bf42e6
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
740 additions
and
13 deletions
+740
-13
TAutoSocialRuleInfo.java
...oud/plus/v1/yifu/archives/entity/TAutoSocialRuleInfo.java
+3
-4
TAutoSocialRuleRel.java
...loud/plus/v1/yifu/archives/entity/TAutoSocialRuleRel.java
+9
-0
TAutoMainRelAddVo.java
...ifu/cloud/plus/v1/yifu/archives/vo/TAutoMainRelAddVo.java
+1
-1
TAutoSocialRuleInfoVo.java
...cloud/plus/v1/yifu/archives/vo/TAutoSocialRuleInfoVo.java
+1
-2
TAutoMainRelServiceImpl.java
...1/yifu/archives/service/impl/TAutoMainRelServiceImpl.java
+58
-4
TAutoSocialRuleRelMapper.xml
...iz/src/main/resources/mapper/TAutoSocialRuleRelMapper.xml
+3
-1
SocialDaprUtils.java
.../cloud/plus/v1/yifu/common/dapr/util/SocialDaprUtils.java
+17
-0
SysBaseSetInfoVo.java
...m/yifu/cloud/plus/v1/yifu/social/vo/SysBaseSetInfoVo.java
+627
-0
SysBaseSetInfoController.java
...s/v1/yifu/social/controller/SysBaseSetInfoController.java
+21
-1
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TAutoSocialRuleInfo.java
View file @
6703d4e4
...
...
@@ -52,8 +52,7 @@ public class TAutoSocialRuleInfo extends BaseEntity {
/**
* 项目配置ID
*/
@ExcelAttribute
(
name
=
"项目配置ID"
,
isNotEmpty
=
true
,
errorInfo
=
"项目配置ID不能为空"
,
maxLength
=
32
)
@NotBlank
(
message
=
"项目配置ID不能为空"
)
@ExcelAttribute
(
name
=
"项目配置ID"
,
isNotEmpty
=
false
,
errorInfo
=
"项目配置ID不能为空"
,
maxLength
=
32
)
@Length
(
max
=
32
,
message
=
"项目配置ID不能超过32个字符"
)
@ExcelProperty
(
"项目配置ID"
)
@Schema
(
description
=
"项目配置ID"
)
...
...
@@ -70,7 +69,7 @@ public class TAutoSocialRuleInfo extends BaseEntity {
/**
* 派单发起时间(字典::0:入职满1个月...入职满6个月)
*/
@ExcelAttribute
(
name
=
"派单发起时间"
,
maxLength
=
2
,
isNotEmpty
=
tru
e
,
errorInfo
=
"派单发起时间不能为空"
)
@ExcelAttribute
(
name
=
"派单发起时间"
,
maxLength
=
2
,
isNotEmpty
=
fals
e
,
errorInfo
=
"派单发起时间不能为空"
)
@Length
(
max
=
2
,
message
=
"派单发起时间不能超过2个字符"
)
@ExcelProperty
(
"派单发起时间"
)
@Schema
(
description
=
"派单发起时间(字典::0:入职满1个月...入职满6个月)"
)
...
...
@@ -86,7 +85,7 @@ public class TAutoSocialRuleInfo extends BaseEntity {
/**
* 派单确认时间,字典:0:派单发起当日
*/
@ExcelAttribute
(
name
=
"派单确认时间"
,
maxLength
=
50
,
isNotEmpty
=
tru
e
,
errorInfo
=
"派单发起时间不能为空"
)
@ExcelAttribute
(
name
=
"派单确认时间"
,
maxLength
=
50
,
isNotEmpty
=
fals
e
,
errorInfo
=
"派单发起时间不能为空"
)
@Length
(
max
=
50
,
message
=
"派单确认时间不能超过50个字符"
)
@ExcelProperty
(
"派单确认时间"
)
@Schema
(
description
=
"派单确认时间,字典:0:派单发起当日"
)
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TAutoSocialRuleRel.java
View file @
6703d4e4
...
...
@@ -74,6 +74,15 @@ public class TAutoSocialRuleRel extends BaseEntity {
@ExcelProperty
(
"社保户ID"
)
@Schema
(
description
=
"社保户ID"
)
private
String
configHouseId
;
/**
* 社保户名称
*/
@ExcelAttribute
(
name
=
"社保户名称"
,
maxLength
=
50
,
isNotEmpty
=
true
,
errorInfo
=
"社保户名称不能为空"
)
@Length
(
max
=
50
,
message
=
"社保户名称不能超过50个字符"
)
@ExcelProperty
(
"社保户名称"
)
@Schema
(
description
=
"社保户名称"
)
private
String
configHouseName
;
/**
* 社保起缴日期是否一致(0-是,1-否)
*/
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TAutoMainRelAddVo.java
View file @
6703d4e4
...
...
@@ -48,7 +48,7 @@ public class TAutoMainRelAddVo implements Serializable {
private
List
<
TAutoContractScheme
>
contractSchemes
;
//社保规则主表
private
TAutoSocialRuleInfo
autoS
ocialRuleInfo
;
private
TAutoSocialRuleInfo
s
ocialRuleInfo
;
//社保规则明细表
private
List
<
TAutoSocialRuleRel
>
socialRuleRels
;
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TAutoSocialRuleInfoVo.java
View file @
6703d4e4
...
...
@@ -50,9 +50,8 @@ public class TAutoSocialRuleInfoVo extends RowIndex implements Serializable {
/**
* 项目配置ID
*/
@NotBlank
(
message
=
"项目配置ID 不能为空"
)
@Length
(
max
=
32
,
message
=
"项目配置ID 不能超过32 个字符"
)
@ExcelAttribute
(
name
=
"项目配置ID"
,
isNotEmpty
=
tru
e
,
errorInfo
=
"项目配置ID 不能为空"
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"项目配置ID"
,
isNotEmpty
=
fals
e
,
errorInfo
=
"项目配置ID 不能为空"
,
maxLength
=
32
)
@Schema
(
description
=
"项目配置ID"
)
@ExcelProperty
(
"项目配置ID"
)
private
String
mainId
;
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TAutoMainRelServiceImpl.java
View file @
6703d4e4
...
...
@@ -38,8 +38,12 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.equator.HrEquator
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.ArchivesDaprUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.SocialDaprUtils
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.SysBaseSetInfo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.SysBaseSetInfoVo
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -48,6 +52,7 @@ import javax.servlet.ServletOutputStream;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.math.BigDecimal
;
import
java.net.URLEncoder
;
import
java.time.LocalDateTime
;
import
java.util.*
;
...
...
@@ -103,6 +108,9 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
@Autowired
private
TAutoSocialRuleRelMapper
autoSocialRuleRelMapper
;
@Autowired
private
SocialDaprUtils
socialDaprUtils
;
public
static
final
String
itemsLabel
=
"label,description,disable"
;
public
static
final
String
itemsLabelRepeat
=
"同一项目岗位名称不可重复"
;
...
...
@@ -366,7 +374,7 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
return
PARAM_IS_NOT_ERROR
;
}
//校验社保规则主表信息
TAutoSocialRuleInfo
autoSocialRuleInfo
=
entity
.
get
Auto
SocialRuleInfo
();
TAutoSocialRuleInfo
autoSocialRuleInfo
=
entity
.
getSocialRuleInfo
();
if
(
Common
.
isNotNull
(
autoSocialRuleInfo
)){
ExcelUtil
<
TAutoSocialRuleInfo
>
excelUtil
=
new
ExcelUtil
<>(
TAutoSocialRuleInfo
.
class
);
ErrorMessage
errorMessage
=
excelUtil
.
checkEntity
(
autoSocialRuleInfo
,
0
);
...
...
@@ -704,7 +712,7 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
}
//校验社保规则主表信息
TAutoSocialRuleInfo
autoSocialRuleNew
=
entity
.
get
Auto
SocialRuleInfo
();
TAutoSocialRuleInfo
autoSocialRuleNew
=
entity
.
getSocialRuleInfo
();
TAutoSocialRuleInfo
autoSocialRuleOld
=
null
;
if
(
Common
.
isNotNull
(
autoSocialRuleNew
)){
// 检查社保规则信息的有效性
...
...
@@ -797,6 +805,7 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
if
(
Common
.
isNotNull
(
autoSocialRuleNew
.
getId
())){
autoSocialRuleNew
.
setUpdateBy
(
user
.
getId
());
autoSocialRuleNew
.
setUpdateTime
(
LocalDateTime
.
now
());
autoContractRuleNew
.
setMainId
(
autoMainRel
.
getId
());
autoSocialRuleInfoMapper
.
updateById
(
autoSocialRuleNew
);
}
else
{
autoSocialRuleNew
.
setDeptNo
(
autoMainRel
.
getDeptNo
());
...
...
@@ -1305,6 +1314,39 @@ private R<Boolean> checkItemRepeat(List<SysAutoDictItem> autoDictItems, Map<Stri
if
(
Common
.
isNotNull
(
errorMessage
)){
return
R
.
failed
(
errorMessage
.
getMessage
());
}
//针对"备案基数类型"为"固定值"时,"备案基数"必填,"缴纳类型"为"最高或最低"
//时,配置提交时,会将"备案基数"同该社保户对应的最高或最低的基数进行对比,"备案基
//数"等于社保户的最高或最低基数
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
rel
.
getRecordBaseType
())){
if
(!
Common
.
isNotNull
(
rel
.
getRecordBase
())){
return
R
.
failed
(
"备案基数不可空"
);
}
if
((
CommonConstants
.
ZERO_STRING
.
equals
(
rel
.
getPaymentType
())
||
CommonConstants
.
TWO_STRING
.
equals
(
rel
.
getPaymentType
()))){
R
<
SysBaseSetInfoVo
>
resR
=
socialDaprUtils
.
getSocialHouseBaseSet
(
rel
.
getConfigHouseId
());
if
(
Common
.
isNotNull
(
resR
)
&&
resR
.
getData
()
!=
null
)
{
SysBaseSetInfoVo
setInfo
=
resR
.
getData
();
if
(
Common
.
isNotNull
(
setInfo
))
{
try
{
// 添加了异常处理,避免 recordBase 不是合法数字格式时程序崩溃
if
(
CommonConstants
.
TWO_STRING
.
equals
(
rel
.
getPaymentType
()))
{
if
(
BigDecimal
.
valueOf
(
Double
.
valueOf
(
rel
.
getRecordBase
())).
compareTo
(
setInfo
.
getUpperLimit
())
!=
0
)
{
return
R
.
failed
(
"备案基数不等于社保户最高基数:"
+
setInfo
.
getUpperLimit
());
}
}
else
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
rel
.
getPaymentType
())){
if
(
BigDecimal
.
valueOf
(
Double
.
valueOf
(
rel
.
getRecordBase
())).
compareTo
(
setInfo
.
getLowerLimit
())
!=
0
)
{
return
R
.
failed
(
"备案基数不等于社保户最低基数:"
+
setInfo
.
getLowerLimit
());
}
}
}
catch
(
NumberFormatException
e
)
{
return
R
.
failed
(
"备案基数格式不正确"
);
}
}
}
else
{
return
R
.
failed
(
"获取社保配置信息失败!"
);
}
}
}
}
// 校验socialRuleRels 配置名称是否重复
Set
<
String
>
names
=
socialRuleRels
.
stream
().
map
(
TAutoSocialRuleRel:
:
getConfigName
).
collect
(
Collectors
.
toSet
());
...
...
@@ -1353,8 +1395,20 @@ private R<Boolean> checkItemRepeat(List<SysAutoDictItem> autoDictItems, Map<Stri
if
(
null
==
autoMainRel
){
return
R
.
failed
(
CommonConstants
.
PARAM_INFO_ERROR
);
}
autoMainRel
.
setAutoFlag
(
autoFlag
);
if
(
baseMapper
.
updateById
(
autoMainRel
)
>=
0
){
TAutoMainRel
autoMainRelNew
=
new
TAutoMainRel
();
BeanUtils
.
copyProperties
(
autoMainRel
,
autoMainRelNew
);
autoMainRelNew
.
setAutoFlag
(
autoFlag
);
if
(
baseMapper
.
updateById
(
autoMainRelNew
)
>=
0
){
if
(!
autoMainRelNew
.
getAutoFlag
().
equals
(
autoMainRel
.
getAutoFlag
())){
Map
<
String
,
String
>
diffKeyMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
oldMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
newMap
=
new
HashMap
<>();
diffKeyMap
.
put
(
"autoMailRel"
,
"autoMailRel"
);
oldMap
.
put
(
"oldAutoMailRel"
,
autoMainRel
);
newMap
.
put
(
"newAutoMailRel"
,
autoMainRelNew
);
insertLog
(
autoMainRel
,
diffKeyMap
,
oldMap
,
newMap
);
}
return
R
.
ok
();
}
return
R
.
failed
();
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TAutoSocialRuleRelMapper.xml
View file @
6703d4e4
...
...
@@ -28,6 +28,7 @@
<result
property=
"mainId"
column=
"MAIN_ID"
/>
<result
property=
"configName"
column=
"CONFIG_NAME"
/>
<result
property=
"configHouseId"
column=
"CONFIG_HOUSE_ID"
/>
<result
property=
"configHouseName"
column=
"CONFIG_HOUSE_NAME"
/>
<result
property=
"socialDateFlag"
column=
"SOCIAL_DATE_FLAG"
/>
<result
property=
"socialDateType"
column=
"SOCIAL_DATE_TYPE"
/>
<result
property=
"paymentType"
column=
"PAYMENT_TYPE"
/>
...
...
@@ -60,7 +61,8 @@
a.CREATE_TIME,
a.UPDATE_BY,
a.UPDATE_NAME,
a.UPDATE_TIME
a.UPDATE_TIME,
a.CONFIG_HOUSE_NAME
</sql>
<sql
id=
"tAutoSocialRuleRel_where"
>
<if
test=
"tAutoSocialRuleRel != null"
>
...
...
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/SocialDaprUtils.java
View file @
6703d4e4
...
...
@@ -10,8 +10,10 @@ import com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprSocialProperties;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.EkpInsuranceViewVo
;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.EkpSocialViewVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.*
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.SysBaseSetInfo
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TIncomeDetail
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TPaymentInfo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.SysBaseSetInfoVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.TEmployeeInsuranceWorkDayVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.TIncomeDetailReturnVo
;
import
lombok.extern.log4j.Log4j2
;
...
...
@@ -236,4 +238,19 @@ public class SocialDaprUtils {
return
HttpDaprUtil
.
invokeMethodPost
(
daprProperties
.
getAppUrl
(),
daprProperties
.
getAppId
(),
"/tdispatchinfopre/saveSocialPreInfo"
,
JSON
.
toJSONString
(
preVo
),
Boolean
.
class
,
SecurityConstants
.
FROM_IN
);
}
/**
* @Author fxj
* @Description 获取社保配置信息
* @Date 12:11 2025/10/11
* @Param
* @return
**/
public
R
<
SysBaseSetInfoVo
>
getSocialHouseBaseSet
(
String
houseId
)
{
R
<
SysBaseSetInfoVo
>
res
=
HttpDaprUtil
.
invokeMethodPost
(
daprProperties
.
getAppUrl
(),
daprProperties
.
getAppId
(),
"/sysbasesetinfo/inner/getSocialHouseBaseSet"
,
houseId
,
SysBaseSetInfoVo
.
class
,
SecurityConstants
.
FROM_IN
);
if
(
Common
.
isEmpty
(
res
)){
return
R
.
failed
(
"获取社保配置信息失败!"
);
}
return
res
;
}
}
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/SysBaseSetInfoVo.java
0 → 100644
View file @
6703d4e4
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.write.style.HeadFontStyle
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.SysPayProportion
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
/**
* @Author fxj
* @Date 2025/10/11
* @Description
* @Version 1.0
*/
@Data
public
class
SysBaseSetInfoVo
implements
Serializable
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ExcelAttribute
(
name
=
"主键"
)
@Schema
(
description
=
"主键"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"主键"
)
private
String
id
;
/**
* 缴纳地-省(社保或公积金)
*/
@ExcelAttribute
(
name
=
"缴纳地-省(社保或公积金)"
)
@Schema
(
description
=
"缴纳地-省(社保或公积金)"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"缴纳地-省(社保或公积金)"
)
private
Integer
province
;
/**
* 缴纳地-市(社保或公积金)
*/
@ExcelAttribute
(
name
=
"缴纳地-市(社保或公积金)"
)
@Schema
(
description
=
"缴纳地-市(社保或公积金)"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"缴纳地-市(社保或公积金)"
)
private
Integer
city
;
/**
* 缴纳地-县(社保或公积金)
*/
@ExcelAttribute
(
name
=
"缴纳地-县(社保或公积金)"
)
@Schema
(
description
=
"缴纳地-县(社保或公积金)"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"缴纳地-县(社保或公积金)"
)
private
Integer
town
;
/**
* 适用周期-开始时间(社保或公积金)
*/
@ExcelAttribute
(
name
=
"适用周期-开始时间(社保或公积金)"
)
@Schema
(
description
=
"适用周期-开始时间(社保或公积金)"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"适用周期-开始时间(社保或公积金)"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"yyyy-MM-dd"
)
private
Date
applyStartDate
;
/**
* 适用周期-结束时间(社保或公积金)
*/
@ExcelAttribute
(
name
=
"适用周期-结束时间(社保或公积金)"
)
@Schema
(
description
=
"适用周期-结束时间(社保或公积金)"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"适用周期-结束时间(社保或公积金)"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"yyyy-MM-dd"
)
private
Date
applyEndDate
;
/**
* 基数上限(社保或公积金)
*/
@ExcelAttribute
(
name
=
"基数上限(社保或公积金)"
)
@Schema
(
description
=
"基数上限(社保或公积金)"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"基数上限(社保或公积金)"
)
private
BigDecimal
upperLimit
;
/**
* 基数下限(社保或公积金)
*/
@ExcelAttribute
(
name
=
"基数下限(社保或公积金)"
)
@Schema
(
description
=
"基数下限(社保或公积金)"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"基数下限(社保或公积金)"
)
private
BigDecimal
lowerLimit
;
/**
* 养老基数上限
*/
@ExcelAttribute
(
name
=
"养老基数上限"
)
@Schema
(
description
=
"养老基数上限"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"养老基数上限"
)
private
BigDecimal
upPersion
;
/**
* 医疗基数上限
*/
@ExcelAttribute
(
name
=
"医疗基数上限"
)
@Schema
(
description
=
"医疗基数上限"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"医疗基数上限"
)
private
BigDecimal
upMedical
;
/**
* 失业基数上限
*/
@ExcelAttribute
(
name
=
"失业基数上限"
)
@Schema
(
description
=
"失业基数上限"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"失业基数上限"
)
private
BigDecimal
upUnemployment
;
/**
* 工伤基数上限
*/
@ExcelAttribute
(
name
=
"工伤基数上限"
)
@Schema
(
description
=
"工伤基数上限"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"工伤基数上限"
)
private
BigDecimal
upInjury
;
/**
* 生育基数上限
*/
@ExcelAttribute
(
name
=
"生育基数上限"
)
@Schema
(
description
=
"生育基数上限"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"生育基数上限"
)
private
BigDecimal
upBirth
;
/**
* 大病基数上限
*/
@ExcelAttribute
(
name
=
"大病基数上限"
)
@Schema
(
description
=
"大病基数上限"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"大病基数上限"
)
private
BigDecimal
upBig
;
/**
* 养老基数下限
*/
@ExcelAttribute
(
name
=
"养老基数下限"
)
@Schema
(
description
=
"养老基数下限"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"养老基数下限"
)
private
BigDecimal
lowerPersion
;
/**
* 医疗基数下限
*/
@ExcelAttribute
(
name
=
"医疗基数下限"
)
@Schema
(
description
=
"医疗基数下限"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"医疗基数下限"
)
private
BigDecimal
lowerMedical
;
/**
* 失业基数下限
*/
@ExcelAttribute
(
name
=
"失业基数下限"
)
@Schema
(
description
=
"失业基数下限"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"失业基数下限"
)
private
BigDecimal
lowerUnemployment
;
/**
* 工伤基数下限
*/
@ExcelAttribute
(
name
=
"工伤基数下限"
)
@Schema
(
description
=
"工伤基数下限"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"工伤基数下限"
)
private
BigDecimal
lowerInjury
;
/**
* 生育基数下限
*/
@ExcelAttribute
(
name
=
"生育基数下限"
)
@Schema
(
description
=
"生育基数下限"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"生育基数下限"
)
private
BigDecimal
lowerBirth
;
/**
* 大病基数下限
*/
@ExcelAttribute
(
name
=
"大病基数下限"
)
@Schema
(
description
=
"大病基数下限"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"大病基数下限"
)
private
BigDecimal
lowerBig
;
/**
* 是否同一基数上下限: 0是;1否
*/
@ExcelAttribute
(
name
=
"是否同一基数上下限: 0是;1否"
)
@Schema
(
description
=
"是否同一基数上下限: 0是;1否"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"是否同一基数上下限: 0是;1否"
)
private
String
isSameBase
;
/**
* 补缴政策(社保或公积金)
*/
@ExcelAttribute
(
name
=
"补缴政策(社保或公积金)"
)
@Schema
(
description
=
"补缴政策(社保或公积金)"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"补缴政策(社保或公积金)"
)
private
String
payPolicy
;
/**
* 0.社保 1.公积金
*/
@ExcelAttribute
(
name
=
"0.社保 1.公积金"
)
@Schema
(
description
=
"0.社保 1.公积金"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"0.社保 1.公积金"
)
private
String
baseType
;
/**
* 单位养老缴纳比例
*/
@ExcelAttribute
(
name
=
"单位养老缴纳比例"
)
@Schema
(
description
=
"单位养老缴纳比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"单位养老缴纳比例"
)
private
BigDecimal
unitPersionPro
;
/**
* 单位医疗缴纳比例
*/
@ExcelAttribute
(
name
=
"单位医疗缴纳比例"
)
@Schema
(
description
=
"单位医疗缴纳比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"单位医疗缴纳比例"
)
private
BigDecimal
unitMedicalPro
;
/**
* 单位失业缴纳比例
*/
@ExcelAttribute
(
name
=
"单位失业缴纳比例"
)
@Schema
(
description
=
"单位失业缴纳比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"单位失业缴纳比例"
)
private
BigDecimal
unitUnemploymentPro
;
/**
* 单位工伤缴纳比例
*/
@ExcelAttribute
(
name
=
"单位工伤缴纳比例"
)
@Schema
(
description
=
"单位工伤缴纳比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"单位工伤缴纳比例"
)
private
BigDecimal
unitInjuryPro
;
/**
* 单位生育缴纳比例-已删除
*/
@ExcelAttribute
(
name
=
"单位生育缴纳比例-已删除"
)
@Schema
(
description
=
"单位生育缴纳比例-已删除"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"单位生育缴纳比例-已删除"
)
private
BigDecimal
unitBirthPro
;
/**
* 单位比例合计
*/
@ExcelAttribute
(
name
=
"单位比例合计"
)
@Schema
(
description
=
"单位比例合计"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"单位比例合计"
)
private
BigDecimal
unitProSum
;
/**
* 个人养老比例
*/
@ExcelAttribute
(
name
=
"个人养老比例"
)
@Schema
(
description
=
"个人养老比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"个人养老比例"
)
private
BigDecimal
personalPersionPro
;
/**
* 个人医疗比例
*/
@ExcelAttribute
(
name
=
"个人医疗比例"
)
@Schema
(
description
=
"个人医疗比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"个人医疗比例"
)
private
BigDecimal
personalMedicalPro
;
/**
* 个人失业比例
*/
@ExcelAttribute
(
name
=
"个人失业比例"
)
@Schema
(
description
=
"个人失业比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"个人失业比例"
)
private
BigDecimal
personalUnemploymentPro
;
/**
* 个人比例合计
*/
@ExcelAttribute
(
name
=
"个人比例合计"
)
@Schema
(
description
=
"个人比例合计"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"个人比例合计"
)
private
BigDecimal
personalProSum
;
/**
* 是否大病: 0收取;1不收取
*/
@ExcelAttribute
(
name
=
"是否大病: 0收取;1不收取"
)
@Schema
(
description
=
"是否大病: 0收取;1不收取"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"是否大病: 0收取;1不收取"
)
private
String
isIllness
;
/**
* 新员工入职是否收费 0.是 1.否
*/
@ExcelAttribute
(
name
=
"新员工入职是否收费 0.是 1.否"
)
@Schema
(
description
=
"新员工入职是否收费 0.是 1.否"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"新员工入职是否收费 0.是 1.否"
)
private
String
isChargePersonal
;
/**
* 单位大病金额(元/人)--按定值
*/
@ExcelAttribute
(
name
=
"单位大病金额(元/人)--按定值"
)
@Schema
(
description
=
"单位大病金额(元/人)--按定值"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"单位大病金额(元/人)--按定值"
)
private
BigDecimal
chargeCompany
;
/**
* 个人大病金额(元/人)--按定值
*/
@ExcelAttribute
(
name
=
"个人大病金额(元/人)--按定值"
)
@Schema
(
description
=
"个人大病金额(元/人)--按定值"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"个人大病金额(元/人)--按定值"
)
private
BigDecimal
chargePersonal
;
/**
* 大病缴纳周期:收取方式 0.按年 1.按月
*/
@ExcelAttribute
(
name
=
"大病缴纳周期:收取方式 0.按年 1.按月"
)
@Schema
(
description
=
"大病缴纳周期:收取方式 0.按年 1.按月"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"大病缴纳周期:收取方式 0.按年 1.按月"
)
private
String
collectType
;
/**
* 大病单位缴纳金额--按比例
*/
@ExcelAttribute
(
name
=
"大病单位缴纳金额--按比例"
)
@Schema
(
description
=
"大病单位缴纳金额--按比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"大病单位缴纳金额--按比例"
)
private
BigDecimal
payCompany
;
/**
* 单位大病比例
*/
@ExcelAttribute
(
name
=
"单位大病比例"
)
@Schema
(
description
=
"单位大病比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"单位大病比例"
)
private
BigDecimal
payCompanyPro
;
/**
* 大病个人缴纳金额--按比例
*/
@ExcelAttribute
(
name
=
"大病个人缴纳金额--按比例"
)
@Schema
(
description
=
"大病个人缴纳金额--按比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"大病个人缴纳金额--按比例"
)
private
BigDecimal
payPersonal
;
/**
* 个人大病比例
*/
@ExcelAttribute
(
name
=
"个人大病比例"
)
@Schema
(
description
=
"个人大病比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"个人大病比例"
)
private
BigDecimal
payPersonalPro
;
/**
* 缴纳月份:周期为年--收取月份 1到12月份
*/
@ExcelAttribute
(
name
=
"缴纳月份:周期为年--收取月份 1到12月份"
)
@Schema
(
description
=
"缴纳月份:周期为年--收取月份 1到12月份"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"缴纳月份:周期为年--收取月份 1到12月份"
)
private
Integer
collectMoth
;
/**
* 单边缴费额度下--公积金
*/
@ExcelAttribute
(
name
=
"单边缴费额度下--公积金"
)
@Schema
(
description
=
"单边缴费额度下--公积金"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"单边缴费额度下--公积金"
)
private
BigDecimal
fundPayLowerLimit
;
/**
* 单边缴费额度上限--公积金
*/
@ExcelAttribute
(
name
=
"单边缴费额度上限--公积金"
)
@Schema
(
description
=
"单边缴费额度上限--公积金"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"单边缴费额度上限--公积金"
)
private
BigDecimal
fundPayUpperLimit
;
/**
* 单边小数点:公积金
*/
@ExcelAttribute
(
name
=
"单边小数点:公积金"
)
@Schema
(
description
=
"单边小数点:公积金"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"单边小数点:公积金"
)
private
Integer
fundPayPoint
;
/**
* 公积金类型 0.市直 1. 省直
*/
@ExcelAttribute
(
name
=
"公积金类型 0.市直 1. 省直"
)
@Schema
(
description
=
"公积金类型 0.市直 1. 省直"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"公积金类型 0.市直 1. 省直"
)
private
Integer
fundPayType
;
/**
* 单位公积金比例
*/
@ExcelAttribute
(
name
=
"单位公积金比例"
)
@Schema
(
description
=
"单位公积金比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"单位公积金比例"
)
private
BigDecimal
housingFundCompamyPro
;
/**
* 个人公积金比例
*/
@ExcelAttribute
(
name
=
"个人公积金比例"
)
@Schema
(
description
=
"个人公积金比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"个人公积金比例"
)
private
BigDecimal
housingFundPersonalPro
;
/**
* 部门关联ID
*/
@ExcelAttribute
(
name
=
"部门关联ID"
)
@Schema
(
description
=
"部门关联ID"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"部门关联ID"
)
private
String
departId
;
/**
* 0.在用1.终止2过期
*/
@ExcelAttribute
(
name
=
"0.在用1.终止2过期"
)
@Schema
(
description
=
"0.在用1.终止2过期"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"0.在用1.终止2过期"
)
private
Integer
status
;
/**
* 缴纳方式:周期为月--取值方式 0.按定值1比例
*/
@ExcelAttribute
(
name
=
"缴纳方式:周期为月--取值方式 0.按定值1比例"
)
@Schema
(
description
=
"缴纳方式:周期为月--取值方式 0.按定值1比例"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"缴纳方式:周期为月--取值方式 0.按定值1比例"
)
private
String
valueType
;
/**
* 是否可以补缴: 0:是,1:否
*/
@ExcelAttribute
(
name
=
"是否可以补缴: 0:是,1:否"
)
@Schema
(
description
=
"是否可以补缴: 0:是,1:否"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"是否可以补缴: 0:是,1:否"
)
private
String
canOverpay
;
/**
* 最大补缴期限
*/
@ExcelAttribute
(
name
=
"最大补缴期限"
)
@Schema
(
description
=
"最大补缴期限"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"最大补缴期限"
)
private
Integer
overpayNumber
;
/**
* 是否含起缴当月: 0:是,1:否
*/
@ExcelAttribute
(
name
=
"是否含起缴当月: 0:是,1:否"
)
@Schema
(
description
=
"是否含起缴当月: 0:是,1:否"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"是否含起缴当月: 0:是,1:否"
)
private
String
haveThisMonth
;
/**
* 补缴险种-是否能补缴养老0是1否
*/
@ExcelAttribute
(
name
=
"补缴险种-是否能补缴养老0是1否"
)
@Schema
(
description
=
"补缴险种-是否能补缴养老0是1否"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"补缴险种-是否能补缴养老0是1否"
)
private
String
insurancePension
;
/**
* 补缴险种-是否能补缴医疗0是1否
*/
@ExcelAttribute
(
name
=
"补缴险种-是否能补缴医疗0是1否"
)
@Schema
(
description
=
"补缴险种-是否能补缴医疗0是1否"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"补缴险种-是否能补缴医疗0是1否"
)
private
String
insuranceMedical
;
/**
* 补缴险种-是否能补缴失业0是1否
*/
@ExcelAttribute
(
name
=
"补缴险种-是否能补缴失业0是1否"
)
@Schema
(
description
=
"补缴险种-是否能补缴失业0是1否"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"补缴险种-是否能补缴失业0是1否"
)
private
String
insuranceUnemployment
;
/**
* 补缴险种-是否能补缴工伤0是1否
*/
@ExcelAttribute
(
name
=
"补缴险种-是否能补缴工伤0是1否"
)
@Schema
(
description
=
"补缴险种-是否能补缴工伤0是1否"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"补缴险种-是否能补缴工伤0是1否"
)
private
String
insuranceInjury
;
/**
* 补缴险种-是否能补缴生育0是1否
*/
@ExcelAttribute
(
name
=
"补缴险种-是否能补缴生育0是1否"
)
@Schema
(
description
=
"补缴险种-是否能补缴生育0是1否"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"补缴险种-是否能补缴生育0是1否"
)
private
String
insuranceBirth
;
/**
* 补缴险种-是否能补缴大病0是1否
*/
@ExcelAttribute
(
name
=
"补缴险种-是否能补缴大病0是1否"
)
@Schema
(
description
=
"补缴险种-是否能补缴大病0是1否"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"补缴险种-是否能补缴大病0是1否"
)
private
String
insuranceBigailment
;
/**
* 补缴险种-补缴是否采用最新基数0是1否
*/
@ExcelAttribute
(
name
=
"补缴险种-补缴是否采用最新基数0是1否"
)
@Schema
(
description
=
"补缴险种-补缴是否采用最新基数0是1否"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"补缴险种-补缴是否采用最新基数0是1否"
)
private
String
insuranceIsLatestCardinality
;
/**
* 删除标志0正常1删除
*/
@ExcelAttribute
(
name
=
"删除标志0正常1删除"
)
@Schema
(
description
=
"删除标志0正常1删除"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"删除标志0正常1删除"
)
private
String
deleteFlag
;
/**
* 社保户名称
*/
@ExcelAttribute
(
name
=
"社保户名称"
)
@Schema
(
description
=
"社保户名称"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"社保户名称"
)
private
String
departName
;
@ExcelAttribute
(
name
=
"执行月份"
)
@Schema
(
description
=
"执行月份"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"执行月份"
)
private
String
doMonth
;
@ExcelAttribute
(
name
=
"是否新数据:0否1是。为1,将同步社保公积金查询、预估库。其余值,不同步"
)
@Schema
(
description
=
"是否新数据:0否1是。为1,将同步社保公积金查询、预估库。其余值,不同步"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"是否新数据:0否1是。为1,将同步社保公积金查询、预估库。其余值,不同步"
)
private
String
isNew
;
@Schema
(
description
=
"适用月"
)
@TableField
(
exist
=
false
)
private
String
applyDate
;
@Schema
(
description
=
"公积金比例List(保存时前端传参用)"
)
@TableField
(
exist
=
false
)
private
List
<
SysPayProportion
>
fundProList
;
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/SysBaseSetInfoController.java
View file @
6703d4e4
...
...
@@ -22,12 +22,15 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.bean.BeanCopyUtils
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.SysBaseSetInfo
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.SysPayProportion
;
import
com.yifu.cloud.plus.v1.yifu.social.service.SysBaseSetInfoService
;
import
com.yifu.cloud.plus.v1.yifu.social.service.SysPayProportionService
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.SysBaseSetInfoVo
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
...
...
@@ -173,5 +176,22 @@ public class SysBaseSetInfoController {
public
R
<
Boolean
>
disableOrEnableById
(
@RequestParam
String
id
,
@RequestParam
Integer
status
)
{
return
sysBaseSetInfoService
.
updateByIdAsso
(
id
,
status
);
}
/**
* 通过id查询基数设置表--内部接口
*
* @param houseId
* @return R
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@Inner
@PostMapping
(
"/inner/getSocialHouseBaseSet"
)
public
SysBaseSetInfoVo
getSocialHouseBaseSet
(
@RequestBody
String
houseId
)
{
SysBaseSetInfo
baseSetInfo
=
sysBaseSetInfoService
.
getById
(
houseId
);
if
(
null
!=
baseSetInfo
&&
CommonConstants
.
ONE_STRING
.
equals
(
baseSetInfo
.
getBaseType
())){
baseSetInfo
.
setFundProList
(
sysPayProportionService
.
list
(
Wrappers
.<
SysPayProportion
>
query
().
lambda
().
eq
(
SysPayProportion:
:
getSysBaseSetId
,
houseId
)));
}
SysBaseSetInfoVo
sysBaseSetInfoVo
=
new
SysBaseSetInfoVo
();
BeanCopyUtils
.
copyProperties
(
baseSetInfo
,
sysBaseSetInfoVo
);
return
sysBaseSetInfoVo
;
}
}
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