package market.Qms.metallurgy.mapper;
import java.util.List;

import market.Com.vo.ComBaseSample;
import market.Qms.metallurgy.vo.ComMscPhySample;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.hnshituo.orm.GenericMapper;

public interface ComMscPhySampleMapper extends GenericMapper<ComMscPhySample,Object> {
	
	/*@Delete("DELETE FROM COM_MSC_PHY_SAMPLE WHERE PIC = #{pic} AND PHY_CODE_M = #{phy} AND SAMPLE_KEY_DESC = #{desc}")
	public void deletec(@Param("pic") String pic,@Param("phy") String phy,@Param("desc") String desc);*/
	@Delete("DELETE FROM COM_MSC_PHY_SAMPLE WHERE PIC = #{pic}")
	public void deletec(@Param("pic") String pic);
	
	//List<ComBaseSample> GexList(String param1,String param2,String param3);
	
	List<ComBaseSample> GexList(String param1,String param2,String param3,String param4);
	
	/**
	 * 获取材质取样要求
	 * @param pic 材质索引号
	 * @return
	 */
	List<ComMscPhySample> GetSampleByPic(String pic);
	
	/**
	 * 查询材质取样要求
	 * @param pic 材质索引
	 * @param phyCodeM 
	 * @param itemCodeD
	 * @param itemCodeS
	 * @param itemCodeT 
	 * @param stdCode 标准代码
	 * @param steelCode 牌号代码
	 * @param prodCode 品名代码
	 * @return
	 */
	List<ComMscPhySample> GetPicSample(String pic,String  phyCodeM, String itemCodeD, String itemCodeS, String itemCodeT,String  stdCode,String  steelCode, String prodCode);
}
