|
|
@@ -94,8 +94,14 @@ open class SalaryEffectiveService( |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
open fun updateSalaryEffective(staffId: Long, salaryEffectiveInfo: List<SalaryEffectiveInfo>?){ |
|
|
|
open fun updateSalaryEffective(staffId: Long, salaryEffectiveInfo: List<SalaryEffectiveInfo>?, delSalaryEffectiveInfo: List<Long>?){ |
|
|
|
delSalaryEffectiveInfo?.forEach { item -> |
|
|
|
salaryEffectiveRepository.deleteById(item) |
|
|
|
} |
|
|
|
|
|
|
|
salaryEffectiveInfo?.forEachIndexed { index, item -> |
|
|
|
// println("================ $staffId ===========================") |
|
|
|
// println("salaryPoint: $item.salaryPoint") |
|
|
|
val staff = staffRepository.findById(staffId).orElseThrow() |
|
|
|
val salary = salaryRepository.findBySalaryPoint(item.salaryPoint).orElseThrow() |
|
|
|
val salaryEffective: SalaryEffective |
|
|
|