<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="">
	<query id="CrmBillAllServer.CrmBillMQuery" desc="crm提单主表信息查询">
		<![CDATA[
			  SELECT
				   T.BILL_NO_SEQ,
				   T.BILL_NO,
				   T.ORD_PK,
				   T.ORD_LN_PK,
				   T.ORD_LN_DLY_PK,
				   T.ORDER_NO,
				   T.ORDER_SEQ,
				   T.DELIVERY_NO,
				   T.RECEIV_NO,
				   T.RECEIV_NM,
				   T.SALE_ORG,
				   T.SALE_ORG_DESC,
				   T.ACT_TRANS_TYPE,
				   T.STATION_NO,
				   T.STATION_NM,
				   T.SPCL_LN_NO,
				   T.SPCL_LN_NM,
				   T.PLAN_NUM,
				   T.LOADVEHICLE_TYPE,
				   T.CREATE_NAME,
				   TO_CHAR(T.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
				   DECODE(T.DATA_STATUS, '0', '新增', '1', '修改', '2','删除') DATA_STATUS,
				   DECODE(T.IS_FLAG, '0', '未同步', '1', '已同步') IS_FLAG,
				   TO_CHAR(T.SYNCHRO_TIME, 'YYYY-MM-DD HH24:MI:SS') SYNCHRO_TIME,
				   T.INITIAL_ID,
				   DECODE(T.IS_PAY, '1', '已结算', '未结算') IS_PAY,t.STORAGE_NAME,
				   DECODE(T.TRANSPORT_STATUS, '1', '是', '否') TRANSPORT_STATUS,
				   DELVRY_WHEREABOUTS
			 FROM CRM_BILL_M T
			 WHERE
				1 = 1
		]]>
	</query>


	<query id="CrmBillAllServer.CrmBillCQuery" desc="crm提单主表信息查询">
		SELECT
		T.BILL_NO_SEQ,
		T.BILL_NO,
		T.ORD_PK,
		T.ORD_LN_PK,
		T.ORD_LN_DLY_PK,
		T.JUDGE_STOVE_NO,
		T.BATCH_NO,
		T.GROUP_NO,
		T.MATERIAL_NO,
		T.MATERIAL_NAME,
		T.PRODUCCODE,
		T.PRODUCNAME,
		T.STD_CODE,
		T.STD_NAME,
		T.GRADECODE,
		T.GRADENAME,
		T.STEELCODE,
		T.STEELNAME,
		T.STD_STYLE,
		T.STD_STYLE_DESC,
		T.SPEC_CODE,
		T.SPEC_NAME,
		T.MODEL_CODE,
		T.MODEL_DESC,
		T.ACT_LEN_MIN,
		T.ACT_LEN_MAX,
		T.ACT_COUNT,
		T.ACT_WEIGHT,
		T.ACT_LEN,
		T.CREATE_NAME,
		TO_CHAR(T.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
		DECODE(T.DATA_STATUS, '0', '新增', '1', '修改', '2','删除') DATA_STATUS,
		DECODE(T.IS_FLAG, '0', '未同步', '1', '已同步') IS_FLAG,
		T.STORAGE_NAME,
		TO_CHAR(T.SYNCHRO_TIME, 'YYYY-MM-DD HH24:MI:SS') SYNCHRO_TIME,
		T.INITIAL_ID
		FROM CRM_BILL_C T
		WHERE
		1=1
	</query>

</queryMap>