<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="定径实绩操作">

<query id="SizingResult.SingleSizingResultQuery" desc="定径 实绩查询">
        <![CDATA[
      SELECT a.RESULT_NO,
       a.LOT_NO,
       a.STOVE_NO,
       a.JUDGE_STOVE_NO,
       a.PLINE_CODE,
       a.HOST_ELE_SPEED1,
       a.HOST_ELE_SPEED2,
       a.HOST_ELE_SPEED3,
       a.HOST_ELE_SPEED4,
       a.HOST_ELE_SPEED5,
       a.HOST_ELE_SPEED6,
       a.HOST_ELE_SPEED7,
       a.HOST_ELE_SPEED8,
       a.HOST_ELE_SPEED9,
       a.HOST_ELE_SPEED10,
       a.HOST_ELE_SPEED11,
       a.HOST_ELE_SPEED12,
       a.FOLD_ELE_SPEED1,
       a.FOLD_ELE_SPEED2,
       a.FOLD_ELE_SPEED3,
       a.PASS_SERIES,
       a.FINISH_ROLL_NUM,
       a.RACK_NO,
       a.PIPE_DIAMETER,
       a.PIPE_THICKNESS,
       a.PIPE_LENGTH,
       a.PRODUCT_NUM,
       a.SCRAP_NUM,
       a.SCRAP_REASON,
       a.ENTRANCE_SPEED,
       a.DESCALING_WATER_PRESS,
       a.PRODUCT_SIZE,
       a.EXIT_SPEED,
       a.COOLING_WATER_PRESS,
       a.ENTRANCE_TEMP,
       a.EXIT_TEMP,
       a.BED_RHYTHM,
       a.ROLLER_SPEED,
       a.MOTOR_TORQUE,
       TO_CHAR(a.START_TIME, 'YYYY-MM-DD HH24:MI:SS') START_TIME,
       TO_CHAR(a.END_TIME, 'YYYY-MM-DD HH24:MI:SS') END_TIME,
       a.EXECUTIVE_PRODUCER,
       TO_CHAR(a.PRODUCER_TIME, 'YYYY-MM-DD HH24:MI:SS') PRODUCER_TIME,
       a.PRODUCER_TEL,
       a.NODE_FUR_FLAG,
       a.REMARK,
       a.COL_MODE,
       TO_CHAR(a.COL_TIME, 'YYYY-MM-DD HH24:MI:SS') COL_TIME,
       a.COL_USER,
       a.COL_SHIFT,
       a.COL_GROUP,
       a.PIPE_SIZE,
       a.CHANGE_NUM,
       B.TUBESIZE,
       a.BEGIN_ROLLING_TEMP,
       a.EXIT_TEMP2,
       a.EXIT_TEMP3
  FROM MIL_SIZING_RESULT a, Mil_Rolling_Result B
 WHERE A.JUDGE_STOVE_NO = b.JUDGE_STOVE_NO(+)
   AND A.JUDGE_STOVE_NO = ?
   AND A.PRO_PLAN_ID  || '&' LIKE '%' || ? || '%'
   AND A.GX_PLAN_NO  || '&' LIKE '%' || ? || '%'
        ]]>
	</query>
<query id="SizingResult.getReFurResult" desc="查询上一道工序的结炉状态">
<![CDATA[
select NODE_FUR_FLAG
  FROM MIL_REFUR_RESULT
 WHERE JUDGE_STOVE_NO = ?
   AND PRO_PLAN_ID  || '&' LIKE '%' || ? || '%'
   AND GX_PLAN_NO  || '&' LIKE '%' || ? || '%'
   ]]>
</query>
<query id="SizingResult.getReFurResult1" desc="查询上一道工序的结炉状态">
<![CDATA[
 select NODE_FUR_FLAG
  FROM MIL_ROLLING_RESULT
 WHERE JUDGE_STOVE_NO = ?
   AND PRO_PLAN_ID  || '&' LIKE '%' || ? || '%'
   AND GX_PLAN_NO  || '&' LIKE '%' || ? || '%'
   ]]>
</query>
	<query id="SizingResult.UpdateMainPlanNodeStatue" desc="修改主计划结炉状态">
    <![CDATA[
        update MIL_PLAN t
   set t.NODE_STATUS = '#STATUS#', T.STATUS = '#STATUS#'
 where t.JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#'
   AND NVL(T.PRO_PLAN_ID,'/') = NVL('#PRO_PLAN_ID#','/')
   AND NVL(T.GX_PLAN_NO,'/') = NVL('#GX_PLAN_NO#','/')
        ]]>
	</query>
	
	<query id="SizingResult.AddSizingResult" desc="新增定径实绩">
    <![CDATA[
      INSERT INTO MIL_SIZING_RESULT
  (JUDGE_STOVE_NO,
   PLINE_CODE,
   HOST_ELE_SPEED1,
   HOST_ELE_SPEED2,
   HOST_ELE_SPEED3,
   HOST_ELE_SPEED4,
   HOST_ELE_SPEED5,
   HOST_ELE_SPEED6,
   HOST_ELE_SPEED7,
   HOST_ELE_SPEED8,
   HOST_ELE_SPEED9,
   HOST_ELE_SPEED10,
   HOST_ELE_SPEED11,
   HOST_ELE_SPEED12,
   FOLD_ELE_SPEED1,
   FOLD_ELE_SPEED2,
   FOLD_ELE_SPEED3,
   PASS_SERIES,
   FINISH_ROLL_NUM,
   RACK_NO,
   PIPE_DIAMETER,
   PIPE_THICKNESS,
   PIPE_LENGTH,
   ENTRANCE_SPEED,
   DESCALING_WATER_PRESS,
   PRODUCT_SIZE,
   EXIT_SPEED,
   COOLING_WATER_PRESS,
   ENTRANCE_TEMP,
   EXIT_TEMP,
   BED_RHYTHM,
   ROLLER_SPEED,
   MOTOR_TORQUE,
   START_TIME,
   EXECUTIVE_PRODUCER,
   PRODUCER_TIME,
   PRODUCER_TEL,
   REMARK,
   COL_MODE,
   COL_TIME,
   COL_USER,
   COL_SHIFT,
   COL_GROUP,
   CHANGE_NUM,
   PIPE_SIZE,
   RESULT_NO,
   LOT_NO,
   STOVE_NO,
   BEGIN_ROLLING_TEMP,
   PRO_PLAN_ID,
   GX_PLAN_NO)
VALUES
  ('#JUDGE_STOVE_NO#',
   '#PLINE_CODE#',
   '#HOST_ELE_SPEED1#',
   '#HOST_ELE_SPEED2#',
   '#HOST_ELE_SPEED3#',
   '#HOST_ELE_SPEED4#',
   '#HOST_ELE_SPEED5#',
   '#HOST_ELE_SPEED6#',
   '#HOST_ELE_SPEED7#',
   '#HOST_ELE_SPEED8#',
   '#HOST_ELE_SPEED9#',
   '#HOST_ELE_SPEED10#',
   '#HOST_ELE_SPEED11#',
   '#HOST_ELE_SPEED12#',
   '#FOLD_ELE_SPEED1#',
   '#FOLD_ELE_SPEED2#',
   '#FOLD_ELE_SPEED3#',
   '#PASS_SERIES#',
   '#FINISH_ROLL_NUM#',
   '#RACK_NO#',
   '#PIPE_DIAMETER#',
   '#PIPE_THICKNESS#',
   '#PIPE_LENGTH#',
   '#ENTRANCE_SPEED#',
   '#DESCALING_WATER_PRESS#',
   '#PRODUCT_SIZE#',
   '#EXIT_SPEED#',
   '#COOLING_WATER_PRESS#',
   '#ENTRANCE_TEMP#',
   '#EXIT_TEMP#',
   '#BED_RHYTHM#',
   '#ROLLER_SPEED#',
   '#MOTOR_TORQUE#',
   SYSDATE,
   '#EXECUTIVE_PRODUCER#',
   SYSDATE,
   '#PRODUCER_TEL#',
   '#REMARK#',
   '#COL_MODE#',
   SYSDATE,
   '#COL_USER#',
   '#COL_SHIFT#',
   '#COL_GROUP#',
   '#CHANGE_NUM#',
   '#PIPE_SIZE#',
   '#RESULT_NO#',
   '#LOT_NO#',
   '#STOVE_NO#',
   '#BEGIN_ROLLING_TEMP#',
   '#PRO_PLAN_ID#',
   '#GX_PLAN_NO#')
        ]]>
	</query>
	
	
	<query id="SizingResult.UpdateMainPlanStatue" desc="修改主计划开始状态">
    <![CDATA[
        update MIL_PLAN t set t.STATUS ='#STATUS#'
        where t.JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#' 
     AND NVL(PRO_PLAN_ID, '/') = NVL('#PRO_PLAN_ID#', '/')
     AND NVL(GX_PLAN_NO, '/') = NVL('#GX_PLAN_NO#', '/')    
        ]]>
	</query>

	<query id="SizingResult.UpdateSizingResult" desc="保存定径实绩信息">
    <![CDATA[
       UPDATE MIL_SIZING_RESULT
   SET ENTRANCE_SPEED     = '#ENTRANCE_SPEED#',
       EXIT_SPEED         = '#EXIT_SPEED#',
       ENTRANCE_TEMP      = '#ENTRANCE_TEMP#',
       PRODUCT_SIZE       = '#PRODUCT_SIZE#',
       EXIT_TEMP          = '#EXIT_TEMP#',
       BED_RHYTHM         = '#BED_RHYTHM#',
       RACK_NO            = '#RACK_NO#',
       HOST_ELE_SPEED1    = '#HOST_ELE_SPEED1#',
       HOST_ELE_SPEED2    = '#HOST_ELE_SPEED2#',
       HOST_ELE_SPEED3    = '#HOST_ELE_SPEED3#',
       HOST_ELE_SPEED4    = '#HOST_ELE_SPEED4#',
       HOST_ELE_SPEED5    = '#HOST_ELE_SPEED5#',
       HOST_ELE_SPEED6    = '#HOST_ELE_SPEED6#',
       HOST_ELE_SPEED7    = '#HOST_ELE_SPEED7#',
       HOST_ELE_SPEED8    = '#HOST_ELE_SPEED8#',
       HOST_ELE_SPEED9    = '#HOST_ELE_SPEED9#',
       HOST_ELE_SPEED10   = '#HOST_ELE_SPEED10#',
       HOST_ELE_SPEED11   = '#HOST_ELE_SPEED11#',
       HOST_ELE_SPEED12   = '#HOST_ELE_SPEED12#',
       REMARK             = '#REMARK#',
       PIPE_SIZE          = '#PIPE_SIZE#',
       PASS_SERIES        = '#PASS_SERIES#',
       FINISH_ROLL_NUM    = '#FINISH_ROLL_NUM#',
       FOLD_ELE_SPEED1    = '#FOLD_ELE_SPEED1#',
       FOLD_ELE_SPEED2    = '#FOLD_ELE_SPEED2#',
       FOLD_ELE_SPEED3    = '#FOLD_ELE_SPEED3#',
       BEGIN_ROLLING_TEMP = '#BEGIN_ROLLING_TEMP#',
       START_TIME         = to_date('#START_TIME#', 'yyyy-mm-dd hh24:mi:ss'),
       END_TIME           = to_date('#END_TIME#', 'yyyy-mm-dd hh24:mi:ss'),
       EXIT_TEMP2='#EXIT_TEMP2#',
       EXIT_TEMP3='#EXIT_TEMP3#'
 WHERE JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#'
   AND NVL(PRO_PLAN_ID, '/') = NVL('#PRO_PLAN_ID#', '/')
   AND NVL(GX_PLAN_NO, '/') = NVL('#GX_PLAN_NO#', '/')
        ]]>
	</query>
		<query id="SizingResult.SaveRackEndTime" desc="保存跟踪表结炉时间">
    <![CDATA[
        update MIL_SIZING_RACK
   set END_SIZING_TIME = to_date('#END_TIME#', 'yyyy-mm-dd hh24:mi:ss')
 where JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#'
   AND NVL(PRO_PLAN_ID,'/') = NVL('#PRO_PLAN_ID#','/')
   AND NVL(GX_PLAN_NO,'/') = NVL('#GX_PLAN_NO#','/')
   AND END_SIZING_TIME =
       (SELECT MAX(END_SIZING_TIME)
          FROM MIL_SIZING_RACK
         WHERE JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#'
           AND NVL(PRO_PLAN_ID,'/') = NVL('#PRO_PLAN_ID#','/')
           AND NVL(GX_PLAN_NO,'/') = NVL('#GX_PLAN_NO#','/'))
      ]]>
	</query>
	
	<query id="SizingResult.SaveQcmExitTemp" desc="修改判定表终轧温度">
    <![CDATA[
       UPDATE QCM_ZG_JUGDE_APPLY T
   SET T.EXIT_TEMP = '#EXIT_TEMP#'
 WHERE T.PROCESS_CODE = 'D'
   AND T.JUDGE_STOVE_NO = REGEXP_REPLACE('#JUDGE_STOVE_NO#', '-.*', '')
      ]]>
	</query>
	
	<query id="SizingResult.SaveZbsExitTemp" desc="修改质保书终轧温度">
    <![CDATA[
       UPDATE QCM_ZBS_CRAFT_RESULT T
   SET T.EXIT_TEMP = '#EXIT_TEMP#'
 WHERE T.PROCESS_CODE = 'D'
   AND T.ZBS_ID IN
       (SELECT A.ZBS_ID
          FROM QCM_ZBS_INFO A
         WHERE A.JUDGE_STOVE_NO = REGEXP_REPLACE('#JUDGE_STOVE_NO#', '-.*', ''))
      ]]>
	</query>
		<query id="SizingResult.UpdateSizingResultForNode" desc="保存定径实绩信息">
    <![CDATA[
       UPDATE MIL_SIZING_RESULT
   SET PRODUCT_NUM        = '#PRODUCT_NUM#',
       SCRAP_NUM          = '#SCRAP_NUM#',
       ENTRANCE_SPEED     = '#ENTRANCE_SPEED#',
       CHANGE_NUM         = '#CHANGE_NUM#',
       EXIT_SPEED         = '#EXIT_SPEED#',
       ENTRANCE_TEMP      = '#ENTRANCE_TEMP#',
       PRODUCT_SIZE       = '#PRODUCT_SIZE#',
       EXIT_TEMP          = '#EXIT_TEMP#',
       BED_RHYTHM         = '#BED_RHYTHM#',
       RACK_NO            = '#RACK_NO#',
       HOST_ELE_SPEED1    = '#HOST_ELE_SPEED1#',
       HOST_ELE_SPEED2    = '#HOST_ELE_SPEED2#',
       HOST_ELE_SPEED3    = '#HOST_ELE_SPEED3#',
       HOST_ELE_SPEED4    = '#HOST_ELE_SPEED4#',
       HOST_ELE_SPEED5    = '#HOST_ELE_SPEED5#',
       HOST_ELE_SPEED6    = '#HOST_ELE_SPEED6#',
       HOST_ELE_SPEED7    = '#HOST_ELE_SPEED7#',
       HOST_ELE_SPEED8    = '#HOST_ELE_SPEED8#',
       HOST_ELE_SPEED9    = '#HOST_ELE_SPEED9#',
       HOST_ELE_SPEED10   = '#HOST_ELE_SPEED10#',
       HOST_ELE_SPEED11    = '#HOST_ELE_SPEED11#',
       HOST_ELE_SPEED12    = '#HOST_ELE_SPEED12#',
       REMARK             = '#REMARK#',
       PIPE_SIZE          = '#PIPE_SIZE#',
       PASS_SERIES        = '#PASS_SERIES#',
       FINISH_ROLL_NUM    = '#FINISH_ROLL_NUM#',
       FOLD_ELE_SPEED1    = '#FOLD_ELE_SPEED1#',
       FOLD_ELE_SPEED2    = '#FOLD_ELE_SPEED2#',
       FOLD_ELE_SPEED3    = '#FOLD_ELE_SPEED3#',
       BEGIN_ROLLING_TEMP = '#BEGIN_ROLLING_TEMP#',
       NODE_FUR_FLAG      = '#NODE_FUR_FLAG#',
       START_TIME         = to_date('#START_TIME#', 'yyyy-mm-dd hh24:mi:ss'),
       USER_ID            = '#USER_ID#',
       QA_TON             = '#QA_TON#'
 WHERE JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#'
   AND NVL(PRO_PLAN_ID,'/') = NVL('#PRO_PLAN_ID#','/')
   AND NVL(GX_PLAN_NO,'/') = NVL('#GX_PLAN_NO#','/')
        ]]>
	</query>
	
	<query id = "SizingResult.UpdateSizingRack" desc = "修改班次班组 结束时间">
<![CDATA[
      	 UPDATE MIL_SIZING_RACK
   SET COL_SHIFT       = '#COL_SHIFT#',
       COL_GROUP       = '#COL_GROUP#',
       COL_USER        = '#COL_USER#',
       END_SIZING_TIME = SYSDATE
 WHERE JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#'
   AND NVL(PRO_PLAN_ID,'/') = NVL('#PRO_PLAN_ID#','/')
   AND NVL(GX_PLAN_NO,'/') = NVL('#GX_PLAN_NO#','/')
   AND COL_SHIFT IS NULL
   AND COL_GROUP IS NULL
   AND END_SIZING_TIME IS NULL
   and mat_no is not null
        ]]>
</query>

<query id = "SizingResult.UpdateSizingRackEndTime" desc = "交接班时上个班的结束时间为空时，补齐时间">
<![CDATA[
      	update mil_sizing_rack t
   set t.end_sizing_time =
       (select max(m.start_sizing_time)
          from mil_sizing_rack m
         where m.judge_stove_no = t.judge_stove_no
           AND NVL(M.PRO_PLAN_ID,'/') = NVL(T.PRO_PLAN_ID,'/')
           AND NVL(M.GX_PLAN_NO,'/') = NVL(T.GX_PLAN_NO,'/'))
 where t.end_sizing_time is null
   and T.MAT_NO IS NOT NULL
   and t.start_sizing_time is not null
   AND T.JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#'
   AND NVL(T.PRO_PLAN_ID,'/') = NVL('#PRO_PLAN_ID#','/')
   AND NVL(T.GX_PLAN_NO,'/') = NVL('#GX_PLAN_NO#','/')
        ]]>
