XMTT 6 years ago
parent
commit
b2177f3560
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/ekexiu/portal/product/ProductService.java

+ 2 - 2
src/main/java/com/ekexiu/portal/product/ProductService.java

@ -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
    }