==========com.ruanyuan.dao========
package com.ruanyuan.dao;
import java.util.List;
import com.ruanyuan.entity.Category;
public interface CategoryDAO {
/**添加数据
* @param category 类别对象
* @return
*/
public int inserDate(Category category);
/**删除数据
*
* @param category 类别对象
* @return
*/
public int deleteDate(Category category);
/**修改数据
*
* @param category 类别对象
* @return
*/
public int updateDate(Category category);
/**多条件查询数据
*
* @param CategoryName 类别名称
* @return
*/
public List<Category> selectDateMore(String CategoryName);
/**ID查询数据
*
* @param CategoryID 类别编号
* @return
*/
public Category selectDateID(String CategoryID);
/**名称查询数据
*
* @param categoryName 类别名称
* @return
*/
public Category selectDateName(String CategoryName) ;
/**查询所有数据
*
* @return
*/
public List<Category> selectAllDate();
}
—————————————————————
package com.ruanyuan.dao;
import java.util.List;
import com.ruanyuan.entity.Employee;
public interface EmployeeDAO {
/**添加数据
*
* @param employee 对象
* @return
*/
public int insertDate(Employee employee);
/**删除数据
*
* @param employeeld 职员id
* @return
*/
int deleteDate(int employeeld);
/**修改数据
*
* @param empName 名称
* @param empPwd 密码
* @param empSex 性别
* @param empAge 年龄
* @param hireLong 聘用日期
* @param salary 月薪
* @param salary 编号id
* @return
*/
int updateDate(String empName, String empPwd, String empSex, String empAge, String hireLong, String salary,String employeeID);
/**查询所有数据
*
* @return
*/
public List<Employee> SelectDateAll();
/**通过id查询数据
*
* @param employeeld 职员对象
* @return
*/
Employee selectDateID(int employeeld);
/**重写通过名称查询数据
*
* @param employeeName 职员名称
* @return
*/
Employee selectDateName(String employeeName);
/**多条件查询
*
* @param empName 名字
* @param sex 性别
* @param beginAge 最小年龄范围
* @param endAge 最大年龄范围
* @param beginHireLong 开始入职时间
* @param endHireLong 结束入职时间
* @param beginSalary 开始薪水范围
* @param endSalary 结束薪水范围
* @return
*/
List<Employee> selectDateMore(String empName, String sex, String beginAge, String endAge, String beginHireLong,
String endHireLong, String beginSalary, String endSalary)
}
—————————————————————
package com.ruanyuan.dao;
import java.util.List;
import com.ruanyuan.entity.Good;
public interface GoodDAO {
/**添加数据
*
* @param goods 供货商对象
* @return
*/
public int inserDate(Good goods);
/**删除数据
*
* @param goods 供货商对象
* @return
*/
public int deleteDate(Good goods);
/**修改数据
*
* @param goods 供货商对象
* @return
*/
public int updateDate(Good goods);
/**多条件查询
*
* @param goodName 商品编号
* @param beginPrice 价格最小
* @param endPrice 价格最大
* @param CategoryID 类别编号
* @param OfferID 供货商编号
* @param beginStockes 库存最小
* @param endStockes 库存最大
* @return
*/
public List<Good> selectDateMore(String goodName, String beginPrice, String endPrice, String CategoryID, String OfferID, String beginStockes, String endStockes);
/**ID查询
*
* @param goodID 商品编号
* @return
*/
public Good selectDateID(int goodID);
/**名称查询
*
* @param goodName 商品名称
* @return
*/
public Good selectDateName(String goodName);
/**查询所有数据
*
* @return
*/
public List<Good> selectAllDate();
/**通过类别编号查询信息
*
* @param categoryID 类别编号
* @return
*/
public Good selectDateCategoryID(int CategoryID);
}
—————————————————————
package com.ruanyuan.dao;
import java.util.List;
import com.ruanyuan.entity.Good;
import com.ruanyuan.entity.Offers;
public interface OffersDAO {
/**添加数据
*
* @param offers 供货商对象
* @return
*/
public int inserDate(Offers offers);
/**删除数据
*
* @param offers 供货商对象
* @return
*/
public int deleteDate(Offers offers);
/**修改数据
*
* @param offers 供货商对象
* @return
*/
public int updateDate(Offers offers);
/**多条件查询
*
* @param offerName 供货商名称
* @param legalIP 法人代表
* @param address 公司地址
* @param tel 公司电话
* @return
*/
public List<Offers> selectDateMore(String offerName,String legalIP,String address,String tel);
/**ID查询
*
* @param offerID 供货商编号
* @return
*/
public Offers selectDateID(int offerID);
/**名称查询
*
* @param offersName 供货商名称
* @return
*/
public Offers selectDateName(String offersName);
/**查询所有数据
*
* @return
*/
public List<Offers> selectAllDate();
/**查询货商下是否含有销售信息,如果含有销售信息
*
* @param OfferID 商家编号
* @return
*/
public List<Good> selectSaleGood(int offerID);
}
————————————————————
package com.ruanyuan.dao;
import java.util.List;
import com.ruanyuan.entity.Sales;
public interface SalesDAO {
/**添加数据
*
* @param sales
* @return
*/
public int insetDate(Sales sales);
/**删除数据
*
* @param sales
* @return
*/
public int deleteDate(Sales sales);
/**修改数据
*
* @param sales
* @return
*/
public int updateDate(Sales sales);
/**多条件查询
*
* @param beginSaleAmount 最小数量
* @param endSaleAmount 最大数量
* @param goodName 商品名称
* @param employeeName 职员姓名
* @param beginSaleDate 开始日期
* @param endSaleDate 结束日期
* @return
*/
public List<Sales> selectDateMore(String beginSaleAmount,String endSaleAmount,String goodName,String employeeName,String beginSaleDate,String endSaleDate);
/**通过id查询
*
* @param salesID
* @return
*/
public Sales selectDateID(int salesID);
/**查询所有数据
*
* @return
*/
public List<Sales> selectDateAll();
/**通过职员id查询数据
*
* @param employeeld 职员对象
* @return
*/
public Sales selectDateEmployeeID(int employeeld);
}