jiapeng vor 7 Jahren
Ursprung
Commit
823c925cdc
1 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen
  1. 7 7
      src/main/java/com/ekexiu/portal/ware/WareService.java

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

252
	@Post
252
	@Post
253
	@Path("/draft/org")
253
	@Path("/draft/org")
254
	public String draft(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "id", "state", "createTime", "modifyTime", 
254
	public String draft(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "id", "state", "createTime", "modifyTime", 
255
			"shareId", "pageViews", "sortFirst" }) Ware ware, String[] resource, String[] professor) throws SQLException, IOException {
255
			"shareId", "pageViews", "sortFirst" }) Ware ware,@Nullable String[] resource,@Nullable String[] professor) throws SQLException, IOException {
256
		ware.setState("2");
256
		ware.setState("2");
257
		ware.setCategory("2");
257
		ware.setCategory("2");
258
		return insert(con, ware, professor, resource);
258
		return insert(con, ware, professor, resource);
271
	@Post
271
	@Post
272
	@Path("/publish")
272
	@Path("/publish")
273
	public String publish(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "id", "state", "createTime", "modifyTime", 
273
	public String publish(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "id", "state", "createTime", "modifyTime", 
274
			"shareId", "pageViews", "sortFirst" }) Ware ware, String[] resource) throws SQLException, IOException {
274
			"shareId", "pageViews", "sortFirst" }) Ware ware,@Nullable String[] resource) throws SQLException, IOException {
275
		ware.setState("1");
275
		ware.setState("1");
276
		ware.setCategory("1");
276
		ware.setCategory("1");
277
		return insert(con, ware, null, resource);
277
		return insert(con, ware, null, resource);
291
	@Post
291
	@Post
292
	@Path("/publish/org")
292
	@Path("/publish/org")
293
	public String publish(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "id", "state", "createTime", "modifyTime", 
293
	public String publish(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "id", "state", "createTime", "modifyTime", 
294
			"shareId", "pageViews", "sortFirst" }) Ware ware, String[] resource, String[] professor) throws SQLException, IOException {
294
			"shareId", "pageViews", "sortFirst" }) Ware ware,@Nullable String[] resource,@Nullable String[] professor) throws SQLException, IOException {
295
		ware.setState("1");
295
		ware.setState("1");
296
		ware.setCategory("2");
296
		ware.setCategory("2");
297
		return insert(con, ware, professor, resource);
297
		return insert(con, ware, professor, resource);
330
	@Post
330
	@Post
331
	@Path("/draft/org/update")
331
	@Path("/draft/org/update")
332
	public boolean updateDraft(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "state", "createTime", "modifyTime",
332
	public boolean updateDraft(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "state", "createTime", "modifyTime",
333
			"shareId", "pageViews", "sortFirst" }) Ware ware, String[] resource, String[] professor) throws SQLException, IOException {
333
			"shareId", "pageViews", "sortFirst" }) Ware ware,@Nullable String[] resource,@Nullable String[] professor) throws SQLException, IOException {
334
		ware.setState("2");
334
		ware.setState("2");
335
		ware.setCategory("2");
335
		ware.setCategory("2");
336
		return update(con, ware, professor, resource);
336
		return update(con, ware, professor, resource);
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 String updatePublish(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "state", "createTime", "modifyTime",
352
		 "shareId", "pageViews", "sortFirst" }) Ware ware, 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 insert(con, ware, null, resource);
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 String updatePublish(@JdbcConn(true) Connection con, @RequestParam(excludeFields = { "category", "state", "createTime", "modifyTime",
372
		"shareId", "pageViews", "sortFirst" }) Ware ware, String[] resource, 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 insert(con, ware, professor, resource);
557
	 */
557
	 */
558
	@Post
558
	@Post
559
	@Path("/delete")
559
	@Path("/delete")
560
	public int delete(@JdbcConn Connection con, String id) throws SQLException {
560
	public int delete(@JdbcConn(true) Connection con, String id) throws SQLException {
561
		return wareDao.logicDelete(con, id);
561
		return wareDao.logicDelete(con, id);
562
	}
562
	}
563

563