Commit d0a16b09 by 刘鑫

doc(ID1003910): 提示信息修订

1 parent e0185240
......@@ -274,7 +274,9 @@ public class EngineerCalendarServiceImpl implements EngineerCalendarService {
LocalDateTime startTime = DateUtils.localDateTimeFromStr(beginTime);
LocalDateTime endTime1 = DateUtils.localDateTimeFromStr(endTime);
if (checkTimesHasOverlap(endDate, engineerCode, startTime, endTime1)) {
throw new BusinessException("工程师" + engineerCode + "存在交叉的日期日历" + DateTimeUtil.formatDate(endDate));
throw new BusinessException("工号为" + engineerCode + "的工程师在"
+ DateTimeUtil.formatDateTime(startTime) + "到"
+ DateTimeUtil.formatDateTime(endTime1) + "区间已有日程安排");
}
// 设定的是同一天,简单处理
CapacityEngineerCalendarEntity e = new CapacityEngineerCalendarEntity();
......@@ -325,7 +327,9 @@ public class EngineerCalendarServiceImpl implements EngineerCalendarService {
}
//校验是否有当天时间段的记录
if (checkTimesHasOverlap(current, engineerCode, e.getStartTime(), e.getEndTime())) {
throw new BusinessException("工程师" + engineerCode + "存在交叉的日期日历" + DateTimeUtil.formatDate(current));
throw new BusinessException("工号为" + engineerCode + "的工程师在"
+ DateTimeUtil.formatDateTime(e.getStartTime()) + "到"
+ DateTimeUtil.formatDateTime(e.getStartTime()) + "区间已有日程安排");
}
e.setWorkday(DateUtils.formatDate(current));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!