📄 acccommand.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 + -