|
@ -79,11 +79,18 @@ public class ResourceService {
|
79
|
79
|
return null;
|
80
|
80
|
}
|
81
|
81
|
|
|
82
|
//@Post
|
|
83
|
//@Path("/deleteResource")
|
|
84
|
//public void deleteResource(@JdbcConn(true) Connection con, String resourceId) throws SQLException {
|
|
85
|
// //修改文章状态为删除
|
|
86
|
// this.resourceDao.updateStatus(con, resourceId, "3");
|
|
87
|
//}
|
|
88
|
|
82
|
89
|
@Post
|
83
|
90
|
@Path("/deleteResource")
|
84
|
|
public void deleteResource(@JdbcConn(true) Connection con, String resourceId) throws SQLException {
|
|
91
|
public void deleteResource(@JdbcConn(true) Connection con, String[] resourceIds) throws SQLException {
|
85
|
92
|
//修改文章状态为删除
|
86
|
|
this.resourceDao.updateStatus(con, resourceId, "3");
|
|
93
|
this.resourceDao.updateStatus(con, resourceIds, "3");
|
87
|
94
|
}
|
88
|
95
|
|
89
|
96
|
@Post
|