<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="热处理炉计划">

	<query id="FrmPlanStoveF.queryPlanStoveME" desc="查询热处理虚拟炉计划">
            <![CDATA[
SELECT T.HEAT_PLAN_NO,
       S.GX_PRO_SEQ,
       T.STOVE_NO,
       T.JUDGE_STOVE_NO,
       DECODE(T.PLANSTATUS,
              '00',
              '计划',
              '10',
              '下发',
              '20',
              '生产中',
              '30',
              '生产完成',
              '40',
              '关闭') PLANSTATUS,
       DECODE(T.IS_CLOSE,'0','自动','1','手动','/')  IS_CLOSE,    
       DECODE(T.PER_STATUS,
              '00',
              '上料开始',
              '10',
              '高温开始',
              '20',
              '淬火开始',
              '30',
              '低温开始',
              '40',
              '定径开始',
              '50',
              '热矫开始',
              '60',
              '冷矫开始',
              '70',
              '检验开始',
              '80',
              '探伤开始',
              '90',
              '交库开始','/') PER_STATUS,
       DECODE(T.BESIDE_STATUS,
              '00',
              '上料结束',
              '10',
              '高温结束',
              '20',
              '淬火结束',
              '30',
              '低温结束',
              '40',
              '定径结束',
              '50',
              '热矫结束',
              '60',
              '冷矫结束',
              '70',
              '检验结束',
              '80',
              '探伤结束',
              '90',
              '交库结束','/') BESIDE_STATUS,
       T.UPPER_HEATPLAN_ID,
       T.PRO_PLAN_ID,
       T.GX_PLAN_NO,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.PROCESS_CODE_C,
       T.PROCESS_DESC_C,
       T.UPPER_PROCESS_CODE,
       T.NEXT_PROCESS_CODE,
       T.GOWHERE_CODE,
       T.GOWHERE_NAME,
       T.PROD_STANDARD,
       T.OUTPUT_STANDARD,
       DECODE(T.ISENDGX, '1', '是', '/') ISENDGX,
       DECODE(T.IF_MATCH_ODD, '1', '利库计划','2','组炉计划','3','精整利库','4','精整返线计划','6','本工序精整利库','正常计划') IF_MATCH_ODD,
       DECODE(T.IF_DO_HEAT_PLAN, '1', '有', '无') IF_DO_HEAT_PLAN,
       T.ORDER_SOURCE,
       T.ORD_LN_DLY_PK,
       T.ORDER_NO || '/' || T.ORDER_SEQ ORDER_NO,
       T.ORDER_SEQ,
       T.DELIVERY_NO,
       T.REQ_BL_ID,
       T.IF_EXPORT,
       T.PRIORITY,
       T.PRIORITY_MEMO,
       T.PRO_MONTH,
       TO_CHAR(TO_DATE(T.PRO_DAY, 'YYYY-MM-DD'), 'YYYY-MM-DD') PRO_DAY,
       TO_CHAR(TO_DATE(T.BAL_YEAR_MONTH, 'YYYY-MM'), 'YYYY-MM') BAL_YEAR_MONTH,
       DECODE(T.IF_MONITOR, '1', '是', '/') IF_MONITOR,
       T.PRDCR_NO,
       T.MONITOR_POINT,
       T.BOM,
       T.WHOLE_BACKLOG,
       T.WHOLE_BACKLOG_DESC,
       T.STATION_ROAD,
       T.CIC,
       T.PIC,
       T.SIC,
       T.DIC,
       T.CRAFT_FILE_NO,
       T.CRAFT_FILE_MAN,
       T.CRAFT_SEQ,
       T.SEC_CRAFT_FILE_NO,
       T.GRADECODE,
       T.GRADENAME,
       T.STEELCODE,
       T.STEELNAME,
       T.PRODUCCODE,
       T.PRODUCNAME,
       T.MODEL_CODE,
       T.MODEL_DESC,
       T.INWL_ID,
       T.INWL_DESC,
       T.OUTWL_ID,
       T.OUTWL_DESC,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.LENGTHMIN,
       T.LENGTHMAX,
       T.OUTDIAMETER_IN,
       T.WALLTHICK_IN,
       T.LENGTH_IN,
       T.LENGTHMAX_IN,
       T.LENGTHMIN_IN,
       T.OUTNUM_CUT,
       T.PLN_INSINGLE_NUM,
       T.PLN_INSINGLE_WT,
       T.PLN_INDOUBLE_NUM,
       T.PLN_INDOUBLE_WT,
       T.PLN_OUTSINGLE_NUM,
       T.PLN_OUTSINGLE_W,
       T.PLN_OUTDOUBLE_NUM,
       T.PLN_OUTDOUBLE_W,
       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,
       T.DOWNMAN,
       TO_CHAR(T.DOWNTIME, 'YYYY-MM-DD HH24:MI:SS') DOWNTIME,
       T.INDEX_SEQ,
       S.PLN_DIVIDE_ID,
       S.ZY_BATCH_ID, T.DECISION,
        CASE WHEN T.UPPER_PROCESS_CODE='D' THEN
       (SELECT MAX(DECODE(Z.PLANSTATUS,'00','计划','10','下发','20','生产中','30','生产完成','40','关闭')) FROM PLN_ZY_ZG_M Z WHERE Z.Heat_Plan_No=T.Upper_Heatplan_Id) 
       WHEN T.UPPER_PROCESS_CODE='E' THEN 
          (SELECT MAX(DECODE(Z.PLANSTATUS,'00','计划','10','下发','20','生产中','30','生产完成','40','关闭')) FROM PLN_ZY_DBK_M Z WHERE Z.Heat_Plan_No=T.Upper_Heatplan_Id) 
          ELSE
           ''
           END PLANSTATUS_GX,
           T.PROCESS_SEQ,
           T.FEED_HEAT_NO,
           T.FLAG_STOVE_NO,T.MEMO,T.ZY_BATCH_ID_ZG,nvl(T.REAL_PROCESS_SEQ,0) REAL_PROCESS_SEQ,T.LOT_NO_GROUP,T.LOT_NO_SQE,
           DECODE(T.IS_LOAD_FLAG,'1','是','否')IS_LOAD_FLAG,
           DECODE(T.IS_WEIGHT_FLAG,'0','否','1','是')IS_WEIGHT_FLAG
  FROM PLN_ZY_RCL_M T, PLN_ORDER_RCL_S S
 WHERE T.PRO_PLAN_ID = S.PRO_PLAN_ID
   AND T.GX_PLAN_NO = S.GX_PLAN_NO
 ]]>
	</query>

	<query id="FrmPlanStoveF.queryPlanStoveReadyE" desc="查询热处理实际炉计划">
            <![CDATA[ SELECT T.HEAT_PLAN_NO,
       T.GX_PRO_SEQ,
       CASE
         WHEN T.ZY_BATCH_ID IS NULL THEN
          (SELECT S.ZY_BATCH_ID
             FROM PLN_ORDER_RCL_S S
            WHERE S.PRO_PLAN_ID = T.PRO_PLAN_ID
              AND S.GX_PLAN_NO = T.GX_PLAN_NO)
         ELSE
          T.ZY_BATCH_ID
       END ZY_BATCH_ID,
       T.STOVE_NO,
       T.JUDGE_STOVE_NO,
       DECODE(T.PLANSTATUS,'00','计划','10','下发','20','生产中','30','生产完成','40','关闭') PLANSTATUS,
       DECODE(T.IS_CLOSE,'0','自动','1','手动','/')  IS_CLOSE,
       DECODE(T.PER_STATUS,
              '00',
              '上料开始',
              '10',
              '高温开始',
              '20',
              '淬火开始',
              '30',
              '低温开始',
              '40',
              '定径开始',
              '50',
              '热矫开始',
              '60',
              '冷矫开始',
              '70',
              '检验开始',
              '80',
              '探伤开始',
              '90',
              '交库开始','/') PER_STATUS,
       DECODE(T.BESIDE_STATUS,
              '00',
              '上料结束',
              '10',
              '高温结束',
              '20',
              '淬火结束',
              '30',
              '低温结束',
              '40',
              '定径结束',
              '50',
              '热矫结束',
              '60',
              '冷矫结束',
              '70',
              '检验结束',
              '80',
              '探伤结束',
              '90',
              '交库结束','/') BESIDE_STATUS,
       T.UPPER_HEATPLAN_ID,
       T.PRO_PLAN_ID,
       T.GX_PLAN_NO,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.PROCESS_CODE_C,
       T.PROCESS_DESC_C,
       T.UPPER_PROCESS_CODE,
       T.NEXT_PROCESS_CODE,
       T.GOWHERE_CODE,
       T.GOWHERE_NAME,
       T.PROD_STANDARD,
       T.OUTPUT_STANDARD,
       DECODE(T.ISENDGX,'1','是','/') ISENDGX,
      DECODE(T.IF_MATCH_ODD, '1', '利库计划','2','组炉计划','3','精整利库','4','精整返线计划', '6','本工序精整利库','正常计划') IF_MATCH_ODD,
        DECODE(T.IF_DO_HEAT_PLAN,'1','有','无') IF_DO_HEAT_PLAN,
       T.ORDER_SOURCE,
       T.ORD_LN_DLY_PK,
      T.ORDER_NO || '/' || T.ORDER_SEQ ORDER_NO,
       T.ORDER_SEQ,
       T.DELIVERY_NO,
       T.REQ_BL_ID,
       T.IF_EXPORT,
       T.PRIORITY,
       T.PRIORITY_MEMO,
       T.PRO_MONTH,
       TO_CHAR(TO_DATE(T.PRO_DAY, 'YYYY-MM-DD'), 'YYYY-MM-DD') PRO_DAY,
       TO_CHAR(TO_DATE(T.BAL_YEAR_MONTH, 'YYYY-MM'), 'YYYY-MM') BAL_YEAR_MONTH,
       DECODE(T.IF_MONITOR,'1','是','/') IF_MONITOR,
       T.PRDCR_NO,
       T.MONITOR_POINT,
       T.BOM,
       T.WHOLE_BACKLOG,
       T.WHOLE_BACKLOG_DESC,
       T.STATION_ROAD,
       T.CIC,
       T.PIC,
       T.SIC,
       T.DIC,
       T.CRAFT_FILE_NO,
       T.CRAFT_FILE_MAN,
       T.CRAFT_SEQ,
       T.SEC_CRAFT_FILE_NO,
       T.GRADECODE,
       T.GRADENAME,
       T.STEELCODE,
       T.STEELNAME,
       T.PRODUCCODE,
       T.PRODUCNAME,
       T.MODEL_CODE,
       T.MODEL_DESC,
       T.INWL_ID,
       T.INWL_DESC,
       T.OUTWL_ID,
       T.OUTWL_DESC,
       T.OUTDIAMETER_IN,
       T.WALLTHICK_IN,
       T.LENGTH_IN,
       T.LENGTHMAX_IN,
       T.LENGTHMIN_IN,
       T.OUTNUM_CUT,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.LENGTHMIN,
       T.LENGTHMAX,
       NVL(T.PLN_INSINGLE_NUM,0) PLN_INSINGLE_NUM,
       NVL(T.PLN_INSINGLE_WT,0) PLN_INSINGLE_WT,
       NVL(T.PLN_INDOUBLE_NUM,0) PLN_INDOUBLE_NUM,
       NVL(T.PLN_INDOUBLE_WT,0) PLN_INDOUBLE_WT,
       NVL(T.PLN_OUTSINGLE_NUM,0) PLN_OUTSINGLE_NUM,
       NVL(T.PLN_OUTSINGLE_W,0) PLN_OUTSINGLE_W,
       NVL(T.PLN_OUTDOUBLE_NUM,0) PLN_OUTDOUBLE_NUM,
       NVL(T.PLN_OUTDOUBLE_W,0) PLN_OUTDOUBLE_W,
       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,
       T.DOWNMAN,
       TO_CHAR(T.DOWNTIME, 'YYYY-MM-DD HH24:MI:SS') DOWNTIME,
       T.INDEX_SEQ,  
       T1.HEAT_PLAN_SQE,
       T1.BATCH_NO,
       T1.BATCH_GROUD_NO,
       T1.JUGDE_APPLY_CODE,     
       T1.PLAN_INDOUBLE_NUM,
       T1.PLAN_INDOUBLE_WT,
       T1.REAL_INDOUBLE_NUM,
       T1.REAL_INDOUBLE_WT,
       T1.REAL_OUTDOUBLE_NUM,
       T1.REAL_OUTDOUBLE_WT,
       T.DECISION,
        CASE WHEN T.UPPER_PROCESS_CODE='D' THEN
       (SELECT MAX(DECODE(Z.PLANSTATUS,'00','计划','10','下发','20','生产中','30','生产完成','40','关闭')) FROM PLN_ZY_ZG_M Z WHERE Z.Heat_Plan_No=T.Upper_Heatplan_Id) 
       WHEN T.UPPER_PROCESS_CODE='E' THEN 
          (SELECT MAX(DECODE(Z.PLANSTATUS,'00','计划','10','下发','20','生产中','30','生产完成','40','关闭')) FROM PLN_ZY_DBK_M Z WHERE Z.Heat_Plan_No=T.Upper_Heatplan_Id) 
          ELSE
           ''
           END PLANSTATUS_GX,
           (SELECT NVL(SUM(M.ACT_COUNT), 0)
          FROM MAT_BC_M M
         WHERE M.JUDGE_STOVE_NO = T1.FEED_HEAT_NO
           AND NVL(M.JUGDE_APPLY_CODE, '/') = NVL(T1.JUGDE_APPLY_CODE, '/')
           AND M.HEAT_PLAN_NO_NEXT = T.HEAT_PLAN_NO
           AND M.BATCH_NO= T1.BATCH_NO
           AND M.BATCH_GROUD_NO = T1.BATCH_GROUD_NO
           AND M.MAT_STATUS = '80150103'
            AND M.NEXT_PROCESS_CDOE='F') ACT_COUNT,
             T.PROCESS_SEQ,
           T.FEED_HEAT_NO,nvl(T.REAL_PROCESS_SEQ,0) REAL_PROCESS_SEQ,
           T.FLAG_STOVE_NO,T.MEMO,T.ZY_BATCH_ID_ZG,T.LOT_NO_GROUP,T.LOT_NO_SQE,T.PRINT_NUMBER, TO_CHAR(T.PRINT_TIME, 'YYYY-MM-DD HH24:MI:SS')PRINT_TIME,
     (select GET_BUTTRESS(T1.FEED_HEAT_NO,T1.BATCH_NO,T1.BATCH_GROUD_NO,'F',T1.HEAT_PLAN_NO) from dual) Storage_No,
          (
	SELECT
		APPLY_DESC
	FROM
		QCM_PROBLEM_HANDLING
	WHERE
		JUDGE_STOVE_NO = T.FEED_HEAT_NO
		--AND ( BATCH_NO = '1' OR BATCH_NO = t1.BATCH_NO )
		--AND ( BATCH_GROUD_NO = '1' OR BATCH_GROUD_NO = t1.BATCH_GROUD_NO )
		AND PROCESS_CODE = 'F'
		AND ROWNUM = '1'
	) APPLY_DESC
  FROM PLN_ZY_RCL_M T,PLN_ZY_RCL_C T1
 WHERE T.HEAT_PLAN_NO=T1.HEAT_PLAN_NO(+)
              ]]>
	</query>
