examOnline/src/com/action/SubjectDeleteAction.java

(完整代码) 647B

package com.action;

import com.opensymphony.xwork2.ActionSupport;
import com.service.SubjectService;
import com.service.SubjectServiceImpl;

public class SubjectDeleteAction extends ActionSupport{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int stId;
	private SubjectService subjectService = new SubjectServiceImpl();
	
	public int getStId() {
		return stId;
	}

	public void setStId(int stId) {
		this.stId = stId;
	}

	@SuppressWarnings("static-access")
	@Override
	public String execute() throws Exception {
		subjectService.deleteSubject(stId);
		addActionMessage("删除成功!");
		return this.SUCCESS;
	}
	
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。