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
d6c5495e
Commit
d6c5495e
authored
May 11, 2024
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
节假日配置表及社保医疗截止配置表
parent
3f9ee9e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
2 deletions
+48
-2
TSocialDeadlineInfoController.java
...yifu/social/controller/TSocialDeadlineInfoController.java
+2
-2
TSocialDeadlineInfoService.java
...us/v1/yifu/social/service/TSocialDeadlineInfoService.java
+3
-0
TSocialDeadlineInfoServiceImpl.java
...u/social/service/impl/TSocialDeadlineInfoServiceImpl.java
+43
-0
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TSocialDeadlineInfoController.java
View file @
d6c5495e
...
...
@@ -119,7 +119,7 @@ public class TSocialDeadlineInfoController {
if
(
Common
.
isNotNull
(
exit
)){
return
R
.
failed
(
"已存在对应月份与缴纳地的配置,请确认后操作!"
);
}
return
R
.
ok
(
tSocialDeadlineInfoService
.
save
(
tSocialDeadlineInfo
));
return
R
.
ok
(
tSocialDeadlineInfoService
.
save
Asso
(
tSocialDeadlineInfo
));
}
private
void
initCheckSql
(
TSocialDeadlineInfo
tSocialDeadlineInfo
,
LambdaQueryWrapper
<
TSocialDeadlineInfo
>
queryWrapper
)
{
...
...
@@ -154,7 +154,7 @@ public class TSocialDeadlineInfoController {
if
(
Common
.
isNotNull
(
exit
)){
return
R
.
failed
(
"已存在对应月份与缴纳地的配置,请确认后操作!"
);
}
return
R
.
ok
(
tSocialDeadlineInfoService
.
updateById
(
tSocialDeadlineInfo
));
return
R
.
ok
(
tSocialDeadlineInfoService
.
updateById
Asso
(
tSocialDeadlineInfo
));
}
/**
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TSocialDeadlineInfoService.java
View file @
d6c5495e
...
...
@@ -52,4 +52,7 @@ public interface TSocialDeadlineInfoService extends IService<TSocialDeadlineInfo
void
createDeadLineSetInfo
();
boolean
updateByIdAsso
(
TSocialDeadlineInfo
tSocialDeadlineInfo
);
boolean
saveAsso
(
TSocialDeadlineInfo
tSocialDeadlineInfo
);
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialDeadlineInfoServiceImpl.java
View file @
d6c5495e
...
...
@@ -26,6 +26,8 @@ import com.alibaba.excel.read.metadata.holder.ReadRowHolder;
import
com.alibaba.excel.util.ListUtils
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -33,6 +35,7 @@ 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.*
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceTypeRate
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.THolidayInfo
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocialDeadlineInfo
;
import
com.yifu.cloud.plus.v1.yifu.social.mapper.THolidayInfoMapper
;
...
...
@@ -43,13 +46,16 @@ import com.yifu.cloud.plus.v1.yifu.social.vo.TSocialDeadlineInfoVo;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.extern.log4j.Log4j2
;
import
org.aspectj.weaver.patterns.ConcreteCflowPointcut
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.net.URLEncoder
;
import
java.time.LocalDateTime
;
import
java.util.*
;
/**
...
...
@@ -266,6 +272,7 @@ public class TSocialDeadlineInfoServiceImpl extends ServiceImpl<TSocialDeadlineI
public
void
createDeadLineSetInfo
()
{
//获取基础配置信息
List
<
TSocialDeadlineInfo
>
baseLists
=
baseMapper
.
selectList
(
Wrappers
.<
TSocialDeadlineInfo
>
query
().
lambda
()
.
eq
(
TSocialDeadlineInfo:
:
getStatus
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TSocialDeadlineInfo:
:
getType
,
CommonConstants
.
ONE_STRING
));
if
(
Common
.
isNotNull
(
baseLists
)){
List
<
TSocialDeadlineInfo
>
saveList
=
new
ArrayList
<>();;
...
...
@@ -294,6 +301,42 @@ public class TSocialDeadlineInfoServiceImpl extends ServiceImpl<TSocialDeadlineI
}
}
}
@Transactional
@Override
public
boolean
updateByIdAsso
(
TSocialDeadlineInfo
tSocialDeadlineInfo
)
{
//如果是基础配置 重置之前的配置
updateType
(
tSocialDeadlineInfo
);
return
baseMapper
.
updateById
(
tSocialDeadlineInfo
)>
0
;
}
private
void
updateType
(
TSocialDeadlineInfo
tSocialDeadlineInfo
)
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
tSocialDeadlineInfo
.
getType
())){
LambdaUpdateWrapper
<
TSocialDeadlineInfo
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
TSocialDeadlineInfo:
:
getType
,
CommonConstants
.
ONE_STRING
)
.
eq
(
TSocialDeadlineInfo:
:
getProvince
,
tSocialDeadlineInfo
.
getProvince
())
.
set
(
TSocialDeadlineInfo:
:
getStatus
,
CommonConstants
.
ZERO_STRING
)
.
set
(
TSocialDeadlineInfo:
:
getType
,
CommonConstants
.
ZERO_STRING
)
.
set
(
TSocialDeadlineInfo
::
getUpdateBy
,
"1"
)
.
set
(
TSocialDeadlineInfo
::
getUpdateTime
,
LocalDateTime
.
now
());
if
(
Common
.
isEmpty
(
tSocialDeadlineInfo
.
getCity
())){
updateWrapper
.
isNull
(
TSocialDeadlineInfo:
:
getCity
);
}
else
{
updateWrapper
.
eq
(
TSocialDeadlineInfo:
:
getCity
,
tSocialDeadlineInfo
.
getCity
());
if
(
Common
.
isEmpty
(
tSocialDeadlineInfo
.
getTown
())){
updateWrapper
.
isNull
(
TSocialDeadlineInfo:
:
getTown
);
}
else
{
updateWrapper
.
eq
(
TSocialDeadlineInfo:
:
getTown
,
tSocialDeadlineInfo
.
getTown
());
}
}
update
(
updateWrapper
);
}
}
@Transactional
@Override
public
boolean
saveAsso
(
TSocialDeadlineInfo
tSocialDeadlineInfo
)
{
updateType
(
tSocialDeadlineInfo
);
return
baseMapper
.
insert
(
tSocialDeadlineInfo
)
>
0
;
}
private
void
initMedicalEndDate
(
Map
<
String
,
String
>
holidayMap
,
TSocialDeadlineInfo
save
)
{
// type 0 休假 1 补班
...
...
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