提成比例问题
This commit is contained in:
parent
c2df4242ce
commit
06f8dda540
@ -262,11 +262,13 @@ public class CalSalaryBatch {
|
||||
//服务类型金额 - 成本
|
||||
BigDecimal amount = item.getBusinessAmount().subtract(cost);
|
||||
// ×比例
|
||||
rate = rate.multiply(new BigDecimal("0.01"));
|
||||
salary = salary.add(amount.multiply(rate));
|
||||
}else{//(按照类型算)
|
||||
for (PsContractBusinessDetailVo detail : item.getDetailVoList()){
|
||||
//比例
|
||||
BigDecimal rateConfig = configMap.get(detail.getBusinessProject()) == null ? new BigDecimal("0.1") : configMap.get(detail.getBusinessProject());
|
||||
rateConfig = rateConfig.multiply(new BigDecimal("0.01"));
|
||||
//成本
|
||||
BigDecimal rateCost = costMap.get(detail.getBusinessProject()) == null ? new BigDecimal(cbStr):costMap.get(detail.getBusinessProject());
|
||||
|
||||
|
@ -66,7 +66,7 @@ public class PsSalaryServiceImpl implements IPsSalaryService {
|
||||
LocalDateTime deadline = bo.getEndDate().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime();
|
||||
LocalDate thisMonth = LocalDate.now();
|
||||
List<PsSalaryVo> adds = calSalaryBatch.calcData(deadline, thisMonth, false);
|
||||
List<PsSalaryVo> records= new ArrayList<>();
|
||||
List<PsSalaryVo> records = new ArrayList<>();
|
||||
records.addAll(result.getRecords());
|
||||
|
||||
// long diffNum = result.getSize() - result.getRecords().size();
|
||||
|
Loading…
Reference in New Issue
Block a user