src/com/action/LectureAction.java
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.action;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import com.business.LectureBusiness;
import com.business.StudentBusiness;
import com.entity.LectureEntity;
import com.entity.StudentEntity;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
public class LectureAction extends ActionSupport {
private static final long serialVersionUID = 1L;
private LectureEntity lecture;
private List<LectureEntity> list;
private LectureBusiness lectureBusiness;
private StudentBusiness studentBusiness;
private int pageNumber;
private int maxPage;
private String html;
private String number;
private String id;
private String name;
private String cond;
private Map<String, Object> map = new HashMap<String, Object>();
public String createLecture() {
List<StudentEntity> studentList = this.studentBusiness.show();
this.map.put("studentList", studentList);
return SUCCESS;
}
public String addLecture() {
this.lecture.setLectureid(UUID.randomUUID().toString());
this.lectureBusiness.save(this.lecture);
return SUCCESS;
}
public String deleteLecture() {
try {
this.lectureBusiness.delete(lecture);
} catch (Exception e) {
this.map.put("msg", "存在关联项 不能删除");
}
return SUCCESS;
}
public String updateLecture() {
this.lectureBusiness.update(lecture);
return SUCCESS;
}
public String getAllLecture() {
this.list = new ArrayList<LectureEntity>();
List<LectureEntity> tempList = new ArrayList<LectureEntity>();
tempList = this.lectureBusiness.show();
后面还有 258 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。