Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
klck
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
位宇华
klck
Commits
8705a06b
Commit
8705a06b
authored
6 months ago
by
位宇华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中润工资--代码提交
parent
11ef1ebd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ruoyi-wages/src/main/java/com/ruoyi/system/support/CurrentRuleSalarySupport.java
...va/com/ruoyi/system/support/CurrentRuleSalarySupport.java
+6
-5
No files found.
ruoyi-wages/src/main/java/com/ruoyi/system/support/CurrentRuleSalarySupport.java
View file @
8705a06b
package
com.ruoyi.system.support
;
import
com.alibaba.fastjson.JSON
;
import
com.ruoyi.system.constant.CoalConstant
;
import
com.ruoyi.system.mapper.SalaryMapper
;
import
com.ruoyi.system.model.newrule.NewRuleRequestModel
;
...
...
@@ -54,12 +54,12 @@ public class CurrentRuleSalarySupport {
* @return
*/
private
static
List
<
SalaryExcelModel
>
getZrMineSalaryData
(
List
<
NewRuleRequestModel
>
newRuleRequestModelList
)
{
String
mineCode
=
newRuleRequestModelList
.
get
(
0
).
getMineid
();
String
mineCode
=
newRuleRequestModelList
.
get
(
0
).
getMineid
();
ReplaceSpace
(
newRuleRequestModelList
);
ReplaceBracket
(
newRuleRequestModelList
);
List
<
SalaryExpenseSourceModel
>
sourceModels
=
salaryMapper
.
getSources
(
mineCode
);
List
<
NewRuleRequestModel
>
collect
=
newRuleRequestModelList
.
stream
().
filter
(
v
->
sourceModels
.
stream
().
noneMatch
(
source
->
StringUtils
.
equals
(
v
.
getRow
(),
source
.
getExpenseSource
()))).
collect
(
Collectors
.
toList
());
collect
=
collect
.
stream
().
filter
(
v
->
sourceModels
.
stream
().
anyMatch
(
source
->
StringUtils
.
equals
(
v
.
getRow
(),
source
.
getOrg
()))).
collect
(
Collectors
.
toList
());
collect
=
collect
.
stream
().
filter
(
v
->
sourceModels
.
stream
().
anyMatch
(
source
->
StringUtils
.
equals
(
v
.
getRow
(),
source
.
getOrg
()))).
collect
(
Collectors
.
toList
());
return
getSalaryMapping
(
collect
);
}
...
...
@@ -291,8 +291,9 @@ public class CurrentRuleSalarySupport {
v
.
setWageMonth
(
v
.
getWageMonth
().
replaceAll
(
StringUtils
.
SPACE
,
StringUtils
.
EMPTY
));
});
}
private
static
void
ReplaceBracket
(
List
<
NewRuleRequestModel
>
newRuleRequestModelList
)
{
newRuleRequestModelList
.
forEach
(
v
->
v
.
setRow
(
v
.
getRow
().
replaceAll
(
"其中:"
,
StringUtils
.
EMPTY
)));
newRuleRequestModelList
.
forEach
(
v
->
v
.
setRow
(
v
.
getRow
().
replaceAll
(
"其中:"
,
StringUtils
.
EMPTY
)));
}
}
This diff is collapsed.
Click to expand it.
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