package market.Qms.qcm.mapper;
import java.util.HashMap;
import java.util.List;

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

import market.Qms.qcm.vo.QcmJudgeSurface;
import market.Qms.qcm.vo.QcmJudgeSurfaceFlaw;

import com.hnshituo.orm.GenericMapper;

public interface QcmJudgeSurfaceFlawMapper extends GenericMapper<QcmJudgeSurfaceFlaw,Object> {

	public HashMap findNameById(QcmJudgeSurfaceFlaw object);

	public List<HashMap> doQueryFlaw(QcmJudgeSurfaceFlaw object);

	public HashMap findNameByMN(QcmJudgeSurface object, String string);

	public long doQueryFlawCount(QcmJudgeSurfaceFlaw object);
	
	public List<QcmJudgeSurfaceFlaw> getFlawSample(String sid);
	
	public void repairFlaw(String sufId,String FlawSeq,String flag);

	public HashMap findSuf(String up_surface_result_id);
	
	@Select("delete from QCM_JUDGE_SURFACE_FLAW where SURFACE_ID = #{sufId}")
	void deleteBySurId (@Param("sufId") String sufId);
	
}
