<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="炼钢炉计划">

	<query id="FrmSteelMakingPlanChange.getCastNum" desc="查询最大炉数">
             <![CDATA[
               select t.stove_cnt from slm_base_material_b_pl t where t.in_material_no=? and t.out_material_no=? and t.pline_code=?
                  ]]>
	</query>
	
	<query id="FrmSteelMakingPlanChange.getCastGroupByGradeList"
		desc="通过钢种集合查询连浇群组">
             <![CDATA[
             select * from (select water_group_code,
       water_group,
       LISTAGG(gradecode, ',') WITHIN GROUP(ORDER BY t.grade_index) gradecode,
       LISTAGG(gradename, ',') WITHIN GROUP(ORDER BY t.grade_index) gradename,
       LISTAGG(grade_index, ',') WITHIN GROUP(ORDER BY t.grade_index) grade_index
  from com_base_water_group t
 group by t.water_group_code, t.water_group)t1
 where 1=1
                  ]]>
	</query>

	<query id="FrmSteelMakingPlanChange.getBasePlineLg" desc="查询炼钢基础数据">
             <![CDATA[
 SELECT 
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.PROCESS_CODE,
       T.PROCESS_DESC,
       T.EF_MAX_LIFE,
       T.STD_OUT_WT,
       T.EF_WT_LEFT,
       T.OUT_WT_MAX,
       T.OUT_WT_MIN,
       T.EF_AGE_NOW,
       T.EF_RESET_MAN,
       TO_CHAR(T.EF_RESET_TIME, 'YYYY-MM-DD HH24:MI:SS') EF_RESET_TIME,
       T.SCHEDULE_CODE,
       TO_CHAR(T.CREAT_TIME, 'YYYY-MM-DD HH24:MI:SS') CREAT_TIME
 FROM PLN_BASE_PLINE_LG T
 WHERE
T.PLINE_CODE = ?
                  ]]>
	</query>

	<query id="FrmSteelMakingPlanChange.getBasePlineLz" desc="查询铸机基础数据">
             <![CDATA[
  SELECT 
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.PROCESS_CODE,
       T.PROCESS_DESC,
       T.FLOW_NUM_MAX,
       T.ZB_LEFT_WT,
       TO_CHAR(T.CREAT_TIME, 'YYYY-MM-DD HH24:MI:SS') CREAT_TIME,
       T.CREATE_NAME,
       T.UPDATE_NAME,
       TO_CHAR(T.UPDATE_TIME, 'YYYY-MM-DD HH24:MI:SS') UPDATE_TIME,
       T.FURNACE_NUM_MAX
 FROM PLN_BASE_PLINE_LZ T
 WHERE
T.PLINE_CODE =?
                  ]]>
	</query>

	<query id="FrmSteelMakingPlanChange.getBaseLzSpecCut" desc="连铸规格切头尾参数表">
             <![CDATA[
 SELECT 
       T.CUT_PARA_ID,
       T.DIAMETER_LZ,
       T.CUT_LEN_BEGIN,
       T.CUT_LEN_END_UNCH,
       T.CUT_LEN_END_CH,
       T.CREATE_NAME,
       TO_CHAR(T.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
       T.UPDATE_NAME,
       TO_CHAR(T.UPDATE_TIME, 'YYYY-MM-DD HH24:MI:SS') UPDATE_TIME
 FROM PLN_BASE_LZ_SPEC_CUT T
 WHERE 
T.Diameter_Lz=to_number(?)
                  ]]>
	</query>

	<query id="FrmSteelMakingPlanChange.getMaxCastno" desc="查询最大浇次号">
             <![CDATA[
          SELECT  ?|| ? ||
        LPAD(SUBSTR(NVL(MAX(T.CAST_NO), '000'), -3, 3) + 1, 3, '0') AS CAST_NO
   FROM PLN_STEELFORCAST T
  WHERE T.CAST_NO LIKE ?|| ? || '%'
                 ]]>
	</query>
	<query id="FrmSteelMakingPlanChange.getMaxFurnaceNo" desc="查询最大炉次号">
             <![CDATA[
 SELECT ? ||
        LPAD(SUBSTR(NVL(MAX(T.FURNACENO), '00'), -2, 2) + 1, 2, '0') AS FURNACENO
   FROM PLN_STEELFORFURNACE T
  WHERE T.FURNACENO LIKE ? || '%'
                 ]]>
	</query>
<query id="FrmSteelMakingPlanChange.getMaxCastSeqno" desc="查询同一铸造产线最大浇次号顺序号">
             <![CDATA[
            SELECT NVL(MAX(T.CAST_SEQ),0) CAST_SEQ
  FROM PLN_STEELFORCAST T
 WHERE T.PLINE_CODE=?
              ]]>
	</query>
	<query id="FrmSteelMakingPlanChange.getMaxFurnSeqno" desc="查询炉次同一电炉产线最大炉号顺序号">
             <![CDATA[
         SELECT NVL(MAX(T.FURNACENO_SEQ), 0) FURNACENO_SEQ
    FROM PLN_STEELFORFURNACE T
 WHERE T.EF_PLINE_CODE=?
              ]]>
	</query>
	<query id="FrmSteelMakingPlanChange.getMaxCcmSeqno" desc="查询炉次订单同一铸造产线最大炉号顺序号">
             <![CDATA[
  SELECT NVL(MAX(T.CCM_SEQ), 0) CCM_SEQ
    FROM PLN_STEELFOR_ORD T
 WHERE T.PLINE_CODE=?
 AND T.CCM_PLN_TYPE='00'
              ]]>
	</query>
	<query id="FrmSteelMakingPlanChange.getSystemTime" desc="获取数据库当前时间">
             <![CDATA[
SELECT TO_CHAR(SYSDATE,'YYYY-MM-DD HH24:MI:SS') DATETIME FROM DUAL
              ]]>
	</query>
		<query id="FrmSteelMakingPlanChange.getCastTime" desc="获取浇次最大结束">
             <![CDATA[
SELECT  MAX(TO_CHAR(T.PLN_ENDTIME, 'YYYY-MM-DD HH24:MI:SS')) ENDTIME
  FROM PLN_STEELFORFURNACE  T
 WHERE 1=1
              ]]>
	</query>
	<query id="FrmSteelMakingPlanChange.updateOrderCastsData" desc="修改订单已组炉量">
             <![CDATA[
      UPDATE PLN_ORDER_CAST_S T
   SET T.PLANED_WT = (CASE
                       WHEN (T.PLAN_WT_S -
                            (NVL(T.PLANED_WT, 0) + TO_NUMBER('#PLANED_WT#'))) < 0 THEN
                        T.PLAN_WT_S
                       ELSE
                        (NVL(T.PLANED_WT, 0) + TO_NUMBER('#PLANED_WT#'))
                     END),
       T.PLANED_NUM = (CASE
                        WHEN (T.PLAN_NUM_S - (NVL(T.PLANED_NUM, 0) +
                             TO_NUMBER('#PLANED_NUM#'))) < 0 THEN
                         T.PLAN_NUM_S
                        WHEN (T.PLAN_WT_S -
                             (NVL(T.PLANED_WT, 0) + TO_NUMBER('#PLANED_WT#'))) <= 0 THEN
                         T.PLAN_NUM_S
                        ELSE
                         (NVL(T.PLANED_NUM, 0) + TO_NUMBER('#PLANED_NUM#'))
                      END),
       T.CAST_NO_ALL = '#CAST_NO_ALL#'
 WHERE T.PRO_PLAN_ID = '#PRO_PLAN_ID#'
   AND T.GX_PLAN_NO = '#GX_PLAN_NO#'
                 ]]>
	</query>


	<query id="FrmSteelMakingPlanChange.addCast" desc="新增浇次">
             <![CDATA[
            INSERT INTO PLN_STEELFORCAST(
        CAST_NO,
        CAST_SEQ,
        CCMID,
        STATUS,
        FURNACENUMBER,
        TOT_NUM,
        TOT_WT,
        IF_CONNECT_GRADE,
        WATER_GROUP_CODE,
        ADD_WT_BEGIN,
        ADD_WT_END,
        ADD_WT_CONN_AHEAD,
        ADD_WT_CONN_NEXT,
        START_GRADECODE,
        END_GRADECODE,
        STARTTIME,
        ENDTIME,
        MAKEMAN,
        MAKETIME,
        MEMO,
        PLINE_CODE,
        PLINE_NAME,FLOWNUMBER,PRO_MONTH,AIM_STEEL_QTY,DIAMETER,AVERAGE_QTY,MEMO_NUM)
 VALUES( 
        '#CAST_NO#',
        '#CAST_SEQ#',
        '#CCMID#',
        '#STATUS#',
        '#FURNACENUMBER#',
        '#TOT_NUM#',
        '#TOT_WT#',
        '#IF_CONNECT_GRADE#',
        '#WATER_GROUP_CODE#',
        '#ADD_WT_BEGIN#',
        '#ADD_WT_END#',
        '#ADD_WT_CONN_AHEAD#',
        '#ADD_WT_CONN_NEXT#',
        '#START_GRADECODE#',
        '#END_GRADECODE#',
        TO_DATE('#STARTTIME#','YYYY-MM-DD HH24:MI:SS'),
        TO_DATE('#ENDTIME#','YYYY-MM-DD HH24:MI:SS'),
        '#MAKEMAN#',
        TO_DATE('#MAKETIME#','YYYY-MM-DD HH24:MI:SS'),
        '#MEMO#',
        '#PLINE_CODE#',
        '#PLINE_NAME#','#FLOWNUMBER#','#PRO_MONTH#','#AIM_STEEL_QTY#','#DIAMETER#','#AVERAGE_QTY#','#MEMO_NUM#')
                 ]]>
	</query>

	<query id="FrmSteelMakingPlanChange.addFurnace" desc="新增炉次">
             <![CDATA[
             INSERT INTO PLN_STEELFORFURNACE(
        FURNACENO,
        FURNACENO_SEQ,
        CAST_NO,
        CAST_SEQ,
        CAST_STOVE_SEQ,
        STATUS,
        CASTINGTYPE,
        EF_PLINE_CODE,
        EF_PLINE_NAME,
        EF_AGE,
        PLINE_CODE,
        PLINE_NAME,
        CCMID,
        WLID_IN,
        WLDESC_IN,
        MATERIAL_NO,
        MATERIAL_NAME,
        GRADECODE,
        GRADENAME,
        CIC,
        PLN_STARTTIME,
        PLN_ENDTIME,
        AIM_STEEL_QTY,
        QUANTITY,
        WEIGHT,
        PLAN_ROUTE,
        SURPLUSFLAG,
        IF_MONITOR_LG,
        PRDCR_NO,
        PLANREMARK,
        REMARK,
        MAKEMAN,
        MAKETIME,PRO_MONTH,CRAFT_NO,BATCHING_CODE,BATCHING_NAME,HOTMETAL_NUM,IRON_NUM,STEELSCRAP_NUM,IF_CONFIRM)
 VALUES( 
        '#FURNACENO#',
        '#FURNACENO_SEQ#',
        '#CAST_NO#',
        '#CAST_SEQ#',
        '#CAST_STOVE_SEQ#',
        '#STATUS#',
        '#CASTINGTYPE#',
        '#EF_PLINE_CODE#',
        '#EF_PLINE_NAME#',
        '#EF_AGE#',
        '#PLINE_CODE#',
        '#PLINE_NAME#',
        '#CCMID#',
        '#WLID_IN#',
        '#WLDESC_IN#',
        '#MATERIAL_NO#',
        '#MATERIAL_NAME#',
        '#GRADECODE#',
        '#GRADENAME#',
        '#CIC#',
        TO_DATE('#PLN_STARTTIME#','YYYY-MM-DD HH24:MI:SS'),
        TO_DATE('#PLN_ENDTIME#','YYYY-MM-DD HH24:MI:SS'),
        '#AIM_STEEL_QTY#',
        '#QUANTITY#',
        '#WEIGHT#',
        '#PLAN_ROUTE#',
        '#SURPLUSFLAG#',
        '#IF_MONITOR_LG#',
        '#PRDCR_NO#',
        '#PLANREMARK#',
        '#REMARK#',
        '#MAKEMAN#',
        TO_DATE('#MAKETIME#','YYYY-MM-DD HH24:MI:SS'),'#PRO_MONTH#','#CRAFT_NO#',
        '#BATCHING_CODE#','#BATCHING_NAME#','#HOTMETAL_NUM#','#IRON_NUM#','#STEELSCRAP_NUM#','#IF_CONFIRM#')
                 ]]>
	</query>

	<query id="FrmSteelMakingPlanChange.addFurnaceOrd" desc="新增炉内计划">
             <![CDATA[
                  INSERT INTO PLN_STEELFOR_ORD
  (FURNACENO,
   SEQUENCENO,
   FURNACENO_SEQ,
   PRO_PLAN_ID,
   GX_PLAN_NO,
   CAST_NO,
   CAST_SEQ,
   CAST_STOVE_SEQ,
   CCM_SEQ,
   STATUS,
   GPTYPE,
   CASTINGTYPE,
   PLINE_CODE,
   PLINE_NAME,
   CCMID,
   FLOWNO,
   EF_PLINE_CODE,
   EF_PLINE_NAME,
   WLID_IN,
   WLDESC_IN,
   MATERIAL_NO,
   MATERIAL_NAME,
   GRADECODE,
   GRADENAME,
   DIAMETER,
   LEN_GP_SINGLE,
   CUT_NUM_GP,
   LENGTH_M,
   WEIGHT_GP_ONE,
   WEIGHT_M,
   TOT_MUM_M,
   TOT_WEIGHT_M,
   SURPLUSFLAG,
   SURPLUS_TYPE,
   IF_SURPLUS_ALLOTED,
   CIC,
   PIC,
   SIC,
   DIC,
   MEMO,
   MAKEMAN,
   MAKETIME,PRO_MONTH,STATE_LK,ORDER_NO,FINAL_USER_DESC,STEELCODE,
   STEELNAME,PRODUCCODE,PRODUCNAME,GOWHERE_CODE,GOWHERE_NAME,ISENDGX,IF_MONITOR_LG,PRDCR_NO,PDEPT_NAME,PRDCR_MAN,CUT_NUM)
VALUES
  ('#FURNACENO#',
   '#SEQUENCENO#',
   '#FURNACENO_SEQ#',
   '#PRO_PLAN_ID#',
   '#GX_PLAN_NO#',
   '#CAST_NO#',
   '#CAST_SEQ#',
   '#CAST_STOVE_SEQ#',
   '#CCM_SEQ#',
   '#STATUS#',
   '#GPTYPE#',
   '#CASTINGTYPE#',
   '#PLINE_CODE#',
   '#PLINE_NAME#',
   '#CCMID#',
   '#FLOWNO#',
   '#EF_PLINE_CODE#',
   '#EF_PLINE_NAME#',
   '#WLID_IN#',
   '#WLDESC_IN#',
   '#MATERIAL_NO#',
   '#MATERIAL_NAME#',
   '#GRADECODE#',
   '#GRADENAME#',
   '#DIAMETER#',
   '#LEN_GP_SINGLE#',
   '#CUT_NUM_GP#',
   '#LENGTH_M#',
   '#WEIGHT_GP_ONE#',
   '#WEIGHT_M#',
   '#TOT_MUM_M#',
   '#TOT_WEIGHT_M#',
   '#SURPLUSFLAG#',
   '#SURPLUS_TYPE#',
   '#IF_SURPLUS_ALLOTED#',
   '#CIC#',
   '#PIC#',
   '#SIC#',
   '#DIC#',
   '#MEMO#',
   '#MAKEMAN#',
   TO_DATE('#MAKETIME#','YYYY-MM-DD HH24:MI:SS'),'#PRO_MONTH#','0',
   '#ORDER_NO#','#FINAL_USER_DESC#','#STEELCODE#',
   '#STEELNAME#','#PRODUCCODE#','#PRODUCNAME#','#GOWHERE_CODE#','#GOWHERE_NAME#','#ISENDGX#',
   '#IF_MONITOR_LG#','#PRDCR_NO#','#PDEPT_NAME#','#PRDCR_MAN#','#CUT_NUM#')

                 ]]>
	</query>
<query id="FrmSteelMakingPlanChange.getPlnsteelforOrd" desc="查询炉次订单信息是否有订单材">
             <![CDATA[
             SELECT T.SURPLUSFLAG,T.CIC FROM PLN_STEELFOR_ORD T WHERE T.FURNACENO=? AND T.CCM_PLN_TYPE ='00'
                ]]>
	</query>
	<query id="FrmSteelMakingPlanChange.getMscCastRForg" desc="查询模铸毛坯重">
             <![CDATA[
           SELECT S2.SPEC_CODE,
       S2.SPEC_NAME,
       (S2.WEIGHT / 1000) WEIGHT,
       NVL(S2.ACTUAL_WEIGHT,0) ACTUAL_WEIGHT,
       S2.GROSS_RATE,
       S2.GROSS_WETGHT
  FROM COM_BASE_SPEC S2
 WHERE S2.VALIDFLAG = '1'
   AND S2.MSC_STYLE = 'D'
   AND S2.SPEC_NAME = ?
                ]]>
	</query>
	<query id="FrmSteelMakingPlanChange.getBatchingCode" desc="根据电炉产线查询配料方案">
             <![CDATA[
            SELECT T.BATCHING_CODE, T.BATCHING_NAME, T.MATERIEL,T.PLINE_NAME
  FROM COST_BASE_BATCHING T
 WHERE 1=1
                ]]>
	</query>
		<query id="FrmSteelMakingPlanChange.queryBatch" desc="根据电炉产线查询配料方案">
             <![CDATA[
            SELECT T.BATCHING_CODE , T.BATCHING_NAME 配料方案, T.MATERIEL 铁水,T.PLINE_NAME 电炉产线
  FROM COST_BASE_BATCHING T
 WHERE 1=1
                ]]>
	</query>
	<query id="FrmSteelMakingPlanChange.seqCapacityFurn" desc="查询电炉产线能力">
             <![CDATA[           
SELECT T.HR_CAPCTY
  FROM SLM_BASE_MATERIAL_A_PL T
 WHERE T.PLINE_CODE = ?
   AND T.OUT_MATERIAL_NO = ?
   AND (T.DISABLE_FL IS NULL OR T.DISABLE_FL='0')
              ]]>
	</query>
	<query id="FrmSteelMakingPlanChange.seqCapacityCast" desc="查询铸造产线能力">
             <![CDATA[           
SELECT T.HR_CAPCTY
  FROM SLM_BASE_MATERIAL_B_PL T
 WHERE T.PLINE_CODE = ?
   AND T.OUT_MATERIAL_NO = ?
   AND (T.DISABLE_FL IS NULL OR T.DISABLE_FL='0')
              ]]>
	</query>
	<query id="FrmSteelMakingPlanChange.queryCastCicCount" desc="查询所选铸造订单索引码个数">
             <![CDATA[           
SELECT COUNT(*) COUNT
  FROM (SELECT T.CIC FROM PLN_ORDER_CAST_S T WHERE 1 = 1
              ]]>
	</query>
	<query id="FrmSteelMakingPlanChange.queryOrderUser" desc="查询合同号，用户，去向集合">
             <![CDATA[           
SELECT (SELECT LISTAGG(ORDER_NO, ',') WITHIN GROUP(ORDER BY ORDER_NO ASC) ORDER_NO
          FROM (SELECT T.ORDER_NO || '/' || T.ORDER_SEQ ORDER_NO
                  FROM PLN_ORDER_ZG_S T, PLN_ORDER_CAST_S T1
                 WHERE T.GPREQ_ID = T1.PRO_PLAN_ID
                   AND T1.PRO_PLAN_ID = '#PRO_PLAN_ID#'
                   AND T1.GX_PLAN_NO = '#GX_PLAN_NO#'
                 GROUP BY T.ORDER_NO, T.ORDER_SEQ)) ORDER_NO,
       T.STEELCODE,
       T.STEELNAME,
       T2.PRODUCCODE,
       T2.PRODUCNAME,
       (SELECT LISTAGG(PLINE_CODE, ',') WITHIN GROUP(ORDER BY PLINE_CODE ASC) PLINE_CODE
          FROM (SELECT T.PLINE_CODE
                  FROM PLN_ORDER_ZG_S T, PLN_ORDER_CAST_S T1
                 WHERE T.GPREQ_ID = T1.PRO_PLAN_ID
                   AND T1.PRO_PLAN_ID = '#PRO_PLAN_ID#'
                   AND T1.GX_PLAN_NO = '#GX_PLAN_NO#'
                 GROUP BY T.PLINE_CODE)) PLINE_CODE,
       (SELECT LISTAGG(PLINE_NAME, ',') WITHIN GROUP(ORDER BY PLINE_NAME ASC) PLINE_NAME
          FROM (SELECT T.PLINE_NAME
                  FROM PLN_ORDER_ZG_S T, PLN_ORDER_CAST_S T1
                 WHERE T.GPREQ_ID = T1.PRO_PLAN_ID
                   AND T1.PRO_PLAN_ID = '#PRO_PLAN_ID#'
                   AND T1.GX_PLAN_NO = '#GX_PLAN_NO#'
                 GROUP BY T.PLINE_NAME)) PLINE_NAME,
       (SELECT LISTAGG(FINAL_USER_DESC, ',') WITHIN GROUP(ORDER BY FINAL_USER_DESC ASC) FINAL_USER_DESC
          FROM (SELECT C.ABRVITION FINAL_USER_DESC
                  FROM PLN_ORDER_ZG_S    T,
                       PLN_ORDER_CAST_S  T1,
                       PLN_SALEORD       T2,
                       SLM_BASE_CUSTOMER C
                 WHERE T.GPREQ_ID = T1.PRO_PLAN_ID
                   AND T2.ORD_LN_DLY_PK = T.ORD_LN_DLY_PK
                   AND C.CUSTOMER_NO = T2.FINAL_USER
                   AND C.VALIDFLAG = '1'
                   AND T1.PRO_PLAN_ID = '#PRO_PLAN_ID#'
                   AND T1.GX_PLAN_NO = '#GX_PLAN_NO#'
                 GROUP BY C.ABRVITION)) FINAL_USER_DESC,
       T3.PDEPT_NAME,
       T3.PRDCR_MAN
  FROM PLN_ORDER_ZG_S T,
       PLN_ORDER_CAST_S T1,
       PLN_SALEORD T2,
       (SELECT MAX(J.PDEPT_NAME) PDEPT_NAME,
               MAX(J.PRDCR_MAN) PRDCR_MAN,
               Z.PRDCR_NO,
               C.PRO_PLAN_ID
          FROM SLM_ORDER_LINE_PRDCR_LST J,
               PLN_STEELFOR_ORD         C,
               PLN_ORDER_CAST_S         Z
         WHERE J.PRDCR_NO = Z.PRDCR_NO
           AND Z.PRO_PLAN_ID = C.PRO_PLAN_ID
           AND J.PROCESS_CODE = 'A'
           AND J.PROCESS_CODE_C = 'B001'
           AND C.CCM_PLN_TYPE ='00'
         GROUP BY Z.PRDCR_NO, C.PRO_PLAN_ID) T3
 WHERE T.GPREQ_ID = T1.PRO_PLAN_ID
   AND T2.ORD_LN_DLY_PK = T.ORD_LN_DLY_PK
   AND T1.PRO_PLAN_ID = T3.PRO_PLAN_ID(+)
   AND T1.PRO_PLAN_ID = '#PRO_PLAN_ID#'
   AND T1.GX_PLAN_NO = '#GX_PLAN_NO#'
 GROUP BY T.STEELCODE,
          T.STEELNAME,
          T2.PRODUCCODE,
          T2.PRODUCNAME,
          T3.PDEPT_NAME,
          T3.PRDCR_MAN
              ]]>
	</query>
		<query id="FrmSteelMakingPlanChange.queryPlineOrderBl" desc="查询根据铸造产线备料合同号最大">
             <![CDATA[
SELECT ?||LPAD(NVL(MAX(REGEXP_REPLACE(T.ORDER_NO, '.*/', '')), 0) + 1, 3, '0') AS ORDER_NO
  FROM PLN_STEELFOR_ORD T
 WHERE T.SURPLUSFLAG = '1'
   AND T.ORDER_NO IS NOT NULL
   AND T.CCM_PLN_TYPE ='00'
   AND T.EF_PLINE_CODE = ?
              ]]>
	</query>
		<query id="FrmSteelMakingPlanChange.updateReqinfGp" desc="修改管坯需求状态">
             <![CDATA[
             UPDATE PLN_REQINF_GP T SET T.REQ_DONESTATUS=? WHERE T.GPREQ_ID=? AND T.IFBUYPLAN='0'
              ]]>
	</query>
		<query id="FrmSteelMakingPlanChange.queryMould" desc="查询模铸出钢上下限">
             <![CDATA[
           SELECT T.OUT_WT_MAX,T.OUT_WT_MIN FROM PLN_BASE_GRADE_MZ T WHERE T.MOULD=? AND INSTR(T.GRADENAME, ?) > 0  
              ]]>
	</query>
</queryMap>