Commit 84a49b51 by wuwenlong

room status bugfix;

parent a6e50096
......@@ -94,13 +94,13 @@ public class RoomStatusServiceImpl implements RoomStatusService {
}
private void changeEndHoldTime(RoomStatusVo vo, Date date){
if(vo.getEndHoldTime().compareTo(date)<0){
if(Objects.isNull(vo.getEndHoldTime())||vo.getEndHoldTime().compareTo(date)<0){
vo.setEndHoldTime(date);
}
}
private void changeStartHoldTime(RoomStatusVo vo, Date date){
if(vo.getStartHoldTime().compareTo(date)>0){
if(Objects.isNull(vo.getStartHoldTime())||vo.getStartHoldTime().compareTo(date)>0){
vo.setStartHoldTime(date);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment