查询邀约,过期提示
This commit is contained in:
1 parent
af4c32b649
commit
1ccd6a50cd
1 file changed
+5
+5
@@ -535,6 +535,11 @@ public class VisitorsServiceImpl extends ServiceImpl<VisitorsMapper, VisitorsEnt
|
||||
if(visitorsEntity == null){
|
||||
throw new ServiceException("数据不存在");
|
||||
}
|
||||
if (visitorsEntity.getVStartDate() == null ||
|
||||
visitorsEntity.getVEndDate() == null ||
|
||||
LocalDateTime.now().isAfter(visitorsEntity.getVEndDate())) {
|
||||
throw new ServiceException("该访客预约已过期");
|
||||
}
|
||||
// 转换为VO对象
|
||||
VisitorsAppYYDetailVo result = BeanUtils.toBean(visitorsEntity, VisitorsAppYYDetailVo.class);
|
||||
|
||||
|
||||
Reference in new issue
Block a user