|
@@ -18,6 +18,7 @@ import com.qmth.exam.reserve.entity.*;
|
|
|
import com.qmth.exam.reserve.service.*;
|
|
|
import com.qmth.exam.reserve.util.DateUtil;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
+import org.apache.commons.lang3.time.DateFormatUtils;
|
|
|
import org.redisson.api.RLock;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -88,7 +89,8 @@ public class StudentAutoAssignServiceImpl extends ServiceImpl<StudentApplyDao, S
|
|
|
// 所有预约时段
|
|
|
List<TimePeriodExamSiteBean> timeList = timePeriodService.listTimePeriodByTask(taskId);
|
|
|
|
|
|
- stringJoiner.add(MessageFormat.format("未完成预约的考生数:{0} 个", studentList.size()));
|
|
|
+ stringJoiner.add(
|
|
|
+ MessageFormat.format("{0}-未完成预约的考生数:{1} 个", DateFormatUtils.format(new Date(), DateUtil.LongDateString), studentList.size()));
|
|
|
|
|
|
// 考位是否充足
|
|
|
checkTeachingCapacity(noFinishApplyMap, timeList, taskId);
|
|
@@ -121,7 +123,7 @@ public class StudentAutoAssignServiceImpl extends ServiceImpl<StudentApplyDao, S
|
|
|
throw new StatusException("【" + categoryBean.getName() + "】教学点考位不足,还需要【" + teachingStudentList.size() + "】个考位");
|
|
|
}
|
|
|
}
|
|
|
- stringJoiner.add(MessageFormat.format("自动预约成功的次数为:{0} 次", successNum));
|
|
|
+ stringJoiner.add(MessageFormat.format("{0}-自动预约成功的次数为:{1} 次", DateFormatUtils.format(new Date(), DateUtil.LongDateString), successNum));
|
|
|
} catch (Exception e) {
|
|
|
log.error(e.getMessage());
|
|
|
throw new StatusException(e.getMessage());
|