|
|
@@ -6,6 +6,8 @@ import cn.hutool.core.date.DateTime;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
+import com.alibaba.excel.EasyExcel;
|
|
|
+import com.alibaba.excel.support.ExcelTypeEnum;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
@@ -42,15 +44,22 @@ import com.xjrsoft.module.schedule.util.ScheduleUtil;
|
|
|
import com.xjrsoft.module.schedule.vo.CourseDetailVo;
|
|
|
import com.xjrsoft.module.schedule.vo.CourseListVo;
|
|
|
import com.xjrsoft.module.schedule.vo.CourseTableVo;
|
|
|
+import com.xjrsoft.module.schedule.vo.ScheduleWeekExportQueryVo;
|
|
|
import com.xjrsoft.module.teacher.entity.BaseTeacher;
|
|
|
import com.xjrsoft.module.teacher.entity.XjrUser;
|
|
|
import com.xjrsoft.module.teacher.service.ITeacherbaseManagerService;
|
|
|
+import com.xjrsoft.module.textbook.entity.SubjectGroupCourse;
|
|
|
+import com.xjrsoft.module.textbook.vo.TextbookClaimExportQueryVo;
|
|
|
+import com.xjrsoft.module.textbook.vo.TextbookIssueRecordExcelVo;
|
|
|
+import io.swagger.models.auth.In;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.apache.poi.xwpf.usermodel.XWPFDocument;
|
|
|
import org.apache.poi.xwpf.usermodel.XWPFParagraph;
|
|
|
import org.apache.poi.xwpf.usermodel.XWPFTable;
|
|
|
import org.apache.poi.xwpf.usermodel.XWPFTableCell;
|
|
|
import org.apache.poi.xwpf.usermodel.XWPFTableRow;
|
|
|
+import org.checkerframework.checker.units.qual.C;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
@@ -63,10 +72,7 @@ import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.ZoneId;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
@@ -152,7 +158,7 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
public List<ClassListVo> classList(ClassListDto dto) {
|
|
|
LambdaQueryWrapper<CourseTable> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
queryWrapper.eq(CourseTable::getClassId, dto.getClassId())
|
|
|
- .eq(ObjectUtil.isNotEmpty(dto.getWeeks()), CourseTable::getWeeks,dto.getWeeks());
|
|
|
+ .eq(ObjectUtil.isNotEmpty(dto.getWeeks()), CourseTable::getWeeks, dto.getWeeks());
|
|
|
|
|
|
List<CourseTable> courseTables = courseTableMapper.selectList(queryWrapper);
|
|
|
|
|
|
@@ -183,13 +189,13 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
public CourseTableVo getList(CourseTableDto dto) {
|
|
|
|
|
|
List<ClassTime> classTimes = classTimeMapper.selectList(
|
|
|
- new QueryWrapper<ClassTime>().lambda().orderByAsc(ClassTime::getSummerStartTime)
|
|
|
+ new QueryWrapper<ClassTime>().lambda().orderByAsc(ClassTime::getSummerStartTime)
|
|
|
);
|
|
|
|
|
|
CourseTableVo tableVo = new CourseTableVo();
|
|
|
tableVo.setClassTimeList(classTimes);
|
|
|
|
|
|
- if(dto.getSemesterId() != null){
|
|
|
+ if (dto.getSemesterId() != null) {
|
|
|
BaseSemester baseSemester = baseSemesterMapper.selectById(dto.getSemesterId());
|
|
|
tableVo.setSemesterName(baseSemester.getName());
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
@@ -199,16 +205,16 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
Duration between = Duration.between(startDateTime, endDateTime);
|
|
|
long days = between.toDays();
|
|
|
int weeks = (int) Math.ceil((double) days / 7);
|
|
|
- if(dto.getWeek() == null){
|
|
|
+ if (dto.getWeek() == null) {
|
|
|
|
|
|
- for (int i = 0; i < weeks; i ++){
|
|
|
+ for (int i = 0; i < weeks; i++) {
|
|
|
LocalDateTime startDate = startDateTime.plusDays(i * 6).withHour(0).withMinute(0).withSecond(0).withNano(0);
|
|
|
LocalDateTime endDate = startDateTime.plusDays((i + 1) * 6).withHour(23).withMinute(59).withSecond(59).withNano(9999);
|
|
|
- if(now.isAfter(startDate) && now.isBefore(endDate)){
|
|
|
+ if (now.isAfter(startDate) && now.isBefore(endDate)) {
|
|
|
tableVo.setWeek("第" + (i + 1) + "周");
|
|
|
}
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
LocalDateTime startDate = startDateTime.plusDays((dto.getWeek() - 1) * 6).withHour(0).withMinute(0).withSecond(0).withNano(0);
|
|
|
LocalDateTime endDate = startDateTime.plusDays(dto.getWeek() * 6).withHour(23).withMinute(59).withSecond(59).withNano(9999);
|
|
|
dto.setStartDate(startDate);
|
|
|
@@ -217,17 +223,17 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- if(!StrUtil.isEmpty(dto.getTeacherName())){
|
|
|
+ if (!StrUtil.isEmpty(dto.getTeacherName())) {
|
|
|
List<XjrUser> userList = teacherbaseManagerService.list(
|
|
|
- new QueryWrapper<XjrUser>().lambda()
|
|
|
- .like(!StrUtil.isEmpty(dto.getTeacherName()), XjrUser::getName, dto.getTeacherName())
|
|
|
+ new QueryWrapper<XjrUser>().lambda()
|
|
|
+ .like(!StrUtil.isEmpty(dto.getTeacherName()), XjrUser::getName, dto.getTeacherName())
|
|
|
);
|
|
|
List<XjrUser> userList2 = teacherbaseManagerService.list(
|
|
|
- new QueryWrapper<XjrUser>().lambda()
|
|
|
- .like(!StrUtil.isEmpty(dto.getTeacherName()), XjrUser::getCode, dto.getTeacherName())
|
|
|
+ new QueryWrapper<XjrUser>().lambda()
|
|
|
+ .like(!StrUtil.isEmpty(dto.getTeacherName()), XjrUser::getCode, dto.getTeacherName())
|
|
|
);
|
|
|
userList.addAll(userList2);
|
|
|
- if(userList != null && !userList.isEmpty()){
|
|
|
+ if (userList != null && !userList.isEmpty()) {
|
|
|
XjrUser xjrUser = userList.get(0);
|
|
|
dto.setTeacherId(xjrUser.getId());
|
|
|
tableVo.setTeacherName(xjrUser.getName());
|
|
|
@@ -236,7 +242,7 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
List<CourseDetailVo> list = courseTableMapper.getList(dto);
|
|
|
tableVo.setCourseList(list);
|
|
|
tableVo.setClassHour(list.size());
|
|
|
- if(dto.getClassId() != null){
|
|
|
+ if (dto.getClassId() != null) {
|
|
|
BaseClass baseClass = baseClassService.getById(dto.getClassId());
|
|
|
tableVo.setClassName(baseClass.getName());
|
|
|
}
|
|
|
@@ -250,7 +256,7 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
@Override
|
|
|
public List<CourseListVo> getAdjustList(String teacherId, String adjustDate, String classId) {
|
|
|
CourseTableAdjustDto dto = new CourseTableAdjustDto();
|
|
|
- if(adjustDate != null && !"".equals(adjustDate)){
|
|
|
+ if (adjustDate != null && !"".equals(adjustDate)) {
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
LocalDate localDateTime = LocalDate.parse(adjustDate, formatter);
|
|
|
DayOfWeek dayOfWeek = localDateTime.getDayOfWeek();
|
|
|
@@ -261,11 +267,11 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
dto.setTeacherId(Long.parseLong(teacherId));
|
|
|
List<CourseListVo> list = courseTableMapper.getAdjustList(dto);
|
|
|
for (CourseListVo courseListVo : list) {
|
|
|
- if(courseListVo.getTimePeriod() == 1){
|
|
|
+ if (courseListVo.getTimePeriod() == 1) {
|
|
|
courseListVo.setTimePeriodCn("上午");
|
|
|
- }else if(courseListVo.getTimePeriod() == 2){
|
|
|
+ } else if (courseListVo.getTimePeriod() == 2) {
|
|
|
courseListVo.setTimePeriodCn("下午");
|
|
|
- }else if(courseListVo.getTimePeriod() == 3){
|
|
|
+ } else if (courseListVo.getTimePeriod() == 3) {
|
|
|
courseListVo.setTimePeriodCn("晚上");
|
|
|
}
|
|
|
}
|
|
|
@@ -275,26 +281,26 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
|
|
|
@Override
|
|
|
public String getPreCheck(String preCheckType, String courseId, String swapCourseId, String swapDate, String subTeacherId) {
|
|
|
- if(preCheckType != null && !"".equals(preCheckType)){
|
|
|
- if(CourseAdjustTypeEnum.courseExchange.getCode().equals(preCheckType)){
|
|
|
+ if (preCheckType != null && !"".equals(preCheckType)) {
|
|
|
+ if (CourseAdjustTypeEnum.courseExchange.getCode().equals(preCheckType)) {
|
|
|
CourseTable courseTable = courseTableMapper.selectById(courseId);
|
|
|
CourseTable swapCourseTable = courseTableMapper.selectById(swapCourseId);
|
|
|
try {
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
LocalDate localDateTime = LocalDate.parse(swapDate, formatter);
|
|
|
JsonObject preCheck = getExtendPreCheck(localDateTime, courseTable, swapCourseTable);
|
|
|
- if(preCheck.get("code").getAsInt() == -1 && !preCheck.get("msg").isJsonNull()){
|
|
|
+ if (preCheck.get("code").getAsInt() == -1 && !preCheck.get("msg").isJsonNull()) {
|
|
|
return preCheck.get("msg").getAsString();
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|
|
|
|
|
|
- }else if(CourseAdjustTypeEnum.courseSubstitute.getCode().equals(preCheckType)){
|
|
|
+ } else if (CourseAdjustTypeEnum.courseSubstitute.getCode().equals(preCheckType)) {
|
|
|
CourseTable courseTable = courseTableMapper.selectById(courseId);
|
|
|
try {
|
|
|
JsonObject jsonObject = substitutePreTestin(subTeacherId, courseTable);
|
|
|
- if(jsonObject.get("code").getAsInt() == -1 && !jsonObject.get("msg").isJsonNull()){
|
|
|
+ if (jsonObject.get("code").getAsInt() == -1 && !jsonObject.get("msg").isJsonNull()) {
|
|
|
return jsonObject.get("msg").getAsString();
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
@@ -307,7 +313,7 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
|
|
|
@Override
|
|
|
public Boolean adjustCourse(WfCourseAdjust courseAdjust) throws Exception {
|
|
|
- if(CourseAdjustTypeEnum.courseExchange.getCode().equals(courseAdjust.getAdjustType())){
|
|
|
+ if (CourseAdjustTypeEnum.courseExchange.getCode().equals(courseAdjust.getAdjustType())) {
|
|
|
//调课,将双方课程的日期(schedule_date)、时段(time_period)、节次(time_number)、周(week)、星期几(1-7)(weeks)、星期中文(weeks_cn)对调
|
|
|
CourseTable courseTable = courseTableMapper.selectById(courseAdjust.getCourseId());
|
|
|
CourseTable swapCourseTable = courseTableMapper.selectById(courseAdjust.getExchangeCourseId());
|
|
|
@@ -333,7 +339,7 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
//提交调课接口
|
|
|
sendExchange(courseTableBak, swapCourseTableBak, courseAdjust);
|
|
|
|
|
|
- }else if(CourseAdjustTypeEnum.courseSubstitute.getCode().equals(courseAdjust.getAdjustType())){
|
|
|
+ } else if (CourseAdjustTypeEnum.courseSubstitute.getCode().equals(courseAdjust.getAdjustType())) {
|
|
|
CourseTable courseTable = courseTableMapper.selectById(courseAdjust.getCourseId());
|
|
|
|
|
|
courseTable.setTeacherId(courseAdjust.getExchangeTeacherId());
|
|
|
@@ -346,12 +352,133 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
|
|
|
@Override
|
|
|
public ByteArrayOutputStream listScheduleWeekExportQuery(ScheduleWeekExportQueryDto dto) {
|
|
|
+ // 创建一个字节输出流
|
|
|
+ ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
|
|
|
|
|
|
- return null;
|
|
|
+ // 获取课程表数据
|
|
|
+ CourseTableVo courseTableVo = getCourseTableVo(dto);
|
|
|
+
|
|
|
+ // 构建课程安排导出列表
|
|
|
+ List<ScheduleWeekExportQueryVo> scheduleWeekExportQueryVoList = buildScheduleWeekExportQueryList(courseTableVo);
|
|
|
+
|
|
|
+ // 将数据写入Excel文件
|
|
|
+ writeScheduleWeekExportToExcel(outputStream, scheduleWeekExportQueryVoList);
|
|
|
+
|
|
|
+ return outputStream;
|
|
|
+ }
|
|
|
+
|
|
|
+ private CourseTableVo getCourseTableVo(ScheduleWeekExportQueryDto dto) {
|
|
|
+ CourseTableDto courseTableDto = new CourseTableDto();
|
|
|
+ BeanUtils.copyProperties(dto, courseTableDto);
|
|
|
+ return this.getList(courseTableDto);
|
|
|
+ }
|
|
|
+
|
|
|
+ private List<ScheduleWeekExportQueryVo> buildScheduleWeekExportQueryList(CourseTableVo courseTableVo) {
|
|
|
+ List<ClassTime> classTimeList = courseTableVo.getClassTimeList();
|
|
|
+ List<CourseDetailVo> courseList = courseTableVo.getCourseList();
|
|
|
+ List<ScheduleWeekExportQueryVo> scheduleWeekExportQueryVoList = new ArrayList<>();
|
|
|
+
|
|
|
+ if (!courseList.isEmpty()) {
|
|
|
+ Map<Integer, Map<Integer, List<CourseDetailVo>>> courseDetailVoMap = buildCourseDetailMap(courseList);
|
|
|
+ scheduleWeekExportQueryVoList.addAll(buildScheduleWeekExportQueryVoList(courseDetailVoMap, classTimeList));
|
|
|
+ }
|
|
|
+
|
|
|
+ return scheduleWeekExportQueryVoList;
|
|
|
+ }
|
|
|
+
|
|
|
+ private Map<Integer, Map<Integer, List<CourseDetailVo>>> buildCourseDetailMap(List<CourseDetailVo> courseList) {
|
|
|
+ // 实现构建课程详情Map的逻辑
|
|
|
+ Map<Integer, Map<Integer, List<CourseDetailVo>>> courseDetailVoMap = new HashMap<>();
|
|
|
+
|
|
|
+ for (CourseDetailVo courseDetailVo : courseList) {
|
|
|
+ int timePeriod = Integer.parseInt(courseDetailVo.getTimePeriod().trim());
|
|
|
+ int timeNumber = Integer.parseInt(courseDetailVo.getTimeNumber().trim());
|
|
|
+
|
|
|
+ // 如果时间段不存在,则创建一个新的时间段Map
|
|
|
+ courseDetailVoMap.putIfAbsent(timePeriod, new HashMap<>());
|
|
|
+
|
|
|
+ // 获取当前时间段的Map
|
|
|
+ Map<Integer, List<CourseDetailVo>> timePeriodMap = courseDetailVoMap.get(timePeriod);
|
|
|
+
|
|
|
+ // 如果时间序号不存在,则创建一个新的课程列表
|
|
|
+ timePeriodMap.putIfAbsent(timeNumber, new ArrayList<>());
|
|
|
+
|
|
|
+ // 将课程详情添加到对应的时间段和时间序号中
|
|
|
+ timePeriodMap.get(timeNumber).add(courseDetailVo);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 返回构建好的课程详情Map
|
|
|
+ return courseDetailVoMap;
|
|
|
+ }
|
|
|
+
|
|
|
+ private List<ScheduleWeekExportQueryVo> buildScheduleWeekExportQueryVoList(Map<Integer, Map<Integer, List<CourseDetailVo>>> courseDetailVoMap, List<ClassTime> classTimeList) {
|
|
|
+ List<ScheduleWeekExportQueryVo> scheduleWeekExportQueryVoList = new ArrayList<>();
|
|
|
+ // 实现构建ScheduleWeekExportQueryVo对象列表的逻辑
|
|
|
+ for (ClassTime classTime : classTimeList) {
|
|
|
+ ScheduleWeekExportQueryVo scheduleWeekExportQueryVo = new ScheduleWeekExportQueryVo();
|
|
|
+ scheduleWeekExportQueryVo.setTimePeriod(TimePeriodEnum.getValue(classTime.getTimePeriod()));
|
|
|
+ scheduleWeekExportQueryVo.setTimeNumber(TimeNumberEnum.getValue(classTime.getNumber()));
|
|
|
+
|
|
|
+ Map<Integer, List<CourseDetailVo>> timePeriodListMap = courseDetailVoMap.get(classTime.getTimePeriod());
|
|
|
+ if (timePeriodListMap != null) {
|
|
|
+ List<CourseDetailVo> courseDetailVoList = timePeriodListMap.get(classTime.getNumber());
|
|
|
+ if (courseDetailVoList != null) {
|
|
|
+ Map<Integer, CourseDetailVo> courseDetailVoByWeeksMap = courseDetailVoList.stream()
|
|
|
+ .collect(Collectors.toMap(CourseDetailVo::getWeeks, item -> item));
|
|
|
+
|
|
|
+ for (int i = 1; i <= 7; i++) {
|
|
|
+ CourseDetailVo courseDetailVo = courseDetailVoByWeeksMap.get(i);
|
|
|
+ if (courseDetailVo != null) {
|
|
|
+ String courseInfo = courseDetailVo.getCourseName() + " " +
|
|
|
+ courseDetailVo.getTeacherName() + " " +
|
|
|
+ courseDetailVo.getClassName() + " " +
|
|
|
+ courseDetailVo.getClassroomName() + " ";
|
|
|
+ switch (i) {
|
|
|
+ case 1:
|
|
|
+ scheduleWeekExportQueryVo.setMonday(courseInfo);
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ scheduleWeekExportQueryVo.setTuesday(courseInfo);
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ scheduleWeekExportQueryVo.setWednesday(courseInfo);
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ scheduleWeekExportQueryVo.setThursday(courseInfo);
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ scheduleWeekExportQueryVo.setFriday(courseInfo);
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ scheduleWeekExportQueryVo.setSaturday(courseInfo);
|
|
|
+ break;
|
|
|
+ case 7:
|
|
|
+ scheduleWeekExportQueryVo.setSunday(courseInfo);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ scheduleWeekExportQueryVoList.add(scheduleWeekExportQueryVo);
|
|
|
+ }
|
|
|
+ // 返回构建好的ScheduleWeekExportQueryVo对象列表
|
|
|
+ return scheduleWeekExportQueryVoList;
|
|
|
+ }
|
|
|
+
|
|
|
+ private void writeScheduleWeekExportToExcel(ByteArrayOutputStream outputStream, List<ScheduleWeekExportQueryVo> scheduleWeekExportQueryVoList) {
|
|
|
+ // 将数据写入Excel文件
|
|
|
+ EasyExcel.write(outputStream, ScheduleWeekExportQueryVo.class)
|
|
|
+ .automaticMergeHead(true)
|
|
|
+ .excelType(ExcelTypeEnum.XLSX)
|
|
|
+ .sheet()
|
|
|
+ .doWrite(scheduleWeekExportQueryVoList);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 提交顶课接口
|
|
|
+ *
|
|
|
* @param courseTable
|
|
|
* @param courseAdjust
|
|
|
* @throws Exception
|
|
|
@@ -376,6 +503,7 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
|
|
|
/**
|
|
|
* 提交调课
|
|
|
+ *
|
|
|
* @param courseTable
|
|
|
* @param swapCourseTable
|
|
|
* @throws Exception
|
|
|
@@ -401,7 +529,8 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 顶课预检查
|
|
|
+ * 顶课预检查
|
|
|
+ *
|
|
|
* @param courseTable
|
|
|
* @return 检查结果
|
|
|
*/
|
|
|
@@ -419,7 +548,7 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
//生成签名
|
|
|
String sign = ScheduleUtil.createSign(timestamp);
|
|
|
String result = ScheduleUtil.doPost(url, jsonObject.toString(), sign, timestamp);
|
|
|
- if(StrUtil.isEmpty(result)){
|
|
|
+ if (StrUtil.isEmpty(result)) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@@ -427,8 +556,9 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 调课预检查
|
|
|
- * @param courseTable 需要调整的课程
|
|
|
+ * 调课预检查
|
|
|
+ *
|
|
|
+ * @param courseTable 需要调整的课程
|
|
|
* @param swapCourseTable 对调的课程
|
|
|
* @return 检查结果
|
|
|
*/
|
|
|
@@ -451,7 +581,7 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
//生成签名
|
|
|
String sign = ScheduleUtil.createSign(timestamp);
|
|
|
String result = ScheduleUtil.doPost(url, jsonObject.toString(), sign, timestamp);
|
|
|
- if(StrUtil.isEmpty(result)){
|
|
|
+ if (StrUtil.isEmpty(result)) {
|
|
|
return null;
|
|
|
}
|
|
|
|