<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="">
	<query id="CraftOrdDesignStdWic.getJfByOrdLnPk" desc="查询">
        <![CDATA[
SELECT T.*
  FROM CRAFT_ORD_DESIGN_STD_WIC T, CRAFT_ORD_DESIGN C
 WHERE C.ORD_LN_PK = {0}
   AND C.CRAFT_SEQ = {1}
   AND C.DESGIN_KEY = T.DESGIN_KEY
   AND T.SPECL_FL = '0'
   AND NOT EXISTS (SELECT 1
          FROM CRAFT_ORD_DESIGN_STD_WIC A
         WHERE A.DESGIN_KEY = T.DESGIN_KEY
           AND A.SPECL_FL = '1')
UNION ALL
SELECT T.*
  FROM CRAFT_ORD_DESIGN_STD_WIC T, CRAFT_ORD_DESIGN C
 WHERE C.ORD_LN_PK = {0}
   AND C.CRAFT_SEQ = {1}
   AND T.DESGIN_KEY = C.DESGIN_KEY
   AND T.SPECL_FL = '1'
        ]]>
    </query>
    
    <query id="CraftOrdDesignStdWic.getByOrdLnPkJudge" desc="查询">
        <![CDATA[
SELECT T.PRESSURE_Y, T.PRESSURE, T.SAVE_TIME, T.OUTPUT_STYLE
  FROM CRAFT_ORD_DESIGN_STD_WIC T, CRAFT_ORD_DESIGN C
 WHERE C.ORD_LN_PK = {0}
   AND C.CRAFT_SEQ = {1}
   AND C.DESGIN_KEY = T.DESGIN_KEY
   AND T.MSC_PLINE = {2}
   AND T.PROCESS_CODE = {3}
        ]]>
    </query>
</queryMap>