|
@@ -71,6 +71,14 @@ public class AuthorizeRtkServiceImpl extends ServiceImpl<IAuthorizeRtkMapper, Au
|
|
|
DateTime startDate = DateUtil.parse(startTime);
|
|
|
DateTime endDate = DateUtil.parse(endTime);
|
|
|
if(rtkDevice.getValidStartTime() != null && rtkDevice.getValidEndTime() != null){
|
|
|
+
|
|
|
+ if(startDate.isBefore(rtkDevice.getValidStartTime())){
|
|
|
+ throw new BusinessException(ResultCode.RTK_TIME_ERROR);
|
|
|
+ }
|
|
|
+ if(endDate.isBefore(rtkDevice.getValidEndTime())){
|
|
|
+ throw new BusinessException(ResultCode.RTK_TIME_ERROR);
|
|
|
+ }
|
|
|
+
|
|
|
if(DateUtil.isIn(startDate,rtkDevice.getValidStartTime(),rtkDevice.getValidEndTime())){
|
|
|
throw new BusinessException(ResultCode.RTK_TIME_ERROR);
|
|
|
}
|