src/com/action/hetongAction.java

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.action;

import java.util.List;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.dao.TAdminDAO;
import com.dao.THetongDAO;
import com.model.TAdmin;
import com.model.THetong;
import com.opensymphony.xwork2.ActionSupport;
import com.util.Pagination;

public class hetongAction extends ActionSupport
{
	private int hetongId;
	private String hetongName;
	private int xiangmuId;
	private String jiafangfuzeren;
	private String yifangfuzeren;
	private String hetongKaishishijian;
	private String hetongJieshushijian;
	private int hetongJine;
	private String hetongBeizhu;
	private String message;
	private String path;
	private THetongDAO hetongDAO;
	
	
	public String hetongAdd()
	{
		THetong hetong=new THetong();
		hetong.setHetongName(hetongName);
		hetong.setXiangmuId(xiangmuId);
		hetong.setJiafangfuzeren(jiafangfuzeren);
		hetong.setYifangfuzeren(yifangfuzeren);
		hetong.setHetongKaishishijian(hetongKaishishijian);
		hetong.setHetongJieshushijian(hetongJieshushijian);
		hetong.setHetongJine(hetongJine);
		hetong.setHetongBeizhu(hetongBeizhu);
		hetong.setDel("no");
		hetongDAO.save(hetong);
		this.setMessage("操作成功");
		this.setPath("hetongMana.action");
		return "succeed";
	}
	
	
	
	public String hetongMana()
	{
		String sql="from THetong where del='no'";
		List hetongList=hetongDAO.getHibernateTemplate().find(sql);
		Map request=(Map)ServletActionContext.getContext().get("request");
		request.put("hetongList", hetongList);
		return ActionSupport.SUCCESS;
	}
	
	
后面还有 190 行代码,购买后查看完整代码

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

AI 解读 AI

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

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