<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="销售入库管理">
<query id="xsmat.BatchInsertEntrustCutZcMat">
		INSERT INTO MAT_ZC_M
		(MAT_NO,
		PRODUCT_FLAG,
		MAT_STATUS,
		LOT_NO,
		STOVE_NO,
		JUDGE_STOVE_NO,
		BATCH_NO,
		BATCH_GROUD_NO,
		MAT_SQE_NO,
		SAMPLE_FLAG,
		CUTTING_FLAG,
		ORIGIN_MAT_NO,
		MATERIAL_NO,
		MATERIAL_NAME,
		INPUT_MATERIAL_NAME,
		INPUT_MATERIAL_NO,
		INPUT_ORIGIN_CODE,
		PRODUCCODE,
		PRODUCNAME,
		STEELCODE,
		STEELNAME,
		GRADECODE,
		GRADENAME,
		SPEC_CODE,
		SPEC_NAME,
		MODEL_CODE,
		MODEL_DESC,
		STD_CODE,
		STD_NAME,
		STD_STYLE,
		STD_STYLE_DESC,
		PRO_ORDER_NO,
		PRO_ORDER_NO1,
		PRO_ORDER_ID,
		PRO_ORDER_ID1,
		ORDER_NO,
		ORDER_SEQ,
		ORDER_SEQ_NO,
		CRAF_NO,
		PROCESS_CDOE,
		PROCESS_DESC,
		NEXT_PROCESS_CDOE,
		NEXT_PROCESS_DESC,
		PLINE_CODE,
		PLINE_NAME,
		MAT_ORIGIN_CODE,
		MAT_ORIGIN_NAME,
		DIMATER,
		HEIGHT,
		LEN_NO,
		LEN_DESC,
		LEN_UNIT,
		LEN_MIN,
		LEN_MAX,
		TARG_DIMATER,
		TARG_HEIGHT,
		TARG_LEN_MIN,
		TARG_LEN_MAX,
		ACT_DIMATER,
		ACT_HEIGHT,
		ACT_LEN,
		ACT_LEN_MIN,
		ACT_LEN_MAX,
		ACT_COUNT,
		ACT_WEIGHT,
		ACT_THEORY_WEIGHT,
		MEASURE_FLAG,
		BELONG_CODE,
		BELONG_NAME,
		PACK_FLAG,
		PACK_TYPE_CODE,
		PACK_TYPE_NAME,
		PACK_NO,
		PACK_TIME,
		PACK_MAT_WT,
		MAT_GROSS_WT,
		MAT_GOWHERE_CODE,
		MAT_GOWHERE_NAME,
		COOL_HOT_FLAG,
		MAT_RETURN_FLAG,
		HEAT_TREAT_NO,
		POST_FLAG,
		LOCK_FLAG,
		MNG_LOCK_RSN_CODE,
		MNG_LOCK_TIME,
		MNG_LOCK_MAKER,
		MNG_LOCK_REMARK,
		LOCK_RSN_CODE,
		LOCK_TIME,
		LOCK_MAKER,
		LOCK_REMARK,
		UNLOCK_TIME,
		UNLOCK_MAKER,
		UNLOCK_REMARK,
		OLD_ORDER_NO,
		OLD_ORDER_SEQ,
		OLD_ORDER_SEQ_NO,
		OLD_MATERIAL_NO,
		OLD_MATERIAL_NAME,
		REMAIN_RSN_CODE,
		REMAIN_JUGDE_TIME,
		REMAIN_JUGDE_MAKER,
		REMAIN_JUGDE_CODE,
		REMAIN_REMARK,
		JUGDE_APPLY_FLAG,
		JUGDE_APPLY_CODE,
		JUGDE_APPLY_TIME,
		JUGDE_SCAN_TIME,
		FACE_RESULT_CODE,
		FACE_RESULT_TIME,
		FACE_MAKER,
		SPEC_RESULT_CODE,
		SPEC_RESULT_TIME,
		SPEC_MAKER,
		CHEM_RESULT_CODE,
		CHEM_RESULT_TIME,
		CHEM_MAKER,
		PHY_RESULT_CODE,
		PHY_RESULT_TIME,
		PHY_MAKER,
		DETECT_REPORT_NO,
		DETECT_RESULT_CODE,
		WPRESSURE_REPORT_NO,
		WPRESSURE_RESULT_CODE,
		JUDGE_RESULT_CODE,
		JUDGE_RESULT,
		JUDGE_RESULT_TIME,
		JUDGE_MAKER,
		BUG_NO,
		BUG_DEAL,
		REPAIR_FLAG,
		REPAIR_REMARK,
		SAMPLING_FLAG,
		SAMPLING_TYPE,
		SAMPLING_NO,
		CHECKOUT_NO,
		CHEM_STCHECK_NO,
		CHEM_PROCHECK_NO,
		SH_CHECK_NO,
		COME_PROC_FLAG,
		CONFM_FLAG,
		INSTOCK_FLAG,
		INSTOCK_TIME,
		OUTSTOCK_TIME,
		PRO_BC,
		PRO_BZ,
		RPO_TIME,
		BAR_CODE,
		BEGINNING_FLAG,
		MEMO,
		CREATE_NAME,
		CREATE_TIME,
		UPDATE_NAME,
		UPDATE_TIME,
		REQ_BL_ID,
		IF_BATCHED_JG,
		COUPCUT_BATCH_ID,
		ORD_PK,
		ORD_LN_PK,
		ORD_LN_DLY_PK,
		OLD_ORD_PK,
		OLD_ORD_LN_PK,
		OLD_ORD_LN_DLY_PK,
		BAL_YEAR_MONTH,
		JUDGE_STD_NAME,
		JUDGE_STD_CODE,
		JUDGE_GRADE,
		PIPMEMO,
		TEST,
		SOURE_CODE,
		SOURE_NAME,
		PONDER_NO,
		PONDER_GROSS_WT,
		MEMO1,
		JUDGE_ID,
		MNG_LOCK_FLAG,
		LOCK_ID,
		PRO_NO,
		LOCK_LIKU,
		PLN_GRADECODE,
		PLN_GRADENAME,
		PLN_STEELCODE,
		PLN_STEELNAME,
		QCM_STAUS,
		OUTSTOCK_DOC,
		HEAT_PLAN_NO,
		ZG_STOVE_SQE,
		GX_PLAN_NO,
		ZG_MAT_NO,
		FINISHPRO_MOLD,
		IN_MOLD,
		TARGET,
		PROCESS_STATUS,
		JUGDE_CONVICTED,
		GX_PLAN_NO1,
		FIXTYPE_CODE,
		QUALITY_GROUP_ZG,
		FLAG_STOVE_NO_ZG,
		ZG_PHY_RESULT_PATH,
		ZG_FACE_RESULT_PATH,
		ZG_SPEC_RESULT_PATH,
		VRP_HEAT_PLAN_NO,
		VRP_LOT_NO,
		VRP_SAMPLE_FLAG,
		VRP_PRO_ORDER_NO,
		VRP_PRO_ORDER_NO1,
		VRP_PRO_ORDER_ID,
		VRP_PRO_ORDER_ID1,
		VRP_ACT_DIMATER,
		VRP_ACT_HEIGHT,
		VRP_JUGDE_APPLY_FLAG,
		VRP_JUGDE_APPLY_CODE,
		VRP_JUGDE_APPLY_TIME,
		VRP_FACE_RESULT_CODE,
		VRP_FACE_RESULT_TIME,
		VRP_FACE_MAKER,
		VRP_FACE_RESULT_PATH,
		VRP_SPEC_RESULT_CODE,
		VRP_SPEC_RESULT_TIME,
		VRP_SPEC_MAKER,
		VRP_SPEC_RESULT_PATH,
		VRP_PHY_RESULT_CODE,
		VRP_PHY_RESULT_TIME,
		VRP_PHY_MAKER,
		VRP_PHY_RESULT_PATH,
		VRP_JUDGE_RESULT_CODE,
		VRP_JUDGE_RESULT_TIME,
		VRP_JUDGE_MAKER,
		VRP_GX_PLAN_NO,
		VRP_GX_PLAN_NO1,
		VPR_JUGDE_CONVICTED,
		VPR_QUALITY_GROUP_ZG,
		VPR_FLAG_STOVE_NO_ZG,
		HTT_HEAT_PLAN_NO,
		HTT_LOT_NO,
		HTT_SAMPLE_FLAG,
		HTT_PRO_ORDER_NO,
		HTT_PRO_ORDER_NO1,
		HTT_PRO_ORDER_ID,
		HTT_PRO_ORDER_ID1,
		HTT_GX_PLAN_NO,
		HTT_GX_PLAN_NO1,
		HTT_JUGDE_APPLY_FLAG,
		HTT_JUGDE_APPLY_CODE,
		HTT_JUGDE_APPLY_TIME,
		HTT_FACE_RESULT_CODE,
		HTT_FACE_RESULT_TIME,
		HTT_FACE_MAKER,
		HTT_FACE_RESULT_PATH,
		HTT_SPEC_RESULT_CODE,
		HTT_SPEC_RESULT_TIME,
		HTT_SPEC_MAKER,
		HTT_SPEC_RESULT_PATH,
		HTT_PHY_RESULT_CODE,
		HTT_PHY_RESULT_TIME,
		HTT_PHY_MAKER,
		HTT_PHY_RESULT_PATH,
		HTT_JUDGE_RESULT_CODE,
		HTT_JUDGE_RESULT_TIME,
		HTT_JUDGE_MAKER,
		HTT_JUGDE_CONVICTED,
		HTT_QUALITY_GROUP_ZG,
		HTT_FLAG_STOVE_NO_ZG,
		PRC_LOT_NO,
		PRC_SAMPLE_FLAG,
		PRC_PRO_ORDER_NO,
		PRC_PRO_ORDER_NO1,
		PRC_PRO_ORDER_ID,
		PRC_PRO_ORDER_ID1,
		PRC_GX_PLAN_NO,
		PRC_GX_PLAN_NO1,
		PRC_JUGDE_APPLY_FLAG,
		PRC_JUGDE_APPLY_CODE,
		PRC_JUGDE_APPLY_TIME,
		PRC_FACE_RESULT_CODE,
		PRC_FACE_RESULT_TIME,
		PRC_FACE_MAKER,
		PRC_FACE_RESULT_PATH,
		PRC_SPEC_RESULT_CODE,
		PRC_SPEC_RESULT_TIME,
		PRC_SPEC_MAKER,
		PRC_SPEC_RESULT_PATH,
		PRC_PHY_RESULT_CODE,
		PRC_PHY_RESULT_TIME,
		PRC_PHY_MAKER,
		PRC_PHY_RESULT_PATH,
		PRC_JUDGE_RESULT_CODE,
		PRC_JUDGE_RESULT_TIME,
		PRC_JUDGE_MAKER,
		PRC_JUGDE_CONVICTED,
		PRC_QUALITY_GROUP_ZG,
		PRC_FLAG_STOVE_NO_ZG,
		PRC_HEAT_PLAN_NO,
		VRP_JUDGE_STD_NAME,
		VRP_JUDGE_STD_CODE,
		HTT_JUDGE_STD_NAME,
		HTT_JUDGE_STD_CODE,
		PRC_JUDGE_STD_NAME,
		PRC_JUDGE_STD_CODE,
		VRP_CRAF_NO,
		HTT_CRAF_NO,
		PRC_CRAF_NO,
		VRP_CHEM_RESULT_CODE,
		VRP_CHEM_RESULT_TIME,
		VRP_CHEM_MAKER,
		HTT_CHEM_RESULT_CODE,
		HTT_CHEM_RESULT_TIME,
		HTT_CHEM_MAKER,
		PRC_CHEM_RESULT_CODE,
		PRC_CHEM_RESULT_TIME,
		PRC_CHEM_MAKER,
		DETECT_REPORT_NO1,
		DETECT_RESULT_CODE1,
		TESTING_GRADE,
		TESTING_TYPE,
		TESTING_GRADE1,
		TESTING_TYPE1,
		ZG_PLINE_CODE,
		ZG_PLINE_NAME,
		VRP_PLINE_CODE,
		VRP_PLINE_NAME,
		HTT_PLINE_CODE,
		HTT_PLINE_NAME,
		PRC_PLINE_CODE,
		PRC_PLINE_NAME,
		VRP_QCM_STAUS,
		HTT_QCM_STAUS,
		PRC_QCM_STAUS,
		ZG_MEMO,
		ZBS_FLAG,
		ZBS_ID,
		MEASURING_SEQ,
		INSTOCK_DOC,
		JG_ZBS_ID,
		CHANGE_DOC,
		SUBCONTRACT_NO,
		SUBCONTRACT_NO_SEQ,
		LOCK_BILL_FLAG)
		SELECT T.MAT_NO_CUT,
		PRODUCT_FLAG,
		M.MAT_STATUS,
		LOT_NO,
		STOVE_NO,
		JUDGE_STOVE_NO,
		BATCH_NO,
		BATCH_GROUD_NO,
		MAT_SQE_NO,
		SAMPLE_FLAG,
		CUTTING_FLAG,
		ORIGIN_MAT_NO,
		MATERIAL_NO,
		MATERIAL_NAME,
		INPUT_MATERIAL_NAME,
		INPUT_MATERIAL_NO,
		INPUT_ORIGIN_CODE,
		PRODUCCODE,
		PRODUCNAME,
		STEELCODE,
		STEELNAME,
		GRADECODE,
		GRADENAME,
		SPEC_CODE,
		SPEC_NAME,
		MODEL_CODE,
		MODEL_DESC,
		STD_CODE,
		STD_NAME,
		STD_STYLE,
		STD_STYLE_DESC,
		PRO_ORDER_NO,
		PRO_ORDER_NO1,
		PRO_ORDER_ID,
		PRO_ORDER_ID1,
		ORDER_NO,
		ORDER_SEQ,
		ORDER_SEQ_NO,
		CRAF_NO,
		PROCESS_CDOE,
		PROCESS_DESC,
		NEXT_PROCESS_CDOE,
		NEXT_PROCESS_DESC,
		PLINE_CODE,
		PLINE_NAME,
		MAT_ORIGIN_CODE,
		MAT_ORIGIN_NAME,
		DIMATER,
		HEIGHT,
		LEN_NO,
		LEN_DESC,
		LEN_UNIT,
		LEN_MIN,
		LEN_MAX,
		TARG_DIMATER,
		TARG_HEIGHT,
		TARG_LEN_MIN,
		TARG_LEN_MAX,
		ACT_DIMATER,
		ACT_HEIGHT,
		CASE WHEN T.MAT_NO_CUT LIKE '%01' THEN
		ACT_LEN-  (T.CUT_NUM-1) * ROUND(ACT_LEN/T.CUT_NUM ,3)
		ELSE
		ROUND(ACT_LEN/T.CUT_NUM ,3)
		END ACT_LEN,
		ACT_LEN_MIN,
		ACT_LEN_MAX,
		ACT_COUNT,
		CASE WHEN T.MAT_NO_CUT LIKE '%01' THEN
		ACT_WEIGHT-  (T.CUT_NUM-1) * ROUND(ACT_WEIGHT/T.CUT_NUM ,3)
		ELSE
		ROUND(ACT_WEIGHT/T.CUT_NUM ,3)
		END ACT_WEIGHT,
		CASE WHEN T.MAT_NO_CUT LIKE '%01' THEN
		ACT_THEORY_WEIGHT-  (T.CUT_NUM-1) * ROUND(ACT_THEORY_WEIGHT/T.CUT_NUM ,3)
		ELSE
		ROUND(ACT_THEORY_WEIGHT/T.CUT_NUM ,3)
		END ACT_THEORY_WEIGHT,
		MEASURE_FLAG,
		BELONG_CODE,
		BELONG_NAME,
		PACK_FLAG,
		PACK_TYPE_CODE,
		PACK_TYPE_NAME,
		PACK_NO,
		PACK_TIME,
		PACK_MAT_WT,
		MAT_GROSS_WT,
		MAT_GOWHERE_CODE,
		MAT_GOWHERE_NAME,
		COOL_HOT_FLAG,
		MAT_RETURN_FLAG,
		HEAT_TREAT_NO,
		POST_FLAG,
		LOCK_FLAG,
		MNG_LOCK_RSN_CODE,
		MNG_LOCK_TIME,
		MNG_LOCK_MAKER,
		MNG_LOCK_REMARK,
		LOCK_RSN_CODE,
		LOCK_TIME,
		LOCK_MAKER,
		LOCK_REMARK,
		UNLOCK_TIME,
		UNLOCK_MAKER,
		UNLOCK_REMARK,
		OLD_ORDER_NO,
		OLD_ORDER_SEQ,
		OLD_ORDER_SEQ_NO,
		OLD_MATERIAL_NO,
		OLD_MATERIAL_NAME,
		REMAIN_RSN_CODE,
		REMAIN_JUGDE_TIME,
		REMAIN_JUGDE_MAKER,
		REMAIN_JUGDE_CODE,
		REMAIN_REMARK,
		JUGDE_APPLY_FLAG,
		JUGDE_APPLY_CODE,
		JUGDE_APPLY_TIME,
		JUGDE_SCAN_TIME,
		FACE_RESULT_CODE,
		FACE_RESULT_TIME,
		FACE_MAKER,
		SPEC_RESULT_CODE,
		SPEC_RESULT_TIME,
		SPEC_MAKER,
		CHEM_RESULT_CODE,
		CHEM_RESULT_TIME,
		CHEM_MAKER,
		PHY_RESULT_CODE,
		PHY_RESULT_TIME,
		PHY_MAKER,
		DETECT_REPORT_NO,
		DETECT_RESULT_CODE,
		WPRESSURE_REPORT_NO,
		WPRESSURE_RESULT_CODE,
		JUDGE_RESULT_CODE,
		JUDGE_RESULT,
		JUDGE_RESULT_TIME,
		JUDGE_MAKER,
		BUG_NO,
		BUG_DEAL,
		REPAIR_FLAG,
		REPAIR_REMARK,
		SAMPLING_FLAG,
		SAMPLING_TYPE,
		SAMPLING_NO,
		CHECKOUT_NO,
		CHEM_STCHECK_NO,
		CHEM_PROCHECK_NO,
		SH_CHECK_NO,
		COME_PROC_FLAG,
		CONFM_FLAG,
		INSTOCK_FLAG,
		INSTOCK_TIME,
		OUTSTOCK_TIME,
		PRO_BC,
		PRO_BZ,
		RPO_TIME,
		BAR_CODE,
		BEGINNING_FLAG,
		MEMO,
		CREATE_NAME,
		CREATE_TIME,
		UPDATE_NAME,
		UPDATE_TIME,
		REQ_BL_ID,
		IF_BATCHED_JG,
		COUPCUT_BATCH_ID,
		ORD_PK,
		ORD_LN_PK,
		ORD_LN_DLY_PK,
		OLD_ORD_PK,
		OLD_ORD_LN_PK,
		OLD_ORD_LN_DLY_PK,
		BAL_YEAR_MONTH,
		JUDGE_STD_NAME,
		JUDGE_STD_CODE,
		JUDGE_GRADE,
		PIPMEMO,
		TEST,
		SOURE_CODE,
		SOURE_NAME,
		PONDER_NO,
		PONDER_GROSS_WT,
		MEMO1,
		JUDGE_ID,
		MNG_LOCK_FLAG,
		LOCK_ID,
		PRO_NO,
		LOCK_LIKU,
		PLN_GRADECODE,
		PLN_GRADENAME,
		PLN_STEELCODE,
		PLN_STEELNAME,
		DECODE(T.MAT_STATUS,'0', '00','22') ,
		OUTSTOCK_DOC,
		HEAT_PLAN_NO,
		ZG_STOVE_SQE,
		GX_PLAN_NO,
		ZG_MAT_NO,
		FINISHPRO_MOLD,
		IN_MOLD,
		TARGET,
		PROCESS_STATUS,
		JUGDE_CONVICTED,
		GX_PLAN_NO1,
		FIXTYPE_CODE,
		QUALITY_GROUP_ZG,
		FLAG_STOVE_NO_ZG,
		ZG_PHY_RESULT_PATH,
		ZG_FACE_RESULT_PATH,
		ZG_SPEC_RESULT_PATH,
		VRP_HEAT_PLAN_NO,
		VRP_LOT_NO,
		VRP_SAMPLE_FLAG,
		VRP_PRO_ORDER_NO,
		VRP_PRO_ORDER_NO1,
		VRP_PRO_ORDER_ID,
		VRP_PRO_ORDER_ID1,
		VRP_ACT_DIMATER,
		VRP_ACT_HEIGHT,
		VRP_JUGDE_APPLY_FLAG,
		VRP_JUGDE_APPLY_CODE,
		VRP_JUGDE_APPLY_TIME,
		VRP_FACE_RESULT_CODE,
		VRP_FACE_RESULT_TIME,
		VRP_FACE_MAKER,
		VRP_FACE_RESULT_PATH,
		VRP_SPEC_RESULT_CODE,
		VRP_SPEC_RESULT_TIME,
		VRP_SPEC_MAKER,
		VRP_SPEC_RESULT_PATH,
		VRP_PHY_RESULT_CODE,
		VRP_PHY_RESULT_TIME,
		VRP_PHY_MAKER,
		VRP_PHY_RESULT_PATH,
		VRP_JUDGE_RESULT_CODE,
		VRP_JUDGE_RESULT_TIME,
		VRP_JUDGE_MAKER,
		VRP_GX_PLAN_NO,
		VRP_GX_PLAN_NO1,
		VPR_JUGDE_CONVICTED,
		VPR_QUALITY_GROUP_ZG,
		VPR_FLAG_STOVE_NO_ZG,
		HTT_HEAT_PLAN_NO,
		HTT_LOT_NO,
		HTT_SAMPLE_FLAG,
		HTT_PRO_ORDER_NO,
		HTT_PRO_ORDER_NO1,
		HTT_PRO_ORDER_ID,
		HTT_PRO_ORDER_ID1,
		HTT_GX_PLAN_NO,
		HTT_GX_PLAN_NO1,
		HTT_JUGDE_APPLY_FLAG,
		HTT_JUGDE_APPLY_CODE,
		HTT_JUGDE_APPLY_TIME,
		HTT_FACE_RESULT_CODE,
		HTT_FACE_RESULT_TIME,
		HTT_FACE_MAKER,
		HTT_FACE_RESULT_PATH,
		HTT_SPEC_RESULT_CODE,
		HTT_SPEC_RESULT_TIME,
		HTT_SPEC_MAKER,
		HTT_SPEC_RESULT_PATH,
		HTT_PHY_RESULT_CODE,
		HTT_PHY_RESULT_TIME,
		HTT_PHY_MAKER,
		HTT_PHY_RESULT_PATH,
		HTT_JUDGE_RESULT_CODE,
		HTT_JUDGE_RESULT_TIME,
		HTT_JUDGE_MAKER,
		HTT_JUGDE_CONVICTED,
		HTT_QUALITY_GROUP_ZG,
		HTT_FLAG_STOVE_NO_ZG,
		PRC_LOT_NO,
		PRC_SAMPLE_FLAG,
		PRC_PRO_ORDER_NO,
		PRC_PRO_ORDER_NO1,
		PRC_PRO_ORDER_ID,
		PRC_PRO_ORDER_ID1,
		PRC_GX_PLAN_NO,
		PRC_GX_PLAN_NO1,
		PRC_JUGDE_APPLY_FLAG,
		PRC_JUGDE_APPLY_CODE,
		PRC_JUGDE_APPLY_TIME,
		PRC_FACE_RESULT_CODE,
		PRC_FACE_RESULT_TIME,
		PRC_FACE_MAKER,
		PRC_FACE_RESULT_PATH,
		PRC_SPEC_RESULT_CODE,
		PRC_SPEC_RESULT_TIME,
		PRC_SPEC_MAKER,
		PRC_SPEC_RESULT_PATH,
		PRC_PHY_RESULT_CODE,
		PRC_PHY_RESULT_TIME,
		PRC_PHY_MAKER,
		PRC_PHY_RESULT_PATH,
		PRC_JUDGE_RESULT_CODE,
		PRC_JUDGE_RESULT_TIME,
		PRC_JUDGE_MAKER,
		PRC_JUGDE_CONVICTED,
		PRC_QUALITY_GROUP_ZG,
		PRC_FLAG_STOVE_NO_ZG,
		PRC_HEAT_PLAN_NO,
		VRP_JUDGE_STD_NAME,
		VRP_JUDGE_STD_CODE,
		HTT_JUDGE_STD_NAME,
		HTT_JUDGE_STD_CODE,
		PRC_JUDGE_STD_NAME,
		PRC_JUDGE_STD_CODE,
		VRP_CRAF_NO,
		HTT_CRAF_NO,
		PRC_CRAF_NO,
		VRP_CHEM_RESULT_CODE,
		VRP_CHEM_RESULT_TIME,
		VRP_CHEM_MAKER,
		HTT_CHEM_RESULT_CODE,
		HTT_CHEM_RESULT_TIME,
		HTT_CHEM_MAKER,
		PRC_CHEM_RESULT_CODE,
		PRC_CHEM_RESULT_TIME,
		PRC_CHEM_MAKER,
		DETECT_REPORT_NO1,
		DETECT_RESULT_CODE1,
		TESTING_GRADE,
		TESTING_TYPE,
		TESTING_GRADE1,
		TESTING_TYPE1,
		ZG_PLINE_CODE,
		ZG_PLINE_NAME,
		VRP_PLINE_CODE,
		VRP_PLINE_NAME,
		HTT_PLINE_CODE,
		HTT_PLINE_NAME,
		PRC_PLINE_CODE,
		PRC_PLINE_NAME,
		VRP_QCM_STAUS,
		HTT_QCM_STAUS,
		PRC_QCM_STAUS,
		ZG_MEMO,
		ZBS_FLAG,
		ZBS_ID,
		MEASURING_SEQ,
		INSTOCK_DOC,
		JG_ZBS_ID,
		CHANGE_DOC,
		M.SUBCONTRACT_NO,
		M.SUBCONTRACT_NO_SEQ,
		LOCK_BILL_FLAG
		FROM MAT_ZC_M M, HTT_ENTRUST_MAT_NO T
		WHERE M.MAT_NO = T.MAT_NO
		AND T.RESULT_NO_OFFLINE =?
	</query>
	
	<query id="xsmat.BatchInsertEntrustCutZcBut">
		INSERT INTO YDM_ZC_BUTTRESS_XS
		(MAT_NO,
		JUDGE_STOVE_NO,
		BATCH_NO,
		BATCH_GROUD_NO,
		STORAGE_NO,
		LOCATION_NO,
		LARY_NO,
		LOC_NO,
		STORAGE_ATTR,
		STORAGE_ATTR_NAME,
		STORAGE_TYPE_NO,
		STORAGE_TYPE_NAME,
		MANAGEMENT_NO,
		MANAGEMENT_NAME,
		MEMO,
		CREATE_NAME,
		CREATE_TIME,
		UPDATE_NAME,
		UPDATE_TIME,
		DELETE_NAME,
		DELETE_TIME,
		DEPARTMENT_CODE,
		DEPARTMENT_DESC)
		SELECT t.mat_no_cut MAT_NO,
		JUDGE_STOVE_NO,
		BATCH_NO,
		BATCH_GROUD_NO,
		STORAGE_NO,
		LOCATION_NO,
		LARY_NO,
		LOC_NO,
		STORAGE_ATTR,
		STORAGE_ATTR_NAME,
		STORAGE_TYPE_NO,
		STORAGE_TYPE_NAME,
		MANAGEMENT_NO,
		MANAGEMENT_NAME,
		MEMO,
		CREATE_NAME,
		CREATE_TIME,
		UPDATE_NAME,
		UPDATE_TIME,
		DELETE_NAME,
		DELETE_TIME,
		DEPARTMENT_CODE,
		DEPARTMENT_DESC
		FROM YDM_ZC_BUTTRESS M, HTT_ENTRUST_MAT_NO T
		WHERE M.MAT_NO = T.MAT_NO
		AND T.RESULT_NO_OFFLINE =?
		AND M.STORAGE_NO IS NOT NULL
	</query>
	
	<query id="xsmat.BatchInsertEntrustZcBut">
		INSERT INTO YDM_ZC_BUTTRESS_XS
		(MAT_NO,
		JUDGE_STOVE_NO,
		BATCH_NO,
		BATCH_GROUD_NO,
		STORAGE_NO,
		LOCATION_NO,
		LARY_NO,
		LOC_NO,
		STORAGE_ATTR,
		STORAGE_ATTR_NAME,
		STORAGE_TYPE_NO,
		STORAGE_TYPE_NAME,
		MANAGEMENT_NO,
		MANAGEMENT_NAME,
		MEMO,
		CREATE_NAME,
		CREATE_TIME,
		UPDATE_NAME,
		UPDATE_TIME,
		DELETE_NAME,
		DELETE_TIME,
		DEPARTMENT_CODE,
		DEPARTMENT_DESC)
		SELECT t.MAT_NO,
		JUDGE_STOVE_NO,
		BATCH_NO,
		BATCH_GROUD_NO,
		STORAGE_NO,
		LOCATION_NO,
		LARY_NO,
		LOC_NO,
		STORAGE_ATTR,
		STORAGE_ATTR_NAME,
		STORAGE_TYPE_NO,
		STORAGE_TYPE_NAME,
		MANAGEMENT_NO,
		MANAGEMENT_NAME,
		MEMO,
		CREATE_NAME,
		CREATE_TIME,
		UPDATE_NAME,
		UPDATE_TIME,
		DELETE_NAME,
		DELETE_TIME,
		DEPARTMENT_CODE,
		DEPARTMENT_DESC
		FROM YDM_ZC_BUTTRESS M, HTT_ENTRUST_MAT_NO T
		WHERE M.MAT_NO = T.MAT_NO_CUT
		AND T.RESULT_NO_OFFLINE =?
		AND T.MAT_NO_CUT LIKE '%01'
		AND M.STORAGE_NO IS NOT NULL
	</query>
	
		<query id="xsmat.BatchInsertEntrustZcMat">
		INSERT INTO MAT_ZC_M_XS
		(MAT_NO,
		PRODUCT_FLAG,
		MAT_STATUS,
		LOT_NO,
		STOVE_NO,
		JUDGE_STOVE_NO,
		BATCH_NO,
		BATCH_GROUD_NO,
		MAT_SQE_NO,
		SAMPLE_FLAG,
		CUTTING_FLAG,
		ORIGIN_MAT_NO,
		MATERIAL_NO,
		MATERIAL_NAME,
		INPUT_MATERIAL_NAME,
		INPUT_MATERIAL_NO,
		INPUT_ORIGIN_CODE,
		PRODUCCODE,
		PRODUCNAME,
		STEELCODE,
		STEELNAME,
		GRADECODE,
		GRADENAME,
		SPEC_CODE,
		SPEC_NAME,
		MODEL_CODE,
		MODEL_DESC,
		STD_CODE,
		STD_NAME,
		STD_STYLE,
		STD_STYLE_DESC,
		PRO_ORDER_NO,
		PRO_ORDER_NO1,
		PRO_ORDER_ID,
		PRO_ORDER_ID1,
		ORDER_NO,
		ORDER_SEQ,
		ORDER_SEQ_NO,
		CRAF_NO,
		PROCESS_CDOE,
		PROCESS_DESC,
		NEXT_PROCESS_CDOE,
		NEXT_PROCESS_DESC,
		PLINE_CODE,
		PLINE_NAME,
		MAT_ORIGIN_CODE,
		MAT_ORIGIN_NAME,
		DIMATER,
		HEIGHT,
		LEN_NO,
		LEN_DESC,
		LEN_UNIT,
		LEN_MIN,
		LEN_MAX,
		TARG_DIMATER,
		TARG_HEIGHT,
		TARG_LEN_MIN,
		TARG_LEN_MAX,
		ACT_DIMATER,
		ACT_HEIGHT,
		ACT_LEN,
		ACT_LEN_MIN,
		ACT_LEN_MAX,
		ACT_COUNT,
		ACT_WEIGHT,
		ACT_THEORY_WEIGHT,
		MEASURE_FLAG,
		BELONG_CODE,
		BELONG_NAME,
		PACK_FLAG,
		PACK_TYPE_CODE,
		PACK_TYPE_NAME,
		PACK_NO,
		PACK_TIME,
		PACK_MAT_WT,
		MAT_GROSS_WT,
		MAT_GOWHERE_CODE,
		MAT_GOWHERE_NAME,
		COOL_HOT_FLAG,
		MAT_RETURN_FLAG,
		HEAT_TREAT_NO,
		POST_FLAG,
		LOCK_FLAG,
		MNG_LOCK_RSN_CODE,
		MNG_LOCK_TIME,
		MNG_LOCK_MAKER,
		MNG_LOCK_REMARK,
		LOCK_RSN_CODE,
		LOCK_TIME,
		LOCK_MAKER,
		LOCK_REMARK,
		UNLOCK_TIME,
		UNLOCK_MAKER,
		UNLOCK_REMARK,
		OLD_ORDER_NO,
		OLD_ORDER_SEQ,
		OLD_ORDER_SEQ_NO,
		OLD_MATERIAL_NO,
		OLD_MATERIAL_NAME,
		REMAIN_RSN_CODE,
		REMAIN_JUGDE_TIME,
		REMAIN_JUGDE_MAKER,
		REMAIN_JUGDE_CODE,
		REMAIN_REMARK,
		JUGDE_APPLY_FLAG,
		JUGDE_APPLY_CODE,
		JUGDE_APPLY_TIME,
		JUGDE_SCAN_TIME,
		FACE_RESULT_CODE,
		FACE_RESULT_TIME,
		FACE_MAKER,
		SPEC_RESULT_CODE,
		SPEC_RESULT_TIME,
		SPEC_MAKER,
		CHEM_RESULT_CODE,
		CHEM_RESULT_TIME,
		CHEM_MAKER,
		PHY_RESULT_CODE,
		PHY_RESULT_TIME,
		PHY_MAKER,
		DETECT_REPORT_NO,
		DETECT_RESULT_CODE,
		WPRESSURE_REPORT_NO,
		WPRESSURE_RESULT_CODE,
		JUDGE_RESULT_CODE,
		JUDGE_RESULT,
		JUDGE_RESULT_TIME,
		JUDGE_MAKER,
		BUG_NO,
		BUG_DEAL,
		REPAIR_FLAG,
		REPAIR_REMARK,
		SAMPLING_FLAG,
		SAMPLING_TYPE,
		SAMPLING_NO,
		CHECKOUT_NO,
		CHEM_STCHECK_NO,
		CHEM_PROCHECK_NO,
		SH_CHECK_NO,
		COME_PROC_FLAG,
		CONFM_FLAG,
		INSTOCK_FLAG,
		INSTOCK_TIME,
		OUTSTOCK_TIME,
		PRO_BC,
		PRO_BZ,
		RPO_TIME,
		BAR_CODE,
		BEGINNING_FLAG,
		MEMO,
		CREATE_NAME,
		CREATE_TIME,
		UPDATE_NAME,
		UPDATE_TIME,
		REQ_BL_ID,
		IF_BATCHED_JG,
		COUPCUT_BATCH_ID,
		ORD_PK,
		ORD_LN_PK,
		ORD_LN_DLY_PK,
		OLD_ORD_PK,
		OLD_ORD_LN_PK,
		OLD_ORD_LN_DLY_PK,
		BAL_YEAR_MONTH,
		JUDGE_STD_NAME,
		JUDGE_STD_CODE,
		JUDGE_GRADE,
		PIPMEMO,
		TEST,
		SOURE_CODE,
		SOURE_NAME,
		PONDER_NO,
		PONDER_GROSS_WT,
		MEMO1,
		JUDGE_ID,
		MNG_LOCK_FLAG,
		LOCK_ID,
		PRO_NO,
		LOCK_LIKU,
		PLN_GRADECODE,
		PLN_GRADENAME,
		PLN_STEELCODE,
		PLN_STEELNAME,
		QCM_STAUS,
		OUTSTOCK_DOC,
		HEAT_PLAN_NO,
		ZG_STOVE_SQE,
		GX_PLAN_NO,
		ZG_MAT_NO,
		FINISHPRO_MOLD,
		IN_MOLD,
		TARGET,
		PROCESS_STATUS,
		JUGDE_CONVICTED,
		GX_PLAN_NO1,
		FIXTYPE_CODE,
		QUALITY_GROUP_ZG,
		FLAG_STOVE_NO_ZG,
		ZG_PHY_RESULT_PATH,
		ZG_FACE_RESULT_PATH,
		ZG_SPEC_RESULT_PATH,
		VRP_HEAT_PLAN_NO,
		VRP_LOT_NO,
		VRP_SAMPLE_FLAG,
		VRP_PRO_ORDER_NO,
		VRP_PRO_ORDER_NO1,
		VRP_PRO_ORDER_ID,
		VRP_PRO_ORDER_ID1,
		VRP_ACT_DIMATER,
		VRP_ACT_HEIGHT,
		VRP_JUGDE_APPLY_FLAG,
		VRP_JUGDE_APPLY_CODE,
		VRP_JUGDE_APPLY_TIME,
		VRP_FACE_RESULT_CODE,
		VRP_FACE_RESULT_TIME,
		VRP_FACE_MAKER,
		VRP_FACE_RESULT_PATH,
		VRP_SPEC_RESULT_CODE,
		VRP_SPEC_RESULT_TIME,
		VRP_SPEC_MAKER,
		VRP_SPEC_RESULT_PATH,
		VRP_PHY_RESULT_CODE,
		VRP_PHY_RESULT_TIME,
		VRP_PHY_MAKER,
		VRP_PHY_RESULT_PATH,
		VRP_JUDGE_RESULT_CODE,
		VRP_JUDGE_RESULT_TIME,
		VRP_JUDGE_MAKER,
		VRP_GX_PLAN_NO,
		VRP_GX_PLAN_NO1,
		VPR_JUGDE_CONVICTED,
		VPR_QUALITY_GROUP_ZG,
		VPR_FLAG_STOVE_NO_ZG,
		HTT_HEAT_PLAN_NO,
		HTT_LOT_NO,
		HTT_SAMPLE_FLAG,
		HTT_PRO_ORDER_NO,
		HTT_PRO_ORDER_NO1,
		HTT_PRO_ORDER_ID,
		HTT_PRO_ORDER_ID1,
		HTT_GX_PLAN_NO,
		HTT_GX_PLAN_NO1,
		HTT_JUGDE_APPLY_FLAG,
		HTT_JUGDE_APPLY_CODE,
		HTT_JUGDE_APPLY_TIME,
		HTT_FACE_RESULT_CODE,
		HTT_FACE_RESULT_TIME,
		HTT_FACE_MAKER,
		HTT_FACE_RESULT_PATH,
		HTT_SPEC_RESULT_CODE,
		HTT_SPEC_RESULT_TIME,
		HTT_SPEC_MAKER,
		HTT_SPEC_RESULT_PATH,
		HTT_PHY_RESULT_CODE,
		HTT_PHY_RESULT_TIME,
		HTT_PHY_MAKER,
		HTT_PHY_RESULT_PATH,
		HTT_JUDGE_RESULT_CODE,
		HTT_JUDGE_RESULT_TIME,
		HTT_JUDGE_MAKER,
		HTT_JUGDE_CONVICTED,
		HTT_QUALITY_GROUP_ZG,
		HTT_FLAG_STOVE_NO_ZG,
		PRC_LOT_NO,
		PRC_SAMPLE_FLAG,
		PRC_PRO_ORDER_NO,
		PRC_PRO_ORDER_NO1,
		PRC_PRO_ORDER_ID,
		PRC_PRO_ORDER_ID1,
		PRC_GX_PLAN_NO,
		PRC_GX_PLAN_NO1,
		PRC_JUGDE_APPLY_FLAG,
		PRC_JUGDE_APPLY_CODE,
		PRC_JUGDE_APPLY_TIME,
		PRC_FACE_RESULT_CODE,
		PRC_FACE_RESULT_TIME,
		PRC_FACE_MAKER,
		PRC_FACE_RESULT_PATH,
		PRC_SPEC_RESULT_CODE,
		PRC_SPEC_RESULT_TIME,
		PRC_SPEC_MAKER,
		PRC_SPEC_RESULT_PATH,
		PRC_PHY_RESULT_CODE,
		PRC_PHY_RESULT_TIME,
		PRC_PHY_MAKER,
		PRC_PHY_RESULT_PATH,
		PRC_JUDGE_RESULT_CODE,
		PRC_JUDGE_RESULT_TIME,
		PRC_JUDGE_MAKER,
		PRC_JUGDE_CONVICTED,
		PRC_QUALITY_GROUP_ZG,
		PRC_FLAG_STOVE_NO_ZG,
		PRC_HEAT_PLAN_NO,
		VRP_JUDGE_STD_NAME,
		VRP_JUDGE_STD_CODE,
		HTT_JUDGE_STD_NAME,
		HTT_JUDGE_STD_CODE,
		PRC_JUDGE_STD_NAME,
		PRC_JUDGE_STD_CODE,
		VRP_CRAF_NO,
		HTT_CRAF_NO,
		PRC_CRAF_NO,
		VRP_CHEM_RESULT_CODE,
		VRP_CHEM_RESULT_TIME,
		VRP_CHEM_MAKER,
		HTT_CHEM_RESULT_CODE,
		HTT_CHEM_RESULT_TIME,
		HTT_CHEM_MAKER,
		PRC_CHEM_RESULT_CODE,
		PRC_CHEM_RESULT_TIME,
		PRC_CHEM_MAKER,
		DETECT_REPORT_NO1,
		DETECT_RESULT_CODE1,
		TESTING_GRADE,
		TESTING_TYPE,
		TESTING_GRADE1,
		TESTING_TYPE1,
		ZG_PLINE_CODE,
		ZG_PLINE_NAME,
		VRP_PLINE_CODE,
		VRP_PLINE_NAME,
		HTT_PLINE_CODE,
		HTT_PLINE_NAME,
		PRC_PLINE_CODE,
		PRC_PLINE_NAME,
		VRP_QCM_STAUS,
		HTT_QCM_STAUS,
		PRC_QCM_STAUS,
		ZG_MEMO,
		ZBS_FLAG,
		ZBS_ID,
		MEASURING_SEQ,
		INSTOCK_DOC,
		JG_ZBS_ID,
		CHANGE_DOC,
		SUBCONTRACT_NO,
		SUBCONTRACT_NO_SEQ,
		LOCK_BILL_FLAG)
		SELECT T.MAT_NO,
		PRODUCT_FLAG,
		M.MAT_STATUS,
		LOT_NO,
		STOVE_NO,
		JUDGE_STOVE_NO,
		BATCH_NO,
		BATCH_GROUD_NO,
		MAT_SQE_NO,
		SAMPLE_FLAG,
		CUTTING_FLAG,
		ORIGIN_MAT_NO,
		MATERIAL_NO,
		MATERIAL_NAME,
		INPUT_MATERIAL_NAME,
		INPUT_MATERIAL_NO,
		INPUT_ORIGIN_CODE,
		PRODUCCODE,
		PRODUCNAME,
		STEELCODE,
		STEELNAME,
		GRADECODE,
		GRADENAME,
		SPEC_CODE,
		SPEC_NAME,
		MODEL_CODE,
		MODEL_DESC,
		STD_CODE,
		STD_NAME,
		STD_STYLE,
		STD_STYLE_DESC,
		PRO_ORDER_NO,
		PRO_ORDER_NO1,
		PRO_ORDER_ID,
		PRO_ORDER_ID1,
		ORDER_NO,
		ORDER_SEQ,
		ORDER_SEQ_NO,
		CRAF_NO,
		PROCESS_CDOE,
		PROCESS_DESC,
		NEXT_PROCESS_CDOE,
		NEXT_PROCESS_DESC,
		PLINE_CODE,
		PLINE_NAME,
		MAT_ORIGIN_CODE,
		MAT_ORIGIN_NAME,
		DIMATER,
		HEIGHT,
		LEN_NO,
		LEN_DESC,
		LEN_UNIT,
		LEN_MIN,
		LEN_MAX,
		TARG_DIMATER,
		TARG_HEIGHT,
		TARG_LEN_MIN,
		TARG_LEN_MAX,
		ACT_DIMATER,
		ACT_HEIGHT,
		(SELECT SUM(ACT_LEN) FROM MAT_ZC_M A, HTT_ENTRUST_MAT_NO B
		WHERE  A.MAT_NO = B.MAT_NO_CUT
		AND B.MAT_NO = T.MAT_NO),
		ACT_LEN_MIN,
		ACT_LEN_MAX,
		ACT_COUNT,
		(SELECT SUM(ACT_WEIGHT) FROM MAT_ZC_M A, HTT_ENTRUST_MAT_NO B
		WHERE  A.MAT_NO = B.MAT_NO_CUT
		AND B.MAT_NO = T.MAT_NO),
		(SELECT SUM(ACT_THEORY_WEIGHT) FROM MAT_ZC_M A, HTT_ENTRUST_MAT_NO B
		WHERE  A.MAT_NO = B.MAT_NO_CUT
		AND B.MAT_NO = T.MAT_NO),
		MEASURE_FLAG,
		BELONG_CODE,
		BELONG_NAME,
		PACK_FLAG,
		PACK_TYPE_CODE,
		PACK_TYPE_NAME,
		PACK_NO,
		PACK_TIME,
		PACK_MAT_WT,
		MAT_GROSS_WT,
		MAT_GOWHERE_CODE,
		MAT_GOWHERE_NAME,
		COOL_HOT_FLAG,
		MAT_RETURN_FLAG,
		HEAT_TREAT_NO,
		POST_FLAG,
		LOCK_FLAG,
		MNG_LOCK_RSN_CODE,
		MNG_LOCK_TIME,
		MNG_LOCK_MAKER,
		MNG_LOCK_REMARK,
		LOCK_RSN_CODE,
		LOCK_TIME,
		LOCK_MAKER,
		LOCK_REMARK,
		UNLOCK_TIME,
		UNLOCK_MAKER,
		UNLOCK_REMARK,
		OLD_ORDER_NO,
		OLD_ORDER_SEQ,
		OLD_ORDER_SEQ_NO,
		OLD_MATERIAL_NO,
		OLD_MATERIAL_NAME,
		REMAIN_RSN_CODE,
		REMAIN_JUGDE_TIME,
		REMAIN_JUGDE_MAKER,
		REMAIN_JUGDE_CODE,
		REMAIN_REMARK,
		JUGDE_APPLY_FLAG,
		JUGDE_APPLY_CODE,
		JUGDE_APPLY_TIME,
		JUGDE_SCAN_TIME,
		FACE_RESULT_CODE,
		FACE_RESULT_TIME,
		FACE_MAKER,
		SPEC_RESULT_CODE,
		SPEC_RESULT_TIME,
		SPEC_MAKER,
		CHEM_RESULT_CODE,
		CHEM_RESULT_TIME,
		CHEM_MAKER,
		PHY_RESULT_CODE,
		PHY_RESULT_TIME,
		PHY_MAKER,
		DETECT_REPORT_NO,
		DETECT_RESULT_CODE,
		WPRESSURE_REPORT_NO,
		WPRESSURE_RESULT_CODE,
		JUDGE_RESULT_CODE,
		JUDGE_RESULT,
		JUDGE_RESULT_TIME,
		JUDGE_MAKER,
		BUG_NO,
		BUG_DEAL,
		REPAIR_FLAG,
		REPAIR_REMARK,
		SAMPLING_FLAG,
		SAMPLING_TYPE,
		SAMPLING_NO,
		CHECKOUT_NO,
		CHEM_STCHECK_NO,
		CHEM_PROCHECK_NO,
		SH_CHECK_NO,
		COME_PROC_FLAG,
		CONFM_FLAG,
		INSTOCK_FLAG,
		INSTOCK_TIME,
		OUTSTOCK_TIME,
		PRO_BC,
		PRO_BZ,
		RPO_TIME,
		BAR_CODE,
		BEGINNING_FLAG,
		MEMO,
		CREATE_NAME,
		CREATE_TIME,
		UPDATE_NAME,
		UPDATE_TIME,
		REQ_BL_ID,
		IF_BATCHED_JG,
		COUPCUT_BATCH_ID,
		ORD_PK,
		ORD_LN_PK,
		ORD_LN_DLY_PK,
		OLD_ORD_PK,
		OLD_ORD_LN_PK,
		OLD_ORD_LN_DLY_PK,
		BAL_YEAR_MONTH,
		JUDGE_STD_NAME,
		JUDGE_STD_CODE,
		JUDGE_GRADE,
		PIPMEMO,
		TEST,
		SOURE_CODE,
		SOURE_NAME,
		PONDER_NO,
		PONDER_GROSS_WT,
		MEMO1,
		JUDGE_ID,
		MNG_LOCK_FLAG,
		LOCK_ID,
		PRO_NO,
		LOCK_LIKU,
		PLN_GRADECODE,
		PLN_GRADENAME,
		PLN_STEELCODE,
		PLN_STEELNAME,
		'00',
		OUTSTOCK_DOC,
		HEAT_PLAN_NO,
		ZG_STOVE_SQE,
		GX_PLAN_NO,
		ZG_MAT_NO,
		FINISHPRO_MOLD,
		IN_MOLD,
		TARGET,
		PROCESS_STATUS,
		JUGDE_CONVICTED,
		GX_PLAN_NO1,
		FIXTYPE_CODE,
		QUALITY_GROUP_ZG,
		FLAG_STOVE_NO_ZG,
		ZG_PHY_RESULT_PATH,
		ZG_FACE_RESULT_PATH,
		ZG_SPEC_RESULT_PATH,
		VRP_HEAT_PLAN_NO,
		VRP_LOT_NO,
		VRP_SAMPLE_FLAG,
		VRP_PRO_ORDER_NO,
		VRP_PRO_ORDER_NO1,
		VRP_PRO_ORDER_ID,
		VRP_PRO_ORDER_ID1,
		VRP_ACT_DIMATER,
		VRP_ACT_HEIGHT,
		VRP_JUGDE_APPLY_FLAG,
		VRP_JUGDE_APPLY_CODE,
		VRP_JUGDE_APPLY_TIME,
		VRP_FACE_RESULT_CODE,
		VRP_FACE_RESULT_TIME,
		VRP_FACE_MAKER,
		VRP_FACE_RESULT_PATH,
		VRP_SPEC_RESULT_CODE,
		VRP_SPEC_RESULT_TIME,
		VRP_SPEC_MAKER,
		VRP_SPEC_RESULT_PATH,
		VRP_PHY_RESULT_CODE,
		VRP_PHY_RESULT_TIME,
		VRP_PHY_MAKER,
		VRP_PHY_RESULT_PATH,
		VRP_JUDGE_RESULT_CODE,
		VRP_JUDGE_RESULT_TIME,
		VRP_JUDGE_MAKER,
		VRP_GX_PLAN_NO,
		VRP_GX_PLAN_NO1,
		VPR_JUGDE_CONVICTED,
		VPR_QUALITY_GROUP_ZG,
		VPR_FLAG_STOVE_NO_ZG,
		HTT_HEAT_PLAN_NO,
		HTT_LOT_NO,
		HTT_SAMPLE_FLAG,
		HTT_PRO_ORDER_NO,
		HTT_PRO_ORDER_NO1,
		HTT_PRO_ORDER_ID,
		HTT_PRO_ORDER_ID1,
		HTT_GX_PLAN_NO,
		HTT_GX_PLAN_NO1,
		HTT_JUGDE_APPLY_FLAG,
		HTT_JUGDE_APPLY_CODE,
		HTT_JUGDE_APPLY_TIME,
		HTT_FACE_RESULT_CODE,
		HTT_FACE_RESULT_TIME,
		HTT_FACE_MAKER,
		HTT_FACE_RESULT_PATH,
		HTT_SPEC_RESULT_CODE,
		HTT_SPEC_RESULT_TIME,
		HTT_SPEC_MAKER,
		HTT_SPEC_RESULT_PATH,
		HTT_PHY_RESULT_CODE,
		HTT_PHY_RESULT_TIME,
		HTT_PHY_MAKER,
		HTT_PHY_RESULT_PATH,
		HTT_JUDGE_RESULT_CODE,
		HTT_JUDGE_RESULT_TIME,
		HTT_JUDGE_MAKER,
		HTT_JUGDE_CONVICTED,
		HTT_QUALITY_GROUP_ZG,
		HTT_FLAG_STOVE_NO_ZG,
		PRC_LOT_NO,
		PRC_SAMPLE_FLAG,
		PRC_PRO_ORDER_NO,
		PRC_PRO_ORDER_NO1,
		PRC_PRO_ORDER_ID,
		PRC_PRO_ORDER_ID1,
		PRC_GX_PLAN_NO,
		PRC_GX_PLAN_NO1,
		PRC_JUGDE_APPLY_FLAG,
		PRC_JUGDE_APPLY_CODE,
		PRC_JUGDE_APPLY_TIME,
		PRC_FACE_RESULT_CODE,
		PRC_FACE_RESULT_TIME,
		PRC_FACE_MAKER,
		PRC_FACE_RESULT_PATH,
		PRC_SPEC_RESULT_CODE,
		PRC_SPEC_RESULT_TIME,
		PRC_SPEC_MAKER,
		PRC_SPEC_RESULT_PATH,
		PRC_PHY_RESULT_CODE,
		PRC_PHY_RESULT_TIME,
		PRC_PHY_MAKER,
		PRC_PHY_RESULT_PATH,
		PRC_JUDGE_RESULT_CODE,
		PRC_JUDGE_RESULT_TIME,
		PRC_JUDGE_MAKER,
		PRC_JUGDE_CONVICTED,
		PRC_QUALITY_GROUP_ZG,
		PRC_FLAG_STOVE_NO_ZG,
		PRC_HEAT_PLAN_NO,
		VRP_JUDGE_STD_NAME,
		VRP_JUDGE_STD_CODE,
		HTT_JUDGE_STD_NAME,
		HTT_JUDGE_STD_CODE,
		PRC_JUDGE_STD_NAME,
		PRC_JUDGE_STD_CODE,
		VRP_CRAF_NO,
		HTT_CRAF_NO,
		PRC_CRAF_NO,
		VRP_CHEM_RESULT_CODE,
		VRP_CHEM_RESULT_TIME,
		VRP_CHEM_MAKER,
		HTT_CHEM_RESULT_CODE,
		HTT_CHEM_RESULT_TIME,
		HTT_CHEM_MAKER,
		PRC_CHEM_RESULT_CODE,
		PRC_CHEM_RESULT_TIME,
		PRC_CHEM_MAKER,
		DETECT_REPORT_NO1,
		DETECT_RESULT_CODE1,
		TESTING_GRADE,
		TESTING_TYPE,
		TESTING_GRADE1,
		TESTING_TYPE1,
		ZG_PLINE_CODE,
		ZG_PLINE_NAME,
		VRP_PLINE_CODE,
		VRP_PLINE_NAME,
		HTT_PLINE_CODE,
		HTT_PLINE_NAME,
		PRC_PLINE_CODE,
		PRC_PLINE_NAME,
		VRP_QCM_STAUS,
		HTT_QCM_STAUS,
		PRC_QCM_STAUS,
		ZG_MEMO,
		ZBS_FLAG,
		ZBS_ID,
		MEASURING_SEQ,
		INSTOCK_DOC,
		JG_ZBS_ID,
		CHANGE_DOC,
		M.SUBCONTRACT_NO,
		M.SUBCONTRACT_NO_SEQ,
		LOCK_BILL_FLAG

		FROM MAT_ZC_M M, HTT_ENTRUST_MAT_NO T
		WHERE M.MAT_NO = T.MAT_NO_CUT
		AND T.MAT_NO_CUT LIKE '%01'
		AND T.RESULT_NO_OFFLINE =?
	</query>
	
	<query id="xsmat.BatchDeleteEntrustCutZcMat">
		DELETE
		FROM MAT_ZC_M_XS
		WHERE MAT_NO IN (SELECT MAT_NO_CUT FROM HTT_ENTRUST_MAT_NO
		WHERE RESULT_NO_OFFLINE =?)
	</query>
	
	<query id="xsmat.BatchDeleteEntrustCutZcBut">
		DELETE
		FROM YDM_ZC_BUTTRESS_XS
		WHERE MAT_NO IN (SELECT MAT_NO_CUT FROM HTT_ENTRUST_MAT_NO
		WHERE RESULT_NO_OFFLINE =?)
	</query>
	
	<query id="xsmat.UpdateMatNo" desc="新增材料表">
		<![CDATA[
	INSERT INTO MAT_ZC_M_XS (MAT_NO,PRODUCT_FLAG,MAT_STATUS,LOT_NO,STOVE_NO,JUDGE_STOVE_NO,
	BATCH_NO,BATCH_GROUD_NO,MAT_SQE_NO,SAMPLE_FLAG,CUTTING_FLAG,ORIGIN_MAT_NO,MATERIAL_NO,
	MATERIAL_NAME,INPUT_MATERIAL_NAME,INPUT_MATERIAL_NO,INPUT_ORIGIN_CODE,PRODUCCODE,
	PRODUCNAME,STEELCODE,STEELNAME,GRADECODE,GRADENAME,SPEC_CODE,SPEC_NAME,MODEL_CODE,
	MODEL_DESC,STD_CODE,STD_NAME,STD_STYLE,STD_STYLE_DESC,PRO_ORDER_NO,PRO_ORDER_NO1,
	PRO_ORDER_ID,PRO_ORDER_ID1,ORDER_NO,ORDER_SEQ,ORDER_SEQ_NO,CRAF_NO,PROCESS_CDOE,PROCESS_DESC,
	NEXT_PROCESS_CDOE,NEXT_PROCESS_DESC,PLINE_CODE,PLINE_NAME,MAT_ORIGIN_CODE,MAT_ORIGIN_NAME,
	ACT_DIMATER,ACT_HEIGHT,ACT_LEN,PRC_QCM_STAUS,PRC_SPEC_RESULT_CODE,PRC_CHEM_RESULT_CODE,
	PRC_FACE_RESULT_CODE,PRC_PHY_RESULT_CODE,PRC_JUDGE_RESULT_CODE,MAT_GOWHERE_CODE,MAT_GOWHERE_NAME,
	PRC_FLAG_STOVE_NO_ZG,BELONG_CODE,BELONG_NAME,UPDATE_TIME,UPDATE_NAME,PRC_CRAF_NO,PRC_SAMPLE_FLAG,
	PRC_LOT_NO,PRC_PRO_ORDER_NO,PRC_PRO_ORDER_ID,PRC_HEAT_PLAN_NO,PRC_GX_PLAN_NO,PRC_PLINE_CODE,PRC_PLINE_NAME,
	ACT_LEN_MIN,ACT_LEN_MAX,ACT_COUNT,ACT_WEIGHT,JUGDE_APPLY_FLAG,JUGDE_APPLY_CODE,JUGDE_APPLY_TIME,FACE_RESULT_CODE,
	CHEM_RESULT_CODE,PHY_RESULT_CODE,DETECT_RESULT_CODE,JUDGE_RESULT_CODE,JUDGE_RESULT,JUDGE_RESULT_TIME,INSTOCK_TIME,
	CREATE_NAME,CREATE_TIME,ORD_PK,ORD_LN_PK,ORD_LN_DLY_PK,JUDGE_STD_NAME,JUDGE_STD_CODE,SOURE_CODE,SOURE_NAME,
	PLN_GRADENAME,PLN_GRADECODE) VALUES (?, ?, ?,?,?,? ,? ,
	?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
	?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
	?, ? , ?, ?, ?, ? , ? ,  ?, TO_DATE(?,'YYYY-MM-DD HH24:MI:SS'), ?, ? ,? ,? ,? ,? ,? ,? ,? ,? ,? , ? ,? ,? ,
	? , ?,TO_DATE(?,'YYYY-MM-DD HH24:MI:SS') ,? ,? , ? ,? ,? ,? ,TO_DATE(?,'YYYY-MM-DD HH24:MI:SS'),TO_DATE(?,'YYYY-MM-DD HH24:MI:SS'),
	?,TO_DATE(?,'YYYY-MM-DD HH24:MI:SS'),? ,? ,? , ? ,? ,? ,? ,? ,?)
		]]>
	</query>
	
	<query id="xsmat.AddPlnInfo" desc="新增镦拔扩入库表">
		<![CDATA[
	INSERT INTO YDM_ZC_INLIST_XS (INSTOCK_SQE, INSTOCK_DOC, INSTOCK_TYPE_CODE, 
INSTOCK_TYPE_NAME, VEHICLE_NO, MAT_NO, LOT_NO, 
STOVE_NO, JUDGE_STOVE_NO, BATCH_NO, BATCH_GROUD_NO, MATERIAL_NO, MATERIAL_NAME, 
PRODUCCODE, PRODUCNAME, STD_CODE, STD_NAME, GRADECODE, GRADENAME, STEELCODE, 
STEELNAME, STD_STYLE, STD_STYLE_DESC, SPEC_CODE, SPEC_NAME, MODEL_CODE, 
MODEL_DESC, PRO_ORDER_NO, PLINE_CODE, PLINE_NAME, ACT_DIMATER, ACT_HEIGHT, 
ACT_LEN, ACT_LEN_MIN, ACT_LEN_MAX, ACT_COUNT, ACT_WEIGHT, ACT_THEORY_WEIGHT, 
BELONG_CODE, BELONG_NAME, STORAGE_NO, LOCATION_NO, LARY_NO, LOC_NO, 
STORAGE_ATTR, STORAGE_ATTR_NAME, STORAGE_TYPE_NO, STORAGE_TYPE_NAME, 
MANAGEMENT_NO, MANAGEMENT_NAME, RPO_TIME, PRO_BC, PRO_BZ, INSTOCK_TIME, IN_BC, 
IN_BZ, MEMO, CREATE_NAME, CREATE_TIME, ORD_PK, ORD_LN_PK, ORD_LN_DLY_PK, 
DEPARTMENT_CODE, DEPARTMENT_DESC, ORDER_NO, ORDER_SEQ, DELIVERY_NO, 
PRODUCT_FLAG, MAT_STATUS, JUDGE_STD_NAME, JUDGE_STD_CODE, IN_TIME_F, 
LEN_NO, LEN_DESC, LEN_UNIT, PIPMEMO, SOURE_CODE, SOURE_NAME, 
MAT_ORIGIN_CODE, MAT_ORIGIN_NAME, AFFIRM_LOG,QCM_STAUS) VALUES (?, ?, 
?, ?, ?, 
?, ?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ?, ?, 
?, ?,?, ?, ?,?, 
?,?, ?, ?, ?, ?, 
?, ?, ?, ?, ?, 
?, ?, TO_DATE(?,'YYYY-MM-DD HH24:MI:SS'), ?, ?, TO_DATE(?,'YYYY-MM-DD HH24:MI:SS'), ?, 
?, ?, ?, TO_DATE(?,'YYYY-MM-DD HH24:MI:SS'),?, ?, ?, 
?, ?, ?, ?, ?, 
?, ?, ?, ?, TO_DATE(?,'YYYY-MM-DD HH24:MI:SS'),  ?, ?, ?, ?,?, ?, 
?, ?, ?,?)
		]]>
	</query>
	
		<query id="xsmat.AddMatM" desc="末工序修改料表">
	<![CDATA[
UPDATE MAT_ZC_M_XS
   SET PRODUCT_FLAG = ?,
       MAT_STATUS   = ?,
       PROCESS_CDOE = ?,
       PROCESS_DESC = ?,
       PRC_PLINE_CODE = ?,
       PRC_PLINE_NAME = ?, 
       PRC_FACE_RESULT_CODE = ?,
       PRC_CHEM_RESULT_CODE = ?,
       PRC_GX_PLAN_NO = ?,
       PRC_GX_PLAN_NO1 = ?,
       PRC_SPEC_RESULT_CODE = ?,
       PRC_QCM_STAUS = ?,
       PRC_HEAT_PLAN_NO = ?,
       PRC_PRO_ORDER_ID = ?,
       PRC_PRO_ORDER_ID1 = ?,
       PRC_PRO_ORDER_NO = ?,
       PRC_PRO_ORDER_NO1 = ?,
       PRC_LOT_NO = ?,
       PRC_PHY_RESULT_CODE = ?,
       PRC_SAMPLE_FLAG = ?,
       PRC_CRAF_NO = ?,
       PRC_QUALITY_GROUP_ZG = ?,
       MATERIAL_NO = ?,
       MATERIAL_NAME = ?,
       INPUT_MATERIAL_NAME = ?,
       INPUT_MATERIAL_NO = ?,
       INPUT_ORIGIN_CODE = ?,
       NEXT_PROCESS_CDOE = ?,
       NEXT_PROCESS_DESC = ?,
       PLINE_CODE = ?,
       PLINE_NAME = ?,   
       UPDATE_NAME = ?,
       UPDATE_TIME =TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS'),
       PRC_JUDGE_RESULT_CODE=?,
       BELONG_CODE=?,
       BELONG_NAME=?,
       MAT_GOWHERE_CODE=?,
       MAT_GOWHERE_NAME=?,
       PRC_FLAG_STOVE_NO_ZG=?
 WHERE MAT_NO = ?
    ]]>
	</query>
	
	<query id="xsmat.doPipe1" desc="插入（成品下的废品）">
