//交接班记录补算
public void handMakeup()
{
//获取当前时间
Date date = new Date();
List<ChildrenSystem> list = childrenSystemDao.getByName(null);
for(int i=0; i<list.size(); i++)
{
System.out.println(list.get(i).getId()+"----------------");
diGui(list.get(i).getId(), date);
}
}
public void diGui(Long systemId, Date date)
{
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
List<HandRecord> handRecords = getByEndTimeIsNull(systemId);
HandRecord handRecord = handRecords.get(0);
Date wtBegin = handRecord.getWtBegin();
String time = sdf.format(wtBegin);
Long systemId2 = handRecord.getSystemId();
if(systemId2 == 1L)
{
systemId2 = 0L;
}
//通过开始时间去倒班时间表中查询记录
String dutyName = dutyTimeDao.getDutyNameByStartTime(time, systemId2);
DutyTime dutyTime = dutyTimeDao.getDutyTimeByDutyName(dutyName, systemId2);
try {
if(sdf.pa
递归使用案例
最新推荐文章于 2023-08-04 17:07:23 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)