package market.Mes.Lengthwise.Plan.mapper;
import java.util.HashMap;
import java.util.List;

import market.Lms.Warehouse.vo.YdmProductDetail;
import market.Mes.Cuttolength.Plan.vo.PlnCuttolengthPlanDetail;
import market.Mes.Lengthwise.Performance.vo.MesPrdDetailReport;
import market.Mes.Lengthwise.Plan.vo.MesCrCrossCuttingM;
import market.Mes.Lengthwise.Plan.vo.PlnMaterielDetail;
import market.Mes.anneal.vo.MesJihuaZhi;

import org.apache.ibatis.annotations.Param;

import com.hnshituo.orm.GenericMapper;

public interface MesCrCrossCuttingMMapper extends GenericMapper<MesCrCrossCuttingM,Object> {


	//吊销卷号未占用
	int 	findByvCoilNo(MesCrCrossCuttingM v_rec_ccm,String v_coil_no);

	int updateM(MesCrCrossCuttingM m,String name,String v_coil_no,String process_no, String vWrkDate, String vWrkOrd, String vWrkGrp);


	//删除横剪/开平实绩主记录
	int deleteByProcessNo(String process_no);


	//修改修改开平作业主实绩交工状态
	int updateCuttingMByprocessNo(String username,String process_no);

	//修改修改开平作业主实绩交工状态
	int updateCuttingMByprocessNo2(String username,String process_no);

	//开平主实绩记录
	int  insertmesCrCrossCuttingM(PlnMaterielDetail v_rec_materiel_detail,
			YdmProductDetail plnMaterielDetail,String code,String name,
			String plano,String objnovt,String materno,String process,PlnCuttolengthPlanDetail v_rec_plan_detail,
			String vDate,String v_ord,String v_grp);

	Integer doquery(String v_process_no);

	List<HashMap> doProductionWrkReport(MesCrCrossCuttingM object);

	List<HashMap> doProductionSteelReport(MesCrCrossCuttingM object);

	List<HashMap> doProductionMultReport(MesCrCrossCuttingM object);

	List<HashMap> doQueryPrint(@Param("list")String[] strs);

	List<HashMap> doQueryPrintChild(String trim);

	List<MesPrdDetailReport> doPrdDetailWeb_3mm(MesPrdDetailReport object, String memo1,
			String startTime, String endTime, String startTime2,
			String endTime2, String memo2, String memo3, String memo4,
			String memo5);

	List<HashMap> doQueryWeb_jihuazhi(MesJihuaZhi object, String memo1,
			String memo2, String startTime, String endTime, String memo3);

	List<HashMap> doQueryWeb_zhiliang(MesCrCrossCuttingM mes, String startTime, String endTime, String memo1,
			String memo2);
}
