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
     */
248
     */
249
    @Post
249
    @Post
250
    @Path("/draft/update")
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
        product.setState("2");
252
        product.setState("2");
253
        return update(con, product, null);
253
        return update(con, product, null);
254
    }
254
    }
265
     */
265
     */
266
    @Post
266
    @Post
267
    @Path("/publish/update")
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
        product.setState("1");
269
        product.setState("1");
270
        return update(con, product, professor);
270
        return update(con, product, professor);
271
    }
271
    }