|
@@ -1,5 +1,6 @@
|
|
|
package com.ruoyi.project.training.bccnew.service.impl;
|
|
|
|
|
|
+import com.ruoyi.common.utils.DateUtils;
|
|
|
import com.ruoyi.project.document.domain.TPlantproglist;
|
|
|
import com.ruoyi.project.document.mapper.TPlantproglistMapper;
|
|
|
import com.ruoyi.project.plant.domain.TStaffmgr;
|
|
@@ -17,6 +18,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Calendar;
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -208,7 +211,10 @@ public class TTsNewServiceImpl implements ITTsNewService {
|
|
|
tTsFirstplanMapper.insertTTsFirstplan(tTsFirstplan);
|
|
|
}
|
|
|
TStaffmgr tStaffmgr = tStaffmgrMapper.selectTStaffmgrByStaffId(tTsNew.getStaffId());
|
|
|
- tShiftRoster.setShiftDate(rosters.get(i+1).getShiftDate());
|
|
|
+ Calendar calendar = Calendar.getInstance();
|
|
|
+ calendar.setTime(tTsNew.getStartdate());
|
|
|
+ calendar.set(Calendar.MONTH, calendar.get(Calendar.MONTH) + 1);
|
|
|
+ tShiftRoster.setShiftDate(calendar.getTime());
|
|
|
tShiftRoster.setDclass(tStaffmgr.getTeam());
|
|
|
tShiftRoster.setNclass(tStaffmgr.getTeam());
|
|
|
tShiftRoster.setVacation(null);
|