|
@ -11,6 +11,7 @@ import org.jfw.apt.web.annotation.operate.Delete;
|
11
|
11
|
import org.jfw.apt.web.annotation.operate.Get;
|
12
|
12
|
import org.jfw.apt.web.annotation.operate.Post;
|
13
|
13
|
import org.jfw.apt.web.annotation.param.JdbcConn;
|
|
14
|
import org.jfw.apt.web.annotation.param.PathVar;
|
14
|
15
|
import org.jfw.util.StringUtil;
|
15
|
16
|
|
16
|
17
|
import com.ekexiu.portal.dao.AssessDao;
|
|
@ -38,12 +39,12 @@ public class AssessService {
|
38
|
39
|
assess.setResourceId(resourceId);
|
39
|
40
|
assess.setProfessorId(professorId);
|
40
|
41
|
this.assessDao.insert(con, assess);
|
41
|
|
return null;
|
|
42
|
return assessId;
|
42
|
43
|
}
|
43
|
44
|
|
44
|
45
|
@Get
|
45
|
46
|
@Path("/{assessId}")
|
46
|
|
public Assess query(@JdbcConn Connection con, String assessId) throws SQLException {
|
|
47
|
public Assess query(@JdbcConn Connection con, @PathVar String assessId) throws SQLException {
|
47
|
48
|
return this.assessDao.query(con, assessId);
|
48
|
49
|
}
|
49
|
50
|
|
|
@ -62,7 +63,7 @@ public class AssessService {
|
62
|
63
|
@Get
|
63
|
64
|
@Path("/qapro")
|
64
|
65
|
public List<Assess> queryPro(@JdbcConn Connection con, String professorId) throws SQLException {
|
65
|
|
return this.queryPro(con, professorId);
|
|
66
|
return this.assessDao.queryPro(con, professorId);
|
66
|
67
|
}
|
67
|
68
|
|
68
|
69
|
@Get
|