<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="工艺评审预处理">

	<query id="PretreatmentDao.getOrderInfo" desc="查询合同信息 ">
		<![CDATA[
SELECT T.ORD_PK,
       MAN_INSPECTION,
       INSPECTION_VALUE,
       T.ORD_LN_PK,
       T.ORDER_SEQ,
       T.CUST_ALPHA_NO,
       T.PSC,
       T.PSC_DESC,
       T.MSC,
       T.MSC_DESC,
       T.MSC_STYLE,
       T.USE_CODE,
       T.USE_DESC,
       T.PRD_CLS,
       T.PRODUCCODE,
       T.PRODUCNAME,
       T.STD_CODE,
       T.STD_NAME,
       T.STEELCODE,
       T.STEELNAME,
       T.STD_STYLE,
       T.STD_STYLE_DESC,
       T.ORDER_SPEC_CODE,
       T.ORDER_SPEC_DESC,
       T.SPEC_CODE,
       T.SPEC_NAME,
       T.DIMATER,
       T.HEIGHT,
       T.MODEL_CODE,
       T.MODEL_DESC,
       T.LEN_NO,
       T.LEN_DESC,
       T.LEN_UNIT,
       T.LEN_MIN,
       T.LEN_MAX,
       T.SHRT_LEN_RATO,
       T.SHORTEST,
       T.LONG_LEN_RATO,
       T.LONGEST,
       T.SHRT_STOVE,
       T.AVG_LEN_MIN,
       T.DIFRNC_LEN_MAX,
       T.ENDLEN_SPECSTD,
       T.SIGL_LEN,
       T.ORDER_UNIT,
       T.ORDER_QTY,
       T.ORD_ENSU_TOTL_LEN,
       T.PRDCT_WGT,
       T.DELVRY_RANGE_TPE,
       T.DELVRY_RANGE_MIN,
       T.DELVRY_RANGE_MAX,
       T.FINAL_USER,
       T.FINAL_USER_DESC,
       T.OUTS_BILLET_FL,
       T.OUTS_STL_PIPE_FL,
       T.ASSEL_FL,
       T.PRODUCER_FL,
       T.PRDCR_NO,
       T.PRDCR_DESC,
       T.MPS_FL,
       T.MPS_NO,
       T.MPS_DESC,
       TO_CHAR(T.DELVRY_BDATE, 'YYYY-MM-DD HH24:MI:SS') DELVRY_BDATE,
       TO_CHAR(T.DELVRY_EDATE, 'YYYY-MM-DD HH24:MI:SS') DELVRY_EDATE,
       T.DELVRY_DESC,
       T.TRANS_DESC,
       T.ADD_ASK_NO,
       T.ORDER_ADD_DESC,
       T.ORDER_SPECIAL_FL,
       T.ORDER_SPECIAL_HEAD,
       T.ORDER_SPECIAL_PATH,
       T.ORDER_SPECIAL_DESC,
       T.ZBS,
       T.ORDER_PRICE,
       T.TRANS_PRICE,
       T.TEST_ID,
       T.TEST_PRICE,
       T.OUT_PRICE,
       T.BALNCE_PRICE,
       T.BE_ORDER_LN_STATUS,
       T.BE_OBJ_STS_OP,
       T.ORDER_LN_STATUS,
       T.OBJ_STS_OP,
       T.MEMO,
       T.VALIDFLAG,
       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.DELETE_NAME,
       TO_CHAR(T.DELETE_TIME, 'YYYY-MM-DD HH24:MI:SS') DELETE_TIME,
       T.ORD_LN_PK_OLD,
       T.ISLOCK,
       T.CUST_ALPHA_NO2,
       T.ORDER_CHGE_NO,
       T.CHGE_ORD_LN_PK,
       T.BALNCE_PRICE_STS,
       T.BALNCE_PRICE_ORG,
       T.BALNCE_PRICE_ORG_STS,
       T.PAK_PRICE,
       T.AW,
       A.FILE_JPEG,
       A.JUDGEFLAG
  FROM SLM_ORDER_LINE T
  LEFT JOIN COM_MSC A
    ON A.MSC = T.MSC
 WHERE T.ORD_LN_PK = ?
   AND T.VALIDFLAG = '1'
		]]>
	</query>

	<query id="PretreatmentDao.getSpecCodeStyle" desc=" 查询产品规格类型 ">
		<![CDATA[
		SELECT T.MSC_STYLE
         FROM COM_BASE_SPEC T
        WHERE T.SPEC_CODE = ?
          AND T.VALIDFLAG = 1
		]]>
	</query>

	<query id="PretreatmentDao.getDesignKey" desc="  查询工艺评审主键 ">
		<![CDATA[
		SELECT T.DESGIN_KEY
  FROM CRAFT_ORD_DESIGN_MSC T
 WHERE T.ORD_LN_PK = ? 　AND T.VALIDFLAG = '1'
   AND NOT EXISTS
 (SELECT 1 FROM CRAFT_ORD_DESIGN A WHERE A.ORD_LN_PK = T.ORD_LN_PK
  AND A.DESGIN_KEY = T.DESGIN_KEY)
		
		]]>
	</query>

	<query id="PretreatmentDao.addCraftDesignMsc" desc="   新增工艺评审主记录 ">
		<![CDATA[
		 INSERT INTO CRAFT_ORD_DESIGN_MSC(
        DESGIN_KEY,ORD_PK,ORD_LN_PK,ORDER_SEQ,CUST_ALPHA_NO,PSC,PSC_DESC, MSC,MSC_DESC,MSC_STYLE,
        USE_CODE,USE_DESC,PRD_CLS,PRODUCCODE,PRODUCNAME,STD_CODE,STD_NAME,STEELCODE,STEELNAME,
        STD_STYLE,STD_STYLE_DESC,ORDER_SPEC_CODE,ORDER_SPEC_DESC,SPEC_CODE,SPEC_NAME,DIMATER,HEIGHT,
        MODEL_CODE,MODEL_DESC,LEN_NO,LEN_DESC,LEN_UNIT,LEN_MIN,LEN_MAX,SHRT_LEN_RATO,SHORTEST,
        LONG_LEN_RATO,LONGEST,SHRT_STOVE,AVG_LEN_MIN,DIFRNC_LEN_MAX,ENDLEN_SPECSTD,SIGL_LEN,
        ORDER_UNIT,ORDER_QTY,ORD_ENSU_TOTL_LEN,PRDCT_WGT,DELVRY_RANGE_TPE,DELVRY_RANGE_MIN,
        DELVRY_RANGE_MAX,FINAL_USER,FINAL_USER_DESC,OUTS_BILLET_FL,OUTS_STL_PIPE_FL,ASSEL_FL,PRODUCER_FL,
        PRDCR_NO,PRDCR_DESC,MPS_FL,MPS_NO,MPS_DESC,DELVRY_BDATE,DELVRY_EDATE,DELVRY_DESC,TRANS_DESC,
        ADD_ASK_NO, ORDER_ADD_DESC,ORDER_SPECIAL_FL,ORDER_SPECIAL_HEAD,ORDER_SPECIAL_PATH, ORDER_SPECIAL_DESC,
        ZBS, ORDER_PRICE,TRANS_PRICE,TEST_ID,TEST_PRICE,OUT_PRICE,BALNCE_PRICE,BE_ORDER_LN_STATUS,
        BE_OBJ_STS_OP,ORDER_LN_STATUS,OBJ_STS_OP,MEMO,PRD_LEN,LOSS_RATE,VALIDFLAG,CREATE_NAME,
        CREATE_TIME,  UPDATE_NAME,UPDATE_TIME,DELETE_NAME,DELETE_TIME, ORD_LN_PK_OLD, FILE_JPEG,JUDGEFLAG)
 VALUES( 
        '#DESGIN_KEY#',
        '#ORD_PK#',
        '#ORD_LN_PK#',
        '#ORDER_SEQ#',
        '#CUST_ALPHA_NO#',
        '#PSC#',
        '#PSC_DESC#',
        '#MSC#',
        '#MSC_DESC#',
        '#MSC_STYLE#',
        '#USE_CODE#',
        '#USE_DESC#',
        '#PRD_CLS#',
        '#PRODUCCODE#',
        '#PRODUCNAME#',
        '#STD_CODE#',
        '#STD_NAME#',
        '#STEELCODE#',
        '#STEELNAME#',
        '#STD_STYLE#',
        '#STD_STYLE_DESC#',
        '#ORDER_SPEC_CODE#',
        '#ORDER_SPEC_DESC#',
        '#SPEC_CODE#',
        '#SPEC_NAME#',
        '#DIMATER#',
        '#HEIGHT#',
        '#MODEL_CODE#',
        '#MODEL_DESC#',
        '#LEN_NO#',
        '#LEN_DESC#',
        '#LEN_UNIT#',
        '#LEN_MIN#',
        '#LEN_MAX#',
        '#SHRT_LEN_RATO#',
        '#SHORTEST#',
        '#LONG_LEN_RATO#',
        '#LONGEST#',
        '#SHRT_STOVE#',
        '#AVG_LEN_MIN#',
        '#DIFRNC_LEN_MAX#',
        '#ENDLEN_SPECSTD#',
        '#SIGL_LEN#',
        '#ORDER_UNIT#',
        '#ORDER_QTY#',
        '#ORD_ENSU_TOTL_LEN#',
        '#PRDCT_WGT#',
        '#DELVRY_RANGE_TPE#',
        '#DELVRY_RANGE_MIN#',
        '#DELVRY_RANGE_MAX#',
        '#FINAL_USER#',
        '#FINAL_USER_DESC#',
        '#OUTS_BILLET_FL#',
        '#OUTS_STL_PIPE_FL#',
        '#ASSEL_FL#',
        '#PRODUCER_FL#',
        '#PRDCR_NO#',
        '#PRDCR_DESC#',
        '#MPS_FL#',
        '#MPS_NO#',
        '#MPS_DESC#',
        SYSDATE,
        SYSDATE,
        '#DELVRY_DESC#',
        '#TRANS_DESC#',
        '#ADD_ASK_NO#',
        '#ORDER_ADD_DESC#',
        '#ORDER_SPECIAL_FL#',
        '#ORDER_SPECIAL_HEAD#',
        '#ORDER_SPECIAL_PATH#',
        '#ORDER_SPECIAL_DESC#',
        '#ZBS#',
        '#ORDER_PRICE#',
        '#TRANS_PRICE#',
        '#TEST_ID#',
        '#TEST_PRICE#',
        '#OUT_PRICE#',
        '#BALNCE_PRICE#',
        '#BE_ORDER_LN_STATUS#',
        '#BE_OBJ_STS_OP#',
        '#ORDER_LN_STATUS#',
        '#OBJ_STS_OP#',
        '#MEMO#',
        '#PRD_LEN#',
        '#LOSS_RATE#',
        '#VALIDFLAG#',
        '#CREATE_NAME#',
        SYSDATE,
        '#UPDATE_NAME#',
        SYSDATE,
        '#DELETE_NAME#',
        SYSDATE,
        '#ORD_LN_PK_OLD#',
        '#FILE_JPEG#',
        '#JUDGEFLAG#')
		]]>
	</query>


	<query id="PretreatmentDao.deleteCraftDesignMsc" desc="删除工艺评审主记录 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_MSC T WHERE T.DESGIN_KEY=?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignStd" desc="删除工艺评审标准号 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_STD T WHERE T.DESGIN_KEY=?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignStdTklg" desc="删除工艺评审主记录 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_STS_TKLG T WHERE T.DESGIN_KEY=?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignStdTklgLst" desc="删除工艺评审明细 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_STS_TKLG_LST T WHERE T.DESGIN_KEY=?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignStdCic" desc="删除工艺评审成分标准 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_STD_CIC T WHERE T.DESGIN_KEY=?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignStdPic" desc=" 删除工艺评审理化标准 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_STD_PIC T WHERE T.DESGIN_KEY=?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignStdPicSmp" desc=" 删除工艺评审理化标准-取样要求 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_STD_PIC_SMP T WHERE T.DESGIN_KEY=?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignStdSic" desc="  删除工艺评审公差标准 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_STD_SIC T WHERE T.DESGIN_KEY=?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignStdDic" desc="  删除工艺评审探伤标准 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_STD_DIC T WHERE T.DESGIN_KEY=?
		]]>
	</query>


	<query id="PretreatmentDao.deleteCraftDesignStdWic" desc=" 删除工艺评审水压标准 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_STD_WIC T WHERE T.DESGIN_KEY=?
		]]>
	</query>


	<query id="PretreatmentDao.deleteCraftDesignStdGic" desc=" 删除工艺评审加工标准 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_STD_GIC T WHERE T.DESGIN_KEY=?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignMscJG" desc=" 删除工艺评审接箍 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_MSC_JG WHERE DESGIN_KEY = ? AND SET_JG='0'
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignMscJGPl" desc=" 删除工艺评审接箍制程 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_MSC_JG_PL WHERE DESGIN_KEY = ?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignMscJGBL" desc=" 删除工艺评审接箍备料 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_MSC_JG_BL WHERE DESGIN_KEY = ?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignMscBL" desc=" 删除工艺评审备料 ">
		<![CDATA[
		DELETE CRAFT_ORD_DESIGN_MSC_BL WHERE DESGIN_KEY = ?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignMscBiltC" desc=" 删除工艺评审铸造规格 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_MSC_BILT_C T WHERE T.DESGIN_KEY = ?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignMscBiltCPl" desc=" 删除工艺评审铸造规格产线 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_MSC_BILT_C_PL T WHERE T.DESGIN_KEY = ?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignMscBilt" desc=" 删除工艺评审锻造规格 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_MSC_BILT T WHERE T.DESGIN_KEY = ?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignMscBiltPl" desc=" 删除工艺评审锻造产线 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_MSC_BILT_PL T WHERE T.DESGIN_KEY = ?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignMscGzGg" desc=" 删除工艺评审轧管规格 ">
		<![CDATA[
        DELETE FROM CRAFT_ORD_DESIGN_MSC_GZ_GG T WHERE T.DESGIN_KEY = ?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignMscGzGgPl" desc=" 删除工艺评审轧管产线 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_MSC_GZ_GG_PL T WHERE T.DESGIN_KEY = ?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignMscPlGxPrl" desc=" 删除工艺评审产线 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_MSC_PL_GX_PRL T WHERE T.DESGIN_KEY=?
		]]>
	</query>

	<query id="PretreatmentDao.updateCraftOrdDesignMscPl" desc=" 修改工艺评审制程 ">
		<![CDATA[
DECLARE
BEGIN
  FOR V_ROW IN (SELECT A.WHOLE_BACKLOG,
                       A.WHOLE_BACKLOG_DESC,
                       C.DESGIN_KEY,
                       C.MSC_PLINE
                  FROM COM_MSC_BACKLOG A, CRAFT_ORD_DESIGN_MSC_PL C
                 WHERE C.DESGIN_KEY = ?
                   AND A.MSC = ?
                   AND A.MSC_PLINE = C.MSC_PLINE) LOOP
    UPDATE CRAFT_ORD_DESIGN_MSC_PL T
       SET T.DESGIN_KEY         = ?,
           T.WHOLE_BACKLOG      = V_ROW.WHOLE_BACKLOG,
           T.WHOLE_BACKLOG_DESC = V_ROW.WHOLE_BACKLOG_DESC
     WHERE T.DESGIN_KEY = V_ROW.DESGIN_KEY
       AND T.MSC_PLINE = V_ROW.MSC_PLINE;
  END LOOP;
END;
		]]>
	</query>
	
	<query id="PretreatmentDao.updateCraftOrdDesignMscPl2" desc=" 复制工艺评审制程 ">
		<![CDATA[
INSERT INTO CRAFT_ORD_DESIGN_MSC_PL
  (DESGIN_KEY,
   MSC_PLINE,
   WHOLE_BACKLOG,
   WHOLE_BACKLOG_DESC,
   SET_FL,
   WARN_DESC,
   ORD_LN_PK,
   VALIDFLAG,
   PROCESS_NO,
   PROCESS_NAME,
   AUTO_CRAFT)
  (SELECT ?,
          MSC_PLINE,
          WHOLE_BACKLOG,
          WHOLE_BACKLOG_DESC,
          SET_FL,
          WARN_DESC,
          ORD_LN_PK,
          VALIDFLAG,
          PROCESS_NO,
          PROCESS_NAME,
          AUTO_CRAFT
     FROM CRAFT_ORD_DESIGN_MSC_PL T
    WHERE T.SET_FL = '1'
      AND T.DESGIN_KEY =
          (SELECT DESGIN_KEY
             FROM CRAFT_ORD_DESIGN A
            WHERE A.ORD_LN_PK = ?
              AND A.CRAFT_SEQ =
                  (SELECT MAX(B.CRAFT_SEQ)
                     FROM CRAFT_ORD_DESIGN B
                    WHERE B.ORD_LN_PK = A.ORD_LN_PK)))
		]]>
	</query>
	
	<query id="PretreatmentDao.deleteCraftOrdDesignMscPl" desc=" 删除工艺评审制程 ">
		<![CDATA[
		DELETE  FROM CRAFT_ORD_DESIGN_MSC_PL T WHERE T.DESGIN_KEY=? AND (T.SET_FL='0' OR T.SET_FL IS NULL)
		]]>
	</query>
	

	<query id="PretreatmentDao.deleteCraftDesignMscPlGz" desc=" 删除工艺评审钢种 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_MSC_PL_GZ T WHERE T.DESGIN_KEY = ?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignMscPlPrc" desc=" 删除工艺评审工序 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_MSC_PL_PRC T WHERE T.DESGIN_KEY = ?
		]]>
	</query>

	<query id="PretreatmentDao.deleteCraftDesignMscPlSti" desc=" 删除工艺评审工序点 ">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_MSC_PL_STI T WHERE T.DESGIN_KEY = ?
		]]>
	</query>

	<query id="PretreatmentDao.updateCraftDesignMscJG" desc=" 修改工艺评审设定接箍 ">
		<![CDATA[
		UPDATE CRAFT_ORD_DESIGN_MSC_JG T SET T.DESGIN_KEY=? WHERE T.DESGIN_KEY=? AND T.SET_JG='1'
		]]>
	</query>
	
	<query id="PretreatmentDao.updateCraftDesignMscJG2" desc=" 修改工艺评审设定接箍 ">
		<![CDATA[
INSERT INTO CRAFT_ORD_DESIGN_MSC_JG
  (DESGIN_KEY,
   CODE_JG,
   DEMAND_DETECTION,
   DEMAND_BONDERIZING,
   DEMAND_COPPER,
   DEMAND_BLAST,
   PRODUCCODE,
   PRODUCNAME,
   STEELCODE,
   STEELNAME,
   MIN_H,
   MAX_H,
   MIN_D,
   MAX_D,
   SET_JG,
   CUST_ALPHA_NO,
   KEY_JG,
   ORDER_SPECIAL_DESC,
   ALPHA_CODE)
  (SELECT ?,
          CODE_JG,
          DEMAND_DETECTION,
          DEMAND_BONDERIZING,
          DEMAND_COPPER,
          DEMAND_BLAST,
          PRODUCCODE,
          PRODUCNAME,
          STEELCODE,
          STEELNAME,
          MIN_H,
          MAX_H,
          MIN_D,
          MAX_D,
          SET_JG,
          CUST_ALPHA_NO,
          KEY_JG,
          ORDER_SPECIAL_DESC,
          ALPHA_CODE
     FROM CRAFT_ORD_DESIGN_MSC_JG T
    WHERE T.DESGIN_KEY =
          (SELECT DESGIN_KEY
             FROM CRAFT_ORD_DESIGN A
            WHERE A.ORD_LN_PK = ?
              AND A.CRAFT_SEQ =
                  (SELECT MAX(B.CRAFT_SEQ)
                     FROM CRAFT_ORD_DESIGN B
                    WHERE B.ORD_LN_PK = A.ORD_LN_PK))
      AND T.SET_JG = '1')
		]]>
	</query>

    <query id="PretreatmentDao.deleteCraftDesignAddAsk" desc="删除附加要求全项">
		<![CDATA[
		DELETE FROM CRAFT_ORD_DESIGN_ADD_ASK WHERE DESGIN_KEY = ?
		]]>
	</query>
	
	<query id="PretreatmentDao.updateMscFjImg" desc="修改Msc附件图片">
         <![CDATA[
UPDATE CRAFT_ORD_DESIGN_MSC T
   SET T.FILE_JPEG = {0}
 WHERE T.DESGIN_KEY = {1}
             ]]>
	</query>
	
	<query id="PretreatmentDao.getSetFjImg" desc="获取设定附件图片">
         <![CDATA[
 SELECT T.FILE_JPEG VALUE
   FROM CRAFT_ORD_DESIGN_MSC_FJ_S T
  WHERE T.ORD_LN_PK = {0}
             ]]>
	</query>
	
	<query id="PretreatmentDao.getSlmDesignKey" desc="获取技术评审DesignKey">
         <![CDATA[
SELECT T.DESGIN_KEY VALUE
  FROM SLM_ORD_DESIGN_STS_TKLG T
 WHERE T.ORD_LN_PK = {0}
   AND T.VALIDFLAG = '1'
             ]]>
	</query>
</queryMap>