You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
493 B
23 lines
493 B
package flowershop.dao;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
import flowershop.model.Flower;
|
|
|
|
public interface FlowerDao {
|
|
|
|
//查询所有商品数据
|
|
List<Flower> findAll();
|
|
//根据主键查询
|
|
Flower findById(String productid);
|
|
//按照类别查询
|
|
List<Flower> findByCategory(String category);
|
|
//创建商品信息
|
|
int create(Flower flower);
|
|
//修改商品信息
|
|
int modify(Flower flower);
|
|
//删除商品信息
|
|
int remove(Flower flower);
|
|
|
|
} |