<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="交货行信息">

	<query id="CoreOrderDeliveryNN.getDelivery" desc="查询交货行信息">
		<![CDATA[
				SELECT ORD_PK,
       ORD_LN_PK,
       ORD_LN_DLY_PK,
       DELIVERY_NO,
       TO_CHAR(DELVRY_BDATE, 'YYYY-MM-DD HH24:MI:SS') DELVRY_BDATE,
       TO_CHAR(DELVRY_EDATE, 'YYYY-MM-DD HH24:MI:SS') DELVRY_EDATE,
       DELVRY_QTY,
       ORDER_UNIT,
       WGT_ESTMT,
       ENSU_TOTL_LEN,
       RECEIV_NO,
       RECEIV_NM,
       DELVRY_ADDR,
       AGENCY_FL,
       RECEIV_ADDR,
       TRANSIT_TYP,
       TRANSIT_PLAN,
       TRANSIT_MNY,
       BE_DELIVERY_STATUS,
       BE_OBJ_STS_OP,
       DELIVERY_STATUS,
       OBJ_STS_OP,
       VALIDFLAG,
       CREATE_NAME,
       TO_CHAR(CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
       UPDATE_NAME,
       TO_CHAR(UPDATE_TIME, 'YYYY-MM-DD HH24:MI:SS') UPDATE_TIME,
       DELETE_NAME,
       TO_CHAR(DELETE_TIME, 'YYYY-MM-DD HH24:MI:SS') DELETE_TIME
  FROM SLM_ORDER_LINE_DELIVERY t
 WHERE t.ord_pk = '#ORD_PK#'
   AND T.ORD_LN_PK = '#ORD_LN_PK#'
   AND T.VALIDFLAG = '1'

		]]>
	</query>

</queryMap>