ProductService.java
上传用户:zhc3n3
上传日期:2022-07-30
资源大小:2750k
文件大小:1k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- /**
- *
- */
- package com.t11.biz;
- import java.util.List;
- import com.t11.dao.ProductDAO;
- import com.t11.entity.Product;
- import com.t11.entity.Users;
- /**
- * @author student
- *
- */
- public class ProductService {
- ProductDAO productDao = new ProductDAO();
- public boolean addProduct(Product product) {
- return productDao.insertsProduct(product);
- }
- public boolean registerUser(Users user) {
- return productDao.registerUser(user);
- }
- public List<Product> showProduct() {
- List<Product> list = null;
- list = productDao.showProduct("");
- return list;
- }
- public List<Product> detailedProduct(int where) {
- List<Product> list = null;
- list = productDao.detailedProduct("where productid="+where);
- return list;
- }
- public Users UserName(String users) {
- Users lists = null;
- lists = productDao.UserName(users);
- return lists;
- }
- }