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.

39 lines
681 B

package com.demo.dao;
import com.demo.pojo.Product;
import com.demo.pojo.ProductExample;
import com.demo.pojo.ProductVO;
import java.util.List;
public interface ProductMapper extends CrudDao<Product>{
List<Product> selectByExample(ProductExample example);
/**
* 商品上线
* @param name
*/
void enableStatus(String name);
/**
* 商品下线
* @param name
*/
void stopStatus(String name);
/**
* 设置图片保存的位置
* @param vo
*/
void setImageUrl(ProductVO vo);
/**
* 随机五条商品
* @return
*/
List<Product> randFive();
/*boolean findProByCid(int cid);*/
}