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
95152afe
Commit
95152afe
authored
Aug 30, 2024
by
位宇华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
1157954b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
ruoyi-wages/src/main/java/com/ruoyi/system/service/impl/SalaryPowerUnifyExposeServiceImpl.java
...ystem/service/impl/SalaryPowerUnifyExposeServiceImpl.java
+19
-6
No files found.
ruoyi-wages/src/main/java/com/ruoyi/system/service/impl/SalaryPowerUnifyExposeServiceImpl.java
View file @
95152afe
...
@@ -3,6 +3,8 @@ package com.ruoyi.system.service.impl;
...
@@ -3,6 +3,8 @@ package com.ruoyi.system.service.impl;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.system.constant.CoalConstant
;
import
com.ruoyi.system.constant.CoalConstant
;
import
com.ruoyi.system.model.SalaryPowerUnifyExposeRequestModel
;
import
com.ruoyi.system.model.SalaryPowerUnifyExposeRequestModel
;
import
com.ruoyi.system.service.PowerDisplayService
;
import
com.ruoyi.system.service.SalaryCurrentRuleService
;
import
com.ruoyi.system.service.SalaryPowerUnifyExposeService
;
import
com.ruoyi.system.service.SalaryPowerUnifyExposeService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -10,15 +12,26 @@ import org.springframework.stereotype.Service;
...
@@ -10,15 +12,26 @@ import org.springframework.stereotype.Service;
@Service
@Service
public
class
SalaryPowerUnifyExposeServiceImpl
implements
SalaryPowerUnifyExposeService
{
public
class
SalaryPowerUnifyExposeServiceImpl
implements
SalaryPowerUnifyExposeService
{
@Override
private
final
PowerDisplayService
powerDisplayService
;
public
AjaxResult
unify
(
SalaryPowerUnifyExposeRequestModel
salaryPowerUnifyExposeRequestModel
)
{
if
(
StringUtils
.
equals
(
CoalConstant
.
ZERO
,
salaryPowerUnifyExposeRequestModel
.
getType
())){
private
final
SalaryCurrentRuleService
salaryCurrentRuleService
;
}
public
SalaryPowerUnifyExposeServiceImpl
(
PowerDisplayService
powerDisplayService
,
SalaryCurrentRuleService
salaryCurrentRuleService
)
{
if
(
StringUtils
.
equals
(
CoalConstant
.
ONE
,
salaryPowerUnifyExposeRequestModel
.
getType
())){
this
.
powerDisplayService
=
powerDisplayService
;
this
.
salaryCurrentRuleService
=
salaryCurrentRuleService
;
}
@Override
public
AjaxResult
unify
(
SalaryPowerUnifyExposeRequestModel
salaryPowerUnifyExposeRequestModel
)
{
//工资
if
(
StringUtils
.
equals
(
CoalConstant
.
ZERO
,
salaryPowerUnifyExposeRequestModel
.
getType
()))
{
salaryCurrentRuleService
.
getCurrentRuleSalary
(
salaryPowerUnifyExposeRequestModel
.
getNewRuleSalaryModelList
());
}
//电力
if
(
StringUtils
.
equals
(
CoalConstant
.
ONE
,
salaryPowerUnifyExposeRequestModel
.
getType
()))
{
powerDisplayService
.
peek
(
salaryPowerUnifyExposeRequestModel
.
getNewRuleSalaryModelList
());
}
}
return
null
;
return
AjaxResult
.
success
()
;
}
}
}
}
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