<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="STL_INCISION （生成工具：代码生成工具4.0   访问地址：http://172.16.2.128/tool/）">
    <query id="StlIncisionDAL.Query" desc="查询">
        <![CDATA[
SELECT TTT.*
  FROM (SELECT T.STOVE_NO,
               T.JUDGE_STOVE_NO,
               MIN(T.GRADENAME) GRADENAME,
               MIN(T.DIAMETER) DIAMETER,
               MAX(T.JUDGERESULT_CHEM) JUDGERESULT_CHEM,
               MAX(T.PLINE_CODE) PLINE_CODE,
               MAX(T.PLINE_NAME) PLINE_NAME,
               TO_CHAR(MAX(T.RRO_TIME), 'YYYY-MM-DD HH24:MI:SS') PRO_TIME,
               NULL JUGDE_APPLY_CODE,
               NULL JUGDE_APPLY_SQE,
               TO_CHAR(MAX(A.CREATE_TIME), 'YYYY-MM-DD HH24:MI:SS') JUDGE_TIME,
               MAX(A.MEMO) MEMO,
               '正常' LK_FLAG,
               NULL GPTYPE,
               case
		         when MIN(T.CIC) || '+' || MIN(T.PIC) || '+' || MIN(T.SIC) || '+' = '+++' then
		          max(ja.std_code)
		         else
		          MIN(T.CIC) || '+' || MIN(T.PIC) || '+' || MIN(T.SIC) || '+'
		       end STEEL_STANDRAD,
               CASE
                 WHEN MAX(T.JUDGERESULT_CHEM) IS NULL THEN
                  ''
                 ELSE
                  DECODE((SELECT COUNT(1)
                           FROM QCM_LG_CHEMJUDGE AA
                          WHERE AA.JUDGE_STOVE_NO = T.JUDGE_STOVE_NO
                            AND AA.PROCESS_CDOE = 'B'
                            AND AA.VALIDFLAG = '1'
                            AND AA.SAMPLE_NO LIKE '60_F%'),
                         0,
                         '初样',
                         '复样')
               END CHEM_TYPE,
               NULL OLD_GRADENAME,
               NULL OLD_CIC
          FROM STL_INCISION T
          LEFT JOIN (SELECT MIN(AA.JUDGE_STOVE_NO) JUDGE_STOVE_NO,
                           MIN(AA.CREATE_TIME) CREATE_TIME,
                           MIN(AA.MEMO) MEMO,
                           MIN(AA.VALIDFLAG) VALIDFLAG,
                           MIN(AA.PROCESS_CDOE) PROCESS_CDOE
                      FROM QCM_LG_CHEMJUDGE AA
                     GROUP BY AA.CHEM_JUDGE_ID) A
            ON T.JUDGE_STOVE_NO = A.JUDGE_STOVE_NO
           AND A.PROCESS_CDOE = 'B'
           AND A.VALIDFLAG = '1'
          LEFT JOIN (SELECT MIN(AA.JUDGE_STOVE_NO) JUDGE_STOVE_NO,
                           MIN(AA.VALIDFLAG) VALIDFLAG,
                           MIN(AA.PROCESS_CDOE) PROCESS_CDOE,
                           MIN(AA.SAMPLE_NO) SAMPLE_NO
                      FROM QCM_LG_CHEMJUDGE AA
                     WHERE (EXISTS
                            (SELECT 1
                               FROM QCM_LG_CHEMJUDGE AAA
                              WHERE AAA.CHEM_JUDGE_ID = AA.CHEM_JUDGE_ID
                                AND AAA.SAMPLE_NO LIKE '60_F%') AND
                            AA.SAMPLE_NO LIKE '60_F%' OR NOT EXISTS
                            (SELECT 1
                               FROM QCM_LG_CHEMJUDGE AAA
                              WHERE AAA.CHEM_JUDGE_ID = AA.CHEM_JUDGE_ID
                                AND AAA.SAMPLE_NO LIKE '60_F%') AND
                            AA.SAMPLE_NO LIKE '60_')
                     GROUP BY AA.CHEM_JUDGE_ID) B
            ON T.JUDGE_STOVE_NO = B.JUDGE_STOVE_NO
           AND B.PROCESS_CDOE = 'B'
           AND B.VALIDFLAG = '1'
          LEFT JOIN PLN_STEELFORFURNACE C
            ON C.STOVE_NO = T.STOVE_NO
          left join QCM_GP_JUDGE_APPLY ja
            on t.judge_stove_no = ja.judge_stove_no
         WHERE ({0} IS NULL OR T.STOVE_NO LIKE '%' || {0} || '%')
           AND ({1} IS NULL OR T.JUDGE_STOVE_NO LIKE '%' || {1} || '%')
           AND ({2} = '0' AND T.JUDGERESULT_CHEM IS NULL OR
               {2} = '1' AND T.JUDGERESULT_CHEM IS NOT NULL OR
               {2} NOT IN ('0', '1') AND T.JUDGERESULT_CHEM = {2} OR
               {2} IS NULL)
           AND ({3} IS NULL OR
               T.RRO_TIME >= TO_DATE({3}, 'YYYY-MM-DD HH24:MI:SS'))
           AND ({4} IS NULL OR
               T.RRO_TIME <= TO_DATE({4}, 'YYYY-MM-DD HH24:MI:SS'))
           AND ({5} = '0' OR C.EF_PLINE_CODE IN {6})
           AND ({7} IS NULL OR {7} = '1' AND B.SAMPLE_NO LIKE '60_' OR
               {7} = '2' AND B.SAMPLE_NO LIKE '60_F%')
           AND ({8} IS NULL OR {8} = '1')
           AND ({9} = '0' OR T.PLINE_CODE IN {10})
           AND NOT EXISTS (SELECT 1
                  FROM QCM_GP_JUDGE_APPLY T2
                 WHERE T2.JUDGE_STOVE_NO = T.JUDGE_STOVE_NO
                   AND( T2.OLD_GRADECODE IS NOT NULL
                   AND T2.OLD_CIC IS NOT NULL OR
                   T2.PLINE_CODE IN ('C063', 'C064') OR T2.LK_FLAG = '1' OR T2.GPTYPE = '2'
                   )
                   AND T2.IS_FLAG = '0')
         GROUP BY T.JUDGE_STOVE_NO, T.STOVE_NO
        UNION ALL
        SELECT T.STOVE_NO,
               T.JUDGE_STOVE_NO,
               MAX(T.GRADENAME),
               MIN(T.ACT_DIMATER) DIAMETER,
               MAX(T.CHEM_RESULT_CODE),
               MAX(T.PLINE_CODE),
               MAX(T.PLINE_NAME),
               TO_CHAR(MAX(T.APPLY_TIME), 'YYYY-MM-DD HH24:MI:SS') APPLY_TIME,
               T.JUGDE_APPLY_CODE,
               T.JUGDE_APPLY_SQE,
               TO_CHAR(MAX(A.CREATE_TIME), 'YYYY-MM-DD HH24:MI:SS') JUDGE_TIME,
               MAX(A.MEMO),
               DECODE(MAX(T.LK_FLAG), '1', '利库', '0', '正常') LK_FLAG,
               MIN(T.GPTYPE) GPTYPE,
               case
		         when MAX(T.STEEL_STANDRAD) = '+++' then
		          max(t.std_code)
		         else
		          MAX(T.STEEL_STANDRAD)
		       end STEEL_STANDRAD,
               --MAX(T.STEEL_STANDRAD) STEEL_STANDRAD,
               CASE
                 WHEN MAX(T.CHEM_RESULT_CODE) IS NULL THEN
                  ''
                 ELSE
                  DECODE((SELECT COUNT(1)
                           FROM QCM_LG_CHEMJUDGE AA
                          WHERE AA.JUDGE_STOVE_NO = T.JUDGE_STOVE_NO
                            AND AA.PROCESS_CDOE = 'B'
                            AND AA.VALIDFLAG = '1'
                            AND AA.SAMPLE_NO LIKE '60_F%'),
                         0,
                         '初样',
                         '复样')
               END CHEM_TYPE,
               MIN(T.OLD_GRADENAME) OLD_GRADENAME,
               MIN(T.OLD_CIC) OLD_CIC
          FROM QCM_GP_JUDGE_APPLY T
          LEFT JOIN (SELECT MIN(AA.JUDGE_STOVE_NO) JUDGE_STOVE_NO,
                            MIN(AA.CREATE_TIME) CREATE_TIME,
                            MIN(AA.MEMO) MEMO,
                            MIN(AA.VALIDFLAG) VALIDFLAG,
                            MIN(AA.PROCESS_CDOE) PROCESS_CDOE,
                            MIN(AA.JUDGERESULT_CHEM) JUDGERESULT_CHEM
                       FROM QCM_LG_CHEMJUDGE AA
                      GROUP BY AA.CHEM_JUDGE_ID) A
            ON T.JUDGE_STOVE_NO = A.JUDGE_STOVE_NO
           AND A.PROCESS_CDOE = 'B'
           AND A.VALIDFLAG = '1'
          LEFT JOIN (SELECT MIN(AA.JUDGE_STOVE_NO) JUDGE_STOVE_NO,
                            MIN(AA.VALIDFLAG) VALIDFLAG,
                            MIN(AA.PROCESS_CDOE) PROCESS_CDOE,
                            MIN(AA.SAMPLE_NO) SAMPLE_NO
                       FROM QCM_LG_CHEMJUDGE AA
                      WHERE (EXISTS
                             (SELECT 1
                                FROM QCM_LG_CHEMJUDGE AAA
                               WHERE AAA.CHEM_JUDGE_ID = AA.CHEM_JUDGE_ID
                                 AND AAA.SAMPLE_NO LIKE '60_F%') AND
                             AA.SAMPLE_NO LIKE '60_F%' OR NOT EXISTS
                             (SELECT 1
                                FROM QCM_LG_CHEMJUDGE AAA
                               WHERE AAA.CHEM_JUDGE_ID = AA.CHEM_JUDGE_ID
                                 AND AAA.SAMPLE_NO LIKE '60_F%') AND
                             AA.SAMPLE_NO LIKE '60_')
                      GROUP BY AA.CHEM_JUDGE_ID) B
            ON T.JUDGE_STOVE_NO = B.JUDGE_STOVE_NO
           AND B.PROCESS_CDOE = 'B'
           AND B.VALIDFLAG = '1'
          LEFT JOIN PLN_STEELFORFURNACE C
            ON C.STOVE_NO = T.STOVE_NO
         WHERE ({0} IS NULL OR T.STOVE_NO LIKE '%' || {0} || '%')
           AND ({1} IS NULL OR T.JUDGE_STOVE_NO LIKE '%' || {1} || '%')
           AND ({2} = '0' AND A.JUDGERESULT_CHEM IS NULL OR
               {2} = '1' AND A.JUDGERESULT_CHEM IS NOT NULL OR
               {2} NOT IN ('0', '1') AND A.JUDGERESULT_CHEM = {2} OR
               {2} IS NULL)
           AND ({3} IS NULL OR
               T.APPLY_TIME >= TO_DATE({3}, 'YYYY-MM-DD HH24:MI:SS'))
           AND ({4} IS NULL OR
               T.APPLY_TIME <= TO_DATE({4}, 'YYYY-MM-DD HH24:MI:SS'))
           AND ({5} = '0' OR C.EF_PLINE_CODE IN {6})
           AND (T.PLINE_CODE IN ('C063', 'C064') OR T.LK_FLAG = '1' OR
               T.GPTYPE = '2' OR T.OLD_GRADECODE IS NOT NULL AND T.OLD_CIC IS NOT NULL)
           AND ({7} IS NULL OR {7} = '1' AND B.SAMPLE_NO NOT LIKE '60_F%' OR
               {7} = '2' AND B.SAMPLE_NO LIKE '60_F%')
           AND ({8} IS NULL OR
               {8} = '1' AND T.PLINE_CODE NOT IN ('C063', 'C064') OR
               {8} = '2' AND T.PLINE_CODE IN ('C063', 'C064'))
           AND ({9} = '0' OR T.PLINE_CODE IN {10})
           AND T.IS_FLAG = '0'
         GROUP BY T.JUGDE_APPLY_CODE,
                  JUGDE_APPLY_SQE,
                  T.STOVE_NO,
                  T.JUDGE_STOVE_NO) TTT
  LEFT JOIN PLN_STEELFOR_ORD D
    ON D.JUDGE_STOVE_NO = TTT.JUDGE_STOVE_NO
 WHERE (D.CCM_PLN_TYPE = '00' OR TTT.PLINE_CODE IN ('C063', 'C064') OR
       TTT.GPTYPE = '2')
 ORDER BY TTT.STOVE_NO, D.CUT_NUM
        ]]>
    </query>
    <query id="StlIncisionDAL.QueryByPk" desc="通过主键查询">
        <![CDATA[
 SELECT 
       T.INCISION_NO,
       T.FURNACENO,
       T.SEQUENCENO,
       T.CAST_NO,
       T.HEATCNT,
       T.CCMID,
       T.FLOWNO,
       T.PRO_PLAN_ID,
       T.GX_PLAN_NO,
       T.PRO_NO,
       T.STOVE_NO,
       T.JUDGE_STOVE_NO,
       T.FLAG_STOVE_NO,
       T.GPTYPE,
       T.CASTINGTYPE,
       T.MATERIAL_NO,
       T.MATERIAL_NAME,
       T.GRADECODE,
       T.GRADENAME,
       T.CIC,
       T.PIC,
       T.SIC,
       T.DIC,
       T.BATCH_GROUD_NO,
       T.DIAMETER,
       T.LEN_GP_SINGLE,
       T.WEIGHT_GP_ONE,
       T.CUT_NUM_GP,
       T.LENGTH_M,
       T.WEIGHT_M,
       T.ACT_COUNT,
       T.ACT_WEIGHT,
       T.L2FLAG,
       T.PRO_YEAR_MONTH_DAY,
       T.BAL_YEAR_MONTH,
       TO_CHAR(T.RRO_TIME, 'YYYY-MM-DD HH24:MI:SS') RRO_TIME,
       T.PRO_USER,
       T.PRO_SHIFT,
       T.PRO_GROUP,
       T.WLID_IN,
       T.WLDESC_IN,
       T.CCM_STATE,
       T.CCM_PLN_TYPE,
       T.JUDGE_STOVE_NO_SEQ,
       T.D_MUM_M,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.EF_PLINE_CODE,
       T.EF_PLINE_NAME,
       T.WIC,
       T.GIC,
       T.CHEM_JUDGE_ID,
       T.JUDGE_FLAG,
       T.JUDGERESULT_CHEM
 FROM STL_INCISION T
 WHERE
       T.INCISION_NO = '#INCISION_NO#'
        ]]>
    </query>
    <query id="StlIncisionDAL.Insert" desc="新增">
        <![CDATA[
 INSERT INTO STL_INCISION(
        INCISION_NO,
        FURNACENO,
        SEQUENCENO,
        CAST_NO,
        HEATCNT,
        CCMID,
        FLOWNO,
        PRO_PLAN_ID,
        GX_PLAN_NO,
        PRO_NO,
        STOVE_NO,
        JUDGE_STOVE_NO,
        FLAG_STOVE_NO,
        GPTYPE,
        CASTINGTYPE,
        MATERIAL_NO,
        MATERIAL_NAME,
        GRADECODE,
        GRADENAME,
        CIC,
        PIC,
        SIC,
        DIC,
        BATCH_GROUD_NO,
        DIAMETER,
        LEN_GP_SINGLE,
        WEIGHT_GP_ONE,
        CUT_NUM_GP,
        LENGTH_M,
        WEIGHT_M,
        ACT_COUNT,
        ACT_WEIGHT,
        L2FLAG,
        PRO_YEAR_MONTH_DAY,
        BAL_YEAR_MONTH,
        RRO_TIME,
        PRO_USER,
        PRO_SHIFT,
        PRO_GROUP,
        WLID_IN,
        WLDESC_IN,
        CCM_STATE,
        CCM_PLN_TYPE,
        JUDGE_STOVE_NO_SEQ,
        D_MUM_M,
        PLINE_CODE,
        PLINE_NAME,
        EF_PLINE_CODE,
        EF_PLINE_NAME,
        WIC,
        GIC,
        CHEM_JUDGE_ID,
        JUDGE_FLAG,
        JUDGERESULT_CHEM)
 VALUES( 
        '#INCISION_NO#',
        '#FURNACENO#',
        '#SEQUENCENO#',
        '#CAST_NO#',
        '#HEATCNT#',
        '#CCMID#',
        '#FLOWNO#',
        '#PRO_PLAN_ID#',
        '#GX_PLAN_NO#',
        '#PRO_NO#',
        '#STOVE_NO#',
        '#JUDGE_STOVE_NO#',
        '#FLAG_STOVE_NO#',
        '#GPTYPE#',
        '#CASTINGTYPE#',
        '#MATERIAL_NO#',
        '#MATERIAL_NAME#',
        '#GRADECODE#',
        '#GRADENAME#',
        '#CIC#',
        '#PIC#',
        '#SIC#',
        '#DIC#',
        '#BATCH_GROUD_NO#',
        '#DIAMETER#',
        '#LEN_GP_SINGLE#',
        '#WEIGHT_GP_ONE#',
        '#CUT_NUM_GP#',
        '#LENGTH_M#',
        '#WEIGHT_M#',
        '#ACT_COUNT#',
        '#ACT_WEIGHT#',
        '#L2FLAG#',
        '#PRO_YEAR_MONTH_DAY#',
        '#BAL_YEAR_MONTH#',
        SYSDATE,
        '#PRO_USER#',
        '#PRO_SHIFT#',
        '#PRO_GROUP#',
        '#WLID_IN#',
        '#WLDESC_IN#',
        '#CCM_STATE#',
        '#CCM_PLN_TYPE#',
        '#JUDGE_STOVE_NO_SEQ#',
        '#D_MUM_M#',
        '#PLINE_CODE#',
        '#PLINE_NAME#',
        '#EF_PLINE_CODE#',
        '#EF_PLINE_NAME#',
        '#WIC#',
        '#GIC#',
        '#CHEM_JUDGE_ID#',
        '#JUDGE_FLAG#',
        '#JUDGERESULT_CHEM#')
        ]]>
    </query>
    <query id="StlIncisionDAL.Update" desc="修改">
        <![CDATA[
 UPDATE STL_INCISION T
   SET 
        T.INCISION_NO = '#INCISION_NO#',
        T.FURNACENO = '#FURNACENO#',
        T.SEQUENCENO = '#SEQUENCENO#',
        T.CAST_NO = '#CAST_NO#',
        T.HEATCNT = '#HEATCNT#',
        T.CCMID = '#CCMID#',
        T.FLOWNO = '#FLOWNO#',
        T.PRO_PLAN_ID = '#PRO_PLAN_ID#',
        T.GX_PLAN_NO = '#GX_PLAN_NO#',
        T.PRO_NO = '#PRO_NO#',
        T.STOVE_NO = '#STOVE_NO#',
        T.JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#',
        T.FLAG_STOVE_NO = '#FLAG_STOVE_NO#',
        T.GPTYPE = '#GPTYPE#',
        T.CASTINGTYPE = '#CASTINGTYPE#',
        T.MATERIAL_NO = '#MATERIAL_NO#',
        T.MATERIAL_NAME = '#MATERIAL_NAME#',
        T.GRADECODE = '#GRADECODE#',
        T.GRADENAME = '#GRADENAME#',
        T.CIC = '#CIC#',
        T.PIC = '#PIC#',
        T.SIC = '#SIC#',
        T.DIC = '#DIC#',
        T.BATCH_GROUD_NO = '#BATCH_GROUD_NO#',
        T.DIAMETER = '#DIAMETER#',
        T.LEN_GP_SINGLE = '#LEN_GP_SINGLE#',
        T.WEIGHT_GP_ONE = '#WEIGHT_GP_ONE#',
        T.CUT_NUM_GP = '#CUT_NUM_GP#',
        T.LENGTH_M = '#LENGTH_M#',
        T.WEIGHT_M = '#WEIGHT_M#',
        T.ACT_COUNT = '#ACT_COUNT#',
        T.ACT_WEIGHT = '#ACT_WEIGHT#',
        T.L2FLAG = '#L2FLAG#',
        T.PRO_YEAR_MONTH_DAY = '#PRO_YEAR_MONTH_DAY#',
        T.BAL_YEAR_MONTH = '#BAL_YEAR_MONTH#',
        T.RRO_TIME = SYSDATE,
        T.PRO_USER = '#PRO_USER#',
        T.PRO_SHIFT = '#PRO_SHIFT#',
        T.PRO_GROUP = '#PRO_GROUP#',
        T.WLID_IN = '#WLID_IN#',
        T.WLDESC_IN = '#WLDESC_IN#',
        T.CCM_STATE = '#CCM_STATE#',
        T.CCM_PLN_TYPE = '#CCM_PLN_TYPE#',
        T.JUDGE_STOVE_NO_SEQ = '#JUDGE_STOVE_NO_SEQ#',
        T.D_MUM_M = '#D_MUM_M#',
        T.PLINE_CODE = '#PLINE_CODE#',
        T.PLINE_NAME = '#PLINE_NAME#',
        T.EF_PLINE_CODE = '#EF_PLINE_CODE#',
        T.EF_PLINE_NAME = '#EF_PLINE_NAME#',
        T.WIC = '#WIC#',
        T.GIC = '#GIC#',
        T.CHEM_JUDGE_ID = '#CHEM_JUDGE_ID#',
        T.JUDGE_FLAG = '#JUDGE_FLAG#',
        T.JUDGERESULT_CHEM = '#JUDGERESULT_CHEM#'
 WHERE
       T.INCISION_NO = '#INCISION_NO#'
        ]]>
    </query>
    <query id="StlIncisionDAL.GetMaxPk" desc="获取最大主键">
        <![CDATA[
SELECT NVL(MAX(INCISION_NO), 0) + 1 MAX_VALUE FROM STL_INCISION T
        ]]>
    </query>
    <query id="StlIncisionDAL.Delete" desc="作废">
        <![CDATA[
UPDATE STL_INCISION T
   SET
       T.VALIDFLAG = '0',
       T.DELETE_NAME = '#DELETE_NAME#',
       T.DELETE_TIME = SYSDATE
WHERE
       T.INCISION_NO = '#INCISION_NO#'
        ]]>
    </query>
    <query id="StlIncisionDAL.Resume" desc="恢复">
        <![CDATA[
UPDATE STL_INCISION T
   SET
       T.VALIDFLAG = '1',
       T.DELETE_NAME = NULL,
       T.DELETE_TIME = NULL,
       T.UPDATE_NAME = '#UPDATE_NAME#',
       T.UPDATE_TIME = SYSDATE
WHERE
       T.INCISION_NO = '#INCISION_NO#'
        ]]>
    </query>
    <query id="StlIncisionDAL.setChemJudge" desc="回写成分判定">
        <![CDATA[
UPDATE STL_INCISION T
   SET T.CHEM_JUDGE_ID = {0}, T.JUDGE_FLAG = {1}, T.JUDGERESULT_CHEM = {2}
 WHERE T.JUDGE_STOVE_NO = {3}
        ]]>
    </query>
    <query id="StlIncisionDAL.updateChemJudgeByStoveNo" desc="回写成分判定">
        <![CDATA[
UPDATE STL_INCISION T
   SET T.CHEM_JUDGE_ID = {0}, T.JUDGE_FLAG = {1}, T.JUDGERESULT_CHEM = {2}
 WHERE T.STOVE_NO = {3}
        ]]>
    </query>
    <query id="StlIncisionDAL.queryByJudgeStoveNo" desc="通过判定炉号查询切割表">
        <![CDATA[
SELECT INCISION_NO,
       FURNACENO,
       SEQUENCENO,
       CAST_NO,
       HEATCNT,
       CCMID,
       FLOWNO,
       NVL(PRO_PLAN_ID,
           (SELECT A.PRO_PLAN_ID
              FROM STL_INCISION A
             WHERE A.STOVE_NO = T.STOVE_NO
               AND A.PRO_PLAN_ID IS NOT NULL
               AND ROWNUM <= 1)) PRO_PLAN_ID,
       NVL(GX_PLAN_NO,
           (SELECT A.GX_PLAN_NO
              FROM STL_INCISION A
             WHERE A.STOVE_NO = T.STOVE_NO
               AND A.PRO_PLAN_ID IS NOT NULL
               AND ROWNUM <= 1)) GX_PLAN_NO,
       PRO_NO,
       STOVE_NO,
       JUDGE_STOVE_NO,
       FLAG_STOVE_NO,
       GPTYPE,
       CASTINGTYPE,
       MATERIAL_NO,
       MATERIAL_NAME,
       GRADECODE,
       GRADENAME,
       CIC,
       PIC,
       SIC,
       DIC,
       BATCH_GROUD_NO,
       DIAMETER,
       LEN_GP_SINGLE,
       WEIGHT_GP_ONE,
       CUT_NUM_GP,
       LENGTH_M,
       WEIGHT_M,
       ACT_COUNT,
       ACT_WEIGHT,
       L2FLAG,
       PRO_YEAR_MONTH_DAY,
       BAL_YEAR_MONTH,
       RRO_TIME,
       PRO_USER,
       PRO_SHIFT,
       PRO_GROUP,
       CHEM_JUDGE_ID,
       JUDGE_FLAG,
       JUDGERESULT_CHEM,
       PLINE_CODE,
       PLINE_NAME
  FROM STL_INCISION T
 WHERE T.JUDGE_STOVE_NO = {0}
        ]]>
    </query>
    
    <query id="StlIncisionDAL.queryStlDtlByJudgeStoveNo" desc="通过判定炉号查询切割表">
        <![CDATA[
SELECT T.DIAMETER,
       T.CUT_NUM_GP,
       T.LEN_GP_SINGLE,
       T.ACT_COUNT,
       T.ACT_WEIGHT,
       T.PRO_PLAN_ID,
       T.GX_PLAN_NO,
       T.GRADENAME,
       T.LENGTH_M
  FROM STL_INCISION T
 WHERE T.JUDGE_STOVE_NO = {0}
 ORDER BY CUT_NUM_GP
        ]]>
    </query>
    
    <query id="StlIncisionDAL.queryApplyDtlByJudgeStoveNoApplyNo" desc="通过判定炉号查询切割表">
        <![CDATA[
SELECT A.ACT_DIMATER       DIAMETER,
       A.MULTIPLE_NUM      CUT_NUM_GP,
       A.LEN_GP_SINGLE,
       A.ACT_COUNT,
       A.ACT_THEORY_WEIGHT ACT_WEIGHT,
       A.PRO_PLAN_ID,
       A.GX_PLAN_NO,
       A.PRO_PLAN_ID_NEXT,
       A.GX_PLAN_NO_NEXT,
       A.GRADENAME,
       A.ACT_LEN           LENGTH_M
  FROM QCM_GP_JUDGE_APPLY A
 WHERE A.JUGDE_APPLY_CODE = {0}
 AND A.JUGDE_APPLY_SQE = {1}
 AND A.JUDGE_STOVE_NO = {2}
 ORDER BY MULTIPLE_NUM
        ]]>
    </query>
</queryMap>