<query id="FrmPlanStoveF.addPlnMRcl" desc="新增热处理虚拟炉计划">
            <![CDATA[
             INSERT INTO PLN_ZY_RCL_M(
        HEAT_PLAN_NO,
        GX_PRO_SEQ,
        ZY_BATCH_ID,
        STOVE_NO,
        JUDGE_STOVE_NO,
        PLANSTATUS,
        UPPER_HEATPLAN_ID,
        PRO_PLAN_ID,
        GX_PLAN_NO,
        PLINE_CODE,
        PLINE_NAME,
        PROCESS_CODE_C,
        PROCESS_DESC_C,
        UPPER_PROCESS_CODE,
        NEXT_PROCESS_CODE,
        GOWHERE_CODE,
        GOWHERE_NAME,
        PROD_STANDARD,
        OUTPUT_STANDARD,
        ISENDGX,
        IF_MATCH_ODD,
        IF_DO_HEAT_PLAN,
        ORDER_SOURCE,
        ORD_LN_DLY_PK,
        ORDER_NO,
        ORDER_SEQ,
        DELIVERY_NO,
        REQ_BL_ID,
        IF_EXPORT,
        PRIORITY,
        PRIORITY_MEMO,
        PRO_MONTH,
        PRO_DAY,
        BAL_YEAR_MONTH,
        IF_MONITOR,
        PRDCR_NO,
        MONITOR_POINT,
        BOM,
        WHOLE_BACKLOG,
        WHOLE_BACKLOG_DESC,
        STATION_ROAD,
        CIC,
        PIC,
        SIC,
        DIC,
        CRAFT_FILE_NO,
        CRAFT_FILE_MAN,
        CRAFT_SEQ,
        SEC_CRAFT_FILE_NO,
        STEELCODE,
        STEELNAME,
        GRADECODE,
        GRADENAME,
        PRODUCCODE,
        PRODUCNAME,
        MODEL_CODE,
        MODEL_DESC,
        INWL_ID,
        INWL_DESC,
        OUTWL_ID,
        OUTWL_DESC,
        OUTDIAMETER,
        WALLTHICK,
        LENGTHMIN,
        LENGTHMAX,
        OUTDIAMETER_IN,
        WALLTHICK_IN,
        OUTNUM_CUT,
        LENGTH_IN,
        LENGTHMAX_IN,
        LENGTHMIN_IN,
        PLN_INSINGLE_NUM,
        PLN_INSINGLE_WT,
        PLN_INDOUBLE_NUM,
        PLN_INDOUBLE_WT,
        PLN_OUTSINGLE_NUM,
        PLN_OUTSINGLE_W,
        PLN_OUTDOUBLE_NUM,
        PLN_OUTDOUBLE_W,
        CREATE_NAME,
        CREATE_TIME,
        BATCH_NO,
        INDEX_SEQ,
        SPEC_CODE,
        SPEC_NAME,
        STD_CODE,
        STD_NAME,
        STD_STYLE,
        STD_STYLE_DESC,
        DECISION,
        PROCESS_SEQ,
        FEED_HEAT_NO,
        FLAG_STOVE_NO,
        MEMO,
        ZY_BATCH_ID_ZG,HEAT_PLAN_NO_OLD,LOT_NO_SQE,IF_PRODUCT)
 VALUES( 
        ?,
        '#GX_PRO_SEQ#',
        '#ZY_BATCH_ID#',
        '#STOVE_NO#',
        '#JUDGE_STOVE_NO#',
        '00',
        '#UPPER_HEATPLAN_ID#',
        '#PRO_PLAN_ID#',
        '#GX_PLAN_NO#',
        '#PLINE_CODE#',
        '#PLINE_NAME#',
        '#PROCESS_CODE_C#',
        '#PROCESS_DESC_C#',
        '#UPPER_PROCESS_CODE#',
        '#NEXT_PROCESS_CODE#',
        '#GOWHERE_CODE#',
        '#GOWHERE_NAME#',
        '#PROD_STANDARD#',
        '#OUTPUT_STANDARD#',
        '#ISENDGX#',
        '#IF_MATCH_ODD#',
        '#IF_DO_HEAT_PLAN#',
        '#ORDER_SOURCE#',
        '#ORD_LN_DLY_PK#',
        '#ORDER_NO#',
        '#ORDER_SEQ#',
        '#DELIVERY_NO#',
        '#REQ_BL_ID#',
        '#IF_EXPORT#',
        '#PRIORITY#',
        '#PRIORITY_MEMO#',
        '#PRO_MONTH#',
        '#PRO_DAY#',
        '#BAL_YEAR_MONTH#',
        '#IF_MONITOR#',
        '#PRDCR_NO#',
        '#MONITOR_POINT#',
        '#BOM#',
        '#WHOLE_BACKLOG#',
        '#WHOLE_BACKLOG_DESC#',
        '#STATION_ROAD#',
        '#CIC#',
        '#PIC#',
        '#SIC#',
        '#DIC#',
        '#CRAFT_FILE_NO#',
        '#CRAFT_FILE_MAN#',
        '#CRAFT_SEQ#',
        '#SEC_CRAFT_FILE_NO#',
        '#STEELCODE#',
        '#STEELNAME#',
        '#GRADECODE#',
        '#GRADENAME#',
        '#PRODUCCODE#',
        '#PRODUCNAME#',
        '#MODEL_CODE#',
        '#MODEL_DESC#',
        '#INWL_ID#',
        '#INWL_DESC#',
        '#OUTWL_ID#',
        '#OUTWL_DESC#',
        '#OUTDIAMETER#',
        '#WALLTHICK#',
        '#LENGTHMIN#',
        '#LENGTHMAX#',
        '#OUTDIAMETER_IN#',
        '#WALLTHICK_IN#',
        '#OUTNUM_CUT#',
        '#LENGTH_IN#',
        '#LENGTHMAX_IN#',
        '#LENGTHMIN_IN#',
        '#PLN_INSINGLE_NUM#',
        '#PLN_INSINGLE_WT#',
        '#PLN_INDOUBLE_NUM#',
        '#PLN_INDOUBLE_WT#',
        '#PLN_OUTSINGLE_NUM#',
        '#PLN_OUTSINGLE_W#',
        '#PLN_OUTDOUBLE_NUM#',
        '#PLN_OUTDOUBLE_W#',
        ?,
        SYSDATE,
        '#BATCH_NO#',
        '#INDEX_SEQ#',
        '#SPEC_CODE#',
        '#SPEC_NAME#',
        '#STD_CODE#',
        '#STD_NAME#',
        '#STD_STYLE#',
        '#STD_STYLE_DESC#',
        '#DECISION#',
        '#PROCESS_SEQ#',
        '#FEED_HEAT_NO#',
        '#FLAG_STOVE_NO#',
        '#MEMO#',
        '#ZY_BATCH_ID_ZG#','#HEAT_PLAN_NO_OLD#','#LOT_NO_SQE#','#IF_PRODUCT#')
             ]]>
	</query>
