package com.sxt.dao;
import java.util.List;
import com.sxt.bean.Goods;
import com.sxt.util.PageBean;
/**
* 商品dao
*
* @author Administrator
*
*/
public interface GoodsDao {
/**
* 综合查询
*
* @param gname
* @param pStart
* @param pEnd
* @param dStart
* @param dEnd
* @param gstatus
* @return
* @throws Exception
*/
public PageBean findGoods(String gname, String pStart, String pEnd,
String dStart, String dEnd, String gstatus,int page,int rows) throws Exception;
/**
*
* @param gid
* @return
* @throws Exception
*/
public boolean delGoods(String gid) throws Exception;
/**
* 保存物品信息
* @param g
* @return
* @throws Exception
*/
public boolean saveGoods(Goods g) throws Exception;
/**
* 通过商品id查询商品信息
* @param gid
* @return
* @throws Exception
*/
public Goods findGoodsById(String gid) throws Exception;
}