acccommand.java

来自「一个汽车售后服务站的典型的进销管理系统,B/S模式的」· Java 代码 · 共 38 行

JAVA
38
字号
package com.xfaccp.command;

import java.util.List;

import com.xfaccp.adapter.CommandAdpater;
import com.xfaccp.base.BaseForm;
import com.xfaccp.form.AccessoryTable;

public class AccCommand extends CommandAdpater {
	public List findById(Integer id) throws Exception 
	{
		dao.findById(id);
		return null;
	}
	public List findAllList() throws Exception 
	{
		List list=this.dao.findAllList();
		return list;
	}
	
	public List findByExample(BaseForm form)throws Exception 
	{ 
		AccessoryTable acc=(AccessoryTable)form;
		String accName=acc.getAccName();
		String hsql="from com.xfaccp.form.AccessoryTable";
		if(accName!=null||!accName.equals(""))
		{
			hsql+=" where accName like '%"+accName+"%'";
		}
		List list=dao.findBySql(hsql);
		return list;
	}
	
	public  List findBySql()throws Exception{
		return dao.findBySql("from com.xfaccp.form.CodeTable");
	}
}

⌨️ 快捷键说明

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