|
|
|
@ -16,6 +16,7 @@ import com.ibeetl.admin.core.util.TimeTool;
|
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
|
import com.ibeetl.admin.core.web.JsonReturnCode;
|
|
|
|
|
import com.ibeetl.jlw.dao.StudentHandsOnTaskLogDao;
|
|
|
|
|
import com.ibeetl.jlw.entity.Student;
|
|
|
|
|
import com.ibeetl.jlw.entity.StudentHandsOnTaskLog;
|
|
|
|
|
import com.ibeetl.jlw.web.query.StudentHandsOnTaskLogQuery;
|
|
|
|
|
import com.ibeetl.jlw.entity.FileEntity;
|
|
|
|
@ -52,6 +53,8 @@ public class StudentHandsOnTaskLogService extends CoreBaseService<StudentHandsOn
|
|
|
|
|
|
|
|
|
|
@Autowired private StudentHandsOnTaskLogDao studentHandsOnTaskLogDao;
|
|
|
|
|
|
|
|
|
|
@Autowired private StudentService studentService;
|
|
|
|
|
|
|
|
|
|
public PageQuery<StudentHandsOnTaskLog>queryByCondition(PageQuery query){
|
|
|
|
|
PageQuery ret = studentHandsOnTaskLogDao.queryByCondition(query);
|
|
|
|
|
queryListAfter(ret.getList());
|
|
|
|
@ -169,7 +172,12 @@ public class StudentHandsOnTaskLogService extends CoreBaseService<StudentHandsOn
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public JsonResult addDo(StudentHandsOnTaskLogQuery studentHandsOnTaskLogQuery) {
|
|
|
|
|
public JsonResult addDo(StudentHandsOnTaskLogQuery studentHandsOnTaskLogQuery, CoreUser coreUser) {
|
|
|
|
|
if (!coreUser.isStudent()) {
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
}
|
|
|
|
|
Student student = studentService.getByUserId(coreUser.getId());
|
|
|
|
|
studentHandsOnTaskLogQuery.setStudentId(student.getStudentId());
|
|
|
|
|
String msg = "";
|
|
|
|
|
StudentHandsOnTaskLog studentHandsOnTaskLog = studentHandsOnTaskLogQuery.pojo();
|
|
|
|
|
Long studentId = studentHandsOnTaskLog.getStudentId();
|
|
|
|
|