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

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