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
db0df6f2
Commit
db0df6f2
authored
Apr 30, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
c04a776a
911423b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
TSalaryStandardOriginalServiceImpl.java
...lary/service/impl/TSalaryStandardOriginalServiceImpl.java
+13
-11
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryStandardOriginalServiceImpl.java
View file @
db0df6f2
...
@@ -906,19 +906,21 @@ public class TSalaryStandardOriginalServiceImpl extends ServiceImpl<TSalaryStand
...
@@ -906,19 +906,21 @@ public class TSalaryStandardOriginalServiceImpl extends ServiceImpl<TSalaryStand
value
=
column
.
getValue
();
value
=
column
.
getValue
();
if
(
Common
.
isNotNull
(
value
))
{
if
(
Common
.
isNotNull
(
value
))
{
try
{
try
{
if
(
"REDUCE"
.
equals
(
detail
.
getFlag
()))
{
if
(
"REDUCE"
.
equals
(
detail
.
getFlag
())
||
"ADD"
.
equals
(
detail
.
getFlag
())
||
"MAIN"
.
equals
(
detail
.
getFlag
()))
{
if
(
value
.
contains
(
","
))
{
if
(
"REDUCE"
.
equals
(
detail
.
getFlag
()))
{
value
=
value
.
replace
(
","
,
""
);
if
(
value
.
contains
(
","
))
{
value
=
value
.
replace
(
","
,
""
);
}
value
=
String
.
valueOf
(
new
BigDecimal
(
value
).
negate
());
}
}
value
=
String
.
valueOf
(
new
BigDecimal
(
value
).
negate
());
oldValue
=
newRowMap
.
get
(
detail
.
getModelName
());
}
if
(
Common
.
isNotNull
(
oldValue
))
{
oldValue
=
newRowMap
.
get
(
detail
.
getModelName
());
if
(
oldValue
.
contains
(
","
))
{
if
(
Common
.
isNotNull
(
oldValue
))
{
oldValue
=
oldValue
.
replace
(
","
,
""
);
if
(
oldValue
.
contains
(
","
))
{
}
oldValue
=
oldValue
.
replace
(
","
,
""
);
value
=
String
.
valueOf
(
new
BigDecimal
(
oldValue
).
add
(
new
BigDecimal
(
value
))
.
setScale
(
SalaryConstants
.
PLACES
,
BigDecimal
.
ROUND_HALF_UP
));
}
}
value
=
String
.
valueOf
(
new
BigDecimal
(
oldValue
).
add
(
new
BigDecimal
(
value
))
.
setScale
(
SalaryConstants
.
PLACES
,
BigDecimal
.
ROUND_HALF_UP
));
}
}
}
catch
(
NumberFormatException
e
)
{
}
catch
(
NumberFormatException
e
)
{
return
R
.
failed
(
"数据行第 "
+
i
+
" 行,第 "
+
(
Integer
.
parseInt
(
column
.
getKey
())
+
1
)
+
" 列 不是金额,不可以进行加减计算!"
);
return
R
.
failed
(
"数据行第 "
+
i
+
" 行,第 "
+
(
Integer
.
parseInt
(
column
.
getKey
())
+
1
)
+
" 列 不是金额,不可以进行加减计算!"
);
...
...
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