<![CDATA[
INSERT INTO MAT_ZC_M_XS
  (MAT_NO,
   PRODUCT_FLAG,
   MAT_STATUS,
   JUDGE_STOVE_NO,
   BATCH_NO,
   BATCH_GROUD_NO,
   MATERIAL_NO,
   MATERIAL_NAME,
   INPUT_MATERIAL_NAME,
   INPUT_MATERIAL_NO,
   GRADECODE,
   GRADENAME,
   MODEL_CODE,
   MODEL_DESC,
   ORDER_NO,
   ORDER_SEQ,
   CRAF_NO,
   PROCESS_CDOE,
   PROCESS_DESC,
   PLINE_CODE,
   PLINE_NAME,
   MAT_ORIGIN_CODE,
   MAT_ORIGIN_NAME,
   TARG_DIMATER,
   TARG_HEIGHT,
   ACT_DIMATER,
   ACT_HEIGHT,
   ACT_LEN,
   ACT_LEN_MIN,
   ACT_LEN_MAX,
   ACT_COUNT,
   ACT_WEIGHT,
   ACT_THEORY_WEIGHT,
   MEMO,
   CREATE_NAME,
   CREATE_TIME,
   ORD_LN_DLY_PK,
   PRO_NO,
   HEAT_PLAN_NO,
   GX_PLAN_NO)
VALUES
  (?,
   ?,   
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS'),
   ?,
   ?,
   ?,
   ?)

]]>
	</query>
	
	<query id="xsmat.doPipe3" desc="插入（成品下的废品）">
