<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="QCM_LG_PHYRESULT （生成工具：代码生成工具4.0   访问地址：http://172.16.2.128/tool/）">
    <query id="QcmLgPhyresultDAL.Query" desc="查询">
        <![CDATA[
SELECT T.PHY_RESULT_ID,
       T.PHY_RESULT_SEQ,
       T.LOT_NO,
       T.STOVE_NO,
       T.JUDGE_STOVE_NO,
       T.BATCH_NO,
       T.OBJECTNO,
       T.PHY_CODE_MAX,
       T.PHY_NAME_MAX,
       T.PHY_CODE_MIN,
       T.PHY_NAME_MIN,
       T.PHY_CODE,
       T.PHY_NAME,
       T.ITEM_CODE_F,
       T.ITEM_NAME_F,
       T.ITEM_CODE_W,
       T.ITEM_NAME_W,
       T.ITEM_CODE_S,
       T.ITEM_NAME_S,
       T.VALUE1,
       T.VALUE2,
       T.VALUE3,
       T.VALUE4,
       T.VALUE5,
       T.VALUE6,
       T.VALUE7,
       T.VALUE8,
       T.VALUE9,
       T.VALUE10,
       T.VALUE11,
       T.VALUE12,
       T.VALUE13,
       T.VALUE14,
       T.VALUE15,
       T.AVERAGE,
       T.ALLRESULT,
       T.SAMPLE_ID,
       T.XH,
       T.INDEX_SEQ,
       T.VALIDFLAG,
       DECODE(T.VALIDFLAG, '1', '有效', '0', '无效') VALIDFLAG_DESC,
       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
  FROM QCM_LG_PHYRESULT T, QCM_ZG_PHYJUDGE A
 WHERE A.PHY_RESULT_ID = T.PHY_RESULT_ID
   AND A.PROCESS_CDOE = {0}
        ]]>
    </query>
    <query id="QcmLgPhyresultDAL.QueryByPk" desc="通过主键查询">
        <![CDATA[
 SELECT 
       T.PHY_RESULT_ID,
       T.PHY_RESULT_SEQ,
       T.LOT_NO,
       T.STOVE_NO,
       T.JUDGE_STOVE_NO,
       T.BATCH_NO,
       T.OBJECTNO,
       T.PHY_CODE_MAX,
       T.PHY_NAME_MAX,
       T.PHY_CODE_MIN,
       T.PHY_NAME_MIN,
       T.PHY_CODE,
       T.PHY_NAME,
       T.ITEM_CODE_F,
       T.ITEM_NAME_F,
       T.ITEM_CODE_W,
       T.ITEM_NAME_W,
       T.ITEM_CODE_S,
       T.ITEM_NAME_S,
       T.VALUE1,
       T.VALUE2,
       T.VALUE3,
       T.VALUE4,
       T.VALUE5,
       T.VALUE6,
       T.VALUE7,
       T.VALUE8,
       T.VALUE9,
       T.VALUE10,
       T.VALUE11,
       T.VALUE12,
       T.VALUE13,
       T.VALUE14,
       T.VALUE15,
       T.AVERAGE,
       T.ALLRESULT,
       T.SAMPLE_ID,
       T.XH,
       T.INDEX_SEQ,
       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
 FROM QCM_LG_PHYRESULT T
 WHERE
       T.PHY_RESULT_ID = '#PHY_RESULT_ID#'
       AND T.PHY_RESULT_SEQ = '#PHY_RESULT_SEQ#'
        ]]>
    </query>
    <query id="QcmLgPhyresultDAL.Insert" desc="新增">
        <![CDATA[
 INSERT INTO QCM_LG_PHYRESULT(
        PHY_RESULT_ID,
        PHY_RESULT_SEQ,
        LOT_NO,
        STOVE_NO,
        JUDGE_STOVE_NO,
        BATCH_NO,
        OBJECTNO,
        PHY_CODE_MAX,
        PHY_NAME_MAX,
        PHY_CODE_MIN,
        PHY_NAME_MIN,
        PHY_CODE,
        PHY_NAME,
        ITEM_CODE_F,
        ITEM_NAME_F,
        ITEM_CODE_W,
        ITEM_NAME_W,
        ITEM_CODE_S,
        ITEM_NAME_S,
        VALUE1,
        VALUE2,
        VALUE3,
        VALUE4,
        VALUE5,
        VALUE6,
        VALUE7,
        VALUE8,
        VALUE9,
        VALUE10,
        VALUE11,
        VALUE12,
        VALUE13,
        VALUE14,
        VALUE15,
        AVERAGE,
        ALLRESULT,
        SAMPLE_ID,
        XH,
        INDEX_SEQ,
        CREATE_NAME,
        CREATE_TIME)
 VALUES( 
        '#PHY_RESULT_ID#',
        '#PHY_RESULT_SEQ#',
        '#LOT_NO#',
        '#STOVE_NO#',
        '#JUDGE_STOVE_NO#',
        '#BATCH_NO#',
        '#OBJECTNO#',
        '#PHY_CODE_MAX#',
        '#PHY_NAME_MAX#',
        '#PHY_CODE_MIN#',
        '#PHY_NAME_MIN#',
        '#PHY_CODE#',
        '#PHY_NAME#',
        '#ITEM_CODE_F#',
        '#ITEM_NAME_F#',
        '#ITEM_CODE_W#',
        '#ITEM_NAME_W#',
        '#ITEM_CODE_S#',
        '#ITEM_NAME_S#',
        '#VALUE1#',
        '#VALUE2#',
        '#VALUE3#',
        '#VALUE4#',
        '#VALUE5#',
        '#VALUE6#',
        '#VALUE7#',
        '#VALUE8#',
        '#VALUE9#',
        '#VALUE10#',
        '#VALUE11#',
        '#VALUE12#',
        '#VALUE13#',
        '#VALUE14#',
        '#VALUE15#',
        '#AVERAGE#',
        '#ALLRESULT#',
        '#SAMPLE_ID#',
        '#XH#',
        '#INDEX_SEQ#',
        '#CREATE_NAME#',
        SYSDATE)
        ]]>
    </query>
</queryMap>