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
649b04fe
Commit
649b04fe
authored
Jan 15, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.5-薪资提交校验
parent
9c878f13
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
0 deletions
+59
-0
TInsuranceUnpurchasePersonController.java
...lary/controller/TInsuranceUnpurchasePersonController.java
+14
-0
TInsuranceUnpurchasePersonService.java
...ifu/salary/service/TInsuranceUnpurchasePersonService.java
+10
-0
TInsuranceUnpurchasePersonServiceImpl.java
...y/service/impl/TInsuranceUnpurchasePersonServiceImpl.java
+35
-0
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TInsuranceUnpurchasePersonController.java
View file @
649b04fe
...
...
@@ -70,4 +70,18 @@ public class TInsuranceUnpurchasePersonController {
menuUtil
.
setAuthSql
(
user
,
searchVo
);
tInsuranceUnpurchasePersonService
.
listExport
(
response
,
searchVo
);
}
/**
* @param id 明细id
* @Description: 刷新社保状态
* @Author: hgw
* @Date: 2025/1/15 13:10
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
@Operation
(
description
=
"刷新社保状态"
)
@PostMapping
(
"/getSocialWorkInjuryHandleById"
)
public
R
<
String
>
getSocialWorkInjuryHandleById
(
@RequestParam
String
id
)
{
return
tInsuranceUnpurchasePersonService
.
getSocialWorkInjuryHandleById
(
id
);
}
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/TInsuranceUnpurchasePersonService.java
View file @
649b04fe
...
...
@@ -3,6 +3,7 @@ package com.yifu.cloud.plus.v1.yifu.salary.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.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TInsuranceUnpurchasePerson
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TInsuranceUnpurchasePersonAddVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TInsuranceUnpurchasePersonSearchVo
;
...
...
@@ -30,4 +31,13 @@ public interface TInsuranceUnpurchasePersonService extends IService<TInsuranceUn
List
<
TInsuranceUnpurchasePerson
>
getBuyList
(
String
deptId
,
List
<
String
>
idCardList
);
/**
* @param id 明细id
* @Description: 刷新社保状态
* @Author: hgw
* @Date: 2025/1/15 13:13
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
R
<
String
>
getSocialWorkInjuryHandleById
(
String
id
);
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TInsuranceUnpurchasePersonServiceImpl.java
View file @
649b04fe
...
...
@@ -9,15 +9,19 @@ 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.R
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.SocialDaprUtils
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TInsuranceUnpurchasePerson
;
import
com.yifu.cloud.plus.v1.yifu.salary.mapper.TInsuranceUnpurchasePersonMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TInsuranceUnpurchasePersonService
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TInsuranceUnpurchasePersonAddVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TInsuranceUnpurchasePersonCardVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TInsuranceUnpurchasePersonSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TInsuranceUnpurchasePersonVo
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.net.URLEncoder
;
...
...
@@ -32,6 +36,10 @@ import java.util.List;
@Log4j2
@Service
public
class
TInsuranceUnpurchasePersonServiceImpl
extends
ServiceImpl
<
TInsuranceUnpurchasePersonMapper
,
TInsuranceUnpurchasePerson
>
implements
TInsuranceUnpurchasePersonService
{
@Resource
private
SocialDaprUtils
socialDaprUtil
;
/**
* 含风险项目不购买申请明细表简单分页查询
* @param tInsuranceUnpurchasePerson 含风险项目不购买申请明细表
...
...
@@ -98,4 +106,31 @@ public class TInsuranceUnpurchasePersonServiceImpl extends ServiceImpl<TInsuranc
return
baseMapper
.
getBuyList
(
deptId
,
idCardList
);
}
/**
* @param id 明细id
* @Description: 刷新社保状态
* @Author: hgw
* @Date: 2025/1/15 13:22
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
@Override
public
R
<
String
>
getSocialWorkInjuryHandleById
(
String
id
)
{
TInsuranceUnpurchasePerson
person
=
this
.
getById
(
id
);
if
(
person
==
null
||
Common
.
isEmpty
(
person
.
getEmpIdcardNo
())||
Common
.
isEmpty
(
person
.
getEmpName
()))
{
return
R
.
failed
(
"未找到数据"
);
}
TInsuranceUnpurchasePersonCardVo
cardVo
=
new
TInsuranceUnpurchasePersonCardVo
();
cardVo
.
setEmpIdcardNo
(
person
.
getEmpIdcardNo
());
cardVo
.
setEmpName
(
person
.
getEmpName
());
R
<
Boolean
>
flag
=
socialDaprUtil
.
selectExitSocialInjury
(
cardVo
);
if
(
Common
.
isEmpty
(
flag
)
||
Boolean
.
FALSE
.
equals
(
flag
.
getData
()))
{
person
.
setSocialStatus
(
CommonConstants
.
ONE_STRING
);
}
else
{
person
.
setSocialStatus
(
CommonConstants
.
ZERO_STRING
);
}
this
.
updateById
(
person
);
return
R
.
ok
(
"成功"
);
}
}
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