jiapeng 7 years ago
parent
commit
6c8fd5d5fa
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/main/java/com/ekexiu/portal/ware/WareService.java

+ 4 - 4
src/main/java/com/ekexiu/portal/ware/WareService.java

@ -348,11 +348,11 @@ public class WareService {
348 348
	 */
349 349
	@Post
350 350
	@Path("/publish/update")
351
	public String updatePublish(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "state", "createTime", "modifyTime",
351
	public boolean updatePublish(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "state", "createTime", "modifyTime",
352 352
		 "shareId", "pageViews", "sortFirst" }) Ware ware,@Nullable String[] resource) throws SQLException, IOException {
353 353
		ware.setState("1");
354 354
		ware.setCategory("1");
355
		return insert(con, ware, null, resource);
355
		return update(con, ware, null, resource);
356 356
	}
357 357

358 358
	/**
@ -368,11 +368,11 @@ public class WareService {
368 368
	 */
369 369
	@Post
370 370
	@Path("/publish/org/update")
371
	public String updatePublish(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "state", "createTime", "modifyTime",
371
	public boolean updatePublish(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "state", "createTime", "modifyTime",
372 372
		"shareId", "pageViews", "sortFirst" }) Ware ware,@Nullable String[] resource,@Nullable String[] professor) throws SQLException, IOException {
373 373
		ware.setState("1");
374 374
		ware.setCategory("2");
375
		return insert(con, ware, professor, resource);
375
		return update(con, ware, professor, resource);
376 376
	}
377 377

378 378
	/**