|
@@ -4,8 +4,10 @@ import cn.iselab.mooctest.site.dao.SubsiteDao;
|
|
|
import cn.iselab.mooctest.site.models.Group;
|
|
import cn.iselab.mooctest.site.models.Group;
|
|
|
import cn.iselab.mooctest.site.models.Manager;
|
|
import cn.iselab.mooctest.site.models.Manager;
|
|
|
import cn.iselab.mooctest.site.models.Task;
|
|
import cn.iselab.mooctest.site.models.Task;
|
|
|
|
|
+import cn.iselab.mooctest.site.models.User;
|
|
|
import cn.iselab.mooctest.site.service.GroupService;
|
|
import cn.iselab.mooctest.site.service.GroupService;
|
|
|
import cn.iselab.mooctest.site.service.ManagerService;
|
|
import cn.iselab.mooctest.site.service.ManagerService;
|
|
|
|
|
+import cn.iselab.mooctest.site.service.UserService;
|
|
|
import cn.iselab.mooctest.site.web.data.ExamVO;
|
|
import cn.iselab.mooctest.site.web.data.ExamVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -31,6 +33,8 @@ public class ExamVOWrapper extends BaseWrapper<ExamVO, Task> {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
ManagerService managerService;
|
|
ManagerService managerService;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ UserService userService;
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
GroupService groupService;
|
|
GroupService groupService;
|
|
@@ -43,7 +47,7 @@ public class ExamVOWrapper extends BaseWrapper<ExamVO, Task> {
|
|
|
vo.setId(task.getId());
|
|
vo.setId(task.getId());
|
|
|
vo.setBeginTime(task.getBeginTime().getTime());
|
|
vo.setBeginTime(task.getBeginTime().getTime());
|
|
|
vo.setEndTime(task.getEndTime().getTime());
|
|
vo.setEndTime(task.getEndTime().getTime());
|
|
|
- vo.setManagerId(task.getManagerId());
|
|
|
|
|
|
|
+ vo.setManagerId(task.getOwnerId());
|
|
|
vo.setDuration(task.getDuration());
|
|
vo.setDuration(task.getDuration());
|
|
|
vo.setInfo(task.getInformation());
|
|
vo.setInfo(task.getInformation());
|
|
|
vo.setType(task.getType());
|
|
vo.setType(task.getType());
|
|
@@ -57,8 +61,8 @@ public class ExamVOWrapper extends BaseWrapper<ExamVO, Task> {
|
|
|
vo.setStatus(Task.STATUS_FINISHED);
|
|
vo.setStatus(Task.STATUS_FINISHED);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- Manager manager = managerService.getManagerById(task.getManagerId());
|
|
|
|
|
- vo.setManagerName(manager.getName());
|
|
|
|
|
|
|
+ User user = userService.findByUserId(task.getOwnerId());
|
|
|
|
|
+ vo.setManagerName(user.getName());
|
|
|
return vo;
|
|
return vo;
|
|
|
}
|
|
}
|
|
|
|
|
|