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
475d681a
Commit
475d681a
authored
Jul 27, 2023
by
wangzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature-wzb :注释修改
parent
b6a0acd3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
12 deletions
+18
-12
SalaryAccountUtil.java
...ifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
+4
-2
TSalaryAccountItemMapper.xml
...iz/src/main/resources/mapper/TSalaryAccountItemMapper.xml
+11
-9
TSalaryEmployeeMapper.xml
...y-biz/src/main/resources/mapper/TSalaryEmployeeMapper.xml
+3
-1
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
View file @
475d681a
...
...
@@ -179,10 +179,11 @@ public class SalaryAccountUtil implements Serializable {
annualBonusFlag
=
true
;
}
if
(
SalaryConstants
.
PHONE_SUBSIDY_JAVA
.
equals
(
scs
.
getJavaFiedName
()))
{
BigDecimal
bigDecimal1
=
NumberUtils
.
createBigDecimal
(
cellValueStr
);
if
(
bigDecimal1
.
compareTo
(
BigDecimal
.
valueOf
(
300
))
==
1
)
{
errorFlag
=
false
;
error
=
"第"
+
(
i
+
2
)
+
"行:
当月已发
"
+
cellValueStr
+
"元,超出300元的限制,禁止导入"
;
error
=
"第"
+
(
i
+
2
)
+
"行:
本次发放
"
+
cellValueStr
+
"元,超出300元的限制,禁止导入"
;
errorList
.
add
(
new
ErrorMessage
((
i
+
2
),
error
));
continue
;
}
...
...
@@ -375,9 +376,10 @@ public class SalaryAccountUtil implements Serializable {
BigDecimal
LL
=
item
.
getSalaryMoney
().
add
(
phoneSubsidy
);
if
(
LL
.
compareTo
(
BigDecimal
.
valueOf
(
300
))
==
1
)
{
BigDecimal
HH
=
LL
.
subtract
(
phoneSubsidy
);
error
=
"第"
+
(
i
+
2
)
+
"行:当月已发"
+
HH
+
"元,超出300元的限制,禁止导入
"
;
error
=
"第"
+
(
i
+
2
)
+
"行:当月已发"
+
HH
+
"元,本次发放"
+
phoneSubsidy
+
"元,累计超出300元限制,禁止发放!
"
;
errorList
.
add
(
new
ErrorMessage
((
i
+
2
),
error
));
continue
;
}
}
if
(
annualBonusFlag
&&
Common
.
isEmpty
(
entity
.
getAnnualBonusType
()))
{
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryAccountItemMapper.xml
View file @
475d681a
...
...
@@ -31,17 +31,18 @@
<!--tSalaryAccountItem简单分页查询-->
<select
id=
"getTSalaryAccountItemPage"
resultMap=
"tSalaryAccountItemMap"
>
SELECT
ID,
SALARY_ACCOUNT_ID,
CN_NAME,
JAVA_FIED_NAME,
SALARY_MONEY,
TEXT_VALUE,
IS_TAX
FROM
SELECT
ID,
SALARY_ACCOUNT_ID,
CN_NAME,
JAVA_FIED_NAME,
SUM(SALARY_MONEY)
SALARY_MONEY,
TEXT_VALUE,
IS_TAX
FROM
<if
test=
"tSalaryAccountItem.salaryMonth == null or tSalaryAccountItem.salaryMonth.trim() >= '202201'"
>
t_salary_account_item a
</if>
<if
test=
"tSalaryAccountItem.salaryMonth != null and tSalaryAccountItem.salaryMonth.trim() < '202201' "
>
t_salary_account_item_hro_2021 a
...
...
@@ -63,6 +64,7 @@
AND SALARY_MONEY = #{tSalaryAccountItem.salaryMoney}
</if>
</where>
GROUP BY CN_NAME
</select>
<select
id=
"getAllTSalaryAccountItem"
resultMap=
"tSalaryAccountItemMap"
>
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryEmployeeMapper.xml
View file @
475d681a
...
...
@@ -275,11 +275,13 @@
a.IS_TAX,
a.TEXT_VALUE,
b.EMP_IDCARD,
b.SALARY_MONTH
b.SALARY_MONTH,
b.DELETE_FLAG
FROM `t_salary_account_item` a LEFT JOIN t_salary_account b on a.SALARY_ACCOUNT_ID =b.ID
WHERE a.JAVA_FIED_NAME ='phoneSubsidy'
and b.EMP_IDCARD= #{empIdCard}
and b.SETTLEMENT_MONTH=#{nowMonth}
and b.DELETE_FLAG='0'
</select>
<!-- 人员花名册薪资信息 -->
<select
id=
"getSalaryEmpRoster"
resultMap=
"salaryEmpRosterMap"
parameterType=
"com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryEmpRosterVo"
>
...
...
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