|
@ -248,7 +248,7 @@ public class ProductService {
|
248
|
248
|
*/
|
249
|
249
|
@Post
|
250
|
250
|
@Path("/draft/update")
|
251
|
|
public boolean updateDraft(@JdbcConn(true) Connection con, @RequestParam(excludeFields = {"id", "state", "createTime", "modifyTime", "shareId", "pageViews", "sortFirst"}) Product product) throws SQLException, IOException {
|
|
251
|
public boolean updateDraft(@JdbcConn(true) Connection con, @RequestParam(excludeFields = {"state", "createTime", "modifyTime", "shareId", "pageViews", "sortFirst"}) Product product) throws SQLException, IOException {
|
252
|
252
|
product.setState("2");
|
253
|
253
|
return update(con, product, null);
|
254
|
254
|
}
|
|
@ -265,7 +265,7 @@ public class ProductService {
|
265
|
265
|
*/
|
266
|
266
|
@Post
|
267
|
267
|
@Path("/publish/update")
|
268
|
|
public boolean updatePublish(@JdbcConn(true) Connection con, @RequestParam(excludeFields = {"id", "state", "createTime", "modifyTime", "shareId", "pageViews", "sortFirst"}) Product product, @Nullable String[] professor) throws SQLException, IOException {
|
|
268
|
public boolean updatePublish(@JdbcConn(true) Connection con, @RequestParam(excludeFields = {"state", "createTime", "modifyTime", "shareId", "pageViews", "sortFirst"}) Product product, @Nullable String[] professor) throws SQLException, IOException {
|
269
|
269
|
product.setState("1");
|
270
|
270
|
return update(con, product, professor);
|
271
|
271
|
}
|