fix
This commit is contained in:
@@ -198,7 +198,6 @@ public class MeetBookingServiceImpl implements IMeetBookingService {
|
|||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
List<MeetBookingWeekVo> meetBookingWeekVoList = BeanUtil.copyToList(meetBookingVoList, MeetBookingWeekVo.class);
|
List<MeetBookingWeekVo> meetBookingWeekVoList = BeanUtil.copyToList(meetBookingVoList, MeetBookingWeekVo.class);
|
||||||
String[] weekStr = {"星期一", "星期二", "星期三", "星期四", "星期五", "星期六","星期日"};
|
|
||||||
List<MeetBookingWeekVo> meetBookingWeekList = new ArrayList<>();
|
List<MeetBookingWeekVo> meetBookingWeekList = new ArrayList<>();
|
||||||
SimpleDateFormat df = new SimpleDateFormat("HH");
|
SimpleDateFormat df = new SimpleDateFormat("HH");
|
||||||
List<ResidentUnitVo> residentUnitVolist = residentUnitMapper.selectVoList();
|
List<ResidentUnitVo> residentUnitVolist = residentUnitMapper.selectVoList();
|
||||||
@@ -216,8 +215,6 @@ public class MeetBookingServiceImpl implements IMeetBookingService {
|
|||||||
.filter(vo -> vo.getUserId() != null && String.valueOf(vo.getUserId()).equals(s.getPerson())).findFirst().orElse(null);
|
.filter(vo -> vo.getUserId() != null && String.valueOf(vo.getUserId()).equals(s.getPerson())).findFirst().orElse(null);
|
||||||
s.setPersonName(ObjectUtil.isNotEmpty(residentPersonVo) ? residentPersonVo.getUserName() : null);
|
s.setPersonName(ObjectUtil.isNotEmpty(residentPersonVo) ? residentPersonVo.getUserName() : null);
|
||||||
}
|
}
|
||||||
//设置当天的星期
|
|
||||||
s.setWeek(weekStr[LocalDate.now().getDayOfWeek().getValue()-1]);
|
|
||||||
String str = df.format(s.getScheduledStarttime());
|
String str = df.format(s.getScheduledStarttime());
|
||||||
int a = Integer.parseInt(str);
|
int a = Integer.parseInt(str);
|
||||||
s.setSlots(a <= 12 ? "上午" : "下午");
|
s.setSlots(a <= 12 ? "上午" : "下午");
|
||||||
|
Reference in New Issue
Block a user