<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="">
	<query id="MaterialChoose.queryMaterial" desc="查询物料表">
             <![CDATA[
               SELECT T.MATERIAL_NO,--物料编码
		        T.MATERIAL_NAME,--物料名称
		          T1.STORAGE_NO,--仓库编码
		          T.PRO_ORDER_ID1 PRO_ORDER_ID,--前工序生产订单号
		          T.JUDGE_STOVE_NO,--判定炉号
		          T.BATCH_NO,--批号
		          T.BATCH_GROUD_NO,--组号 
		          T.GRADECODE,--钢种代码
		          T.GRADENAME,--钢种名称
		          T.ACT_DIMATER,--外径
		          T.ACT_HEIGHT,--壁厚
		          T.ACT_LEN,--长度
		          T.ACT_LEN_MIN,--长度上限
		          T.ACT_LEN_MAX,--长度下限
		          T.HEAT_PLAN_NO,
		          SUM(T.ACT_COUNT) ACT_COUNT,--支数
		          SUM(T.ACT_WEIGHT) ACT_WEIGHT--重量      
		  FROM MAT_ZC_M T, YDM_ZC_BUTTRESS T1
		 WHERE T.MAT_NO = T1.MAT_NO
		 	   AND T.PRODUCT_FLAG ='801401'
						   AND T.MAT_STATUS='80150102'
						   AND T.MNG_LOCK_FLAG='0'
						   AND T.LOCK_FLAG = '0'
		   AND T.MATERIAL_NO = ?
		   AND T.PRO_ORDER_ID is null
		    AND T1.STORAGE_NO  in (select a.storage_no
			  from ydm_bs_storage a,
			  (select b.department_code,b.department_code_p  from com_base_pline b where b.process_code = ? ) c 
			  where a.storage_attr = '800304' 
			   and  a.storage_type_no = '800202' 
			      and a.management_no = c.department_code 
			   and a.department_code = c.department_code_p )
		 GROUP BY T.MATERIAL_NO,
		          T.MATERIAL_NAME,
		          T1.STORAGE_NO,
 	          	  T.PRO_ORDER_ID1,
		          T.JUDGE_STOVE_NO,
		          T.BATCH_NO,
		          T.BATCH_GROUD_NO,
		          T.GRADECODE,
		          T.GRADENAME,
		          T.ACT_DIMATER,
		          T.ACT_HEIGHT,
		          T.ACT_LEN,
		          T.HEAT_PLAN_NO,
		          T.ACT_LEN_MIN,
		          T.ACT_LEN_MAX
                 ]]>
	</query>
	<query id="MaterialChoose.queryBindedMaterial" desc="查询已绑定的物料表，供物料脱单用">
             <![CDATA[
               SELECT T.MATERIAL_NO,--物料编码
            T.MATERIAL_NAME,--物料名称
              T1.STORAGE_NO,--仓库编码
              T.PRO_ORDER_ID,--工序生产订单号
              T.GX_PLAN_NO,--工序排产序号
              T.JUDGE_STOVE_NO,--判定炉号
              T.BATCH_NO,--批号
              T.BATCH_GROUD_NO,--组号 
              T.GRADECODE,--钢种代码
              T.GRADENAME,--钢种名称
              T.ACT_DIMATER,--外径
              T.ACT_HEIGHT,--壁厚
              T.ACT_LEN,--长度
              T.ACT_LEN_MIN,--长度上限
              T.ACT_LEN_MAX,--长度下限
              T.HEAT_PLAN_NO,
              SUM(T.ACT_COUNT) ACT_COUNT,--支数
              SUM(T.ACT_WEIGHT) ACT_WEIGHT--重量      
      FROM MAT_ZC_M T, YDM_ZC_BUTTRESS T1
     WHERE T.MAT_NO = T1.MAT_NO
          AND T.PRODUCT_FLAG ='801401'
               AND T.MNG_LOCK_FLAG='0'
               AND T.LOCK_FLAG = '0'
       AND T.PRO_ORDER_ID is not null
       AND T.Gx_Plan_No is not null
       AND T.PROCESS_CDOE = ?
       AND T.PROCESS_DESC = ?
        AND T1.STORAGE_NO  in (select a.storage_no
        from ydm_bs_storage a,
        (select b.department_code,b.department_code_p  from com_base_pline b where b.process_code =? ) c 
        where a.storage_attr = '800304' 
         and  a.storage_type_no = '800202' 
            and a.management_no = c.department_code 
         and a.department_code = c.department_code_p )
     GROUP BY T.MATERIAL_NO,
              T.MATERIAL_NAME,
              T1.STORAGE_NO,
              T.PRO_ORDER_ID,
              T.GX_PLAN_NO,
              T.JUDGE_STOVE_NO,
              T.BATCH_NO,
              T.BATCH_GROUD_NO,
              T.GRADECODE,
              T.GRADENAME,
              T.ACT_DIMATER,
              T.ACT_HEIGHT,
              T.ACT_LEN,
              T.HEAT_PLAN_NO,
              T.ACT_LEN_MIN,
              T.ACT_LEN_MAX
                 ]]>
	</query>
	<query id="MaterialChoose.queryMaterialByStoveBatch" desc="根据炉号组号等信息查询物料表，供修改用">
             <![CDATA[
               SELECT T.MATERIAL_NO,--物料编码
		        T.MATERIAL_NAME,--物料名称
		          T1.STORAGE_NO,--仓库编码
		          T.PRO_ORDER_ID1 PRO_ORDER_ID,--前工序生产订单号
		          T.JUDGE_STOVE_NO,--判定炉号
		          T.BATCH_NO,--批号
		          T.BATCH_GROUD_NO,--组号 
		          T.GRADECODE,--钢种代码
		          T.GRADENAME,--钢种名称
		          T.ACT_DIMATER,--外径
		          T.ACT_HEIGHT,--壁厚
		          T.ACT_LEN,--长度
		          T.HEAT_PLAN_NO,
		          T.ACT_LEN_MIN,--长度上限
		          T.ACT_LEN_MAX,--长度下限
		          SUM(T.ACT_COUNT) ACT_COUNT,--支数
		          SUM(T.ACT_WEIGHT) ACT_WEIGHT--重量      
		  FROM MAT_ZC_M T, YDM_ZC_BUTTRESS T1
		 WHERE T.MAT_NO = T1.MAT_NO
		 	   AND T.PRODUCT_FLAG ='801401'
						   AND (T.MAT_STATUS='80150103' or T.Mat_Status = '80150102')
						   AND T.MNG_LOCK_FLAG='0'
						   AND T.LOCK_FLAG = '0'
		   AND T.MATERIAL_NO = ?
		   AND T.JUDGE_STOVE_NO = ?
		   AND T.BATCH_NO= ?
		   AND T.BATCH_GROUD_NO = ?
		   AND ((T.PRO_ORDER_ID is null AND T.Gx_Plan_No is null) or (T.PRO_ORDER_ID = ? AND T.Gx_Plan_No = ?)) 
		    AND T1.STORAGE_NO  in (select a.storage_no
			  from ydm_bs_storage a,
			  (select b.department_code,b.department_code_p  from com_base_pline b where b.process_code = ? ) c 
			  where a.storage_attr = '800304' 
			   and  a.storage_type_no = '800202' 
			      and a.management_no = c.department_code 
			   and a.department_code = c.department_code_p )
		 GROUP BY T.MATERIAL_NO,
		          T.MATERIAL_NAME,
		          T1.STORAGE_NO,
 	          	  T.PRO_ORDER_ID1,
		          T.JUDGE_STOVE_NO,
		          T.BATCH_NO,
		          T.BATCH_GROUD_NO,
		          T.GRADECODE,
		          T.GRADENAME,
		          T.ACT_DIMATER,
		          T.ACT_HEIGHT,
		          T.ACT_LEN,
		          T.HEAT_PLAN_NO,
		          T.ACT_LEN_MIN,
		          T.ACT_LEN_MAX
                 ]]>
	</query>
	<query id="MaterialChoose.queryMaxProdIndex" desc="查询ProdIndex的最大值">
             <![CDATA[
              select max(To_number(PROD_INDEX)) as PROD_INDEX from wencheng
                 ]]>
	</query>
	
	<query id="MaterialChoose.updateMaterial" desc="更新MAT_ZC_M表，利库用">
             <![CDATA[
              DECLARE
				BEGIN
				FOR MYROW IN (select T.MAT_NO From MAT_ZC_M T, YDM_ZC_BUTTRESS T1 where 
				           T.MAT_NO = T1.MAT_NO   
				           AND T.MATERIAL_NO = ?
				          AND T.JUDGE_STOVE_NO=? 
				          AND T.Batch_No = ?
				          AND T.BATCH_GROUD_NO = ?        
				                AND T.PRODUCT_FLAG ='801401'
			             AND T.MAT_STATUS='80150102'
                   AND T.MNG_LOCK_FLAG='0'
                   AND T.LOCK_FLAG = '0'
                   AND T.PRO_ORDER_ID is null
                    AND T1.STORAGE_NO  in (select a.storage_no
              from ydm_bs_storage a,
              (select b.department_code,b.department_code_p  from com_base_pline b where b.process_code = ? ) c 
              where a.storage_attr = '800304' 
               and  a.storage_type_no = '800202' 
                  and a.management_no = c.department_code 
               and a.department_code = c.department_code_p )
               AND RowNum <= ?
               order by T.MAT_NO) LOOP
              UPDATE MAT_ZC_M D set
              D.PROCESS_CDOE  =?,
                D.PROCESS_DESC  =?,
                D.PRO_ORDER_ID  = ?,
                D.GX_PLAN_NO = ?,
                D.MAT_STATUS='80150103',
                D.LOCK_LIKU = ?,
                D.UPDATE_NAME = ?,
                D.UPDATE_TIME = SYSDATE
             WHERE D.MAT_NO = MYROW.MAT_NO;
          END LOOP;
          END;
                 ]]>
	</query>
	<query id="MaterialChoose.updateMaterialBack" desc="更新MAT_ZC_M表，脱单用">
             <![CDATA[
               DECLARE
	        BEGIN
	        FOR MYROW IN (select T.MAT_NO From MAT_ZC_M T, YDM_ZC_BUTTRESS T1 where 
	                   T.MAT_NO = T1.MAT_NO   
	                   AND T.MATERIAL_NO = ?
		                  AND T.JUDGE_STOVE_NO=?   
		                  AND T.Gx_Plan_No = ?
                  		AND T.Batch_No = ?  
                  		AND T.BATCH_GROUD_NO = ?          
	                        AND T.PRODUCT_FLAG ='801401'
	                   AND T.MAT_STATUS='80150103'
	                   AND T.MNG_LOCK_FLAG='0'
	                   AND T.LOCK_FLAG = '0'
	                   AND T.PROCESS_CDOE  =?
	                   AND T.PROCESS_DESC  =?
	                   AND T.PRO_ORDER_ID = ?
	                    AND T1.STORAGE_NO  in (select a.storage_no
	              from ydm_bs_storage a,
	              (select b.department_code,b.department_code_p  from com_base_pline b where b.process_code = ? ) c 
	              where a.storage_attr = '800304' 
	               and  a.storage_type_no = '800202' 
	                  and a.management_no = c.department_code 
	               and a.department_code = c.department_code_p )
	               AND RowNum <= ?
	               order by T.MAT_NO) LOOP
	              UPDATE MAT_ZC_M D set
	              D.PROCESS_CDOE  ='',
	                D.PROCESS_DESC  ='',
	                D.MAT_STATUS='80150102',
	                D.PRO_ORDER_ID='',
	                D.GX_PLAN_NO = '',
	                D.LOCK_LIKU=?,
	                D.UPDATE_NAME = ?,
                	D.UPDATE_TIME = SYSDATE
	             WHERE D.MAT_NO = MYROW.MAT_NO;
	          END LOOP;
	          END;
                 ]]>
	</query>
	<query id="MaterialChoose.updateMaterialBackWhenFinish" desc="更新MAT_ZC_M表，计划状态为生产完成时用">
             <![CDATA[
               DECLARE
	        BEGIN
	        FOR MYROW IN (select T.MAT_NO,T.Pro_Order_Id,T.Pro_Order_Id1  From MAT_ZC_M T, YDM_ZC_BUTTRESS T1 where 
	                   T.MAT_NO = T1.MAT_NO   
	                   AND T.MATERIAL_NO = ?
		                  AND T.JUDGE_STOVE_NO=?   
		                  AND T.Gx_Plan_No = ?
                  		AND T.Batch_No = ?  
                  		AND T.BATCH_GROUD_NO = ?          
	                        AND T.PRODUCT_FLAG ='801401'
	                   AND T.MAT_STATUS='80150103'
	                   AND T.MNG_LOCK_FLAG='0'
	                   AND T.LOCK_FLAG = '0'
	                   AND T.PROCESS_CDOE  =?
	                   AND T.PROCESS_DESC  =?
	                   AND T.PRO_ORDER_ID = ?
	                    AND T1.STORAGE_NO  in (select a.storage_no
	              from ydm_bs_storage a,
	              (select b.department_code,b.department_code_p  from com_base_pline b where b.process_code = ? ) c 
	              where a.storage_attr = '800304' 
	               and  a.storage_type_no = '800202' 
	                  and a.management_no = c.department_code 
	               and a.department_code = c.department_code_p )
	               AND RowNum <= ?
	               order by T.MAT_NO) LOOP
	               if MYROW.PRO_ORDER_ID <> MYROW.PRO_ORDER_ID1
                   then
                     UPDATE MAT_ZC_M L set
                     L.PRO_ORDER_ID1 = L.PRO_ORDER_ID,
                     L.PRO_ORDER_ID=''
                     where L.MAT_NO = MYROW.MAT_NO;
                END IF;
	              UPDATE MAT_ZC_M D set
	              D.PROCESS_CDOE  ='',
	                D.PROCESS_DESC  ='',
	                D.MAT_STATUS='80150102',
	                D.PRO_ORDER_ID='',
	                D.GX_PLAN_NO = '',
	                D.LOCK_LIKU=?,
	                D.UPDATE_NAME = ?,
                	D.UPDATE_TIME = SYSDATE
	             WHERE D.MAT_NO = MYROW.MAT_NO;
	          END LOOP;
	          END;
                 ]]>
	</query>
	<query id="MaterialChoose.queryLOCKLIKU" desc="更新MAT_ZC_M表的LOCKLIKU字段">
             <![CDATA[
              SELECT A.LOCK_LIKU FROM MAT_ZC_M A 
		       WHERE A.JUDGE_STOVE_NO = ?
		       AND A.BATCH_NO = ?
		       AND A.BATCH_GROUD_NO=?
		       AND A.PRO_ORDER_ID = ?
		       AND A.GX_PLAN_NO = ?
                 ]]>
	</query>
	
	<query id="MaterialChoose.queryGPLOCKLIKU" desc="查询MAT_GP_M表的LOCKLIKU字段">
             <![CDATA[
              SELECT A.LOCK_LIKU FROM MAT_GP_M A 
		       WHERE A.JUDGE_STOVE_NO = ?
		       AND A.PRO_ORDER_ID = ?
		       AND A.GX_PLAN_NO = ?
                 ]]>
	</query>
	
	<query id="MaterialChoose.updateGP" desc="更新MAT_GP_M表，利库用">
             <![CDATA[
              DECLARE 
				BEGIN
				FOR MYROW IN
				  (
				  select T.MAT_NO From MAT_GP_M T,YDM_GP_BUTTRESS T1 where
				           T.MAT_NO = T1.MAT_NO    
				          AND T.MATERIAL_NO = ?
				          AND T.JUDGE_STOVE_NO = ?
				                AND T.PRODUCT_FLAG ='801401'
				           AND T.MAT_STATUS='80150102'
				           AND T.LOCK_FLAG = '0'
				           AND T.PRO_ORDER_ID IS NULL
				           AND T.ACT_LEN = ?
				           AND T1.STORAGE_NO  in (select a.storage_no
							  from ydm_bs_storage a,
							  (select b.department_code,b.department_code_p  from com_base_pline b where b.process_code = ? ) c 
							  where a.storage_attr = '800304' 
							   and  a.storage_type_no = '800202' 
							      and a.management_no = c.department_code 
							   and a.department_code = c.department_code_p )
				         AND RowNum <=?
				         order by T.MAT_NO
				  )
				  lOOP
				        UPDATE MAT_GP_M M set
				        M.PROCESS_CDOE  =?,
				        M.PROCESS_DESC  =?,
				        M.MAT_STATUS='80150103',
				        M.PRO_ORDER_ID =?,
				        M.GX_PLAN_NO = ?,
				        M.UPDATE_NAME = ?,
				        M.LOCK_LIKU = ?,
                		M.UPDATE_TIME = SYSDATE
				        where M.Mat_No = MYROW.MAT_NO;
				 END LOOP;
				 END;
                 ]]>
	</query>
	
	<query id="MaterialChoose.updateGPBack" desc="更新MAT_GP_M表，脱单用">
             <![CDATA[
              DECLARE 
				BEGIN
				   FOR MYROW IN 
				   (
				       select T.MAT_NO From MAT_GP_M T,YDM_GP_BUTTRESS T1 where
				       T.MAT_NO = T1.MAT_NO    
				       AND T.MATERIAL_NO = ?
				       AND T.JUDGE_STOVE_NO = ?
				       AND T.PRODUCT_FLAG ='801401'
				       AND T.MAT_STATUS='80150103'
				       AND T.LOCK_FLAG = '0'
				       AND T.Pro_Order_Id = ?
				       AND T.GX_PLAN_NO = ?
				       AND T.Act_Len = ?
				       AND T.PROCESS_CDOE = ?
				       AND T.PROCESS_DESC = ?
				       AND T1.STORAGE_NO  in (select a.storage_no
							 from ydm_bs_storage a,
							 (select b.department_code,b.department_code_p  from com_base_pline b where b.process_code = ? ) c 
							 where a.storage_attr = '800304' 
							 and  a.storage_type_no = '800202' 
							 and a.management_no = c.department_code 
							 and a.department_code = c.department_code_p )
				       AND RowNum <=?
				       order by T.MAT_NO
				   )
				    Loop
				    UPDATE MAT_GP_M M set
				      M.PROCESS_CDOE  ='',
				      M.PROCESS_DESC  ='',
				      M.MAT_STATUS='80150102',
				      M.Pro_Order_Id = '',
				      M.GX_PLAN_NO = '',
				      M.UPDATE_NAME = ?,
				      M.LOCK_LIKU=0,
                	  M.UPDATE_TIME = SYSDATE
				      WHERE M.MAT_NO = MYROW.MAT_NO;
				      END LOOP;
				      END;
        
                 ]]>
	</query>
	<query id="MaterialChoose.queryBindedGP" desc="查询已利库的管坯，脱单用">
             <![CDATA[
             SELECT T.MATERIAL_NO,--物料编码
            T.MATERIAL_NAME,--物料名称
              T1.STORAGE_NO,--仓库编码
              T.Gpreq_Id PRO_ORDER_ID,--管坯需求号
              T.JUDGE_STOVE_NO,--判定炉号
              T.JUDGE_GRADECODE as GRADECODE,--钢种代码
                T.JUDGE_GRADENAME as GRADENAME,--钢种名称
              T.ACT_DIMATER,--外径
              T.ACT_HEIGHT,--壁厚
              T.ACT_LEN,--长度
              T.ACT_LEN_MIN,--长度上限
              T.ACT_LEN_MAX,--长度下限
              SUM(T.ACT_COUNT) ACT_COUNT,--支数
              SUM(T.ACT_WEIGHT) ACT_WEIGHT--重量       
          FROM MAT_GP_M T, YDM_GP_BUTTRESS T1
         WHERE T.MAT_NO = T1.MAT_NO
         AND PRODUCT_FLAG ='801401'
         AND T.MAT_STATUS='80150103'
         AND T.PRO_ORDER_ID is not null
         AND T.Gx_Plan_No is not null
         AND T.PROCESS_CDOE =?
         AND T.PROCESS_DESC = ?
                    AND T1.STORAGE_NO  in (select a.storage_no
        from ydm_bs_storage a,
        (select b.department_code,b.department_code_p  from com_base_pline b where b.process_code = ? ) c 
        where a.storage_attr = '800304' 
         and  a.storage_type_no = '800202' 
            and a.management_no = c.department_code 
         and a.department_code = c.department_code_p )
                   AND T.MAT_STATUS='80150103'
                   AND T.LOCK_FLAG = '0'
         GROUP BY T.MATERIAL_NO,
                  T.MATERIAL_NAME,
                  T1.STORAGE_NO,
                  T.Gpreq_Id,
                  T.JUDGE_STOVE_NO,
                  T.JUDGE_GRADECODE,
                  T.JUDGE_GRADENAME,
                  T.ACT_DIMATER,
                  T.ACT_HEIGHT,
                  T.ACT_LEN,
                  T.ACT_LEN_MIN,
                  T.ACT_LEN_MAX
                 ]]>
	</query>
	<query id="MaterialChoose.queryGP" desc="查询管坯">
             <![CDATA[
             SELECT T.MATERIAL_NO,--物料编码
            T.MATERIAL_NAME,--物料名称
              T1.STORAGE_NO,--仓库编码
              T.Gpreq_Id PRO_ORDER_ID,--管坯需求号
              T.JUDGE_STOVE_NO,--判定炉号
              T.JUDGE_GRADECODE as GRADECODE,--钢种代码
                T.JUDGE_GRADENAME as GRADENAME,--钢种名称
              T.ACT_DIMATER,--外径
              T.ACT_HEIGHT,--壁厚
              T.ACT_LEN,--长度
              T.ACT_LEN_MIN,--长度上限
              T.ACT_LEN_MAX,--长度下限
              SUM(T.ACT_COUNT) ACT_COUNT,--支数
              SUM(T.ACT_WEIGHT) ACT_WEIGHT--重量       
          FROM MAT_GP_M T, YDM_GP_BUTTRESS T1
         WHERE T.MAT_NO = T1.MAT_NO
         AND PRODUCT_FLAG ='801401'
         AND T.MATERIAL_NO = ?
         AND T.PRO_ORDER_NO IS NULL
                    AND T1.STORAGE_NO  in (select a.storage_no
        from ydm_bs_storage a,
        (select b.department_code,b.department_code_p  from com_base_pline b where b.process_code = ? ) c 
        where a.storage_attr = '800304' 
         and  a.storage_type_no = '800202' 
            and a.management_no = c.department_code 
         and a.department_code = c.department_code_p )
                   AND MAT_STATUS='80150102'
                   AND LOCK_FLAG = '0'
         GROUP BY T.MATERIAL_NO,
                  T.MATERIAL_NAME,
                  T1.STORAGE_NO,
                  T.Gpreq_Id,
                  T.JUDGE_STOVE_NO,
                  T.JUDGE_GRADECODE,
                  T.JUDGE_GRADENAME,
                  T.ACT_DIMATER,
                  T.ACT_HEIGHT,
                  T.ACT_LEN,
                  T.ACT_LEN_MIN,
                  T.ACT_LEN_MAX
                 ]]>
	</query>
	<query id="MaterialChoose.queryGPByStove" desc="根据炉号等信息查询管坯，修改用">
             <![CDATA[
             SELECT T.MATERIAL_NO,--物料编码
            T.MATERIAL_NAME,--物料名称
              T1.STORAGE_NO,--仓库编码
              T.Gpreq_Id PRO_ORDER_ID,--管坯需求号
              T.JUDGE_STOVE_NO,--判定炉号
              T.JUDGE_GRADECODE as GRADECODE,--钢种代码
                T.JUDGE_GRADENAME as GRADENAME,--钢种名称
              T.ACT_DIMATER,--外径
              T.ACT_HEIGHT,--壁厚
              T.ACT_LEN,--长度
              T.ACT_LEN_MIN,--长度上限
              T.ACT_LEN_MAX,--长度下限
              SUM(T.ACT_COUNT) ACT_COUNT,--支数
              SUM(T.ACT_WEIGHT) ACT_WEIGHT--重量       
          FROM MAT_GP_M T, YDM_GP_BUTTRESS T1
         WHERE T.MAT_NO = T1.MAT_NO
         AND PRODUCT_FLAG ='801401'
         AND T.MATERIAL_NO = ?
         AND T.JUDGE_STOVE_NO = ?
         AND ((T.PRO_ORDER_ID is null AND T.Gx_Plan_No is null) or (T.PRO_ORDER_ID = ? AND T.Gx_Plan_No = ?)) 
                    AND T1.STORAGE_NO  in (select a.storage_no
        from ydm_bs_storage a,
        (select b.department_code,b.department_code_p  from com_base_pline b where b.process_code = ? ) c 
        where a.storage_attr = '800304' 
         and  a.storage_type_no = '800202' 
            and a.management_no = c.department_code 
         and a.department_code = c.department_code_p )
                   AND LOCK_FLAG = '0'
         GROUP BY T.MATERIAL_NO,
                  T.MATERIAL_NAME,
                  T1.STORAGE_NO,
                  T.Gpreq_Id,
                  T.JUDGE_STOVE_NO,
                  T.JUDGE_GRADECODE,
                  T.JUDGE_GRADENAME,
                  T.ACT_DIMATER,
                  T.ACT_HEIGHT,
                  T.ACT_LEN,
                  T.ACT_LEN_MIN,
                  T.ACT_LEN_MAX
                 ]]>
	</query>
</queryMap>