📄 sellcommand.java
字号:
package com.xfaccp.command;
import java.util.List;
import com.xfaccp.adapter.CommandAdpater;
import com.xfaccp.base.BaseForm;
public class SellCommand extends CommandAdpater {
//新建客户信息
public void ceate(BaseForm form) throws Exception
{
dao.create(form);
}
//查询全部客户信息
public List findAllList() throws Exception
{
List cusList = dao.findAllList();
return cusList;
}
//得到客户信息的ID
public List findById(Integer id) throws Exception {
List cusId = dao.findById(id);
//System.out.println("form is"+list.size());
return cusId;
}
//得到客户的姓名
public List findByExample(BaseForm form) throws Exception
{
List cusName = dao.findByExample(form);
return cusName;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -