<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="接箍公共信息">
	<query id="FrmInformation.doQueryInfoResult" desc="查询接箍公共信息">		
        <![CDATA[
  SELECT RESULT_NO,
       ZY_PLAN_ID,
       PRO_PLAN_ID,
       CODE_JG_BL,
       JG_GROUP_ID, 
        DECODE( IF_OUT_RPO,'1', '是', '0', '否') IF_OUT_RPO,
       PLINE_CODE,
       PLINE_NAME,
       STATION_CODE,
       STATION_DESC,
       JUDGE_STOVE_NO,
       BATCH_NO,
       BL_WL_ID,
       BL_WL_DESC,
       MIN_D,
       MIN_H,
       AIMLENGTH_BL,
       AIM_CUT_LEN,
       LENGTH_MIN,
       LENGTH_MAX,
       TAPER,
       CODE_JG,
       GRADECODE,
       GRADENAME,
       STEELCODE,
       STEELNAME,
       MODEL_CODE,
       MODEL_DESC,
       OUTDIAMETER,
       WALLTHICK,
       SPEC_JG,
       SPEC_JG_DESC,
       STYLE_JG,
       DIAMETER,
       CHECK_J_VAL,
       AIMLENGTH,
       SINGLEWEIGHT,
       MONITORDEMAND,
       DECODE(IF_MONITOR_JG, '1', '是', '0', '否') IF_MONITOR_JG,
       PRDCR_NO,
       PRODUCER,
       TO_CHAR(PRODUCER_TIME, 'YYYY-MM-DD HH24:MI:SS') PRODUCER_TIME,
       MACH_NO,
       MACH_NM,
       PRO_NUM,
       PRO_WT,
       FAIL_NUM,
       FAIL_WT,
       OFFLINE_NUM,
       OFFLINE_WT,
       DECODE(STATION_STATUS, '1', '生产中', '2', '生产完成') STATION_STATUS,
       TO_CHAR(CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
       TO_CHAR(RRO_TIME, 'YYYY-MM-DD') RRO_TIME,
       COL_OPERATOR,
       RRO_TIME_NU,
       PRO_USER,
       DECODE(PRO_GROUP, '1', '甲', '2', '乙', '3', '丙', '4', '丁') PRO_GROUP,
       DECODE(PRO_SHIFT, '0', '常白', '1', '早', '2', '中', '3', '晚') PRO_SHIFT,
       DECODE(IF_ALL_OUT_WORK, '1', '是', '0', '否') IF_ALL_OUT_WORK,
       WO_ID
  FROM COUPLING_COM_INFO
  WHERE ZY_PLAN_ID || '&' LIKE '%' || ? || '%'
  AND JUDGE_STOVE_NO || '&' LIKE '%' || ? || '%'
  AND BATCH_NO || '&' LIKE '%' || ? || '%'
  AND STATION_CODE  || '&' LIKE '%' || ? || '%'
  ORDER BY CREATE_TIME ASC
        ]]>
	</query>
	<query id="FrmInformation.getQueryGX" desc="查询工序">
		<![CDATA[
		SELECT
        T.BASECODE,
       T.BASENAME
  FROM COM_BASE_INFO T
 WHERE T.SORTCODE = '7003'
   AND T.VALIDFLAG = '1'
		]]>
	</query>
</queryMap>