Merge branch 'fix/addSpecialDeduction' into release/2.5.3.2301.01
This commit is contained in:
commit
d700d7a300
|
|
@ -675,8 +675,13 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
|||
|
||||
//获取上月员工数据,用于累加
|
||||
LocalDateTime lastMonthDateTime = yearMonthTime.minusMonths(1);
|
||||
YearMonth lastMonth = YearMonth.of(lastMonthDateTime.getYear(), lastMonthDateTime.getMonth());
|
||||
Map<Long, List<AddUpDeduction>> lastEmpInfo = getEmpInfoByYearMonth(taxAgent, employeePOs, lastMonth);
|
||||
Map<Long, List<AddUpDeduction>> lastEmpInfo;
|
||||
if (lastMonthDateTime.getYear() == yearMonthTime.getYear()) {
|
||||
YearMonth lastMonth = YearMonth.of(lastMonthDateTime.getYear(), lastMonthDateTime.getMonth());
|
||||
lastEmpInfo = getEmpInfoByYearMonth(taxAgent, employeePOs, lastMonth);
|
||||
} else {
|
||||
lastEmpInfo = new HashMap<>(0);
|
||||
}
|
||||
|
||||
//获取当月员工数据,用于更新
|
||||
YearMonth currentMonth = YearMonth.of(yearMonthTime.getYear(), yearMonthTime.getMonth());
|
||||
|
|
|
|||
Loading…
Reference in New Issue