<![CDATA[
INSERT INTO YDM_ZC_INLIST_XS
  (INSTOCK_SQE,
   INSTOCK_DOC,
   INSTOCK_TYPE_CODE,
   INSTOCK_TYPE_NAME,
   INSTOCK_BAR_CODE,
   MAT_NO,
   LOT_NO,
   STOVE_NO,
   JUDGE_STOVE_NO,
   BATCH_NO,
   BATCH_GROUD_NO,
   MATERIAL_NO,
   MATERIAL_NAME,
   GRADECODE,
   GRADENAME,
   SPEC_CODE,
   SPEC_NAME,
   MODEL_CODE,
   MODEL_DESC,
   PLINE_CODE,
   PLINE_NAME,
   ACT_DIMATER,
   ACT_HEIGHT,
   ACT_LEN,
   ACT_LEN_MIN,
   ACT_LEN_MAX,
   ACT_COUNT,
   ACT_WEIGHT, 
   STORAGE_ATTR,
   STORAGE_ATTR_NAME,
   STORAGE_TYPE_NO,
   STORAGE_TYPE_NAME,
   IN_BC,
   IN_BZ,
   CREATE_NAME,
   CREATE_TIME,
 
   ORD_LN_DLY_PK,
   DEPARTMENT_CODE,
   DEPARTMENT_DESC,
   ORDER_NO,
   ORDER_SEQ,
   DELIVERY_NO,
   PRODUCT_FLAG,
   MAT_STATUS,
   IN_TIME_F,
   BAL_YEAR_MONTH,
   AFFIRM_LOG,
   M_BILL_NO,
   ZG_STOVE_SQE)
VALUES
  (?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,   
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS'),
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   ?,
   TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS'),
   ?,
   ?,
   ?,
   ?)

]]>
</query>
	<query id="FrmMchInOnlineStoreXs.DeleteLinResult" desc="删除交库实绩表">		
        <![CDATA[
           DELETE YDM_ZC_INLIST_XS T WHERE  T.MAT_NO = ? AND T.INSTOCK_DOC = ?
          ]]>
	</query>
		<query id="FrmMchInOnlineStoreXs.detelematno" desc="删除比最小材料号位数长的数据">		
        <![CDATA[
DELETE FROM MAT_ZC_M_XS T2
    WHERE LENGTH(T2.MAT_NO) > LENGTH(?)
          ]]>
	</query>
	<query id="FrmHttInOnlineStoreXs.AddPlnInfo" desc="新增热处理入库表">
		<![CDATA[
	INSERT INTO YDM_ZC_INLIST_XS (INSTOCK_SQE, INSTOCK_DOC, INSTOCK_TYPE_CODE, 
INSTOCK_TYPE_NAME, VEHICLE_NO, MAT_NO, LOT_NO, 
STOVE_NO, JUDGE_STOVE_NO, BATCH_NO, BATCH_GROUD_NO, MATERIAL_NO, MATERIAL_NAME, 
PRODUCCODE, PRODUCNAME, STD_CODE, STD_NAME, GRADECODE, GRADENAME, STEELCODE, 
STEELNAME, STD_STYLE, STD_STYLE_DESC, SPEC_CODE, SPEC_NAME, MODEL_CODE, 
MODEL_DESC, PRO_ORDER_NO, PLINE_CODE, PLINE_NAME, ACT_DIMATER, ACT_HEIGHT, 
ACT_LEN, ACT_LEN_MIN, ACT_LEN_MAX, ACT_COUNT, ACT_WEIGHT, ACT_THEORY_WEIGHT, 
BELONG_CODE, BELONG_NAME, STORAGE_NO, LOCATION_NO, LARY_NO, LOC_NO, 
STORAGE_ATTR, STORAGE_ATTR_NAME, STORAGE_TYPE_NO, STORAGE_TYPE_NAME, 
MANAGEMENT_NO, MANAGEMENT_NAME, RPO_TIME, PRO_BC, PRO_BZ, INSTOCK_TIME, IN_BC, 
IN_BZ, MEMO, CREATE_NAME, CREATE_TIME, ORD_PK, ORD_LN_PK, ORD_LN_DLY_PK, 
DEPARTMENT_CODE, DEPARTMENT_DESC, ORDER_NO, ORDER_SEQ, DELIVERY_NO, 
PRODUCT_FLAG, MAT_STATUS, JUDGE_STD_NAME, JUDGE_STD_CODE, IN_TIME_F, 
LEN_NO, LEN_DESC, LEN_UNIT, PIPMEMO, SOURE_CODE, SOURE_NAME, 
MAT_ORIGIN_CODE, MAT_ORIGIN_NAME, AFFIRM_LOG,QCM_STAUS) VALUES (?, ?, 
?, ?, ?, 
?, ?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ?, ?, 
?, ?,?, ?, ?,?, 
?,?, ?, ?, ?, ?, 
?, ?, ?, ?, ?, 
?, ?, TO_DATE(?,'YYYY-MM-DD HH24:MI:SS'), ?, ?, TO_DATE(?,'YYYY-MM-DD HH24:MI:SS'), ?, 
?, ?, ?, TO_DATE(?,'YYYY-MM-DD HH24:MI:SS'),?, ?, ?, 
?, ?, ?, ?, ?, 
?, ?, ?, ?, TO_DATE(?,'YYYY-MM-DD HH24:MI:SS'),  ?, ?, ?, ?,?, ?, 
?, ?, ?,?)
		]]>
	</query>
	
	<query id="FrmHttInOnlineStoreXs.AddMatM" desc="末工序修改料表">
	<![CDATA[
UPDATE MAT_ZC_M_XS
   SET PRODUCT_FLAG = ?,
       MAT_STATUS   = ?,
       PROCESS_CDOE = ?,
       PROCESS_DESC = ?,
       HTT_PLINE_CODE = ?,
       HTT_PLINE_NAME = ?, 
       HTT_FACE_RESULT_CODE = ?,
       HTT_CHEM_RESULT_CODE = ?,
       HTT_GX_PLAN_NO = ?,
       HTT_GX_PLAN_NO1 = ?,
       HTT_SPEC_RESULT_CODE = ?,
       HTT_QCM_STAUS = ?,
       HTT_HEAT_PLAN_NO = ?,
       HTT_PRO_ORDER_ID = ?,
       HTT_PRO_ORDER_ID1 = ?,
       HTT_PRO_ORDER_NO = ?,
       HTT_PRO_ORDER_NO1 = ?,
       HTT_LOT_NO = ?,
       HTT_PHY_RESULT_CODE = ?,
       HTT_SAMPLE_FLAG = ?,
       HTT_CRAF_NO = ?,
       HTT_QUALITY_GROUP_ZG = ?,
       MATERIAL_NO = ?,
       MATERIAL_NAME = ?,
       INPUT_MATERIAL_NAME = ?,
       INPUT_MATERIAL_NO = ?,
       INPUT_ORIGIN_CODE = ?,
       NEXT_PROCESS_CDOE = ?,
       NEXT_PROCESS_DESC = ?,
       PLINE_CODE = ?,
       PLINE_NAME = ?,   
       UPDATE_NAME = ?,
       UPDATE_TIME =TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS'),
       HTT_JUDGE_RESULT_CODE=?,
       BELONG_CODE=?,
       BELONG_NAME=?,
       MAT_GOWHERE_CODE=?,
       MAT_GOWHERE_NAME=?,
       ACT_HEIGHT=?,
       HTT_FLAG_STOVE_NO_ZG=?
 WHERE MAT_NO = ?
    ]]>
	</query>
	
	<query id="PlanServiceXs.deleteMatZc" desc="删除材料表废品新增数据">
		<![CDATA[
  DELETE MAT_ZC_M_XS T  WHERE T.MAT_NO = ?
        ]]>
	</query>
	
	<query id="FrmHttInOnlineStoreXs.DeleteLinResult" desc="删除交库实绩表">		
        <![CDATA[
DELETE YDM_ZC_INLIST_XS T WHERE  T.MAT_NO = ? AND T.INSTOCK_DOC = ?
          ]]>
	</query>
	
	<query id="FrmVrpInLibraryXs.DeleteLinResult" desc="删除交库实绩表">		
        <![CDATA[
DELETE YDM_ZC_INLIST_XS T WHERE  T.MAT_NO = ? AND T.INSTOCK_DOC = ?
          ]]>
	</query>
</queryMap>