<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="PLN_STEELFOR_ORD （生成工具：代码生成工具4.0   访问地址：http://172.16.2.128/tool/）">
    <query id="PlnSteelforOrdDAL.QueryCic" desc="查询">
        <![CDATA[
SELECT MAX(T.FURNACENO) FURNACENO,
       MAX(T.SEQUENCENO) SEQUENCENO,
       MAX(T.FURNACENO_SEQ) FURNACENO_SEQ,
       MAX(T.PRO_PLAN_ID) PRO_PLAN_ID,
       MAX(T.GX_PLAN_NO) GX_PLAN_NO,
       MAX(T.CAST_NO) CAST_NO,
       MAX(T.CAST_SEQ) CAST_SEQ,
       MAX(T.CAST_STOVE_SEQ) CAST_STOVE_SEQ,
       MAX(T.CCM_SEQ) CCM_SEQ,
       T.STOVE_NO,
       T.JUDGE_STOVE_NO,
       MAX(T.JUDGE_STOVE_NO_SEQ) JUDGE_STOVE_NO_SEQ,
       MAX(T.FLAG_STOVE_NO) FLAG_STOVE_NO,
       MAX(T.STATUS) STATUS,
       MAX(T.CCM_STATE) CCM_STATE,
       MAX(T.CCM_PLN_TYPE) CCM_PLN_TYPE,
       MAX(T.GPTYPE) GPTYPE,
       MAX(T.CASTINGTYPE) CASTINGTYPE,
       MAX(T.PLINE_CODE) PLINE_CODE,
       MAX(T.PLINE_NAME) PLINE_NAME,
       MAX(T.CCMID) CCMID,
       MAX(T.FLOWNO) FLOWNO,
       MAX(T.EF_PLINE_CODE) EF_PLINE_CODE,
       MAX(T.EF_PLINE_NAME) EF_PLINE_NAME,
       MAX(T.WLID_IN) WLID_IN,
       MAX(T.WLDESC_IN) WLDESC_IN,
       MAX(T.MATERIAL_NO) MATERIAL_NO,
       MAX(T.MATERIAL_NAME) MATERIAL_NAME,
       MAX(T.GRADECODE) GRADECODE,
       MAX(T.GRADENAME) GRADENAME,
       MAX(T.DIAMETER) DIAMETER,
       MAX(T.LEN_GP_SINGLE) LEN_GP_SINGLE,
       MAX(T.CUT_NUM_GP) CUT_NUM_GP,
       MAX(T.LENGTH_M) LENGTH_M,
       MAX(T.WEIGHT_GP_ONE) WEIGHT_GP_ONE,
       MAX(T.WEIGHT_M) WEIGHT_M,
       MAX(T.TOT_MUM_M) TOT_MUM_M,
       MAX(T.TOT_WEIGHT_M) TOT_WEIGHT_M,
       MAX(T.ACT_WEIGHT_M) ACT_WEIGHT_M,
       MAX(T.ACT_MUM_M) ACT_MUM_M,
       MAX(T.SURPLUSFLAG) SURPLUSFLAG,
       MAX(T.SURPLUS_TYPE) SURPLUS_TYPE,
       MAX(T.IF_SURPLUS_ALLOTED) IF_SURPLUS_ALLOTED,
       MAX(T.CIC) CIC,
       MAX(T.PIC) PIC,
       MAX(T.SIC) SIC,
       MAX(T.DIC) DIC,
       MAX(T.MEMO) MEMO,
       MAX(T.MAKEMAN) MAKEMAN,
       TO_CHAR(MAX(T.MAKETIME), 'YYYY-MM-DD HH24:MI:SS') MAKETIME,
       MAX(T.DOWNMAN) DOWNMAN,
       TO_CHAR(MAX(T.DOWNTIME), 'YYYY-MM-DD HH24:MI:SS') DOWNTIME,
       DECODE(MAX(T.CHEM_JUDGE_ID), NULL, '未判', '已判') JUDGE_STATE,
       MAX(B.BASENAME) JUDGE_RESULT
  FROM PLN_STEELFOR_ORD T
  LEFT JOIN QCM_LG_CHEMJUDGE A
    ON A.CHEM_JUDGE_ID = T.CHEM_JUDGE_ID
  LEFT JOIN COM_BASE_INFO B
    ON B.BASECODE = A.JUDGERESULT_CHEM
 WHERE 1 = 1
        ]]>
    </query>
    <query id="PlnSteelforOrdDAL.QueryPic" desc="查询理化">
        <![CDATA[
SELECT MAX(T.FURNACENO) FURNACENO,
       MAX(T.SEQUENCENO) SEQUENCENO,
       MAX(T.FURNACENO_SEQ) FURNACENO_SEQ,
       MAX(T.PRO_PLAN_ID) PRO_PLAN_ID,
       MAX(T.GX_PLAN_NO) GX_PLAN_NO,
       MAX(T.CAST_NO) CAST_NO,
       MAX(T.CAST_SEQ) CAST_SEQ,
       MAX(T.CAST_STOVE_SEQ) CAST_STOVE_SEQ,
       MAX(T.CCM_SEQ) CCM_SEQ,
       T.STOVE_NO,
       T.JUDGE_STOVE_NO,
       MAX(T.JUDGE_STOVE_NO_SEQ) JUDGE_STOVE_NO_SEQ,
       MAX(T.FLAG_STOVE_NO) FLAG_STOVE_NO,
       MAX(T.STATUS) STATUS,
       MAX(T.CCM_STATE) CCM_STATE,
       MAX(T.CCM_PLN_TYPE) CCM_PLN_TYPE,
       MAX(T.GPTYPE) GPTYPE,
       MAX(T.CASTINGTYPE) CASTINGTYPE,
       MAX(T.PLINE_CODE) PLINE_CODE,
       MAX(T.PLINE_NAME) PLINE_NAME,
       MAX(T.CCMID) CCMID,
       MAX(T.FLOWNO) FLOWNO,
       MAX(T.EF_PLINE_CODE) EF_PLINE_CODE,
       MAX(T.EF_PLINE_NAME) EF_PLINE_NAME,
       MAX(T.WLID_IN) WLID_IN,
       MAX(T.WLDESC_IN) WLDESC_IN,
       MAX(T.MATERIAL_NO) MATERIAL_NO,
       MAX(T.MATERIAL_NAME) MATERIAL_NAME,
       MAX(T.GRADECODE) GRADECODE,
       MAX(T.GRADENAME) GRADENAME,
       MAX(T.DIAMETER) DIAMETER,
       MAX(T.LEN_GP_SINGLE) LEN_GP_SINGLE,
       MAX(T.CUT_NUM_GP) CUT_NUM_GP,
       MAX(T.LENGTH_M) LENGTH_M,
       MAX(T.WEIGHT_GP_ONE) WEIGHT_GP_ONE,
       MAX(T.WEIGHT_M) WEIGHT_M,
       MAX(T.TOT_MUM_M) TOT_MUM_M,
       MAX(T.TOT_WEIGHT_M) TOT_WEIGHT_M,
       MAX(T.ACT_WEIGHT_M) ACT_WEIGHT_M,
       MAX(T.ACT_MUM_M) ACT_MUM_M,
       MAX(T.SURPLUSFLAG) SURPLUSFLAG,
       MAX(T.SURPLUS_TYPE) SURPLUS_TYPE,
       MAX(T.IF_SURPLUS_ALLOTED) IF_SURPLUS_ALLOTED,
       MAX(T.CIC) CIC,
       MAX(T.PIC) PIC,
       MAX(T.SIC) SIC,
       MAX(T.DIC) DIC,
       MAX(T.MEMO) MEMO,
       MAX(T.MAKEMAN) MAKEMAN,
       TO_CHAR(MAX(T.MAKETIME), 'YYYY-MM-DD HH24:MI:SS') MAKETIME,
       MAX(T.DOWNMAN) DOWNMAN,
       TO_CHAR(MAX(T.DOWNTIME), 'YYYY-MM-DD HH24:MI:SS') DOWNTIME,
       DECODE(MAX(T.CHEM_JUDGE_ID), NULL, '未判', '已判') JUDGE_STATE,
       MAX(B.BASENAME) JUDGE_RESULT
  FROM PLN_STEELFOR_ORD T
  LEFT JOIN QCM_LG_PHYJUDGE A
    ON A.PHY_JUDGE_ID = T.PHY_JUDGE_ID
  LEFT JOIN COM_BASE_INFO B
    ON B.BASECODE = A.JUDGERESULT_PHY
 WHERE 1 = 1
        ]]>
    </query>
    <query id="PlnSteelforOrdDAL.QueryColligate" desc="查询综合">
        <![CDATA[
SELECT MAX(T.FURNACENO) FURNACENO,
       MAX(T.SEQUENCENO) SEQUENCENO,
       MAX(T.FURNACENO_SEQ) FURNACENO_SEQ,
       MAX(T.PRO_PLAN_ID) PRO_PLAN_ID,
       MAX(T.GX_PLAN_NO) GX_PLAN_NO,
       MAX(T.CAST_NO) CAST_NO,
       MAX(T.CAST_SEQ) CAST_SEQ,
       MAX(T.CAST_STOVE_SEQ) CAST_STOVE_SEQ,
       MAX(T.CCM_SEQ) CCM_SEQ,
       T.STOVE_NO,
       T.JUDGE_STOVE_NO,
       MAX(T.JUDGE_STOVE_NO_SEQ) JUDGE_STOVE_NO_SEQ,
       MAX(T.FLAG_STOVE_NO) FLAG_STOVE_NO,
       MAX(T.STATUS) STATUS,
       MAX(T.CCM_STATE) CCM_STATE,
       MAX(T.CCM_PLN_TYPE) CCM_PLN_TYPE,
       MAX(T.GPTYPE) GPTYPE,
       MAX(T.CASTINGTYPE) CASTINGTYPE,
       MAX(T.PLINE_CODE) PLINE_CODE,
       MAX(T.PLINE_NAME) PLINE_NAME,
       MAX(T.CCMID) CCMID,
       MAX(T.FLOWNO) FLOWNO,
       MAX(T.EF_PLINE_CODE) EF_PLINE_CODE,
       MAX(T.EF_PLINE_NAME) EF_PLINE_NAME,
       MAX(T.WLID_IN) WLID_IN,
       MAX(T.WLDESC_IN) WLDESC_IN,
       MAX(T.MATERIAL_NO) MATERIAL_NO,
       MAX(T.MATERIAL_NAME) MATERIAL_NAME,
       MAX(T.GRADECODE) GRADECODE,
       MAX(T.GRADENAME) GRADENAME,
       MAX(T.DIAMETER) DIAMETER,
       MAX(T.LEN_GP_SINGLE) LEN_GP_SINGLE,
       MAX(T.CUT_NUM_GP) CUT_NUM_GP,
       MAX(T.LENGTH_M) LENGTH_M,
       MAX(T.WEIGHT_GP_ONE) WEIGHT_GP_ONE,
       MAX(T.WEIGHT_M) WEIGHT_M,
       MAX(T.TOT_MUM_M) TOT_MUM_M,
       MAX(T.TOT_WEIGHT_M) TOT_WEIGHT_M,
       MAX(T.ACT_WEIGHT_M) ACT_WEIGHT_M,
       MAX(T.ACT_MUM_M) ACT_MUM_M,
       MAX(T.SURPLUSFLAG) SURPLUSFLAG,
       MAX(T.SURPLUS_TYPE) SURPLUS_TYPE,
       MAX(T.IF_SURPLUS_ALLOTED) IF_SURPLUS_ALLOTED,
       MAX(T.CIC) CIC,
       MAX(T.PIC) PIC,
       MAX(T.SIC) SIC,
       MAX(T.DIC) DIC,
       MAX(T.MEMO) MEMO,
       MAX(T.MAKEMAN) MAKEMAN,
       TO_CHAR(MAX(T.MAKETIME), 'YYYY-MM-DD HH24:MI:SS') MAKETIME,
       MAX(T.DOWNMAN) DOWNMAN,
       TO_CHAR(MAX(T.DOWNTIME), 'YYYY-MM-DD HH24:MI:SS') DOWNTIME,
       DECODE(MAX(T.CHEM_JUDGE_ID), NULL, '未判', '已判') JUDGE_STATE,
       MAX(B.BASENAME) JUDGE_RESULT
  FROM PLN_STEELFOR_ORD T
  LEFT JOIN QCM_LG_JUDGE A
    ON A.JUDGE_ID = T.COLLIGATE_JUDGE_ID
  LEFT JOIN COM_BASE_INFO B
    ON B.BASECODE = A.JUDGERESULT
 WHERE 1 = 1
        ]]>
    </query>
    <query id="PlnSteelforOrdDAL.QueryByPk" desc="通过主键查询">
        <![CDATA[
 SELECT 
       T.FURNACENO,
       T.SEQUENCENO,
       T.FURNACENO_SEQ,
       T.PRO_PLAN_ID,
       T.GX_PLAN_NO,
       T.CAST_NO,
       T.CAST_SEQ,
       T.CAST_STOVE_SEQ,
       T.CCM_SEQ,
       T.STOVE_NO,
       T.JUDGE_STOVE_NO,
       T.JUDGE_STOVE_NO_SEQ,
       T.FLAG_STOVE_NO,
       T.STATUS,
       T.CCM_STATE,
       T.CCM_PLN_TYPE,
       T.GPTYPE,
       T.CASTINGTYPE,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.CCMID,
       T.FLOWNO,
       T.EF_PLINE_CODE,
       T.EF_PLINE_NAME,
       T.WLID_IN,
       T.WLDESC_IN,
       T.MATERIAL_NO,
       T.MATERIAL_NAME,
       T.GRADECODE,
       T.GRADENAME,
       T.DIAMETER,
       T.LEN_GP_SINGLE,
       T.CUT_NUM_GP,
       T.LENGTH_M,
       T.WEIGHT_GP_ONE,
       T.WEIGHT_M,
       T.TOT_MUM_M,
       T.TOT_WEIGHT_M,
       T.ACT_WEIGHT_M,
       T.ACT_MUM_M,
       T.SURPLUSFLAG,
       T.SURPLUS_TYPE,
       T.REF_ORD_ZZ,
       T.REF_GPREQ_ID,
       T.IF_SURPLUS_ALLOTED,
       T.CIC,
       T.PIC,
       T.SIC,
       T.DIC,
       T.MEMO,
       T.MAKEMAN,
       TO_CHAR(T.MAKETIME, 'YYYY-MM-DD HH24:MI:SS') MAKETIME,
       T.DOWNMAN,
       TO_CHAR(T.DOWNTIME, 'YYYY-MM-DD HH24:MI:SS') DOWNTIME
 FROM PLN_STEELFOR_ORD T
 WHERE
       T.FURNACENO = '#FURNACENO#'
       AND T.SEQUENCENO = '#SEQUENCENO#'
        ]]>
    </query>
    <query id="PlnSteelforOrdDAL.Insert" 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,
        STOVE_NO,
        JUDGE_STOVE_NO,
        JUDGE_STOVE_NO_SEQ,
        FLAG_STOVE_NO,
        STATUS,
        CCM_STATE,
        CCM_PLN_TYPE,
        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,
        ACT_WEIGHT_M,
        ACT_MUM_M,
        SURPLUSFLAG,
        SURPLUS_TYPE,
        REF_ORD_ZZ,
        REF_GPREQ_ID,
        IF_SURPLUS_ALLOTED,
        CIC,
        PIC,
        SIC,
        DIC,
        MEMO,
        MAKEMAN,
        MAKETIME,
        DOWNMAN,
        DOWNTIME)
 VALUES( 
        '#FURNACENO#',
        '#SEQUENCENO#',
        '#FURNACENO_SEQ#',
        '#PRO_PLAN_ID#',
        '#GX_PLAN_NO#',
        '#CAST_NO#',
        '#CAST_SEQ#',
        '#CAST_STOVE_SEQ#',
        '#CCM_SEQ#',
        '#STOVE_NO#',
        '#JUDGE_STOVE_NO#',
        '#JUDGE_STOVE_NO_SEQ#',
        '#FLAG_STOVE_NO#',
        '#STATUS#',
        '#CCM_STATE#',
        '#CCM_PLN_TYPE#',
        '#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#',
        '#ACT_WEIGHT_M#',
        '#ACT_MUM_M#',
        '#SURPLUSFLAG#',
        '#SURPLUS_TYPE#',
        '#REF_ORD_ZZ#',
        '#REF_GPREQ_ID#',
        '#IF_SURPLUS_ALLOTED#',
        '#CIC#',
        '#PIC#',
        '#SIC#',
        '#DIC#',
        '#MEMO#',
        '#MAKEMAN#',
        SYSDATE,
        '#DOWNMAN#',
        SYSDATE)
        ]]>
    </query>
    <query id="PlnSteelforOrdDAL.Update" desc="修改">
        <![CDATA[
 UPDATE PLN_STEELFOR_ORD T
   SET 
        T.FURNACENO = '#FURNACENO#',
        T.SEQUENCENO = '#SEQUENCENO#',
        T.FURNACENO_SEQ = '#FURNACENO_SEQ#',
        T.PRO_PLAN_ID = '#PRO_PLAN_ID#',
        T.GX_PLAN_NO = '#GX_PLAN_NO#',
        T.CAST_NO = '#CAST_NO#',
        T.CAST_SEQ = '#CAST_SEQ#',
        T.CAST_STOVE_SEQ = '#CAST_STOVE_SEQ#',
        T.CCM_SEQ = '#CCM_SEQ#',
        T.STOVE_NO = '#STOVE_NO#',
        T.JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#',
        T.JUDGE_STOVE_NO_SEQ = '#JUDGE_STOVE_NO_SEQ#',
        T.FLAG_STOVE_NO = '#FLAG_STOVE_NO#',
        T.STATUS = '#STATUS#',
        T.CCM_STATE = '#CCM_STATE#',
        T.CCM_PLN_TYPE = '#CCM_PLN_TYPE#',
        T.GPTYPE = '#GPTYPE#',
        T.CASTINGTYPE = '#CASTINGTYPE#',
        T.PLINE_CODE = '#PLINE_CODE#',
        T.PLINE_NAME = '#PLINE_NAME#',
        T.CCMID = '#CCMID#',
        T.FLOWNO = '#FLOWNO#',
        T.EF_PLINE_CODE = '#EF_PLINE_CODE#',
        T.EF_PLINE_NAME = '#EF_PLINE_NAME#',
        T.WLID_IN = '#WLID_IN#',
        T.WLDESC_IN = '#WLDESC_IN#',
        T.MATERIAL_NO = '#MATERIAL_NO#',
        T.MATERIAL_NAME = '#MATERIAL_NAME#',
        T.GRADECODE = '#GRADECODE#',
        T.GRADENAME = '#GRADENAME#',
        T.DIAMETER = '#DIAMETER#',
        T.LEN_GP_SINGLE = '#LEN_GP_SINGLE#',
        T.CUT_NUM_GP = '#CUT_NUM_GP#',
        T.LENGTH_M = '#LENGTH_M#',
        T.WEIGHT_GP_ONE = '#WEIGHT_GP_ONE#',
        T.WEIGHT_M = '#WEIGHT_M#',
        T.TOT_MUM_M = '#TOT_MUM_M#',
        T.TOT_WEIGHT_M = '#TOT_WEIGHT_M#',
        T.ACT_WEIGHT_M = '#ACT_WEIGHT_M#',
        T.ACT_MUM_M = '#ACT_MUM_M#',
        T.SURPLUSFLAG = '#SURPLUSFLAG#',
        T.SURPLUS_TYPE = '#SURPLUS_TYPE#',
        T.REF_ORD_ZZ = '#REF_ORD_ZZ#',
        T.REF_GPREQ_ID = '#REF_GPREQ_ID#',
        T.IF_SURPLUS_ALLOTED = '#IF_SURPLUS_ALLOTED#',
        T.CIC = '#CIC#',
        T.PIC = '#PIC#',
        T.SIC = '#SIC#',
        T.DIC = '#DIC#',
        T.MEMO = '#MEMO#',
        T.MAKEMAN = '#MAKEMAN#',
        T.MAKETIME = SYSDATE,
        T.DOWNMAN = '#DOWNMAN#',
        T.DOWNTIME = SYSDATE
 WHERE
       T.FURNACENO = '#FURNACENO#'
       AND T.SEQUENCENO = '#SEQUENCENO#'
        ]]>
    </query>
    <query id="PlnSteelforOrdDAL.GetMaxPk" desc="获取最大主键">
        <![CDATA[
SELECT NVL(MAX(FURNACENO), 0) + 1 MAX_VALUE FROM PLN_STEELFOR_ORD T
        ]]>
    </query>
    <query id="PlnSteelforOrdDAL.Delete" desc="作废">
        <![CDATA[
UPDATE PLN_STEELFOR_ORD T
   SET
       T.VALIDFLAG = '0',
       T.DELETE_NAME = '#DELETE_NAME#',
       T.DELETE_TIME = SYSDATE
WHERE
       T.FURNACENO = '#FURNACENO#'
       AND T.SEQUENCENO = '#SEQUENCENO#'
        ]]>
    </query>
    <query id="PlnSteelforOrdDAL.Resume" desc="恢复">
        <![CDATA[
UPDATE PLN_STEELFOR_ORD T
   SET
       T.VALIDFLAG = '1',
       T.DELETE_NAME = NULL,
       T.DELETE_TIME = NULL,
       T.UPDATE_NAME = '#UPDATE_NAME#',
       T.UPDATE_TIME = SYSDATE
WHERE
       T.FURNACENO = '#FURNACENO#'
       AND T.SEQUENCENO = '#SEQUENCENO#'
        ]]>
    </query>
    <query id="PlnSteelforOrdDAL.setChemJudgeId" desc="修改成分判定ID">
		<![CDATA[
UPDATE PLN_STEELFOR_ORD T
   SET T.CHEM_JUDGE_ID = {0}
 WHERE T.JUDGE_STOVE_NO = {1}
		]]>
	</query>
	<query id="PlnSteelforOrdDAL.setPhyJudgeId" desc="修改理化判定ID">
		<![CDATA[
UPDATE PLN_STEELFOR_ORD T
   SET T.PHY_JUDGE_ID = {0}
 WHERE T.JUDGE_STOVE_NO = {1}
		]]>
	</query>
	<query id="PlnSteelforOrdDAL.setColligateJudgeId" desc="修改理化判定ID">
		<![CDATA[
UPDATE PLN_STEELFOR_ORD T
   SET T.COLLIGATE_JUDGE_ID = {0}
 WHERE T.JUDGE_STOVE_NO = {1}
		]]>
	</query>

    <query id="PlnSteelforOrdDAL.getCicByJudgeStoveNo" desc="通过判定炉号获取CIC">
        <![CDATA[
SELECT T.CIC FROM PLN_STEELFOR_ORD T WHERE T.JUDGE_STOVE_NO = {0} AND ROWNUM <= 1
		]]>
    </query>
    
        <query id="PlnSteelforOrdDAL.getCicByProPlanId" desc="通过判定炉号获取CIC">
        <![CDATA[
SELECT T.CIC FROM QCM_GP_JUDGE_APPLY T WHERE t.pro_plan_id_next||t.gx_plan_no_next in {0}  AND ROWNUM <= 1
		]]>
    </query>
    
        <query id="PlnSteelforOrdDAL.getCicByStoveNo" desc="通过判定炉号获取CIC">
        <![CDATA[
SELECT T.CIC FROM PLN_STEELFOR_ORD T WHERE t.stove_no = {0} and t.judge_stove_no != {1} order by t.sequenceno 
		]]>
    </query>
</queryMap>