<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="镦拔扩冷拔冷轧实绩">
<query id="FrmColdingReport.GetQuery" desc="冷拔冷轧实绩">
        <![CDATA[
   SELECT T.RESULT_NO,
       T.HEAT_PLAN_NO,
       T.ZY_BATCH_ID,
       T.PRO_PLAN_ID,
       T.GX_PLAN_NO,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.ROLL_FAC_NO,
       M.JUDGE_STOVE_NO,
       M.FEED_HEAT_NO,
       T.DIMATER,
       T.HEIGHT,
       T.SIZ_DIMATER,
       T.SIZ_HEIGHT,
       T.TEC_TIM,
       T.W_DIMATER,
       T.W_HEIGHT,
       T.N_DIMATER,
       T.N_HEIGHT,
       T.ROLL_SPEED,
       T.ACT_LEN,
       T.SPE_MANDREL,
       T.SPE_ROLL,
       T.ROLL_GAP,
       T.SEND_NUM,
       T.TRIM_NUM,
       T.UP_POLE,
       T.P_POLE,
       T.PRO_NUM,
       T.PRO_WT,
       T.ACC_NUM,
       T.ACC_WT,
       T.ACC_LEN,
       T.FAIL_NUM,
       T.FAIL_WT,
       T.FAIL_REASON,
       T.OFFLINE_NUM,
       T.OFFLINE_WT,
       T.RE_NUM,
       T.RE_WT,
       T.MONITORDEMAND,
       T.BAL_YEAR_MONTH,
       DECODE(T.IF_MONITOR_DBK, '1', '是', '0', '否') IF_MONITOR_DBK,
       T.PRODUCER,
       T.PRDCR_NO,
       TO_CHAR(T.PRODUCER_TIME, 'YYYY-MM-DD HH24:MI:SS') PRODUCER_TIME,
       TO_CHAR(T.LOAD_TIME, 'YYYY-MM-DD HH24:MI:SS') LOAD_TIME,
       T.LOAD_SHIFT,
       T.LOAD_GROUP,
       T.LOAD_USER,
       T.COL_MODE,
       TO_CHAR(T.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
       TO_CHAR(T.UPDATE_TIME, 'YYYY-MM-DD HH24:MI:SS') UPDATE_TIME,
       T.UPDATE_NAME,
       DECODE(B.STATION_STATUS, '1', '生产中', '2', '生产完成') STATION_STATUS       
  FROM VRP_COLDROLL_RESULT T INNER JOIN VRP_COM_INFO B ON T.RESULT_NO=B.RESULT_NO,PLN_ZY_DBK_M M
  WHERE T.HEAT_PLAN_NO = B.HEAT_PLAN_NO AND T.PLINE_CODE = M.PLINE_CODE
  AND T.HEAT_PLAN_NO = M.HEAT_PLAN_NO AND T.ZY_BATCH_ID = M.ZY_BATCH_ID
        ]]>
	</query>
	</queryMap>