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
0d71114b
Commit
0d71114b
authored
Jul 21, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量新增导入
parent
d4c51d02
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
11 deletions
+22
-11
ErrorCodes.java
....cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
+14
-0
ArchivesDaprUtil.java
...cloud/plus/v1/yifu/common/dapr/util/ArchivesDaprUtil.java
+3
-6
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+5
-5
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
View file @
0d71114b
...
...
@@ -382,4 +382,18 @@ public interface ErrorCodes {
* 新增异常:未找到对应项目编码信息
*/
String
EMP_DISPATCH_PROJECT_NOT_FOUND
=
"emp.dispatch.project.not.found"
;
/**
* 新增异常:派单新增档案失败,请重试
*/
String
EMP_DISPATCH_ADD_EMP_ERROR
=
"emp.dispatch.add.emp.error"
;
/**
* 新增异常:派单新增合同失败,请重试
*/
String
EMP_DISPATCH_ADD_CONTRACT_ERROR
=
"emp.dispatch.add.contract.error"
;
/**
* 新增异常:派单新增项目档案失败,请重试
*/
String
EMP_DISPATCH_ADD_PROJECT_ERROR
=
"emp.dispatch.add.project.error"
;
}
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/ArchivesDaprUtil.java
View file @
0d71114b
...
...
@@ -3,10 +3,7 @@ package com.yifu.cloud.plus.v1.yifu.common.dapr.util;
import
com.alibaba.fastjson.JSON
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeProject
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.DispatchCheckVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.EmpDispatchAddVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.SetInfoVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TSettleDomainSelectVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
...
...
@@ -102,8 +99,8 @@ public class ArchivesDaprUtil {
return
res
;
}
public
R
<
DispatchAddVo
>
addDispatchInfo
(
EmpDispatchAddVo
addVo
)
{
R
<
DispatchAddVo
>
res
=
HttpDaprUtil
.
invokeMethodPost
(
daprArchivesProperties
.
getAppUrl
(),
daprArchivesProperties
.
getAppId
(),
"/temployeeinfo/addDispatchInfo"
,
JSON
.
toJSONString
(
addVo
),
DispatchAddVo
.
class
,
SecurityConstants
.
FROM_IN
);
public
R
<
Emp
DispatchAddVo
>
addDispatchInfo
(
EmpDispatchAddVo
addVo
)
{
R
<
EmpDispatchAddVo
>
res
=
HttpDaprUtil
.
invokeMethodPost
(
daprArchivesProperties
.
getAppUrl
(),
daprArchivesProperties
.
getAppId
(),
"/temployeeinfo/addDispatchInfo"
,
JSON
.
toJSONString
(
addVo
),
Emp
DispatchAddVo
.
class
,
SecurityConstants
.
FROM_IN
);
if
(
Common
.
isEmpty
(
res
)){
return
R
.
failed
(
"新增档案|项目档案|合同信息失败!"
);
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
0d71114b
...
...
@@ -793,7 +793,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
/**
* @Author fxj
* @Description 对比公积金比例,对应上true false
**/
**/
private
boolean
checkFundPer
(
List
<
SysPayProportion
>
pays
,
TDispatchImportVo
excel
){
if
(
Common
.
isNotNull
(
excel
.
getProvidentPer
())
&&
Common
.
isNotNull
(
pays
)){
for
(
SysPayProportion
per:
pays
){
...
...
@@ -971,10 +971,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
private
BigDecimal
ifNull
(
BigDecimal
old
,
BigDecimal
last
){
if
(
Common
.
isEmpty
(
old
)){
return
last
;
}
return
old
;
if
(
Common
.
isEmpty
(
old
)){
return
last
;
}
return
old
;
}
private
Date
ifNull
(
Date
old
,
Date
last
){
if
(
Common
.
isEmpty
(
old
)){
...
...
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