Quellcode durchsuchen

Merge branch 'dev' of http://121.42.53.174:3000/jiapeng/portal-web into dev

XMTT vor 7 Jahren
Ursprung
Commit
5bc2bf88b3
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4 4
      src/main/java/com/ekexiu/portal/ware/WareService.java

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

348
	 */
348
	 */
349
	@Post
349
	@Post
350
	@Path("/publish/update")
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
		 "shareId", "pageViews", "sortFirst" }) Ware ware,@Nullable String[] resource) throws SQLException, IOException {
352
		 "shareId", "pageViews", "sortFirst" }) Ware ware,@Nullable String[] resource) throws SQLException, IOException {
353
		ware.setState("1");
353
		ware.setState("1");
354
		ware.setCategory("1");
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
	 */
368
	 */
369
	@Post
369
	@Post
370
	@Path("/publish/org/update")
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
		"shareId", "pageViews", "sortFirst" }) Ware ware,@Nullable String[] resource,@Nullable String[] professor) throws SQLException, IOException {
372
		"shareId", "pageViews", "sortFirst" }) Ware ware,@Nullable String[] resource,@Nullable String[] professor) throws SQLException, IOException {
373
		ware.setState("1");
373
		ware.setState("1");
374
		ware.setCategory("2");
374
		ware.setCategory("2");
375
		return insert(con, ware, professor, resource);
375
		return update(con, ware, professor, resource);
376
	}
376
	}
377

377

378
	/**
378
	/**