|
@@ -70,6 +70,7 @@ 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.camunda.bpm.engine.history.HistoricProcessInstance;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -299,7 +300,16 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
dto.setTeacherId(Long.parseLong(teacherId));
|
|
|
}
|
|
|
dto.setAdjustType(adjustType);
|
|
|
-
|
|
|
+ //查询正在进行中或者已经完成
|
|
|
+ List<WfCourseAdjust> exceptCourseList = courseTableMapper.getExceptCourseList(dto.getTeacherId());
|
|
|
+ List<Long> courseIds = new ArrayList<>();
|
|
|
+ for (WfCourseAdjust courseAdjust : exceptCourseList) {
|
|
|
+ String[] split = courseAdjust.getCourseId().split(",");
|
|
|
+ for (String s : split) {
|
|
|
+ courseIds.add(Long.parseLong(s));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ dto.setExceptCourseList(courseIds);
|
|
|
List<CourseListVo> list = courseTableMapper.getAdjustList(dto);
|
|
|
for (CourseListVo courseListVo : list) {
|
|
|
if (courseListVo.getTimePeriod() == 1) {
|
|
@@ -310,7 +320,6 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
courseListVo.setTimePeriodCn("晚上");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return list;
|
|
|
}
|
|
|
|