package market.Qms.metallurgy.mapper;
import market.Qms.metallurgy.vo.ComMscGrade;

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

import com.hnshituo.orm.GenericMapper;

public interface ComMscGradeMapper extends GenericMapper<ComMscGrade,Object> {
	
	@Update("update COM_MSC_GRADE c set c.validflag='0',c.delete_time=sysdate where c.msc =#{msc} and c.msc_pline=#{msc_pline}")
	public void doUpdateZf(@Param("msc")String msc,@Param("msc_pline")String msc_pline);
	
	@Update("update COM_MSC_GRADE c set c.validflag='1',c.delete_time='',c.delete_name='' where c.msc =#{msc} and c.msc_pline=#{msc_pline}")
	public void doUpdatehf(@Param("msc")String msc,@Param("msc_pline")String msc_pline);
	
	@Delete("delete from COM_MSC_GRADE where msc=#{msc} and msc_pline=#{msc_pline} and CIC=#{c} ")
	public void deleteByCondition(@Param("msc")String msc,@Param("msc_pline")String msc_pline, @Param("c")String c);
	
}
