<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="镦拔扩定径实绩">
<query id="FrmSizingReport.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,
        M.JUDGE_STOVE_NO,
        M.FEED_HEAT_NO,
        T.SHE_DIMATER,
        T.SHE_HEIGHT,
        T.SPEED_IN,
        T.SPEED_OUT,
        T.MOTOR_SPEED1,
        T.MOTOR_SPEED2,
        T.MOTOR_SPEED3,
        T.MOTOR_SPEED4,
        T.MOTOR_SPEED5,
        T.MOTOR_DR,
        T.SIZ_DIMATER,
        T.SIZ_HEIGHT,
        T.PRO_NUM,
        T.PRO_WT,
        T.FAIL_NUM,
        T.FAIL_WT,
        T.FAIL_REASON,
        T.OFFLINE_NUM,
        T.OFFLINE_WT,
        T.RE_NUM,
        T.RE_WT,
        T.MONITORDEMAND,
        T.PRO_YEAR_MONTH_DAY,
        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_SIZING_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>