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
5fdb92e7
Commit
5fdb92e7
authored
Dec 13, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
停止合作相关内容修改
parent
04fb9df5
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
151 additions
and
29 deletions
+151
-29
TEmployeeProjectController.java
.../yifu/archives/controller/TEmployeeProjectController.java
+52
-0
TSettleDomainController.java
.../v1/yifu/archives/controller/TSettleDomainController.java
+13
-0
TEmployeeProjectService.java
...lus/v1/yifu/archives/service/TEmployeeProjectService.java
+9
-0
TSettleDomainService.java
...d/plus/v1/yifu/archives/service/TSettleDomainService.java
+3
-0
TEmployeeProjectServiceImpl.java
...fu/archives/service/impl/TEmployeeProjectServiceImpl.java
+44
-28
TSettleDomainServiceImpl.java
.../yifu/archives/service/impl/TSettleDomainServiceImpl.java
+29
-0
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+1
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmployeeProjectController.java
View file @
5fdb92e7
...
...
@@ -339,4 +339,56 @@ public class TEmployeeProjectController {
public
Boolean
updateEmployeeSalaryStatus
(
@RequestBody
EmpStatusVo
vo
)
{
return
tEmployeeProjectService
.
updateEmployeeSalaryStatus
(
vo
);
}
/**
* 查询项目档案在档人数
* @author hyc
* @param deptNo
* @date 2022-12-12 17:45
* @return R
*/
@Operation
(
summary
=
"查询项目档案在档人数"
,
description
=
"查询项目档案在档人数"
)
@PostMapping
(
"/selectInUseEmployeeProjectCount"
)
public
R
selectInUseEmployeeProjectCount
(
@RequestBody
String
deptNo
)
{
return
tEmployeeProjectService
.
selectInUseEmployeeProjectCount
(
deptNo
);
}
/**
* 查询项目员工合同在用数
* @author hyc
* @param deptNo
* @date 2022-12-12 17:45
* @return R
*/
@Operation
(
summary
=
"查询项目员工合同在用数"
,
description
=
"查询项目员工合同在用数"
)
@PostMapping
(
"/selectInUseEmployeeContractCount"
)
public
R
selectInUseEmployeeContractCount
(
@RequestBody
String
deptNo
)
{
return
tEmployeeProjectService
.
selectInUseEmployeeContractCount
(
deptNo
);
}
/**
* 查询社保在保人数
* @author hyc
* @param deptNo
* @date 2022-12-12 17:45
* @return R
*/
@Operation
(
summary
=
"查询社保在保人数"
,
description
=
"查询社保在保人数"
)
@PostMapping
(
"/selectInUseSocialCount"
)
public
R
selectInUseSocialCount
(
@RequestBody
String
deptNo
)
{
return
tEmployeeProjectService
.
selectInUseSocialCount
(
deptNo
);
}
/**
* 查询公积金在保人数
* @author hyc
* @param deptNo
* @date 2022-12-12 17:45
* @return R
*/
@Operation
(
summary
=
"查询公积金在保人数"
,
description
=
"查询公积金在保人数"
)
@PostMapping
(
"/selectInUseFundCount"
)
public
R
selectInUseFundCount
(
@RequestBody
String
deptNo
)
{
return
tEmployeeProjectService
.
selectInUseFundCount
(
deptNo
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TSettleDomainController.java
View file @
5fdb92e7
...
...
@@ -323,4 +323,17 @@ public class TSettleDomainController {
public
R
<
IPage
<
IdNameNoVo
>>
getUnitPage
(
Page
<
IdNameNoVo
>
page
,
IdNameNoVo
idNameNo
)
{
return
R
.
ok
(
tSettleDomainService
.
getUnitPage
(
page
,
idNameNo
));
}
/**
* 修改项目表--EKP调用接口
* @author hyc
* @param jsonObject
* @return R
*/
@Operation
(
summary
=
"更新项目服务状态--EKP调用接口"
,
description
=
"更新项目服务状态--EKP调用接口"
)
@SysLog
(
"更新项目服务状态--EKP调用接口"
)
@PostMapping
(
"/updateProjectStopStatus"
)
public
R
updateProjectStopStatus
(
@RequestBody
JSONObject
jsonObject
)
{
return
tSettleDomainService
.
updateProjectStopStatus
(
jsonObject
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmployeeProjectService.java
View file @
5fdb92e7
...
...
@@ -224,4 +224,13 @@ public interface TEmployeeProjectService extends IService<TEmployeeProject> {
* @return: void
**/
void
everyDayUpdateEmployeContractStatus
();
R
selectInUseEmployeeProjectCount
(
String
deptNo
);
R
selectInUseEmployeeContractCount
(
String
deptNo
);
R
selectInUseSocialCount
(
String
deptNo
);
R
selectInUseFundCount
(
String
deptNo
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TSettleDomainService.java
View file @
5fdb92e7
...
...
@@ -17,6 +17,7 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
...
...
@@ -103,4 +104,6 @@ public interface TSettleDomainService extends IService<TSettleDomain> {
R
updateProjectInfo
(
List
<
TSettleDomainEkpVo
>
list
);
R
updateProjectStopStatus
(
JSONObject
jsonObject
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeProjectServiceImpl.java
View file @
5fdb92e7
...
...
@@ -96,12 +96,6 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
@Lazy
private
DoJointTask
doJointTask
;
@Autowired
private
DaprCheckProperties
daprCheckProperties
;
@Autowired
private
DaprUpmsProperties
daprUpmsProperties
;
@Override
public
R
addCheck
(
TEmployeeProject
tEmployeeProject
)
{
...
...
@@ -118,7 +112,7 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
.
eq
(
TSettleDomain:
:
getStopFlag
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TSettleDomain:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
));
if
(
Common
.
isEmpty
(
tSettleDomain
))
{
return
R
.
failed
(
"未找到对应的项目,请核实"
);
return
R
.
failed
(
"未找到对应的项目
或者项目已停止合作
,请核实"
);
}
//项目下已有身份证信息
...
...
@@ -940,27 +934,6 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
if
(
tEmployeeProject
.
getProjectStatus
()
!=
CommonConstants
.
dingleDigitIntArray
[
0
])
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
CHECKS_EMP_DELETE_ERROR
)));
}
else
{
/*if (Common.isNotNull(excel.getBankNo())) {
TCheckBankNo check = new TCheckBankNo();
check.setBankNo(excel.getBankNo());
check.setIdNum(excel.getEmpIdcard());
check.setName(tEmployeeProject.getEmpName());
R<CheckBankNoVo> checkListR = HttpDaprUtil.invokeMethodPost(daprCheckProperties.getAppUrl(), daprCheckProperties.getAppId()
, "/tcheckbankno/inner/checkBankNo", check, CheckBankNoVo.class, SecurityConstants.FROM_IN);
if (checkListR != null && checkListR.getData() != null) {
CheckBankNoVo vo = checkListR.getData();
check = (null == vo.getRes()) ? null : vo.getRes().getData();
if (Common.isEmpty(vo)) {
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), EmployeeConstants.CHECK_NO_RESPONSE));
} else if (!CommonConstants.SUCCESS.equals(vo.getRes().getCode())) {
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), vo.getRes().getMsg()));
} else if (null != check && !check.getResult().equals(CommonConstants.ZERO_ONE)) {
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), check.getRemark()));
}
} else {
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), EmployeeConstants.CHECK_NO_RESPONSE));
}
}*/
updateExcelProj
(
excel
,
updateList
,
tEmployeeProject
);
TEmployeeProject
tEmployeeProjectOld
=
this
.
getById
(
tEmployeeProject
.
getId
());
newOldProject
=
new
EmployeeProjectNewOldVO
();
...
...
@@ -1442,4 +1415,47 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
public
void
everyDayUpdateEmployeContractStatus
()
{
baseMapper
.
everyDayUpdateEmployeContractStatus
();
}
@Override
public
R
selectInUseEmployeeProjectCount
(
String
deptNo
)
{
//查询项目档案在档人数
return
R
.
ok
(
baseMapper
.
selectCount
(
Wrappers
.<
TEmployeeProject
>
query
().
lambda
()
.
eq
(
TEmployeeProject:
:
getDeptNo
,
deptNo
)
.
eq
(
TEmployeeProject:
:
getProjectStatus
,
CommonConstants
.
ZERO_INT
)
.
eq
(
TEmployeeProject:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
)));
}
@Override
public
R
selectInUseEmployeeContractCount
(
String
deptNo
)
{
//项目员工合同在用数
return
R
.
ok
(
baseMapper
.
selectCount
(
Wrappers
.<
TEmployeeProject
>
query
().
lambda
()
.
eq
(
TEmployeeProject:
:
getDeptNo
,
deptNo
)
.
eq
(
TEmployeeProject:
:
getProjectStatus
,
CommonConstants
.
ZERO_INT
)
.
eq
(
TEmployeeProject:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeProject:
:
getContractStatus
,
CommonConstants
.
ONE_INT
)));
}
@Override
public
R
selectInUseSocialCount
(
String
deptNo
)
{
//查询社保在保人数
return
R
.
ok
(
baseMapper
.
selectCount
(
Wrappers
.<
TEmployeeProject
>
query
().
lambda
()
.
eq
(
TEmployeeProject:
:
getDeptNo
,
deptNo
)
.
eq
(
TEmployeeProject:
:
getProjectStatus
,
CommonConstants
.
ZERO_INT
)
.
eq
(
TEmployeeProject:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
)
.
and
(
obj
->
obj
.
eq
(
TEmployeeProject:
:
getSocialStatus
,
CommonConstants
.
ONE_INT
)
.
or
().
eq
(
TEmployeeProject:
:
getSocialStatus
,
CommonConstants
.
TWO_INT
)
.
or
().
eq
(
TEmployeeProject:
:
getSocialStatus
,
CommonConstants
.
THREE_INT
))));
}
@Override
public
R
selectInUseFundCount
(
String
deptNo
)
{
//查询公积金在保人数
return
R
.
ok
(
baseMapper
.
selectCount
(
Wrappers
.<
TEmployeeProject
>
query
().
lambda
()
.
eq
(
TEmployeeProject:
:
getDeptNo
,
deptNo
)
.
eq
(
TEmployeeProject:
:
getProjectStatus
,
CommonConstants
.
ZERO_INT
)
.
eq
(
TEmployeeProject:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
)
.
and
(
obj
->
obj
.
eq
(
TEmployeeProject:
:
getFundStatus
,
CommonConstants
.
ONE_INT
)
.
or
().
eq
(
TEmployeeProject:
:
getFundStatus
,
CommonConstants
.
TWO_INT
)
.
or
().
eq
(
TEmployeeProject:
:
getFundStatus
,
CommonConstants
.
THREE_INT
))));
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TSettleDomainServiceImpl.java
View file @
5fdb92e7
...
...
@@ -17,6 +17,7 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -198,6 +199,34 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
}
}
@Override
public
R
updateProjectStopStatus
(
JSONObject
jsonObject
)
{
if
(
Common
.
isEmpty
(
jsonObject
.
getString
(
"deptNo"
))
||
Common
.
isEmpty
(
jsonObject
.
getString
(
"stopFlag"
)))
{
return
R
.
failed
(
CommonConstants
.
PARAM_IS_NOT_ERROR
);
}
String
deptNo
=
jsonObject
.
getString
(
"deptNo"
);
String
stopFlag
=
jsonObject
.
getString
(
"stopFlag"
);
if
(!
CommonConstants
.
ONE_STRING
.
equals
(
stopFlag
)
&&
!
CommonConstants
.
TWO_STRING
.
equals
(
stopFlag
)
&&
!
CommonConstants
.
ZERO_STRING
.
equals
(
stopFlag
))
{
return
R
.
failed
(
"服务状态传参错误"
);
}
TSettleDomain
settleDomain
;
settleDomain
=
baseMapper
.
selectOne
(
Wrappers
.<
TSettleDomain
>
query
().
lambda
()
.
eq
(
TSettleDomain:
:
getDepartNo
,
deptNo
)
.
eq
(
TSettleDomain:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isEmpty
(
settleDomain
))
{
return
R
.
failed
(
"不存在该项目"
);
}
if
(
settleDomain
.
getStopFlag
().
equals
(
stopFlag
))
{
return
R
.
failed
(
"不可重复变更项目服务状态"
);
}
settleDomain
.
setStopFlag
(
stopFlag
);
baseMapper
.
updateById
(
settleDomain
);
return
R
.
ok
();
}
private
String
checkInfo
(
TSettleDomain
domain
)
{
if
(
Common
.
isEmpty
(
domain
.
getId
())){
return
ArchivesConstants
.
SETTLE_DOMAIN_ID_NOT_EMPTY
;
...
...
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
5fdb92e7
...
...
@@ -100,7 +100,7 @@ archives.project.change.not.exist=\u4EBA\u5458\u5728\u8BE5\u9879\u76EE\u4E0B\u5B
archives.project.emp.lose.fee.not.empty
=
\u
4E0D
\u
826F
\u
8BB0
\u
5F55
\u
8D39
\u7528\u
635F
\u5931\u
548C
\u5176\u
4ED6
\u
635F
\u5931\u
4E0D
\u
53EF
\u
540C
\u
65F6
\u
4E3A
\u
7A7A
qt.project.change.not.exist
=
\u
4EBA
\u5458\u5728\u
539F
\u9879\u
76EE
\u
4E2D
\u
5B58
\u5728\u5728\u9014\u7684\u
670D
\u
52A1
\u
FF0C
\u
8BF7
\u5148\u
7EC8
\u
6B62
\u
540E
\u
FF0C
\u
518D
\u
8FDB
\u
884C
\u5212\u
8F6C
project.search.not.exist
=
\u
672A
\u
627E
\u5230\u
5BF9
\u
5E94
\u7684\u9879\u
76EE
\u
FF0C
\u
8BF7
\u6838\u
5B9E
project.search.not.exist
=
\u
672A
\u
627E
\u5230\u
5BF9
\u
5E94
\u7684\u9879\u
76EE
\u
6216\u8005\u9879\u
76EE
\u
5DF2
\u
505C
\u
6B62
\u5408\u
4F5C
\u
FF0C
\u
8BF7
\u6838\u
5B9E
change.strat.month.exit
=
\u5212\u
8F6C
\u
8D77
\u
59CB
\u6708\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
change.less.month.exit
=
\u5212\u
8F6C
\u
8D77
\u
59CB
\u6708\u8981\u
5C0F
\u
4E8E
\u
7B49
\u
4E8E
\u
5F53
\u
524D
\u6708
...
...
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