|
@ -125,6 +125,13 @@ public class ResourceService {
|
125
|
125
|
return this.resourceDao.queryPro(con, professorId);
|
126
|
126
|
}
|
127
|
127
|
|
|
128
|
@Get
|
|
129
|
@Path("/nameAndSupport")
|
|
130
|
public void updateNameAndSupport(@JdbcConn Connection con, String resourceId,
|
|
131
|
String resourceName, String supportedServices) throws SQLException{
|
|
132
|
this.resourceDao.updateNameAndSupport(con, resourceId, resourceName, supportedServices);
|
|
133
|
}
|
|
134
|
|
128
|
135
|
@Post
|
129
|
136
|
@Path("/subject")
|
130
|
137
|
public void updateSubject(@JdbcConn(true) Connection con, String resourceId, String subject) throws SQLException {
|
|
@ -149,6 +156,12 @@ public class ResourceService {
|
149
|
156
|
this.resourceDao.updateHopePayMethod(con, resourceId, hopePayMethod);
|
150
|
157
|
}
|
151
|
158
|
|
|
159
|
@Post
|
|
160
|
@Path("/cooperationNotes")
|
|
161
|
public void updateCooperationNotes(@JdbcConn(true) Connection con, String resourceId, String cooperationNotes) throws SQLException{
|
|
162
|
this.resourceDao.updateCooperationNotes(con, resourceId, cooperationNotes);
|
|
163
|
}
|
|
164
|
|
152
|
165
|
@Delete
|
153
|
166
|
@Path("/{resourceId}")
|
154
|
167
|
public boolean delete(@JdbcConn(true) Connection con, @PathVar String resourceId) throws SQLException {
|