<?xml version="1.0" encoding="UTF-8"?>
	<queryMap desc="合同投入产出物料综合信息">
		<query id="CoreOrdDesginBom.getOrdDesignBom" desc="查询bom主表">
			<![CDATA[
				SELECT T.MATERIAL_NO,
				       T.MATERIAL_DESC,
				       T.BOM,
				       DECODE(T.BOM_TYP,
				              'A',
				              '产品',
				              'B',
				              '产品配接',
				              'C',
				              '产品备料',
				              'D',
				              '接箍备料') BOM_TYP,
				       T.MSC_PLINE,
				       T.WHOLE_BACKLOG,
				       T.WHOLE_BACKLOG_DESC,
				       T.MSC,
				       T.MSC_DESC,
				       T.GRADECODE,
				       T.GRADENAME,
				       T.SPEC_CODE_C,
				       T.SPEC_NAME_C,
				       T.SPEC_CODE_R,
				       T.SPEC_NAME_R,
				       T.SPEC_CODE_D,
				       T.SPEC_NAME_D,
				       T.SPEC_CODE_Z,
				       T.SPEC_NAME_Z,
				       T.A_IN_MATERIAL_NO,
				       T.A_IN_MATERIAL_DESC,
				       T.A_OUT_MATERIAL_NO,
				       T.A_OUT_MATERIAL_DESC,
				       T.B_IN_MATERIAL_NO,
				       T.B_IN_MATERIAL_DESC,
				       T.B_OUT_MATERIAL_NO,
				       T.B_OUT_MATERIAL_DESC,
				       T.C_IN_MATERIAL_NO,
				       T.C_IN_MATERIAL_DESC,
				       T.C_OUT_MATERIAL_NO,
				       T.C_OUT_MATERIAL_DESC,
				       T.D_IN_MATERIAL_NO,
				       T.D_IN_MATERIAL_DESC,
				       T.D_OUT_MATERIAL_NO,
				       T.D_OUT_MATERIAL_DESC,
				       T.E_IN_MATERIAL_NO,
				       T.E_IN_MATERIAL_DESC,
				       T.E_OUT_MATERIAL_NO,
				       T.E_OUT_MATERIAL_DESC,
				       T.F_IN_MATERIAL_NO,
				       T.F_IN_MATERIAL_DESC,
				       T.F_OUT_MATERIAL_NO,
				       T.F_OUT_MATERIAL_DESC,
				       T.J_IN_MATERIAL_NO,
				       T.J_IN_MATERIAL_DESC,
				       T.J_OUT_MATERIAL_NO,
				       T.J_OUT_MATERIAL_DESC,
				       T.I_IN_MATERIAL_NO,
				       T.I_IN_MATERIAL_DESC,
				       T.I_OUT_MATERIAL_NO,
				       T.I_OUT_MATERIAL_DESC,
				       T.PROCESS_CODE_CS,
				       (SELECT TO_CHAR(WM_CONCAT(B.PLINE_NAME))
				          FROM SLM_BASE_MATERIAL_D_PL B
				         WHERE B.IN_MATERIAL_NO = T.D_IN_MATERIAL_NO
				           AND B.OUT_MATERIAL_NO = T.D_OUT_MATERIAL_NO
				           AND (B.DISABLE_FL != '1' OR B.DISABLE_FL IS NULL)) D_PLINE,
				       (SELECT TO_CHAR(WM_CONCAT(B.PLINE_NAME))
				          FROM SLM_BASE_MATERIAL_E_PL B
				         WHERE B.IN_MATERIAL_NO = T.E_IN_MATERIAL_NO
				           AND B.OUT_MATERIAL_NO = T.E_OUT_MATERIAL_NO
				           AND (B.DISABLE_FL != '1' OR B.DISABLE_FL IS NULL)) E_PLINE,
				       (SELECT TO_CHAR(WM_CONCAT(B.PLINE_NAME))
				          FROM SLM_BASE_MATERIAL_F_PL B
				         WHERE B.IN_MATERIAL_NO = T.F_IN_MATERIAL_NO
				           AND B.OUT_MATERIAL_NO = T.F_OUT_MATERIAL_NO
				           AND (B.DISABLE_FL != '1' OR B.DISABLE_FL IS NULL)) F_PLINE,
				       (SELECT TO_CHAR(WM_CONCAT(B.PLINE_NAME))
				          FROM SLM_BASE_MATERIAL_K_PL B
				         WHERE B.OUT_MATERIAL_NO = K.OUT_MATERIAL_NO
				           AND B.IN_MATERIAL_NO = K.IN_MATERIAL_NO) I_PLINE,
				       (SELECT B.DIMATER
				          FROM COM_BASE_SPEC B
				         WHERE B.SPEC_CODE = T.SPEC_CODE_R) DIMATER,
				       (SELECT B.HEIGHT
				          FROM COM_BASE_SPEC B
				         WHERE B.SPEC_CODE = T.SPEC_CODE_R) HEIGHT
				  FROM SLM_ORD_DESIGN_BOM T
				  LEFT JOIN SLM_ORD_DESIGN_BOM_K K
				    ON K.BOM = T.BOM
				   AND K.MARK = '1'
				 WHERE T.MSC_PLINE = ?
				   AND T.MSC = ?
				   AND T.MATERIAL_NO = ?
				   AND T.WHOLE_BACKLOG = ?
			]]>
		</query>
		
		<query id="CoreOrdDesginBom.getOrdLineDesignBom" desc="查询合同行bom主表">
			<![CDATA[
				SELECT T.MATERIAL_NO,
				       T.MATERIAL_DESC,
				       T.BOM,
				       DECODE(T.BOM_TYP,
				              'A',
				              '产品',
				              'B',
				              '产品配接',
				              'C',
				              '产品备料',
				              'D',
				              '接箍备料') BOM_TYP,
				       T.MSC_PLINE,
				       T.WHOLE_BACKLOG,
				       T.WHOLE_BACKLOG_DESC,
				       T.MSC,
				       T.MSC_DESC,
				       T.GRADECODE,
				       T.GRADENAME,
				       T.SPEC_CODE_C,
				       T.SPEC_NAME_C,
				       T.SPEC_CODE_R,
				       T.SPEC_NAME_R,
				       T.SPEC_CODE_D,
				       T.SPEC_NAME_D,
				       T.SPEC_CODE_Z,
				       T.SPEC_NAME_Z,
				       T.A_IN_MATERIAL_NO,
				       T.A_IN_MATERIAL_DESC,
				       T.A_OUT_MATERIAL_NO,
				       T.A_OUT_MATERIAL_DESC,
				       T.B_IN_MATERIAL_NO,
				       T.B_IN_MATERIAL_DESC,
				       T.B_OUT_MATERIAL_NO,
				       T.B_OUT_MATERIAL_DESC,
				       T.C_IN_MATERIAL_NO,
				       T.C_IN_MATERIAL_DESC,
				       T.C_OUT_MATERIAL_NO,
				       T.C_OUT_MATERIAL_DESC,
				       T.D_IN_MATERIAL_NO,
				       T.D_IN_MATERIAL_DESC,
				       T.D_OUT_MATERIAL_NO,
				       T.D_OUT_MATERIAL_DESC,
				       T.E_IN_MATERIAL_NO,
				       T.E_IN_MATERIAL_DESC,
				       T.E_OUT_MATERIAL_NO,
				       T.E_OUT_MATERIAL_DESC,
				       T.F_IN_MATERIAL_NO,
				       T.F_IN_MATERIAL_DESC,
				       T.F_OUT_MATERIAL_NO,
				       T.F_OUT_MATERIAL_DESC,
				       T.J_IN_MATERIAL_NO,
				       T.J_IN_MATERIAL_DESC,
				       T.J_OUT_MATERIAL_NO,
				       T.J_OUT_MATERIAL_DESC,
				       T.I_IN_MATERIAL_NO,
				       T.I_IN_MATERIAL_DESC,
				       T.I_OUT_MATERIAL_NO,
				       T.I_OUT_MATERIAL_DESC,
				       T.PROCESS_CODE_CS,
				       (SELECT TO_CHAR(WM_CONCAT(B.PLINE_NAME))
				          FROM SLM_BASE_MATERIAL_D_PL B
				         WHERE B.IN_MATERIAL_NO = T.D_IN_MATERIAL_NO
				           AND B.OUT_MATERIAL_NO = T.D_OUT_MATERIAL_NO
				           AND (B.DISABLE_FL != '1' OR B.DISABLE_FL IS NULL)) D_PLINE,
				       (SELECT TO_CHAR(WM_CONCAT(B.PLINE_NAME))
				          FROM SLM_BASE_MATERIAL_E_PL B
				         WHERE B.IN_MATERIAL_NO = T.E_IN_MATERIAL_NO
				           AND B.OUT_MATERIAL_NO = T.E_OUT_MATERIAL_NO
				           AND (B.DISABLE_FL != '1' OR B.DISABLE_FL IS NULL)) E_PLINE,
				       (SELECT TO_CHAR(WM_CONCAT(B.PLINE_NAME))
				          FROM SLM_BASE_MATERIAL_F_PL B
				         WHERE B.IN_MATERIAL_NO = T.F_IN_MATERIAL_NO
				           AND B.OUT_MATERIAL_NO = T.F_OUT_MATERIAL_NO
				           AND (B.DISABLE_FL != '1' OR B.DISABLE_FL IS NULL)) F_PLINE,
				       (SELECT TO_CHAR(WM_CONCAT(B.PLINE_NAME))
				          FROM SLM_BASE_MATERIAL_K_PL B
				         WHERE B.OUT_MATERIAL_NO = K.OUT_MATERIAL_NO
				           AND B.IN_MATERIAL_NO = K.IN_MATERIAL_NO) I_PLINE,
				       (SELECT B.DIMATER
				          FROM COM_BASE_SPEC B
				         WHERE B.SPEC_CODE = T.SPEC_CODE_R) DIMATER,
				       (SELECT B.HEIGHT
				          FROM COM_BASE_SPEC B
				         WHERE B.SPEC_CODE = T.SPEC_CODE_R) HEIGHT
				  FROM SLM_ORD_DESIGN_BOM T
				  LEFT JOIN SLM_ORD_DESIGN_BOM_K K
				    ON K.BOM = T.BOM
				   AND K.MARK = '1', CRAFT_ORD_LINE_BOM L
				 WHERE L.BOM = T.BOM
				   AND L.DESGIN_KEY = ?
			]]>
		</query>
		
		<query id="CoreOrdDesginBom.getOrdMscBom" desc="查询bom主表">
			<![CDATA[
				SELECT T.BOM,
				       T.MSC_PLINE,
				       T.WHOLE_BACKLOG,
				       T.WHOLE_BACKLOG_DESC,
				       T.GRADECODE,
				       T.GRADENAME,
				       T.A_IN_MATERIAL_NO,
				       T.A_IN_MATERIAL_DESC,
				       T.A_OUT_MATERIAL_NO,
				       T.A_OUT_MATERIAL_DESC,
				       T.B_IN_MATERIAL_NO,
				       T.B_IN_MATERIAL_DESC,
				       T.B_OUT_MATERIAL_NO,
				       T.B_OUT_MATERIAL_DESC,
				       T.C_IN_MATERIAL_NO,
				       T.C_IN_MATERIAL_DESC,
				       T.C_OUT_MATERIAL_NO,
				       T.C_OUT_MATERIAL_DESC,
				       T.D_IN_MATERIAL_NO,
				       T.D_IN_MATERIAL_DESC,
				       T.D_OUT_MATERIAL_NO,
				       T.D_OUT_MATERIAL_DESC,
				       T.E_IN_MATERIAL_NO,
				       T.E_IN_MATERIAL_DESC,
				       T.E_OUT_MATERIAL_NO,
				       T.E_OUT_MATERIAL_DESC,
				       (SELECT LISTAGG(B.PLINE_NAME, ',') WITHIN GROUP(ORDER BY B.IN_MATERIAL_NO, B.OUT_MATERIAL_NO)
				          FROM SLM_BASE_MATERIAL_D_PL B
				         WHERE B.IN_MATERIAL_NO = T.D_IN_MATERIAL_NO
				           AND B.OUT_MATERIAL_NO = T.D_OUT_MATERIAL_NO
				           AND (B.DISABLE_FL!='1' OR B.DISABLE_FL IS NULL)) D_PLINE,
			       (SELECT B.DIMATER
			          FROM COM_BASE_SPEC B
			         WHERE B.SPEC_CODE = T.SPEC_CODE_R) DIMATER,
			       (SELECT B.HEIGHT
			          FROM COM_BASE_SPEC B
			         WHERE B.SPEC_CODE = T.SPEC_CODE_R) HEIGHT
				  FROM SLM_ORD_DESIGN_BOM T
				 WHERE T.MSC_PLINE = ?
				   AND T.MSC = ?
				   AND T.MATERIAL_NO = ?
				   AND T.WHOLE_BACKLOG = ?
				   ORDER BY T.BOM
			]]>
		</query>
		
		
		<query id="CoreOrdDesginBom.getOrdLineMscBom" desc="查询bom主表">
			<![CDATA[
				SELECT T.BOM,
       T.MSC_PLINE,
       T.WHOLE_BACKLOG,
       T.WHOLE_BACKLOG_DESC,
       T.GRADECODE,
       T.GRADENAME,
       T.A_IN_MATERIAL_NO,
       T.A_IN_MATERIAL_DESC,
       T.A_OUT_MATERIAL_NO,
       T.A_OUT_MATERIAL_DESC,
       T.B_IN_MATERIAL_NO,
       T.B_IN_MATERIAL_DESC,
       T.B_OUT_MATERIAL_NO,
       T.B_OUT_MATERIAL_DESC,
       T.C_IN_MATERIAL_NO,
       T.C_IN_MATERIAL_DESC,
       T.C_OUT_MATERIAL_NO,
       T.C_OUT_MATERIAL_DESC,
       T.D_IN_MATERIAL_NO,
       T.D_IN_MATERIAL_DESC,
       T.D_OUT_MATERIAL_NO,
       T.D_OUT_MATERIAL_DESC,
       T.E_IN_MATERIAL_NO,
       T.E_IN_MATERIAL_DESC,
       T.E_OUT_MATERIAL_NO,
       T.E_OUT_MATERIAL_DESC,
       (SELECT LISTAGG(B.PLINE_NAME, ',') WITHIN GROUP(ORDER BY B.IN_MATERIAL_NO, B.OUT_MATERIAL_NO)
          FROM SLM_BASE_MATERIAL_D_PL B
         WHERE B.IN_MATERIAL_NO = T.D_IN_MATERIAL_NO
           AND B.OUT_MATERIAL_NO = T.D_OUT_MATERIAL_NO
           AND (B.DISABLE_FL != '1' OR B.DISABLE_FL IS NULL)) D_PLINE,
           (SELECT LISTAGG(B.PLINE_CODE, ',') WITHIN GROUP(ORDER BY B.IN_MATERIAL_NO, B.OUT_MATERIAL_NO)
          FROM SLM_BASE_MATERIAL_D_PL B
         WHERE B.IN_MATERIAL_NO = T.D_IN_MATERIAL_NO
           AND B.OUT_MATERIAL_NO = T.D_OUT_MATERIAL_NO
           AND (B.DISABLE_FL != '1' OR B.DISABLE_FL IS NULL)) D_PLINE_CODE,
       (SELECT B.DIMATER
          FROM COM_BASE_SPEC B
         WHERE B.SPEC_CODE = T.SPEC_CODE_R) DIMATER,
       (SELECT B.HEIGHT
          FROM COM_BASE_SPEC B
         WHERE B.SPEC_CODE = T.SPEC_CODE_R) HEIGHT,
       T.MATERIAL_NO,
       T.MATERIAL_DESC,
       G.PRIORITY,
       TO_NUMBER(NVL(T.SPEC_NAME_D, SPEC_NAME_Z)) DIMATER_GP,
       T.MSC,
       G.DESGIN_KEY
  FROM SLM_ORD_DESIGN_BOM         T,
       CRAFT_ORD_LINE_BOM         L,
       CRAFT_ORD_DESIGN_MSC_PL_GZ G
 WHERE L.BOM = T.BOM
   AND L.DESGIN_KEY = G.DESGIN_KEY
   AND T.MSC_PLINE = G.MSC_PLINE
   AND T.GRADECODE = G.GRADECODE
   AND G.PRIORITY < 100
   AND L.DESGIN_KEY = ?
   AND T.MSC = ?
   AND T.MSC_PLINE = ?
   --and t.spec_name_r ='508.00x13.80'
 ORDER BY G.PRIORITY ASC, DIMATER_GP DESC

			]]>
		</query>
		
			<query id="CoreOrdDesginBom.getGradeCode" desc="查询默认钢种">
			<![CDATA[
			SELECT T.* FROM COM_BASE_GRADE T WHERE T.GRADECODE=? AND T.ALLOW_BUY=? AND T.VALIDFLAG='1'
			]]>
		</query>
		<query id="CoreOrdDesginBom.getDesignBomInf" desc="查询bom主表">
			<![CDATA[
				SELECT T.MATERIAL_NO,
				       T.MATERIAL_DESC,
				       T.BOM,
				       DECODE(T.BOM_TYP,'A','产品','B','产品配接','C','产品备料','D','接箍备料') BOM_TYP,
				       T.MSC_PLINE,
				       T.WHOLE_BACKLOG,
				       T.WHOLE_BACKLOG_DESC,
				       T.MSC,
				       T.MSC_DESC,
				       T.GRADECODE,
				       T.GRADENAME,
				       T.SPEC_CODE_C,
				       T.SPEC_NAME_C,
				       T.SPEC_CODE_R,
				       T.SPEC_NAME_R,
				       T.SPEC_CODE_D,
				       T.SPEC_NAME_D,
				       T.SPEC_CODE_Z,
				       T.SPEC_NAME_Z,
				       T.A_IN_MATERIAL_NO,
				       T.A_IN_MATERIAL_DESC,
				       T.A_OUT_MATERIAL_NO,
				       T.A_OUT_MATERIAL_DESC,
				       T.B_IN_MATERIAL_NO,
				       T.B_IN_MATERIAL_DESC,
				       T.B_OUT_MATERIAL_NO,
				       T.B_OUT_MATERIAL_DESC,
				       T.C_IN_MATERIAL_NO,
				       T.C_IN_MATERIAL_DESC,
				       T.C_OUT_MATERIAL_NO,
				       T.C_OUT_MATERIAL_DESC,
				       T.D_IN_MATERIAL_NO,
				       T.D_IN_MATERIAL_DESC,
				       T.D_OUT_MATERIAL_NO,
				       T.D_OUT_MATERIAL_DESC,
				       T.E_IN_MATERIAL_NO,
				       T.E_IN_MATERIAL_DESC,
				       T.E_OUT_MATERIAL_NO,
				       T.E_OUT_MATERIAL_DESC,
				       T.F_IN_MATERIAL_NO,
				       T.F_IN_MATERIAL_DESC,
				       T.F_OUT_MATERIAL_NO,
				       T.F_OUT_MATERIAL_DESC,
				       T.J_IN_MATERIAL_NO,
				       T.J_IN_MATERIAL_DESC,
				       T.J_OUT_MATERIAL_NO,
				       T.J_OUT_MATERIAL_DESC,
				       (SELECT LISTAGG(B.PLINE_NAME, ',') WITHIN GROUP(ORDER BY B.IN_MATERIAL_NO, B.OUT_MATERIAL_NO)
				          FROM SLM_BASE_MATERIAL_D_PL B
				         WHERE B.IN_MATERIAL_NO = T.D_IN_MATERIAL_NO
				           AND B.OUT_MATERIAL_NO = T.D_OUT_MATERIAL_NO
				           AND (B.DISABLE_FL!='1' OR B.DISABLE_FL IS NULL)) D_PLINE,
			       (SELECT B.DIMATER
			          FROM COM_BASE_SPEC B
			         WHERE B.SPEC_CODE = T.SPEC_CODE_R) DIMATER,
			       (SELECT B.HEIGHT
			          FROM COM_BASE_SPEC B
			         WHERE B.SPEC_CODE = T.SPEC_CODE_R) HEIGHT
				  FROM SLM_ORD_DESIGN_BOM T
				 WHERE T.BOM = ?
			]]>
		</query>
	
	<query id="CoreOrdDesginBom.getCustomRpline" desc="查询最终用户认定产线">
		<![CDATA[
			SELECT R.PLINE_CODE, R.PLINE_NAME
			  FROM COM_BASE_CUSTOM_R_PLINE R
			 WHERE R.VALIDFLAG = '1'
			   AND R.CUSTOMER_NO = ?
			   AND R.PRODUCCODE = ?
			   AND R.PROCESS_CDOE='D'
		]]>
	</query>
	
	<query id="CoreOrdDesginBom.getBomCustomRDpl" desc="轧管投入产出-产线能力经过最终用户认定">
		<![CDATA[
			SELECT PLINE_CODE, PLINE_NAME, T.PLINE_LEVEL
			  FROM SLM_BASE_MATERIAL_D_PL T
			 WHERE T.IN_MATERIAL_NO = ?
			   AND T.OUT_MATERIAL_NO = ?
			   AND (T.DISABLE_FL != '1' OR T.DISABLE_FL IS NULL)
			   AND T.PLINE_CODE IN (SELECT B.PLINE_CODE
			                          FROM CRAFT_ORD_DESIGN_MSC_PL_GX_PRL B
			                         WHERE B.PROCESS_CODE = 'D'
			                           AND B.DESGIN_KEY = ?
			                           AND B.MSC_PLINE = ?
			                           AND B.VALIDFLAG = '1'
			                        INTERSECT
			                        SELECT R.PLINE_CODE
			                          FROM COM_BASE_CUSTOM_R_PLINE R
			                         WHERE R.VALIDFLAG = '1'
			                           AND R.CUSTOMER_NO = ?
			                           AND R.PRODUCCODE = ?)
			 ORDER BY T.PLINE_LEVEL ASC
		]]>
	</query>
	
	<query id="CoreOrdDesginBom.getBomMaterialDpl" desc="轧管投入产出-产线能力">
		<![CDATA[
			SELECT PLINE_CODE, PLINE_NAME, T.PLINE_LEVEL
			  FROM SLM_BASE_MATERIAL_D_PL T
			 WHERE T.IN_MATERIAL_NO = ?
			   AND T.OUT_MATERIAL_NO = ?
			   AND (T.DISABLE_FL != '1' OR T.DISABLE_FL IS NULL)
			   AND T.PLINE_CODE IN (SELECT B.PLINE_CODE
			                          FROM CRAFT_ORD_DESIGN_MSC_PL_GX_PRL B
			                         WHERE B.PROCESS_CODE = 'D'
			                           AND B.DESGIN_KEY = ?
			                           AND B.MSC_PLINE = ?
			                           AND B.VALIDFLAG = '1')
			 ORDER BY T.PLINE_LEVEL ASC
		]]>
	</query>
	
	<query id="CoreOrdDesginBom.setModifySale" desc="修改排产合同状态">
		<![CDATA[
			UPDATE PLN_SALEORD T SET T.PORDERSTATUS = ? WHERE T.ORD_LN_DLY_PK = ?
		]]>
	</query>
	
	<query id="CoreOrdDesginBom.setModifySaleProc" desc="修改交货行分解表状态">
		<![CDATA[
			UPDATE PLN_SALEORD_PROC T SET T.PLANSTATUS = ? WHERE T.ORD_LN_DLY_PK = ?
		]]>
	</query>
	
	<query id="CoreOrdDesginBom.setLineDeliveryStatus" desc="修改销售交货行表状态">
		<![CDATA[
			UPDATE SLM_ORDER_LINE_DELIVERY T SET T.DELIVERY_STATUS = ? WHERE T.ORD_LN_DLY_PK = ?
		]]>
	</query>
	
	<query id="CoreOrdDesginBom.setOrdLineStatus" desc="修改销售合同行表状态">
		<![CDATA[
			UPDATE SLM_ORDER_LINE T SET T.ORDER_LN_STATUS = ? WHERE T.ORD_LN_PK = ?
		]]>
	</query>
	
	<query id="CoreOrdDesginBom.getBaseSpec" desc="验证规格是否存在">
		<![CDATA[
			SELECT T.SPEC_CODE, T.SPEC_NAME, T.DIMATER, T.HEIGHT, T.WEIGHT, T.MSC_STYLE
			  FROM COM_BASE_SPEC T
			 WHERE T.DIMATER = TO_NUMBER(?)
			   AND T.HEIGHT = TO_NUMBER(?)
			   AND T.VALIDFLAG = '1'
			   AND T.MSC_STYLE = 'A'
		]]>
	</query>
	
	<query id="CoreOrdDesginBom.getNumDeliveryByLine" desc="查询和同行的交货行数目">
		<![CDATA[
			SELECT COUNT(T.DELIVERY_STATUS) DELIVERY_NUM
			  FROM SLM_ORDER_LINE_DELIVERY T
			 WHERE T.ORD_LN_PK = ?
			   AND SUBSTR(T.DELIVERY_STATUS, 0, 6) != '120210'
			   AND T.VALIDFLAG = '1'
		]]>
	</query>
	
	</queryMap>
