添加自动补招数据外部接口

This commit is contained in:
hzj
2025-07-30 11:16:23 +08:00
parent 4e46025c74
commit 4a02526db0

View File

@@ -68,13 +68,13 @@ public class DataRecallController extends BaseController {
List<String> guidList = new ArrayList<>(); List<String> guidList = new ArrayList<>();
List<String> runMonitorIds = new ArrayList<>(); List<String> runMonitorIds = new ArrayList<>();
List<RecallMessage.RecallDTO> recallDTOList = new ArrayList<>(); List<RecallMessage.RecallDTO> recallDTOList = new ArrayList<>();
Duration duration = Duration.between(param.getReCallStartTime(), param.getReCallEndTime()); // Duration duration = Duration.between(param.getReCallStartTime(), param.getReCallEndTime());
// 获取剩余的分钟数,如果要精确到分钟可以这样做 // // 获取剩余的分钟数,如果要精确到分钟可以这样做
long minutes = duration.toMinutes() ; // long minutes = duration.toMinutes() ;
if(minutes>60){ // if(minutes>60){
throw new BusinessException("全量补招时间区间不能超过一个小时"); // throw new BusinessException("全量补招时间区间不能超过一个小时");
//
} // }
if(CollectionUtils.isEmpty(param.getMonitorId())){ if(CollectionUtils.isEmpty(param.getMonitorId())){
throw new BusinessException("请选择监测点"); throw new BusinessException("请选择监测点");
}else { }else {