龚焕茏
2024-07-02 da0dc25eef2708660b83e7669cf477a6ec68ac62
src/main/java/com/mindskip/xzs/controller/admin/ExamPaperController.java
@@ -20,7 +20,6 @@
import com.mindskip.xzs.viewmodel.admin.exam.ExamPaperPageRequestVM;
import com.mindskip.xzs.viewmodel.admin.exam.ExamResponseVM;
import lombok.SneakyThrows;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -61,6 +60,7 @@
            vm.setCreateTime(DateTimeUtil.dateFormat(e.getCreateTime()));
            vm.setSubjectId(examPaperSubjectService.getByExamPaperId(vm.getId())
                    .stream().map(ExamPaperSubject::getSubjectId).toArray(Integer[]::new));
            vm.setCreateDepartment(examPaperDepartmentService.selectByUserId(vm.getCreateUser()));
            return vm;
        });
        return RestResponse.ok(page);