<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="镦拔扩均整实绩">
<query id="FrmReelerReport.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.HOL_DIMATER,
       T.HOL_HEIGHT,
       T.ROLL_DISTANCE,
       T.GUIDE_DISTANCE,
       T.PLUG_SIZE,
       T.PLUG_BAR_D,
       T.PLUG_POSITION,
       T.MOTOR_SPEED,
       M.JUDGE_STOVE_NO,
       M.FEED_HEAT_NO,
       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,
       T.SHE_DIMATER,
       T.SHE_HEIGHT,
       DECODE(B.STATION_STATUS, '1', '生产中', '2', '生产完成') STATION_STATUS
  FROM VRP_REELER_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>