listsysgroup.java.svn-base

来自「用JSP JAVA 做的 系统 只是初来扎到还望西黄!别乱来哦!」· SVN-BASE 代码 · 共 25 行

SVN-BASE
25
字号
package com.chis.model.user;

import java.util.List;

import com.stframe.dao.DaoUtil;
import com.stframe.form.ActionForm;
import com.stframe.form.DataForm;
import com.stframe.servlet.ActionInstance;
/**
 * 获取群组列表
 * @author zxh
 *
 */
//未使用
public class ListSysGroup extends ActionInstance{
	public int execute(ActionForm af) throws Exception {
		String shbdwbh = af.getHttpSession().getAttribute("HBDWBH").toString();
		DataForm groupdf = new DataForm("SYS_GROUP","ID");
		String groupsql ="SELECT * FROM SYS_GROUP where CORP_ID='"+shbdwbh+"'";
		List grouplist = DaoUtil.select(af.getConnection(), groupsql, groupdf);
		af.getHttpRequest().setAttribute("grouplist", grouplist);
		return 1;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?