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
080f6f0f
Commit
080f6f0f
authored
Jul 14, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
档案、社保基数
parent
72304b6c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
165 additions
and
72 deletions
+165
-72
EmployeeExportVO.java
...yifu/cloud/plus/v1/yifu/archives/vo/EmployeeExportVO.java
+4
-0
TEmployeeInfoMapper.xml
...ves-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
+2
-0
SysBaseSetInfo.java
...yifu/cloud/plus/v1/yifu/social/entity/SysBaseSetInfo.java
+9
-0
SysBaseSetInfoServiceImpl.java
...1/yifu/social/service/impl/SysBaseSetInfoServiceImpl.java
+85
-12
SysBaseSetInfoMapper.xml
...al-biz/src/main/resources/mapper/SysBaseSetInfoMapper.xml
+65
-60
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmployeeExportVO.java
View file @
080f6f0f
...
...
@@ -214,4 +214,8 @@ public class EmployeeExportVO extends BaseEntity {
@ExcelProperty
(
value
=
"单位编码"
)
private
String
unitNo
;
@ExcelAttribute
(
name
=
"人员档案状态"
,
readConverterExp
=
"0=草稿,1=已审核"
)
@ExcelProperty
(
value
=
"人员档案状态"
)
private
String
status
;
}
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
View file @
080f6f0f
...
...
@@ -123,6 +123,7 @@
<result
property=
"leaveTime"
column=
"LEAVE_TIME"
/>
<result
property=
"leaveReason"
column=
"LEAVE_REASON"
/>
<result
property=
"leaveRemark"
column=
"LEAVE_REMARK"
/>
<result
property=
"status"
column=
"STATUS"
/>
</resultMap>
<sql
id=
"baseParam"
>
...
...
@@ -216,6 +217,7 @@
a.SALARY_STATUS,
a.CREATE_NAME,
a.CREATE_TIME,
a.STATUS,
a.CONTACT_ADDRESS
</sql>
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/SysBaseSetInfo.java
View file @
080f6f0f
...
...
@@ -452,6 +452,15 @@ public class SysBaseSetInfo extends BaseEntity {
@ExcelProperty
(
"社保户名称"
)
private
String
departName
;
@ExcelAttribute
(
name
=
"执行月份"
)
@Schema
(
description
=
"执行月份"
)
@ExcelProperty
(
"执行月份"
)
private
String
doMonth
;
@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/service/impl/SysBaseSetInfoServiceImpl.java
View file @
080f6f0f
...
...
@@ -34,6 +34,7 @@ import com.yifu.cloud.plus.v1.yifu.social.service.TSocialLogService;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -68,13 +69,28 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
return
R
.
failed
(
"获取用户登录信息失败!"
);
}
SysBaseSetInfo
baseSetInfo
=
null
;
SysBaseSetInfo
lastBase
=
null
;
if
(
null
!=
sysBaseSetInfo
.
getTown
())
{
baseSetInfo
=
this
.
getOne
(
Wrappers
.<
SysBaseSetInfo
>
query
().
lambda
()
.
eq
(
SysBaseSetInfo:
:
getBaseType
,
sysBaseSetInfo
.
getBaseType
())
.
eq
(
SysBaseSetInfo:
:
getDepartId
,
sysBaseSetInfo
.
getDepartId
())
.
eq
(
SysBaseSetInfo:
:
getTown
,
sysBaseSetInfo
.
getTown
())
.
and
(
obj
->
obj
.
and
(
obj1
->
obj1
.
le
(
SysBaseSetInfo:
:
getApplyStartDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
and
(
obj2
->
obj2
.
ge
(
SysBaseSetInfo:
:
getApplyEndDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
or
()
.
isNull
(
SysBaseSetInfo:
:
getApplyEndDate
)))
.
or
()
.
ge
(
SysBaseSetInfo:
:
getApplyEndDate
,
sysBaseSetInfo
.
getApplyStartDate
()))
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
lastBase
=
this
.
getOne
(
Wrappers
.<
SysBaseSetInfo
>
query
().
lambda
()
.
eq
(
SysBaseSetInfo:
:
getBaseType
,
sysBaseSetInfo
.
getBaseType
())
.
eq
(
SysBaseSetInfo:
:
getDepartId
,
sysBaseSetInfo
.
getDepartId
())
.
eq
(
SysBaseSetInfo:
:
getTown
,
sysBaseSetInfo
.
getTown
())
.
isNull
(
SysBaseSetInfo:
:
getApplyEndDate
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
}
if
(
null
!=
sysBaseSetInfo
.
getCity
()
&&
null
==
sysBaseSetInfo
.
getTown
())
{
...
...
@@ -83,8 +99,23 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
.
eq
(
SysBaseSetInfo:
:
getDepartId
,
sysBaseSetInfo
.
getDepartId
())
.
eq
(
SysBaseSetInfo:
:
getCity
,
sysBaseSetInfo
.
getCity
())
.
isNull
(
SysBaseSetInfo:
:
getTown
)
.
and
(
obj
->
obj
.
and
(
obj1
->
obj1
.
le
(
SysBaseSetInfo:
:
getApplyStartDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
and
(
obj2
->
obj2
.
ge
(
SysBaseSetInfo:
:
getApplyEndDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
or
()
.
isNull
(
SysBaseSetInfo:
:
getApplyEndDate
)))
.
or
()
.
ge
(
SysBaseSetInfo:
:
getApplyEndDate
,
sysBaseSetInfo
.
getApplyStartDate
()))
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
lastBase
=
this
.
getOne
(
Wrappers
.<
SysBaseSetInfo
>
query
().
lambda
()
.
eq
(
SysBaseSetInfo:
:
getBaseType
,
sysBaseSetInfo
.
getBaseType
())
.
eq
(
SysBaseSetInfo:
:
getDepartId
,
sysBaseSetInfo
.
getDepartId
())
.
eq
(
SysBaseSetInfo:
:
getCity
,
sysBaseSetInfo
.
getCity
())
.
isNull
(
SysBaseSetInfo:
:
getTown
)
.
isNull
(
SysBaseSetInfo:
:
getApplyEndDate
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
}
if
(
null
!=
sysBaseSetInfo
.
getProvince
()
&&
null
==
sysBaseSetInfo
.
getCity
())
{
...
...
@@ -93,14 +124,34 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
.
eq
(
SysBaseSetInfo:
:
getDepartId
,
sysBaseSetInfo
.
getDepartId
())
.
eq
(
SysBaseSetInfo:
:
getProvince
,
sysBaseSetInfo
.
getProvince
())
.
isNull
(
SysBaseSetInfo:
:
getCity
)
.
and
(
obj
->
obj
.
and
(
obj1
->
obj1
.
le
(
SysBaseSetInfo:
:
getApplyStartDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
and
(
obj2
->
obj2
.
ge
(
SysBaseSetInfo:
:
getApplyEndDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
or
()
.
isNull
(
SysBaseSetInfo:
:
getApplyEndDate
)))
.
or
()
.
ge
(
SysBaseSetInfo:
:
getApplyEndDate
,
sysBaseSetInfo
.
getApplyStartDate
()))
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
lastBase
=
this
.
getOne
(
Wrappers
.<
SysBaseSetInfo
>
query
().
lambda
()
.
eq
(
SysBaseSetInfo:
:
getBaseType
,
sysBaseSetInfo
.
getBaseType
())
.
eq
(
SysBaseSetInfo:
:
getDepartId
,
sysBaseSetInfo
.
getDepartId
())
.
eq
(
SysBaseSetInfo:
:
getProvince
,
sysBaseSetInfo
.
getProvince
())
.
isNull
(
SysBaseSetInfo:
:
getCity
)
.
isNull
(
SysBaseSetInfo:
:
getApplyEndDate
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
}
if
(
null
!=
baseSetInfo
)
{
return
R
.
failed
(
"对应户、地市、有效期的基数配置已存在!"
);
}
// 将上一个无截止月的增加截止月
if
(
lastBase
!=
null
)
{
lastBase
.
setApplyEndDate
(
sysBaseSetInfo
.
getApplyStartDate
());
this
.
updateById
(
lastBase
);
}
this
.
saveOrUpdateBaseAndFundPro
(
sysBaseSetInfo
);
return
R
.
ok
();
}
...
...
@@ -116,15 +167,23 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
return
R
.
failed
(
"根据id未找到基数配置!"
+
sysBaseSetInfo
.
getId
());
}
SysBaseSetInfo
baseSetInfo
=
null
;
// where (b.apply_start_date < '2023-01' and ( b.apply_end_date > '2023-01' or b.apply_end_date is null) ) or b.apply_start_date > '2023-01'
if
(
null
!=
sysBaseSetInfo
.
getTown
())
{
baseSetInfo
=
this
.
getOne
(
Wrappers
.<
SysBaseSetInfo
>
query
().
lambda
()
.
eq
(
SysBaseSetInfo:
:
getBaseType
,
sysBaseSetInfo
.
getBaseType
())
.
eq
(
SysBaseSetInfo:
:
getDepartId
,
sysBaseSetInfo
.
getDepartId
())
.
eq
(
SysBaseSetInfo:
:
getTown
,
sysBaseSetInfo
.
getTown
())
.
le
(
SysBaseSetInfo:
:
getApplyStartDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
ge
(
SysBaseSetInfo:
:
getApplyEndDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
ne
(
SysBaseSetInfo:
:
getId
,
sysBaseSetInfo
.
getId
())
.
eq
(
SysBaseSetInfo:
:
getStatus
,
CommonConstants
.
ZERO_INT
)
.
and
(
obj
->
obj
.
and
(
obj1
->
obj1
.
le
(
SysBaseSetInfo:
:
getApplyStartDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
and
(
obj2
->
obj2
.
ge
(
SysBaseSetInfo:
:
getApplyEndDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
or
()
.
isNull
(
SysBaseSetInfo:
:
getApplyEndDate
)))
.
or
()
.
ge
(
SysBaseSetInfo:
:
getApplyEndDate
,
sysBaseSetInfo
.
getApplyStartDate
()))
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
}
if
(
null
!=
sysBaseSetInfo
.
getCity
()
&&
null
==
sysBaseSetInfo
.
getTown
())
{
...
...
@@ -133,8 +192,15 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
.
eq
(
SysBaseSetInfo:
:
getDepartId
,
sysBaseSetInfo
.
getDepartId
())
.
eq
(
SysBaseSetInfo:
:
getCity
,
sysBaseSetInfo
.
getCity
())
.
isNull
(
SysBaseSetInfo:
:
getTown
)
.
and
(
obj
->
obj
.
and
(
obj1
->
obj1
.
le
(
SysBaseSetInfo:
:
getApplyStartDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
and
(
obj2
->
obj2
.
ge
(
SysBaseSetInfo:
:
getApplyEndDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
or
()
.
isNull
(
SysBaseSetInfo:
:
getApplyEndDate
)))
.
or
()
.
ge
(
SysBaseSetInfo:
:
getApplyEndDate
,
sysBaseSetInfo
.
getApplyStartDate
()))
.
ne
(
SysBaseSetInfo:
:
getId
,
sysBaseSetInfo
.
getId
())
.
eq
(
SysBaseSetInfo:
:
getStatus
,
CommonConstants
.
ZERO_INT
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
...
...
@@ -145,8 +211,15 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
.
eq
(
SysBaseSetInfo:
:
getDepartId
,
sysBaseSetInfo
.
getDepartId
())
.
eq
(
SysBaseSetInfo:
:
getProvince
,
sysBaseSetInfo
.
getProvince
())
.
isNull
(
SysBaseSetInfo:
:
getCity
)
.
and
(
obj
->
obj
.
and
(
obj1
->
obj1
.
le
(
SysBaseSetInfo:
:
getApplyStartDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
and
(
obj2
->
obj2
.
ge
(
SysBaseSetInfo:
:
getApplyEndDate
,
sysBaseSetInfo
.
getApplyStartDate
())
.
or
()
.
isNull
(
SysBaseSetInfo:
:
getApplyEndDate
)))
.
or
()
.
ge
(
SysBaseSetInfo:
:
getApplyEndDate
,
sysBaseSetInfo
.
getApplyStartDate
()))
.
ne
(
SysBaseSetInfo:
:
getId
,
sysBaseSetInfo
.
getId
())
.
eq
(
SysBaseSetInfo:
:
getStatus
,
CommonConstants
.
ZERO_INT
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/SysBaseSetInfoMapper.xml
View file @
080f6f0f
...
...
@@ -75,6 +75,7 @@
<result
property=
"insuranceIsLatestCardinality"
column=
"INSURANCE_IS_LATEST_CARDINALITY"
/>
<result
property=
"deleteFlag"
column=
"DELETE_FLAG"
/>
<result
property=
"departName"
column=
"DEPART_NAME"
/>
<result
property=
"doMonth"
column=
"DO_MONTH"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
...
...
@@ -82,10 +83,7 @@
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a
.
ID
,
a.ID,
a.PROVINCE,
a.CITY,
a.TOWN,
...
...
@@ -136,6 +134,7 @@
a.INSURANCE_IS_LATEST_CARDINALITY,
a.DELETE_FLAG,
a.DEPART_NAME,
a.DO_MONTH,
a.CREATE_BY,
a.UPDATE_BY,
a.CREATE_NAME,
...
...
@@ -295,7 +294,13 @@
AND a.DELETE_FLAG = #{sysBaseSetInfo.deleteFlag}
</if>
<if
test=
"sysBaseSetInfo.departName != null and sysBaseSetInfo.departName.trim() != ''"
>
AND a.DEPART_NAME = #{sysBaseSetInfo.departName}
AND a.DEPART_NAME like concat('%',#{sysBaseSetInfo.departName},'%')
</if>
<if
test=
"sysBaseSetInfo.applyDate != null and sysBaseSetInfo.applyDate.trim() != ''"
>
AND (
a.APPLY_START_DATE
<![CDATA[ <= ]]>
#{sysBaseSetInfo.applyDate}
and (a.APPLY_END_DATE is null or a.APPLY_END_DATE >= #{sysBaseSetInfo.applyDate})
)
</if>
<if
test=
"sysBaseSetInfo.createBy != null and sysBaseSetInfo.createBy.trim() != ''"
>
AND a.CREATE_BY = #{sysBaseSetInfo.createBy}
...
...
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