src/com/action/OutstoreAction.java
(开头部分) 6KB这里只显示每个文件的开头 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.ApplysBusiness;
import com.business.OutstoreBusiness;
import com.business.StorageBusiness;
import com.entity.ApplysEntity;
import com.entity.OutstoreEntity;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.util.VeDate;
public class OutstoreAction extends ActionSupport {
private static final long serialVersionUID = 1L;
private OutstoreEntity outstore;
private List<OutstoreEntity> list;
private OutstoreBusiness outstoreBusiness;
private ApplysBusiness applysBusiness;
private StorageBusiness storageBusiness;
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 createOutstore() {
Map<String, Object> session = ActionContext.getContext().getSession();
if (session.get("adminid") == null) {
return "error";
}
ApplysEntity ae = this.applysBusiness.checkId(id);
this.map.put("applys", ae);
return SUCCESS;
}
public String addOutstore() {
this.outstore.setAddtime(VeDate.getStringDateShort());
this.outstore.setOutstoreid(UUID.randomUUID().toString());
this.outstoreBusiness.save(this.outstore);
return SUCCESS;
}
public String deleteOutstore() {
try {
this.outstoreBusiness.delete(outstore);
} catch (Exception e) {
this.map.put("msg", "存在关联项 不能删除");
}
return SUCCESS;
}
后面还有 205 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。