📄 inputcommand.java
字号:
package com.xfaccp.command;
import java.util.List;
import com.xfaccp.adapter.CommandAdpater;
import com.xfaccp.base.BaseForm;
import com.xfaccp.form.InputTable;
public class InputCommand extends CommandAdpater {
public List findByExample(BaseForm form) throws Exception
{
InputTable input=(InputTable)form;
String hql="from InputTable where 1=1";
if(input.getId()!=0)
{
hql+=" and id="+input.getId();
}
if(!input.getInputTime().equals(""))
{
hql+=" and inputTime like '"+input.getInputTime()+"'";
}
List list=dao.findBySql(hql);
return list;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -