<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="订单公共方法">

	<query id="OrderHelper.queryZgM" desc="订单 查询轧管订单">
             <![CDATA[
              SELECT 
       T.PRO_PLAN_ID,
       T.PRO_ORDER_NO,
       T.ORDER_SOURCE,
       T.ORD_LN_DLY_PK,
       T.PLN_DIVIDE_ID,
       T.ORDER_NO,
       T.ORDER_SEQ,
       T.DELIVERY_NO,
       T.PLAN_GROUP_ID,
       T.REQ_BL_ID,
       T.PLINE_CODE_MAY,
       T.PLINE_NAME_MAY,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.STEELCODE,
       T.STEELNAME,
       T.GRADECODE,
       T.GRADENAME,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.AIMWALLTHICK,
       T.LENGTHMAX,
       T.LENGTHMIN,
       T.AIMLENGTH,
       T.OUTWL_ID,
       T.OUTWL_DESC,
       T.ROLL_LENGTH,
       T.OUTNUM_SINGLE,
       T.DIAMETER_MANDREL,
       T.DIAMETER_GP,
       T.LENGTH_GP,
       T.INWL_GP,
       T.INWL_DESC,
       T.WEIGHT_GP_ONE,
       T.GETRATE,
       T.PLAN_WT,
       T.PLAN_NUM,
       T.MATCH_WEIGHT,
       T.MATCH_NUM,
       DECODE(T.IFBUYPLAN,'1','True','False') IFBUYPLAN,
       T.BUYPLANID,
       T.BUYPLANWEIGHT,
       T.REQ_PROD_WEIGHT,
       T.IN_WT,
       T.IN_NUM,
       TO_CHAR(T.PLAN_TIME, 'YYYY-MM-DD HH24:MI:SS') PLAN_TIME,
       T.PLAN_USETIME,
       DECODE(T.ISENDGX,'1','True','False') ISENDGX,
       T.PLANSTATUS,
       T.FINISH_WT,
       DECODE(T.IF_MONITOR_ZG,'1','True','False') IF_MONITOR_ZG,
       T.PRDCR_NO,
       T.MONITOR_POINT,
       T.CIC,
       T.PIC,
       T.SIC,
       T.DIC,
       T.WIC,
       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
 FROM PLN_GX_ZG_M T
 WHERE 1=1
                 ]]>
	</query>

	<query id="OrderHelper.queryZgC" desc="订单 查询轧管合同">
             <![CDATA[
    SELECT 
       T.PRO_ORDER_NO,
       T.PLAN_GROUP_ID,
       T.ORDER_SOURCE,
       T.ORD_LN_DLY_PK,
       T.PLN_DIVIDE_ID,
       T.ORDER_NO,
       T.ORDER_SEQ,
       T.DELIVERY_NO,
       T.REQ_BL_ID,
       T.INDEX_SEQ,
       T.BOM,
       T.BACKLOG_SEQ,
       T.STEELCODE,
       T.STEELNAME,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.AIMWALLTHICK,
       T.LENGTHMAX,
       T.LENGTHMIN,
       T.AIMLENGTH,
       T.OUTWL_ID,
       T.ROLL_LENGTH,
       T.OUT_LENGTH,
       T.OUTNUM_SINGLE,
       T.DIAMETER_GP,
       T.LENGTH_GP,
       T.INWL_GP,
       T.WEIGHT_GP_ONE,
       T.GETRATE,
       T.PLINE_CODE_MAY,
       T.PLINE_NAME_MAY,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.ORDERWEIGHT,
       T.ORDERNUM,
       T.MATCH_WT,
       T.MATCH_NUM,
       decode(T.IFBUYPLAN,'1','True','False') IFBUYPLAN,
       T.BUYPLANID,
       T.BUYPLAN_WT,
       T.REQ_PROD_WT,
       T.REQ_PROD_NUM,
       TO_CHAR(T.PROD_END_DATE, 'YYYY-MM-DD HH24:MI:SS') PROD_END_DATE,
       decode(T.ORDERSTATUS,'1','计划','2','排产','3','生产中','4','生产完成','5','合同关闭','6','合同取消','9','封闭','') ORDERSTATUS,
        decode(T.IS_PLANED,'1','True','False') IS_PLANED,
       T.PRO_PLAN_ID,
       T.FINISHWEIGHT,
        decode(T.ISENDGX,'1','True','False') ISENDGX,
       T.NEXT_GX,
        decode(T.IS_EXTRA_ORD,'1','True','False') IS_EXTRA_ORD,
        decode(T.IF_MONITOR_ZG,'1','True','False') IF_MONITOR_ZG,
       T.PRDCR_NO,
       T.CRAFT_FILE_NO,
       T.CRAFT_FILE_MAN,
       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.CRAFT_SEQ,
       T.PASS_CODE,
       T.PASS_NAME,
       T.GO_TYPE,
       T.PROCESS_CODE_C,
       T.PROCESS_DESC_C,
       T.STATION_ROAD,
       T.CRAFT_NO_V,
       T.BUYER_NAME,
       T.FINAL_USER_DESC,
       T.ORDER_ADD_DESC,
       T.IN_WT,
       T.IN_NUM,
       T.IS_CORRECT
 FROM PLN_ORDER_ZG T
 WHERE 1=1
                 ]]>
	</query>

	<query id="OrderHelper.queryDbkM" desc="订单 查询镦拔扩订单">
             <![CDATA[
              SELECT 
       T.PRO_PLAN_ID,
       T.PRO_ORDER_NO,
       T.ORDER_SOURCE,
       T.ORD_LN_DLY_PK,
       T.PLN_DIVIDE_ID,
       T.ORDER_NO,
       T.ORDER_SEQ,
       T.DELIVERY_NO,
       T.PLAN_GROUP_ID,
       T.REQ_BL_ID,
       T.PLINE_CODE_MAY,
       T.PLINE_NAME_MAY,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.STEELCODE,
       T.STEELNAME,
       T.GRADECODE,
       T.GRADENAME,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.AIMWALLTHICK,
       T.LENGTHMAX,
       T.LENGTHMIN,
       T.AIMLENGTH,
       T.OUTWL_ID,
       T.OUTWL_DESC,
       T.GETRATE,
       T.OUTDIAMETER_IN,
       T.WALLTHICK_IN,
       T.LENGTHMAX_IN,
       T.LENGTHMIN_IN,
       T.INWL_ID,
       T.INWL_DESC,
       T.PLANWEIGHT,
       T.PLANNUM,
       T.MATCH_WEIGHT,
       T.MATCH_NUM,
       decode(T.IFBUYPLAN,'1','True','False') IFBUYPLAN,
       T.BUYPLANID,
       T.BUYPLANWEIGHT,
       T.REQ_PROD_WEIGHT,
       T.IN_WEIGHT,
       T.IN_NUM,
       TO_CHAR(T.PLAN_TIME, 'YYYY-MM-DD HH24:MI:SS') PLAN_TIME,
       T.PLAN_USETIME,
       decode(T.ISENDGX,'1','True','False') ISENDGX,
       T.PREVIOUS_GX,
       T.PREV_GXPLAN_ID,
       decode(T.IF_MONITOR_DBK,'1','True','False') IF_MONITOR_DBK,
       T.PRDCR_NO,
       T.MONITOR_POINT,
       T.CRAFT_FILE_NO,
       T.CRAFT_FILE_MAN,
       T.CRAFT_SEQ,
       T.PRO_MONTH,
       T.PLANSTATUS,
       T.FINISHWEIGHT,
       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.PREVIOUS_GX_CODE
 FROM PLN_GX_DBK_M T
 WHERE 1=1
                 ]]>
	</query>

	<query id="OrderHelper.queryDbkC" desc="订单 查询镦拔扩合同">
             <![CDATA[
 SELECT 
       T.PRO_ORDER_NO,
       T.PLAN_GROUP_ID,
       T.ORDER_SOURCE,
       T.ORD_LN_DLY_PK,
       T.PLN_DIVIDE_ID,
       T.ORDER_NO,
       T.ORDER_SEQ,
       T.DELIVERY_NO,
       T.REQ_BL_ID,
       T.INDEX_SEQ,
       T.BOM,
       T.BACKLOG_SEQ,
       T.STEELCODE,
       T.STEELNAME,
       T.OUTWL_ID,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.AIMWALLTHICK,
       T.LENGTHMAX,
       T.LENGTHMIN,
       T.AIMLENGTH,
       T.INWL_ID,
       T.OUTDIAMETER_IN,
       T.WALLTHICK_IN,
       T.LENGTHMAX_IN,
       T.LENGTHMIN_IN,
       T.GETRATE,
       T.BJ_TYPE,
       T.PLINE_CODE_MAY,
       T.PLINE_NAME_MAY,
       T.ORDERWEIGHT,
       T.ORDERNUM,
       T.MATCH_WT,
       T.MATCH_NUM,
       decode(T.IFBUYPLAN,'1','True','False') IFBUYPLAN,
       T.BUYPLANID,
       T.BUYPLAN_WT,
       T.REQ_PROD_WT,
       T.REQ_PROD_NUM,
       TO_CHAR(T.PROD_END_DATE, 'YYYY-MM-DD HH24:MI:SS') PROD_END_DATE,
       decode(T.ORDERSTATUS,'1','计划','2','排产','3','生产中','4','生产完成','5','合同关闭','6','合同取消','9','封闭','') ORDERSTATUS,
       decode(T.IS_PLANED,'1','True','False') IS_PLANED ,
       T.PRO_PLAN_ID,
       T.FINISHWEIGHT,
       decode(T.ISENDGX,'1','True','False') ISENDGX,
       T.NEXT_GX,
       decode(T.IS_EXTRA_ORD,'1','True','False') IS_EXTRA_ORD,
       decode(T.IF_MONITOR_BJ,'1','True','False') IF_MONITOR_BJ,
       T.PRDCR_NO,
       T.CRAFT_FILE_NO,
       T.CRAFT_FILE_MAN,
       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.CRAFT_SEQ,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.PROCESS_CODE_C,
       T.PROCESS_DESC_C,
       T.STATION_ROAD,
       T.PREVIOUS_GX,
       T.PREVIOUS_GX_CODE,
       T.IN_WEIGHT,
       T.IN_NUM
 FROM PLN_ORDER_DBK T
 WHERE 1=1
                 ]]>
	</query>

	<query id="OrderHelper.queryRclM" desc="订单 查询热处理订单">
             <![CDATA[
              SELECT 
       T.PRO_PLAN_ID,
       T.PRO_ORDER_NO,
       T.ORDER_SOURCE,
       T.ORD_LN_DLY_PK,
       T.PLN_DIVIDE_ID,
       T.ORDER_NO,
       T.ORDER_SEQ,
       T.DELIVERY_NO,
       T.PLAN_GROUP_ID,
       T.REQ_BL_ID,
       T.GROUP_RCL,
       T.PLINE_CODE_MAY,
       T.PLINE_NAME_MAY,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.STEELCODE,
       T.STEELNAME,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.AIMWALLTHICK,
       T.LENGTHMAX,
       T.LENGTHMIN,
       T.AIMLENGTH,
       T.GETRATE,
       T.LENGTHMAX_IN,
       T.LENGTHMIN_IN,
       T.INWL_ID,
       T.INWL_DESC,
       T.OUTWL_ID,
       T.OUTWL_DESC,
       T.PLANWEIGHT,
       T.PLANNUM,
       T.MATCH_WEIGHT,
       T.MATCH_NUM,
       decode(T.IFBUYPLAN,'1','True','False') IFBUYPLAN,
       T.BUYPLANID,
       T.BUYPLANWEIGHT,
       T.REQ_PROD_WEIGHT,
       T.IN_WEIGHT,
       T.IN_NUM,
       TO_CHAR(T.PLAN_TIME, 'YYYY-MM-DD HH24:MI:SS') PLAN_TIME,
       T.PLAN_USETIME,
       decode(T.ISENDGX,'1','True','False') ISENDGX,
       T.PREVIOUS_GX,
       T.PREV_GXPLAN_ID,
       decode(T.IF_MONITOR_RCL,'1','True','False') IF_MONITOR_RCL,
       T.PRDCR_NO,
       T.MONITOR_POINT,
       T.CRAFT_FILE_NO,
       T.CRAFT_FILE_MAN,
       T.CRAFT_SEQ,
       T.PRO_MONTH,
       T.PLANSTATUS,
       T.FINISHWEIGHT,
       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.PREVIOUS_GX_CODE
 FROM PLN_GX_RCL_M T
 WHERE 1=1
                 ]]>
	</query>

	<query id="OrderHelper.queryRclC" desc="订单 查询热处理合同">
             <![CDATA[
 SELECT 
       T.PRO_ORDER_NO,
       T.PLAN_GROUP_ID,
       T.ORDER_SOURCE,
       T.ORD_LN_DLY_PK,
       T.PLN_DIVIDE_ID,
       T.ORDER_NO,
       T.ORDER_SEQ,
       T.DELIVERY_NO,
       T.REQ_BL_ID,
       T.INDEX_SEQ,
       T.BOM,
       T.BACKLOG_SEQ,
       T.STEELCODE,
       T.STEELNAME,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.AIMWALLTHICK,
       T.LENGTHMAX,
       T.LENGTHMIN,
       T.AIMLENGTH,
       T.GETRATE,
       T.INWL_ID,
       T.OUTWL_ID,
       T.GROUP_RCL,
       T.PLINE_CODE_MAY,
       T.PLINE_NAME_MAY,
       T.ORDERWEIGHT,
       T.ORDERNUM,
       T.MATCH_WT,
       T.MATCH_NUM,
       decode(T.IFBUYPLAN,'1','True','False') IFBUYPLAN,
       T.BUYPLANID,
       T.BUYPLAN_WT,
       T.REQ_PROD_WT,
       T.REQ_PROD_NUM,
       TO_CHAR(T.PROD_END_DATE, 'YYYY-MM-DD HH24:MI:SS') PROD_END_DATE,
        decode(T.ORDERSTATUS,'1','计划','2','排产','3','生产中','4','生产完成','5','合同关闭','6','合同取消','9','封闭','') ORDERSTATUS,
       decode(T.IS_PLANED,'1','True','False') IS_PLANED,
       T.PRO_PLAN_ID,
       T.FINISHWEIGHT,
       decode(T.ISENDGX,'1','True','False') ISENDGX,
       T.NEXT_GX,
       decode(T.IS_EXTRA_ORD,'1','True','False') IS_EXTRA_ORD,
       decode(T.IF_MONITOR_RCL,'1','True','False') IF_MONITOR_RCL,
       T.PRDCR_NO,
       T.CRAFT_FILE_NO,
       T.CRAFT_FILE_MAN,
       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.PLINE_CODE,
       T.PLINE_NAME,
       T.PROCESS_CODE_C,
       T.CRAFT_SEQ,
       T.PROCESS_DESC_C,
       T.STATION_ROAD,
       T.IF_SET_TIME,
       T.PREVIOUS_GX,
       T.PREVIOUS_GX_CODE,
       T.IN_WEIGHT,
       T.IN_NUM
 FROM PLN_ORDER_RCL T
 WHERE 1=1
                 ]]>
	</query>

	<query id="OrderHelper.queryJgxM" desc="订单 查询加工订单">
             <![CDATA[
              SELECT 
       T.PRO_PLAN_ID,
       T.PRO_ORDER_NO,
       T.ORDER_SOURCE,
       T.ORD_LN_DLY_PK,
       T.PLN_DIVIDE_ID,
       T.ORDER_NO,
       T.ORDER_SEQ,
       T.DELIVERY_NO,
       T.PLAN_GROUP_ID,
       T.REQ_BL_ID,
       T.GROUP_JGX,
       T.STEELCODE,
       T.STEELNAME,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.AIMWALLTHICK,
       T.LENGTHMAX,
       T.LENGTHMIN,
       T.LENGTHDISC,
       T.AIMLENGTH,
       T.SHRT_LEN_RATO,
       T.SHORTEST,
       T.LONG_LEN_RATO,
       T.LONGEST,
       T.SHRT_STOVE,
       T.AVG_LEN_MIN,
       T.DIFRNC_LEN_MAX,
       T.SIGL_LEN,
       T.ENDLEN_SPECSTD,
       T.MODEL_CODE,
       T.MODEL_DESC,
       T.GETRATE,
       T.LENGTHMAX_IN,
       T.LENGTHMIN_IN,
       T.INWL_ID,
       T.INWL_DESC,
       T.OUTWL_ID,
       T.OUTWL_DESC,
       T.PLANWEIGHT,
       T.PLANNUM,
       T.MATCH_WEIGHT,
       T.MATCH_NUM,
       decode(T.IFBUYPLAN,'1','True','False') IFBUYPLAN,
       T.BUYPLANID,
       T.BUYPLANWEIGHT,
       T.REQ_PROD_WEIGHT,
       T.IN_WEIGHT,
       T.IN_NUM,
       TO_CHAR(T.PLAN_TIME, 'YYYY-MM-DD HH24:MI:SS') PLAN_TIME,
       T.PLAN_USETIME,
       decode(T.ISENDGX,'1','True','False') ISENDGX,
       T.PREVIOUS_GX,
       T.PREV_GXPLAN_ID,
       decode(T.IF_MONITOR_JGX,'1','True','False') IF_MONITOR_JGX,
       T.PRDCR_NO,
       T.MONITOR_POINT,
       T.CRAFT_FILE_NO,
       T.CRAFT_FILE_MAN,
       T.CRAFT_SEQ,
       T.PRO_MONTH,
       T.PLANSTATUS,
       T.FINISHWEIGHT,
       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.PREVIOUS_GX_CODE
 FROM PLN_GX_JGX_M T
 WHERE 1=1
                 ]]>
	</query>

	<query id="OrderHelper.queryJgxC" desc="订单 查询加工合同">
             <![CDATA[
 SELECT 
       T.PRO_ORDER_NO,
       T.PLAN_GROUP_ID,
       T.ORDER_SOURCE,
       T.ORD_LN_DLY_PK,
       T.PLN_DIVIDE_ID,
       T.ORDER_NO,
       T.ORDER_SEQ,
       T.DELIVERY_NO,
       T.REQ_BL_ID,
       T.INDEX_SEQ,
       T.BOM,
       T.BACKLOG_SEQ,
       T.STEELCODE,
       T.STEELNAME,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.AIMWALLTHICK,
       T.LENGTHMAX,
       T.LENGTHMIN,
       T.LENGTHDISC,
       T.AIMLENGTH,
       T.MODEL_CODE,
       T.MODEL_DESC,
       T.GETRATE,
       T.LENGTHMAX_IN,
       T.LENGTHMIN_IN,
       T.INWL_ID,
       T.OUTWL_ID,
       T.GROUP_JGX,
       T.PLINE_CODE_MAY,
       T.PLINE_NAME_MAY,
       T.ORDERWEIGHT,
       T.ORDERNUM,
       T.MATCH_WT,
       T.MATCH_NUM,
       decode(T.IFBUYPLAN,'1','True','False') IFBUYPLAN,
       T.BUYPLANID,
       T.BUYPLAN_WT,
       T.REQ_PROD_WT,
       T.REQ_PROD_NUM,
       TO_CHAR(T.PROD_END_DATE, 'YYYY-MM-DD HH24:MI:SS') PROD_END_DATE,
       decode(T.ORDERSTATUS,'1','计划','2','排产','3','生产中','4','生产完成','5','合同关闭','6','合同取消','9','封闭','') ORDERSTATUS,
       decode(T.IS_PLANED,'1','True','False') IS_PLANED,
       T.PRO_PLAN_ID,
       T.FINISHWEIGHT,
       decode(T.ISENDGX,'1','True','False') ISENDGX,
       T.NEXT_GX,
       decode(T.IF_MONITOR_JGX,'1','True','False') IF_MONITOR_JGX,
       T.PRDCR_NO,
       T.CRAFT_FILE_NO,
       T.CRAFT_FILE_MAN,
       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.PLINE_CODE,
       T.PLINE_NAME,
       T.IF_SET_TIME,
       T.CRAFT_SEQ,
       T.PROCESS_CODE_C,
       T.PROCESS_DESC_C,
       T.STATION_ROAD,
       T.PREVIOUS_GX,
       T.PREVIOUS_GX_CODE,
       T.IN_WEIGHT,
       T.IN_NUM
 FROM PLN_ORDER_JGX T
 WHERE 1=1
                 ]]>
	</query>

</queryMap>