|
@@ -659,7 +659,9 @@ public class PrintCommonServiceServiceImpl implements PrintCommonService {
|
|
|
Set<Long> orgIds = teachcloudCommonService.listSubOrgIds(teachingRoomId);
|
|
|
if (printPlanIdList.size() == 0) {
|
|
|
QueryWrapper<BasicCourse> queryWrapper = new QueryWrapper<>();
|
|
|
- queryWrapper.lambda().eq(BasicCourse::getSchoolId, schoolId).in(BasicCourse::getTeachingRoomId, orgIds);
|
|
|
+ queryWrapper.lambda().eq(BasicCourse::getSchoolId, schoolId)
|
|
|
+ .eq(BasicCourse::getEnable, true)
|
|
|
+ .in(BasicCourse::getTeachingRoomId, orgIds);
|
|
|
if (StringUtils.isNotBlank(param)) {
|
|
|
queryWrapper.lambda().and(i -> i.like(BasicCourse::getCode, SystemConstant.translateSpecificSign(param))
|
|
|
.or().like(BasicCourse::getName, SystemConstant.translateSpecificSign(param)));
|