jiapeng 7 ans auparavant
Parent
commit
823c925cdc
1 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. 7 7
      src/main/java/com/ekexiu/portal/ware/WareService.java

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

@ -252,7 +252,7 @@ public class WareService {
252 252
	@Post
253 253
	@Path("/draft/org")
254 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 256
		ware.setState("2");
257 257
		ware.setCategory("2");
258 258
		return insert(con, ware, professor, resource);
@ -271,7 +271,7 @@ public class WareService {
271 271
	@Post
272 272
	@Path("/publish")
273 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 275
		ware.setState("1");
276 276
		ware.setCategory("1");
277 277
		return insert(con, ware, null, resource);
@ -291,7 +291,7 @@ public class WareService {
291 291
	@Post
292 292
	@Path("/publish/org")
293 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 295
		ware.setState("1");
296 296
		ware.setCategory("2");
297 297
		return insert(con, ware, professor, resource);
@ -330,7 +330,7 @@ public class WareService {
330 330
	@Post
331 331
	@Path("/draft/org/update")
332 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 334
		ware.setState("2");
335 335
		ware.setCategory("2");
336 336
		return update(con, ware, professor, resource);
@ -349,7 +349,7 @@ public class WareService {
349 349
	@Post
350 350
	@Path("/publish/update")
351 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 353
		ware.setState("1");
354 354
		ware.setCategory("1");
355 355
		return insert(con, ware, null, resource);
@ -369,7 +369,7 @@ public class WareService {
369 369
	@Post
370 370
	@Path("/publish/org/update")
371 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 373
		ware.setState("1");
374 374
		ware.setCategory("2");
375 375
		return insert(con, ware, professor, resource);
@ -557,7 +557,7 @@ public class WareService {
557 557
	 */
558 558
	@Post
559 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 561
		return wareDao.logicDelete(con, id);
562 562
	}
563 563