</query>
	
		<query id="SizingResult.UpdateSizingStatue" desc="修改定径管状态">
        <![CDATA[
         UPDATE MIL_SIZING_RACK
   SET STATUS       = '1',
       SCRAP_LOC    = '#FEED_ROW_NO#',
       SCRAP_REASON = '#SCRAP_REASON#',
       SCRAP_TIME   = SYSDATE
 WHERE SEQ = '#SEQ#'
   AND JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#'
   AND NVL(PRO_PLAN_ID,'/') = NVL('#PRO_PLAN_ID#','/')
   AND NVL(GX_PLAN_NO,'/') = NVL('#GX_PLAN_NO#','/')
        ]]>
	</query>
	
	<query id="SizingResult.UpdateSizingResultEndTime" desc="修改定径实绩表剔除支数">
        <![CDATA[
        UPDATE MIL_SIZING_RESULT
   SET NODE_FUR_FLAG = '1',
       END_TIME      = SYSDATE,
       COL_SHIFT     = '#COL_SHIFT#',
       COL_GROUP     = '#COL_GROUP#',
       COL_USER      = '#COL_USER#'
 WHERE JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#'
   AND NVL(PRO_PLAN_ID,'/') = NVL('#PRO_PLAN_ID#','/')
   AND NVL(GX_PLAN_NO,'/') = NVL('#GX_PLAN_NO#','/')
        ]]>
	</query>
	
	<query id="SizingResult.UpdateSizingScrapNum" desc="修改定径绩表剔除支数">
        <![CDATA[
        UPDATE MIL_SIZING_RESULT
   SET SCRAP_NUM = SCRAP_NUM + 1, PRODUCT_NUM = PRODUCT_NUM - 1
 WHERE JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#'
   AND NVL(PRO_PLAN_ID,'/') = NVL('#PRO_PLAN_ID#','/')
   AND NVL(GX_PLAN_NO,'/') = NVL('#GX_PLAN_NO#','/')
        ]]>
	</query>
	
	
	
	

	
	
	<query id="SizingResult.UpdateFurHistory" desc="修改加热炉历史表管坯状态">
        <![CDATA[
         UPDATE MIL_FUR_HISTORY
   		SET 
        STATUS = '1'
 		WHERE
		SEQ = ?  
		AND  
		JUDGE_STOVE_NO = ?
        ]]>
	</query>
	
	<query id="SizingResult.SizingRackSeqQuery" desc="管号队列查询">
        <![CDATA[
     SELECT 
       SEQ,
       MAT_NO,
       LOT_NO,
       STOVE_NO,
       JUDGE_STOVE_NO,
       STEELCODE,
       STEELNAME,
       GRADECODE,
       GRADENAME,
       PLINE_CODE,
       '定径前剔除' SCRAP_DBNUM,
       '定径后剔除' SCRAP_AFTER,
       '剔料回退' DELBACK,
       CASE STATUS 
       WHEN '0' THEN '正常轧制'
       WHEN '1' THEN '剔除' END
       AS STATUS,
       TO_CHAR(START_SIZING_TIME, 'YYYY-MM-DD HH24:MI:SS') START_SIZING_TIME,
       TO_CHAR(END_SIZING_TIME, 'YYYY-MM-DD HH24:MI:SS') END_SIZING_TIME,
       TO_CHAR(SCRAP_TIME, 'YYYY-MM-DD HH24:MI:SS') SCRAP_TIME,
       SCRAP_REASON,
       START_SIZING_TEMP,
       END_SIZING_TEMP,
       PIPE_DIAMETER,
       PIPE_THICKNESS,
       PIPE_LENGTH,
       FINISH_ROLL_TEMP,
       TO_CHAR(CBED_TIME, 'YYYY-MM-DD HH24:MI:SS') CBED_TIME,
       GROUP_FLAG,
       BEFORE_HEAT_NO,
       BEFORE_MAT_NO,
       REMARK,
       COL_MODE,
       TO_CHAR(COL_TIME, 'YYYY-MM-DD HH24:MI:SS') COL_TIME,
       COL_USER,
       case COL_SHIFT 
       WHEN '0' THEN '常白班'
       WHEN '1' THEN '早班'
       WHEN '2' THEN '中班'
       WHEN '3' THEN '夜班'
                end as COL_SHIFT,
       case COL_GROUP
       WHEN '1' THEN '甲'
       WHEN '2' THEN '乙'
       WHEN '3' THEN '丙'
       WHEN '4' THEN '丁'
               end as COL_GROUP,
               '交班' CHANGE_NUM,
            case   SCRAP_LOC 
                WHEN '0' THEN ''
       WHEN '1' THEN '定径前剔除' 
         WHEN '2' THEN '定径后剔除' 
       END  AS SCRAP_LOC,
       	'接班确认' BTNCHANGECOM,
	CASE CHANGE_FLAG
	   WHEN '1' THEN '确认交班'
       WHEN '2' THEN '待接班确认'
	END AS CHANGE_FLAG
 FROM MIL_SIZING_RACK
 WHERE
 JUDGE_STOVE_NO = ?    
 order by  status ,SEQ
        ]]>
	</query>
	<query id="SizingResult.GetSizingResultNodeQuery" desc="结炉实绩查询">
	SELECT 
	a.JUDGE_STOVE_NO,
	a.LOT_NO,
	a.SCRAP_NUM,
	a.PRODUCT_NUM,
	TO_CHAR(a.START_TIME, 'YYYY-MM-DD HH24:MI:SS') START_TIME,
    TO_CHAR(a.END_TIME, 'YYYY-MM-DD HH24:MI:SS') END_TIME,
	a.REMARK,
	a.CHANGE_NUM,
	a.qa_ton
	FROM MIL_SIZING_RESULT a
	WHERE 
	1=1
	AND PLINE_CODE=?
    AND COL_SHIFT=?
    AND COL_GROUP=?
    AND END_TIME BETWEEN TO_DATE(?,'YYYY-MM-DD HH24:MI:SS') AND TO_DATE(?,'YYYY-MM-DD HH24:MI:SS')
    AND NODE_FUR_FLAG='1'
	
		order by a.end_time
	
	</query>
	</queryMap>