<query id="FrmPlanStoveF.addPlnCRcl" desc="新增热处理实际炉计划">
            <![CDATA[
             INSERT INTO PLN_ZY_RCL_C(
        HEAT_PLAN_NO,
        HEAT_PLAN_SQE,
        JUGDE_APPLY_CODE,
        ZY_BATCH_ID,
        STOVE_NO,
        JUDGE_STOVE_NO,
        BATCH_NO,
        BATCH_GROUD_NO,
        PRO_PLAN_ID,
        GX_PLAN_NO,
        PLINE_CODE,
        PLINE_NAME,
        OUTDIAMETER_IN,
        WALLTHICK_IN,
        OUTNUM_CUT,
        LENGTH_IN,
        LENGTHMAX_IN,
        LENGTHMIN_IN,
        PLAN_INDOUBLE_NUM,
        PLAN_INDOUBLE_WT,
        REAL_INDOUBLE_NUM,
        REAL_INDOUBLE_WT,
        REAL_OUTDOUBLE_NUM,
        REAL_OUTDOUBLE_WT,
        FEED_HEAT_NO,
        FLAG_STOVE_NO)
 VALUES( 
        ?,
        ?,
        '#JUGDE_APPLY_CODE#',
        '#ZY_BATCH_ID#',
        '#STOVE_NO#',
        '#JUDGE_STOVE_NO#',
        '#BATCH_NO#',
        '#BATCH_GROUD_NO#',
        '#PRO_PLAN_ID#',
        '#GX_PLAN_NO#',
        '#PLINE_CODE#',
        '#PLINE_NAME#',
        '#OUTDIAMETER_IN#',
        '#WALLTHICK_IN#',
        '#OUTNUM_CUT#',
        '#LENGTH_IN#',
        '#LENGTHMAX_IN#',
        '#LENGTHMIN_IN#',
        '#PLAN_INDOUBLE_NUM#',
        '#PLAN_INDOUBLE_WT#',
        '#REAL_INDOUBLE_NUM#',
        '#REAL_INDOUBLE_WT#',
        '#REAL_OUTDOUBLE_NUM#',
        '#REAL_OUTDOUBLE_WT#',
        '#FEED_HEAT_NO#',
        '#FLAG_STOVE_NO#')
             ]]>
	</query>
	<query id = "FrmPlanStoveF.updateGoWhere" desc = "修改物流去向">
		UPDATE PLN_ZY_RCL_M T
		SET T.GOWHERE_CODE = '#GOWHERE_CODE#', T.GOWHERE_NAME = '#GOWHERE_NAME#'
		WHERE T.HEAT_PLAN_NO = '#HEAT_PLAN_NO#'
	</query>
	<query id = "FrmPlanStoveF.updateLoadFlag" desc = "修改上料标识">
		UPDATE PLN_ZY_RCL_M T
		SET T.IS_LOAD_FLAG = '#IS_LOAD_FLAG#',
		T.IS_LOAD_USERNAME = '#IS_LOAD_USERNAME#',
		T.IS_LOAD_TIME = SYSDATE
		WHERE T.HEAT_PLAN_NO = '#HEAT_PLAN_NO#'
	</query>
	<query id = "FrmPlanStoveF.updateIsWeight" desc = "修改过磅标识">
		UPDATE PLN_ZY_RCL_M T
		SET T.IS_WEIGHT_FLAG = '#IS_WEIGHT_FLAG#'
		WHERE T.HEAT_PLAN_NO = '#HEAT_PLAN_NO#'
	</query>
</queryMap>