⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 acccommand.java

📁 一个汽车售后服务站的典型的进销管理系统,B/S模式的
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -