<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="组批取样实绩">

	<query id="FrmMilGetBatchAndSample.GetPCode" desc="获取PCODE">
	    <![CDATA[
	        SELECT T.PLINE_CODE
	          FROM COM_BASE_PLINE T
	         WHERE 1=1
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.QueryGetSampleReq_" desc="查询冶金规范取样要求">
		<![CDATA[
            SELECT T1.PIC,
                   T1.SIC,
                   T6.PHY_CODE PHY_CODE_MAX,
                   T6.PHY_TYPE PHY_NAME_MAX,
                   T1.PHY_CODE_MIN,
                   T1.PHY_NAME_MIN,
                   T2.STD_CODE,
                   T2.STD_NAME,
                   T2.LENGTH,
                   T2.DESC_LENGTH,
                   T2.RATE,
                   T2.DESC_RATE,
                   T2.DESC_COUNT,
                   T2.POSITION,
                   T2.DESC_POSITION,
                   T2.MEMO,
                   T2.MIN_D,
                   T2.MAX_D,
                   T2.MIN_H,
                   T2.MAX_H,
                   T2.MIN_D_SIGN,
                   T2.MAX_D_SIGN,
                   T2.MIN_H_SIGN,
                   T2.MAX_H_SIGN,
                   T2.SAMPLE_STYLE,
                   T4.BASENAME DESC_SAMPLE_STYLE,
                   T2.BATCH_CNT
              FROM COM_MSC_PHY_SAMPLE T1,
                   COM_BASE_SAMPLE T2,                   
                   COM_BASE_INFO T4,
                   COM_BASE_PHY_C T5,
                   COM_BASE_PHY_B T6     
             WHERE T1.SIC = T2.SIC       
               AND T2.SAMPLE_STYLE = T4.BASECODE
               AND T5.PHY_CODE = T1.PHY_CODE_MIN
               AND T5.PHY_TYPE_M = T6.PHY_CODE
               AND T1.PIC IN
                   (SELECT T4.PIC
                      FROM SLM_ORDER_HEAD T1, SLM_ORDER_LINE T2, COM_MSC_STD_PIC T4
                     WHERE T1.ORD_PK = T2.ORD_PK
                       AND T2.MSC = T4.MSC
                       AND T1.ORDER_NO = ?
                       AND T2.ORDER_SEQ = ?)
                       AND T1.VALIDFLAG = 1
                       AND T2.VALIDFLAG = 1
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.QueryGetSampleReq_Desgin_Process"
		desc="查询合同轧制制程是否经过成分和理化">
		<![CDATA[
            SELECT DISTINCT
                   T4.STATION_ID,
                   T4.STATION_CODE,
                   T4.STATION_DESC 
              FROM SLM_ORDER_HEAD T1, 
                   SLM_ORDER_LINE T2,
                   CRAFT_ORD_DESIGN T3,
                   CRAFT_ORD_DESIGN_MSC_PL_STI T4
             WHERE T1.ORD_PK = T2.ORD_PK 
               AND T2.ORD_LN_PK = T3.ORD_LN_PK 
               AND T3.DESGIN_KEY = T4.DESGIN_KEY
               AND T1.VALIDFLAG = '1'
               AND T2.VALIDFLAG = '1'
               AND T3.VALIDFLAG = '1'
               AND T4.PROCESS_CODE = 'D'
               AND (T4.STATION_CODE = '40230' OR T4.STATION_CODE = '40210')
               AND T1.ORDER_NO = ? 
               AND T2.ORDER_SEQ = ? 
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.QueryGetSampleReq_Desgin"
		desc="查询取样要求AND T3.VALIDFLAG = '1'">
		<![CDATA[
            SELECT DISTINCT
                   T4.PIC,
                   T4.SIC,
                   T6.PHY_CODE PHY_CODE_MAX,
                   T6.PHY_TYPE PHY_NAME_MAX,
                   T6.PHY_DEPTID DEPT_ID,
                   T4.PHY_CODE_MIN,
                   T4.PHY_NAME_MIN,
                   T4.STD_CODE,
                   T4.STD_NAME,
                   T4.LENGTH,
                   T4.DESC_LENGTH,
                   T4.RATE,
                   T4.DESC_RATE,
                   T4.BATCH_CNT,
                   T4.DESC_COUNT,
                   T4.POSITION,
                   T4.DESC_POSITION,
                   T4.SAMPLE_COUNT,
                   T4.MEMO,
                   T4.SAMPLE_STYLE,
                   DECODE(T4.SAMPLE_STYLE, '408101', '片状', '408102', '环状', T4.DESC_SAMPLE_STYLE) AS DESC_SAMPLE_STYLE,
                   T4.ADD_TYPE,
                   DECODE(T4.ADD_TYPE, '0', '工艺', '1', '人工') AS ADD_TYPE_DESC,
                   T4.DATA_TYPE,
                   DECODE(T4.DATA_TYPE, '0', '产品样', '1', '生产加样', '2', '科研样' ) AS DATA_TYPE_DESC,
                   DECODE(COUNT(T6.PHY_CODE) OVER(PARTITION BY T6.PHY_CODE),
                       0,
                       'FALSE',
                       1,
                       'FALSE',
                       'TRUE') IS_SAME
              FROM SLM_ORDER_HEAD T1, 
                   SLM_ORDER_LINE T2,
                   CRAFT_ORD_DESIGN T3,
                   PORT_CRAFT_ORD_DESIGNSTDPICSMP T4,
                   COM_BASE_PHY_C T5,
                   COM_BASE_PHY_B T6
             WHERE T1.ORD_PK = T2.ORD_PK 
               AND T2.ORD_LN_PK = T3.ORD_LN_PK 
               AND T3.DESGIN_KEY = T4.DESGIN_KEY
               AND T5.PHY_CODE = T4.PHY_CODE_MIN
               AND T5.PHY_TYPE_M = T6.PHY_CODE
               AND T1.VALIDFLAG = '1'
               AND T2.VALIDFLAG = '1'
               AND T3.VALIDFLAG = '1'
               AND T1.ORDER_NO = ? 
               AND T2.ORDER_SEQ = ?
          ORDER BY T6.PHY_CODE    
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.QueryGetSampleReqDetail_Chem"
		desc="查询合同成分检验项目明细">
		<![CDATA[
            SELECT DISTINCT
                   T.DESGIN_KEY,
                   T.CIC,
                   T.USE_CODE,
                   T.USE_DESC,
                   T.SPECL_FL,
                   T.INDEX_SEQ,
                   T.CHEM_CODE,
                   T.CHEM_NAME,
                   T.CHEM_TYPE,
                   T.CHEM_FORMULA,
                   T.ISCHECK,
                   T.ISJUDGE,
                   T.ISQUOTE,
                   T.COMPLEX_TYPE,
                   T.STDMIN_SIGN,
                   T.STDMIN,
                   T.STDMAX_SIGN,
                   T.STDMAX,
                   T.STDTARGET,
                   T.MODEL_CODE,
                   T.MODEL_DESC,
                   T.STDMEMO,
                   T.ELE_CODE,
                   T.ELE_NAME,
                   T.ELE_MIN_SIGN,
                   T.ELE_MIN,
                   T.ELE_MAX_SIGN,
                   T.ELE_MAX,
                   T.SIZE_CODE2,
                   T.SIZE_NAME2,
                   T.SIZE_MIN_SIGN2,
                   T.SIZE_MIN2,
                   T.SIZE_MAX_SIGN2,
                   T.SIZE_MAX2,
                   T.SIZE_CODE,
                   T.SIZE_NAME,
                   T.SIZE_MIN_SIGN,
                   T.SIZE_MIN,
                   T.SIZE_MAX_SIGN,
                   T.SIZE_MAX,
                   T.SPEC_JG,
                   T.SPEC_JG_DESC,
                   T.REP_CODE,
                   T.REP_NAME,
                   T.REP_MIN_SIGN,
                   T.REP_MIN,
                   T.REP_MAX_SIGN,
                   T.REP_MAX,
                   T.REP_VAL
              FROM SLM_ORDER_HEAD T1, 
                   SLM_ORDER_LINE T2,
                   CRAFT_ORD_DESIGN T3,
                   CRAFT_ORD_DESIGN_STD_CIC T 
             WHERE T1.ORD_PK = T2.ORD_PK 
               AND T2.ORD_LN_PK = T3.ORD_LN_PK 
               AND T3.DESGIN_KEY = T.DESGIN_KEY
               AND T1.VALIDFLAG = '1'
               AND T2.VALIDFLAG = '1'
               AND T3.VALIDFLAG = '1'
               AND T.CHEM_TYPE = 'A'
               AND T.ISCHECK = '1'
               AND T.VALIDFLAG = '1'
               AND T1.ORDER_NO = ? 
               AND T2.ORDER_SEQ = ?
          ORDER BY CHEM_CODE
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.QueryGetSampleReqDetail_Phy"
		desc="查询合同理化检验项目明细">
		<![CDATA[
            SELECT DISTINCT
                   PHY_CODE_MAX,
                   PHY_NAME_MAX,
                   PHY_CODE_MIN,
                   PHY_NAME_MIN,
                   PHY_CODE,
                   PHY_NAME,
                   (SELECT DISTINCT 
                           PHY_UNIT 
                      FROM COM_BASE_PHY T
                     WHERE T.VALIDFLAG = '1' AND T.PHY_CODE = T4.PHY_CODE) 
                   PHY_UNIT,
                   ITEM_CODE_F,
                   ITEM_NAME_F,
                   ITEM_CODE_W,
                   ITEM_NAME_W,
                   ITEM_CODE_S,
                   ITEM_NAME_S,
                   GROUP_SEQ,
                   RESULT_COUNT,
                   ISCHECK,
                   ISJUDGE,
                   ISQUOTE,
                   PHY_TYPE,
                   PHY_FORMULA,
                   STDMIN_SIGN,
                   STDMIN,
                   STDMAX_SIGN,
                   STDMAX,
                   JUDGE_BASIS,
                   DELIVERYSTATE,
                   T4.MODEL_CODE,
                   T4.MODEL_DESC,
                   STDMEMO,
                   SIZE_CODE2,
                   SIZE_NAME2,
                   SIZE_MIN_SIGN2,
                   SIZE_MIN2,
                   SIZE_MAX_SIGN2,
                   SIZE_MAX2,
                   SIZE_CODE,
                   SIZE_NAME,
                   SIZE_MIN_SIGN,
                   SIZE_MIN,
                   SIZE_MAX_SIGN,
                   SIZE_MAX,
                   SPEC_JG,
                   SPEC_JG_DESC,
                   ADDCONDITION,
                   ADDSTDCON_CODE,
                   ADDSTD_MIN_SIGN,
                   ADDSTD_MIN,
                   ADDSTD_MAX_SIGN,
                   ADDSTD_MAX,
                   ADDPERCENT,
                   STDMIN_SIGN2,
                   STDMIN2,
                   STDMAX_SIGN2,
                   STDMAX2,
                   STD_CHOOSE
              FROM SLM_ORDER_HEAD T1, 
                   SLM_ORDER_LINE T2,
                   CRAFT_ORD_DESIGN T3,
                   CRAFT_ORD_DESIGN_STD_PIC T4 
             WHERE T1.ORD_PK = T2.ORD_PK 
               AND T2.ORD_LN_PK = T3.ORD_LN_PK 
               AND T3.DESGIN_KEY = T4.DESGIN_KEY
               AND T1.VALIDFLAG = '1'
               AND T2.VALIDFLAG = '1'
               AND T3.VALIDFLAG = '1'
               AND T4.ISCHECK = '1'
               AND T1.ORDER_NO = ? 
               AND T2.ORDER_SEQ = ?
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.QueryGetSampleReq" desc="查询冶金规范取样要求">
		<![CDATA[
            SELECT T4.*
              FROM PLN_ORDER_ZG T1,
                   SLM_ORDER_LINE_DELIVERY T2,
                   CRAFT_ORD_DESIGN T3,
                   CRAFT_ORD_DESIGN_STD_PIC_SMP T4    
             WHERE T1.ORD_LN_DLY_PK = T2.ORD_LN_DLY_PK
               AND T1.CRAFT_SEQ = T3.CRAFT_SEQ
               AND T2.ORD_LN_PK = T3.ORD_LN_PK
               AND T3.DESGIN_KEY = T4.DESGIN_KEY
               AND T1.CRAFT_SEQ = ?
               AND T1.ORD_LN_DLY_PK = ?
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.QueryLotNoAndStoveNo" desc="查询生产批号、炉号队列">
		<![CDATA[
			SELECT DISTINCT
                   T1.ID,
                   T1.SEQ,
                   T1.STOVE_NO,
                   REGEXP_REPLACE(T1.JUDGE_STOVE_NO, '-.*', '') JUDGE_STOVE_NO_DESC,
                   T1.JUDGE_STOVE_NO,
                   T1.LOT_NO,
                   T1.CONTRACT_NO,
                   T1.IMP_PROCESS,
                   T1.PLINE_CODE,
                   T1.STATUS,
                   T1.PRODUCER,
                   T1.PROCESS_STATUS,
                   T1.DB_LENGTH,
                   T1.DB_HEIGHT,
                   T1.ROLL_LENGTH,
                   T1.SAW_NUM,
                   T1.TARGET_LENGTH,
                   T1.FINISH_USER,
                   T1.TARGET_LIABRARY,
                   T1.VARIETIES,
                   T1.PIPE_SIZE,
                   T1.BUCKLE_TYPE,
                   T1.LENGTH_RANGE,
                   T1.ROLL_STANDRAD,
                   T1.PIPE_SECTION,
                   T1.STEELCODE,
                   T1.STEELNAME,
                   T1.GRADECODE,
                   T1.GRADENAME,
                   T1.STEEL_STANDRAD,
                   T1.TARGET,
                   T1.BRANCH,
                   T1.TON,
                   T1.CUT_TARGET,
                   T1.CUT_LENGTH,
                   T1.CUT_WEIGHT,
                   T1.DB_NUM,
                   T1.START_TIME,
                   T1.END_TIME,
                   T1.TOM,
                   T1.TOC,
                   T1.NODE_STATUS,
                   T1.CUT_HEAD_LENGTHP,
                   T1.CUT_TRAIL_LENGTHP,
                   T1.CONTROL_THICKP,
                   T1.OFFLINE_FLAG,
                   T1.IS_BATCH,
                   T1.OFFLINE_DATE,
                   T1.CUT_TYPE,
                   T1.ROLLING_STATUS,
                   T1.PRODUCE_STANDRAD,
                   T1.SIMPLE_PROCESS,
                   T1.BACK_LINE_FLAG,
                   T1.BACK_PLAN_FLAG,
                   T1.FEED_SEQ,
                   T1.FEED_TIME,
                   T1.LOT_SEQ,
                   T1.FEED_HEAT_NO,
                   T1.LENGTHCP,
                   T1.CUT_HEAD_LENGTHA,
                   T1.CUT_TRAIL_LENGTHA,
                   T1.ORDER_LENGTHA			 
			  FROM MIL_PLAN T1, PLN_ORDER_ZG T2
			 WHERE SUBSTR(T1.CONTRACT_NO, 1, 13) = T2.ORDER_NO      
               AND LPAD(SUBSTR(T1.CONTRACT_NO, 15),3,0) = T2.ORDER_SEQ
               AND T2.IS_CORRECT = '11'
			   AND T1.IS_BATCH = ?			   
			   AND T1.LOT_NO LIKE '%' || ? || '%'
			   AND T1.JUDGE_STOVE_NO LIKE '%' || ? || '%'		  
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.QueryBatchInfo" desc="查询批次号信息">
		<![CDATA[
			SELECT LOT_NO,
			       JUDGE_STOVE_NO,
			       PLINE_CODE,
			       PROCESS_CODE,
			       PROCESS_DESC,
			       BATCH_NO,
			       START_PIPE_NO,
			       START_SEQ,
			       END_PIPE_NO,
			       END_SEQ,
			       PIPE_NUM,
			       BATCH_NAME,
			       BATCH_TIME,
			       BATCH_SHIFT,
			       BATCH_CLASS,
			       BATCH_MAX,
			       REMARK 				 
			  FROM PORT_MIL_GET_BATCH_RESULT
			 WHERE LOT_NO = ?
			   AND JUDGE_STOVE_NO = ?
		  ORDER BY BATCH_NO	
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.QuerySampleInfo" desc="查询试样号信息">
		<![CDATA[
			SELECT LOT_NO,
			       JUDGE_STOVE_NO,
			       BATCH_NO,
			       PIPE_NO,
			       SEQ,
			       DESC_POSITION,
			       XH,
			       SAMPLE_NO,
			       SAMPLE_LEN,
			       SAMPLE_BARCODE,
			       PHY_CODE_MAX,
			       PHY_NAME_MAX,
			       GET_NAME,
			       GET_TIME,
			       GET_SHIFT,
			       GET_CLASS,
			       REMARK				 
			  FROM PORT_MIL_GET_SAMPLE_RESULT
			 WHERE LOT_NO = ?
			   AND JUDGE_STOVE_NO = ?
		  ORDER BY BATCH_NO,SAMPLE_NO	
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.QuerySampleInfoPhy_Distinct"
		desc="查询不重复检验项目">
		<![CDATA[
			SELECT DISTINCT
			       LOT_NO,
			       JUDGE_STOVE_NO,			       
			       PHY_CODE_MAX,
			       PHY_NAME_MAX				 
			  FROM PORT_MIL_GET_SAMPLE_RESULT
			 WHERE LOT_NO = ?
			   AND JUDGE_STOVE_NO = ?
	      ORDER BY PHY_CODE_MAX	
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.QuerySampleInfo_Distinct"
		desc="查询试样号信息">
		<![CDATA[
			SELECT DISTINCT
			       LOT_NO,
			       JUDGE_STOVE_NO,
			       BATCH_NO,
			       PIPE_NO,
			       SEQ,
			       DESC_POSITION,                                                                     
			       XH,
			       SAMPLE_NO,
			       SAMPLE_LEN,
			       SAMPLE_BARCODE,
			       GET_NAME,
			       GET_TIME,
			       GET_SHIFT,
			       GET_CLASS			 
			  FROM PORT_MIL_GET_SAMPLE_RESULT
			 WHERE LOT_NO = ?
			   AND JUDGE_STOVE_NO = ?
		  ORDER BY BATCH_NO,SAMPLE_NO	
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.QueryBatchSampleInfo" desc="查询批次号带试样号信息">
		<![CDATA[
			SELECT DISTINCT
			       A.LOT_NO,
			       A.JUDGE_STOVE_NO,
			       A.PLINE_CODE,
			       A.PROCESS_CODE,
			       A.PROCESS_DESC,
			       A.BATCH_NO,
			       START_PIPE_NO,
			       END_PIPE_NO,
			       PIPE_NUM,
			       BATCH_NAME,
			       BATCH_TIME,
			       BATCH_CLASS 					 
			  FROM PORT_MIL_GET_BATCH_RESULT A,PORT_MIL_GET_SAMPLE_RESULT B
			 WHERE A.LOT_NO = B.LOT_NO
			   AND A.JUDGE_STOVE_NO = B.JUDGE_STOVE_NO
			   AND A.BATCH_NO = B.BATCH_NO  
			   AND A.LOT_NO = ?
			   AND A.JUDGE_STOVE_NO = ?
		  ORDER BY BATCH_NO	
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.UpdatePlan" desc="更新标志位">
		<![CDATA[
            UPDATE MIL_PLAN
               SET SIMPLE_PROCESS = ?,
                   IS_BATCH = ?
             WHERE IS_BATCH = ?
               AND ID = ?
               AND LOT_NO = ?
               AND JUDGE_STOVE_NO = ? 
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.AddBatchInfo" desc="新增批次号">
		<![CDATA[
            INSERT INTO PORT_MIL_GET_BATCH_RESULT
           (PLAN_ID,
            LOT_NO,
            JUDGE_STOVE_NO,
            PLINE_CODE,
            PROCESS_CODE,
            PROCESS_DESC,
            BATCH_NO,
            START_PIPE_NO,
            START_SEQ,
            END_PIPE_NO,
            END_SEQ,
            PIPE_NUM,
            BATCH_NAME,
            BATCH_TIME,
            BATCH_SHIFT,           
            BATCH_CLASS,
            BATCH_MAX,
            REMARK)
            VALUES
            (?,?,?,?,?,?,?,?,?,?,?,?,?,TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS'),?,?,?,?)
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.AddSampleInfo" desc="新增试样号信息TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS')">
		<![CDATA[
            INSERT INTO PORT_MIL_GET_SAMPLE_RESULT
           (PLAN_ID,
            LOT_NO,
            JUDGE_STOVE_NO,
            BATCH_NO,
            PIPE_NO,
            SEQ,
            DESC_POSITION,
            XH,
            SAMPLE_NO,
            SAMPLE_LEN,
            SAMPLE_BARCODE,
            PHY_CODE_MAX,
            PHY_NAME_MAX,
            SAMPLE_COUNT,
            GET_NAME,
            GET_TIME,
            GET_SHIFT,
            GET_CLASS,
            REMARK,
            ADD_TYPE,
            DATA_TYPE)
            VALUES
            (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS'),?,?,?,?,?)
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.DeleteBatchInfo" desc="删除批次号信息">
		<![CDATA[
            DELETE PORT_MIL_GET_BATCH_RESULT
			 WHERE PLAN_ID = ?
			   AND LOT_NO = ?
			   AND JUDGE_STOVE_NO = ?
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.DeleteSampleInfo" desc="删除热试样号">
		<![CDATA[
            DELETE PORT_MIL_GET_SAMPLE_RESULT
			 WHERE PLAN_ID = ?
			   AND LOT_NO = ?
			   AND JUDGE_STOVE_NO = ?
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.AddCheckConsignBase" desc="新增检验委托基础数据">
		<![CDATA[
            INSERT INTO PIPE_CHECKCONSIGN_BASEINFO
            (CHECK_NO,
             HEAT_NO,
             STEEL_GRADE,
             STEEL_NO,
             PRODUCT_NAME,
             CRAFT_FILE_NO,
             PRODUCT_STD,
             CONTRACT_NO,
             DIMATER,
             HEIGHT,
             BUCKLE_TYPE,
             CONSIGN_DEPT,
             CONSIGN_NAME,
             CONSIGN_TIME,
             ISPRODUCER,
             SPEC_REQ,
             FLAG,
             REMARK)
             VALUES
            (?,?,?,?,?,?,?,?,?,?,?,?,?,SYSDATE,?,?,?,?)
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.AddCheckConsignDetail" desc="新增检验委托明细表数据">
		<![CDATA[
            INSERT INTO PIPE_CHECKCONSIGN_DETAIL
            (CHECK_NO,
            SAMPLE_NO,
            SAMPLE_LEN,
            SAMPLE_BARCODE,
            PHY_CODE_MAX,
            PHY_NAME_MAX,
            DEPT_ID,
            SAMPLE_COUNT)
            VALUES
            (?,?,?,?,?,?,?,?)
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.AddCheckConsignPhyDetail"
		desc="新增检验委托理化明细表数据">
		<![CDATA[
            INSERT INTO PIPE_CHECKCONSIGN_PHYDETAIL
            (CHECK_NO,
            SAMPLE_NO,
            PHY_CODE_MAX,
            PHY_NAME_MAX,
            PHY_CODE,
            PHY_NAME,
            PHY_UNIT,
            ITEM_CODE_F,
            ITEM_NAME_F,
            ITEM_CODE_W,
            ITEM_NAME_W,
            ITEM_CODE_S,           
            ITEM_NAME_S)
            VALUES
            (?,?,?,?,?,?,?,?,?,?,?,?,?)
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.AddCheckConsignChemDetail"
		desc="新增检验委托化学明细表数据">
		<![CDATA[
            INSERT INTO PIPE_CHECKCONSIGN_CHEMDETAIL
            (CHECK_NO,
            SAMPLE_NO,
            CHEM_CODE,
            CHEM_NAME)
            VALUES
            (?,?,?,?)
		]]>
	</query>

	<query id="FrmMilGetBatchAndSample.ConfirmPhy" desc="检验确认项目">
		<![CDATA[
            INSERT INTO MIL_ORDER_CONFIRM_LOG
           (ORDER_NO,
            ORDER_SEQ,
            CONFIRM_NAME,
            CONFIRM_TIME,
            IS_CORRECT,
            FLAG,
            REMARK)
            VALUES
            (?,?,?,SYSDATE,?,?,?)
		]]>
	</query>

</queryMap>