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
226f6f3f
Commit
226f6f3f
authored
Aug 23, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
年终奖提示改版
parent
2673996a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
SalaryUploadServiceImpl.java
.../v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
+6
-10
TSalaryAccountMapper.xml
...ry-biz/src/main/resources/mapper/TSalaryAccountMapper.xml
+1
-1
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
View file @
226f6f3f
...
...
@@ -7,10 +7,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TDepartSettlementInfo;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TSettleDomainSelectVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.BigDecimalUtils
;
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.core.util.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprArchivesProperties
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprSocialProperties
;
...
...
@@ -519,14 +516,14 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
// 年终奖是否已存在 (true:已存在,不可导入)
boolean
yearEndError
=
false
;
// 年终奖错误信息合计:
List
<
ErrorMessage
>
errorInfo
=
new
ArrayList
<>();
// 劳务费、稿酬是否含有发薪false:否;true:是
boolean
haveSalaryFlag
=
false
;
// 是否含有特殊金额false:否;true:是
boolean
haveSpecialFlag
=
false
;
// 是否重复金额false:否;true:是
boolean
repeatFlag
=
false
;
// 年终奖错误信息合计:
StringBuilder
yearEndInfo
=
new
StringBuilder
();
List
<
String
>
idCardList
=
new
ArrayList
<>();
for
(
TSalaryAccountVo
vo
:
savList
)
{
if
(
Common
.
isNotNull
(
vo
.
getEmpIdcard
()))
{
...
...
@@ -706,12 +703,11 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
annualBonusList
=
tSalaryAccountItemService
.
getAllTSalaryAccountItem
(
null
,
null
,
SalaryConstants
.
ANNUAL_BONUS_JAVA
,
a
.
getSettlementMonth
().
substring
(
0
,
4
),
a
.
getEmpIdcard
(),
null
);
if
(
annualBonusList
!=
null
&&
annualBonusList
.
size
()
>
CommonConstants
.
ZERO_INT
)
{
if
(
annualBonusList
!=
null
&&
!
annualBonusList
.
isEmpty
()
)
{
if
(!
yearEndError
)
{
yearEndError
=
true
;
yearEndInfo
.
append
(
"以下人员,年终奖重复发放(一个结算年只能发一次): ||"
);
}
yearEndInfo
.
append
(
"第"
+
(
i
+
2
)
+
"行:【"
+
a
.
getEmpIdcard
()
+
"】 ||"
);
errorInfo
.
add
(
new
ErrorMessage
((
i
+
2
),
a
.
getEmpIdcard
()+
"年终奖重复发放"
)
);
}
else
{
//年终奖优化方案 2:自动计算
if
(
CommonConstants
.
TWO_STRING
.
equals
(
checkYearFinalStyle
))
{
...
...
@@ -774,7 +770,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
}
}
if
(
yearEndError
)
{
return
new
R
<>(
CommonConstants
.
TWO_INT
,
"年终奖重复"
,
yearEndInfo
.
toString
()
);
return
new
R
<>(
CommonConstants
.
TWO_INT
,
"年终奖重复"
,
errorInfo
);
}
salary
.
setOwnNums
(
ownNum
);
salary
.
setOwnMoney
(
ownMoney
);
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryAccountMapper.xml
View file @
226f6f3f
...
...
@@ -276,7 +276,7 @@
concat(min(a.TAX_MONTH - 0),'')
from t_salary_account a
where a.EMP_IDCARD = #{empIdCard} and a.DELETE_FLAG = 0 and a.SETTLEMENT_MONTH like concat(#{nowYear},"%")
and a.FORM_TYPE != '3'
and a.FORM_TYPE != '3'
and a.FORM_TYPE != '4'
</select>
<select
id=
"getLastMonthTHaveSalaryNosocial"
resultType=
"com.yifu.cloud.plus.v1.yifu.salary.entity.THaveSalaryNosocial"
>
...
...
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