Commit 95152afe authored by 位宇华's avatar 位宇华

代码提交

parent 1157954b
......@@ -3,6 +3,8 @@ package com.ruoyi.system.service.impl;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.constant.CoalConstant;
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 org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
......@@ -10,15 +12,26 @@ import org.springframework.stereotype.Service;
@Service
public class SalaryPowerUnifyExposeServiceImpl implements SalaryPowerUnifyExposeService {
@Override
public AjaxResult unify(SalaryPowerUnifyExposeRequestModel salaryPowerUnifyExposeRequestModel) {
private final PowerDisplayService powerDisplayService;
if (StringUtils.equals(CoalConstant.ZERO,salaryPowerUnifyExposeRequestModel.getType())){
private final SalaryCurrentRuleService salaryCurrentRuleService;
}
if (StringUtils.equals(CoalConstant.ONE,salaryPowerUnifyExposeRequestModel.getType())){
public SalaryPowerUnifyExposeServiceImpl(PowerDisplayService powerDisplayService, SalaryCurrentRuleService salaryCurrentRuleService) {
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();
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment