<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="轧管订单">

	<query id="FrmOrderZg.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,
       T.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,
       T.ISENDGX,
       T.PLANSTATUS,
       T.FINISH_WT,
       T.IF_MONITOR_ZG,
       T.PRDCR_NO,
       T.MONITOR_POINT,
       T.CRAFT_FILE_NO,
       T.CRAFT_FILE_MAN,
       T.CRAFT_SEQ,
       T.PRO_MONTH,
       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="FrmOrderZg.queryZg" desc="轧管订单 查询加工工序合同">
             <![CDATA[
                SELECT PRO_ORDER_NO, PLAN_GROUP_ID, ORDER_SOURCE, ORD_LN_DLY_PK, PLN_DIVIDE_ID, ORDER_NO, ORDER_SEQ, DELIVERY_NO, REQ_BL_ID, INDEX_SEQ, 
       BOM, BACKLOG_SEQ, STEELCODE, STEELNAME, OUTDIAMETER, WALLTHICK, AIMWALLTHICK, LENGTHMAX, LENGTHMIN, AIMLENGTH, OUTWL_ID, ROLL_LENGTH, 
       OUT_LENGTH, OUTNUM_SINGLE, DIAMETER_GP, LENGTH_GP, INWL_GP, WEIGHT_GP_ONE, GETRATE, PLINE_CODE_MAY, PLINE_NAME_MAY, PLINE_CODE, 
       PLINE_NAME, ORDERWEIGHT, ORDERNUM, MATCH_WT, MATCH_NUM, IFBUYPLAN, BUYPLANID, BUYPLAN_WT, REQ_PROD_WT, REQ_PROD_NUM, PROD_END_DATE, 
       ORDERSTATUS, IS_PLANED, PRO_PLAN_ID, FINISHWEIGHT, ISENDGX, NEXT_GX, IS_EXTRA_ORD, IF_MONITOR_ZG, PRDCR_NO, CRAFT_FILE_NO, 
       CRAFT_FILE_MAN, CREATE_NAME, CREATE_TIME, UPDATE_NAME, UPDATE_TIME, CRAFT_SEQ, PASS_CODE, PASS_NAME, GO_TYPE, PROCESS_CODE_C, 
       PROCESS_DESC_C, STATION_ROAD, CRAFT_NO_V, BUYER_NAME, FINAL_USER_DESC, ORDER_ADD_DESC 
  FROM PLN_ORDER_ZG T
 WHERE 1=1    
 AND T.PRO_PLAN_ID IS NOT NULL
                 ]]>
	</query>

</queryMap>