|
@@ -10,6 +10,7 @@ import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
|
import com.qmth.teachcloud.common.entity.BasicCourse;
|
|
|
import com.qmth.teachcloud.common.entity.SysUser;
|
|
|
import com.qmth.teachcloud.common.entity.TBTask;
|
|
|
+import com.qmth.teachcloud.common.enums.ExceptionResultEnum;
|
|
|
import com.qmth.teachcloud.common.enums.TaskTypeEnum;
|
|
|
import com.qmth.teachcloud.common.enums.log.LevelEnum;
|
|
|
import com.qmth.teachcloud.common.enums.log.OperationTypeEnum;
|
|
@@ -134,6 +135,10 @@ public class BasicCourseController {
|
|
|
@ApiParam(value = "创建时间(终止位置)") @RequestParam(required = false) String endCreateTime,
|
|
|
@ApiParam(value = "状态") @RequestParam(required = false) Boolean enable,
|
|
|
@ApiParam(value = "启用&禁用操作",required = true) @RequestParam Boolean enableOperate) {
|
|
|
+ // 禁用条件
|
|
|
+ if (!SystemConstant.strNotNull(belongOrgId) && !SystemConstant.strNotNull(courseName) && !SystemConstant.strNotNull(startCreateTime) && !SystemConstant.strNotNull(endCreateTime) && Objects.isNull(enable)){
|
|
|
+ throw ExceptionResultEnum.ERROR.exception("请选择要禁用的条件");
|
|
|
+ }
|
|
|
return ResultUtil.ok(basicCourseService.removeBasicCourseBatchByQuery(SystemConstant.convertIdToLong(belongOrgId), courseName, SystemConstant.convertIdToLong(startCreateTime), SystemConstant.convertIdToLong(endCreateTime), enable,enableOperate));
|
|
|
}
|
|
|
|