fix:排班计划生成排班日历时,结束日期也生成

This commit is contained in:
zhangxuanming 2024-12-26 14:19:50 +08:00
parent 0d65839d27
commit 2033b454ac

View File

@ -134,7 +134,7 @@ public class CalTeamshiftServiceImpl implements ICalTeamshiftService
CalPlanTeam p2 = new CalPlanTeam(); CalPlanTeam p2 = new CalPlanTeam();
p2.setPlanId(plandId); p2.setPlanId(plandId);
List<CalPlanTeam> teams = calPlanTeamMapper.selectCalPlanTeamList(p2); List<CalPlanTeam> teams = calPlanTeamMapper.selectCalPlanTeamList(p2);
Long days = CalendarUtil.getDateDiff(plan.getStartDate(),plan.getEndDate()); Long days = CalendarUtil.getDateDiff(plan.getStartDate(),plan.getEndDate()) + 1;
int shiftIndex =0; int shiftIndex =0;
Date nowDate =null; Date nowDate =null;