<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="TQNQD06 （生成工具：代码生成工具1.0.0.0   访问地址：http://172.16.2.128/tool/）">
    <query id="Tqnqd06DAL.Query" desc="查询">
        <![CDATA[
 SELECT 
       T.REC_CREATOR,
       T.REC_CREATE_TIME,
       T.REC_REVISOR,
       T.REC_REVISE_TIME,
       T.ARCHIVE_FLAG,
       T.DU_FLAG,
       T.DU_MAKER,
       T.DU_TIME,
       T.VERSION,
       T.SERIAL_NUM,
       T.STRATEGRY_IS,
       T.RP_CODE,
       T.WHOLE_BACKLOG_NAME,
       T.WHOLE_BACKLOG,
       T.ALLOY_BAK1,
       T.ALLOY_BAK2,
       T.ALLOY_BAK3,
       T.ALLOY_BAK4,
       T.ALLOY_BAK5,
       T.ALLOY_BAK6,
       T.ALLOY_BAK7,
       T.ALLOY_BAK8,
       T.ALLOY_BAK9,
       T.ALLOY_BAK10,
       T.LTEM_NUM,
       T.WHOLE_BACKLOG_CODE,
       T.DANHAO,
       T.UNIT_PRICE,
       T.PROCESS_COST,
       T.MAT_ORIGIN,
       T.CLASS_INTERVAL,
       T.PROCESS_CODE,
       T.SPARE_ITEM_N1,
       T.SPARE_ITEM_N2,
       T.SPARE_ITEM_N3,
       T.SPARE_ITEM_N4,
       T.SPARE_ITEM_N5,
       T.SPARE_ITEM_N6,
       T.SPARE_ITEM_N7,
       T.SPARE_ITEM_N8,
       T.MATERIAL_CODE,
       T.UNIT_PRICE_NOW,
       T.UNIT_PRICE_NEXT,
       T.PROCESS_COST_NOW,
       T.PROCESS_COST_NEXT,
       T.YEAR_MONTH
 FROM TQNQD06 T
 WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd06DAL.QueryByPk" desc="通过主键查询">
        <![CDATA[
 SELECT 
       T.REC_CREATOR,
       T.REC_CREATE_TIME,
       T.REC_REVISOR,
       T.REC_REVISE_TIME,
       T.ARCHIVE_FLAG,
       T.DU_FLAG,
       T.DU_MAKER,
       T.DU_TIME,
       T.VERSION,
       T.SERIAL_NUM,
       T.STRATEGRY_IS,
       T.RP_CODE,
       T.WHOLE_BACKLOG_NAME,
       T.WHOLE_BACKLOG,
       T.ALLOY_BAK1,
       T.ALLOY_BAK2,
       T.ALLOY_BAK3,
       T.ALLOY_BAK4,
       T.ALLOY_BAK5,
       T.ALLOY_BAK6,
       T.ALLOY_BAK7,
       T.ALLOY_BAK8,
       T.ALLOY_BAK9,
       T.ALLOY_BAK10,
       T.LTEM_NUM,
       T.WHOLE_BACKLOG_CODE,
       T.DANHAO,
       T.UNIT_PRICE,
       T.PROCESS_COST,
       T.MAT_ORIGIN,
       T.CLASS_INTERVAL,
       T.PROCESS_CODE,
       T.SPARE_ITEM_N1,
       T.SPARE_ITEM_N2,
       T.SPARE_ITEM_N3,
       T.SPARE_ITEM_N4,
       T.SPARE_ITEM_N5,
       T.SPARE_ITEM_N6,
       T.SPARE_ITEM_N7,
       T.SPARE_ITEM_N8,
       T.MATERIAL_CODE,
       T.UNIT_PRICE_NOW,
       T.UNIT_PRICE_NEXT,
       T.PROCESS_COST_NOW,
       T.PROCESS_COST_NEXT,
       T.YEAR_MONTH
 FROM TQNQD06 T
 WHERE
      1<>1
        ]]>
    </query>
    <quer id = "Tqnqd06.Insert" desc = "新增">
    INSERT INTO TQNQD06(
    LTEM_NUM,
    WHOLE_BACKLOG_CODE,
    DANHAO,
    UNIT_PRICE,
    PROCESS_COST,
    PROCESS_COST_NOW,
    PROCESS_COST_NEXT,
    RP_CODE,
    PROCESS_CODE,
    MATERIAL_CODE,
    UNIT_PRICE_NOW,
    UNIT_PRICE_NEXT,
    MAT_ORIGIN,
    CLASS_INTERVAL,
    REC_CREATOR,
    REC_CREATE_TIME,
    SERIAL_NUM,
    SPARE_ITEM_N1
    )
    VALUES
    (
     '#LTEM_NUM#',
     '#WHOLE_BACKLOG_CODE#',
     '#DANHAO#',
     '#UNIT_PRICE#',
     '#PROCESS_COST#',
     '#PROCESS_COST_NOW#',
     '#PROCESS_COST_NEXT#',
     '#RP_CODE#',
     '#PROCESS_CODE#',
     '#MATERIAL_CODE#',
     '#UNIT_PRICE_NOW#',
     '#UNIT_PRICE_NEXT#',
     '#MAT_ORIGIN#',
     '#CLASS_INTERVAL#',
     '#REC_CREATOR#',
      TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss'),
      '#SERIAL_NUM#',
      '#SPARE_ITEM_N1#'
    )
    </quer>
    <query id="Tqnqd06DAL.Insert" desc="新增">
        <![CDATA[
 INSERT INTO TQNQD06(
        REC_CREATOR,
        REC_CREATE_TIME,
        REC_REVISOR,
        REC_REVISE_TIME,
        ARCHIVE_FLAG,
        DU_FLAG,
        DU_MAKER,
        DU_TIME,
        VERSION,
        SERIAL_NUM,
        STRATEGRY_IS,
        RP_CODE,
        WHOLE_BACKLOG_NAME,
        WHOLE_BACKLOG,
        ALLOY_BAK1,
        ALLOY_BAK2,
        ALLOY_BAK3,
        ALLOY_BAK4,
        ALLOY_BAK5,
        ALLOY_BAK6,
        ALLOY_BAK7,
        ALLOY_BAK8,
        ALLOY_BAK9,
        ALLOY_BAK10,
        LTEM_NUM,
        WHOLE_BACKLOG_CODE,
        DANHAO,
        UNIT_PRICE,
        PROCESS_COST,
        MAT_ORIGIN,
        CLASS_INTERVAL,
        PROCESS_CODE,
        SPARE_ITEM_N1,
        SPARE_ITEM_N2,
        SPARE_ITEM_N3,
        SPARE_ITEM_N4,
        SPARE_ITEM_N5,
        SPARE_ITEM_N6,
        SPARE_ITEM_N7,
        SPARE_ITEM_N8,
        MATERIAL_CODE,
        UNIT_PRICE_NOW,
        UNIT_PRICE_NEXT,
        PROCESS_COST_NOW,
        PROCESS_COST_NEXT,
        YEAR_MONTH)
 VALUES( 
        '#REC_CREATOR#',
        '#REC_CREATE_TIME#',
        '#REC_REVISOR#',
        '#REC_REVISE_TIME#',
        '#ARCHIVE_FLAG#',
        '#DU_FLAG#',
        '#DU_MAKER#',
        '#DU_TIME#',
        '#VERSION#',
        '#SERIAL_NUM#',
        '#STRATEGRY_IS#',
        '#RP_CODE#',
        '#WHOLE_BACKLOG_NAME#',
        '#WHOLE_BACKLOG#',
        '#ALLOY_BAK1#',
        '#ALLOY_BAK2#',
        '#ALLOY_BAK3#',
        '#ALLOY_BAK4#',
        '#ALLOY_BAK5#',
        '#ALLOY_BAK6#',
        '#ALLOY_BAK7#',
        '#ALLOY_BAK8#',
        '#ALLOY_BAK9#',
        '#ALLOY_BAK10#',
        '#LTEM_NUM#',
        '#WHOLE_BACKLOG_CODE#',
        '#DANHAO#',
        '#UNIT_PRICE#',
        '#PROCESS_COST#',
        '#MAT_ORIGIN#',
        '#CLASS_INTERVAL#',
        '#PROCESS_CODE#',
        '#SPARE_ITEM_N1#',
        '#SPARE_ITEM_N2#',
        '#SPARE_ITEM_N3#',
        '#SPARE_ITEM_N4#',
        '#SPARE_ITEM_N5#',
        '#SPARE_ITEM_N6#',
        '#SPARE_ITEM_N7#',
        '#SPARE_ITEM_N8#',
        '#MATERIAL_CODE#',
        '#UNIT_PRICE_NOW#',
        '#UNIT_PRICE_NEXT#',
        '#PROCESS_COST_NOW#',
        '#PROCESS_COST_NEXT#',
        '#YEAR_MONTH#')
        ]]>
    </query>
    <query id="Tqnqd06DAL.Update" desc="修改">
        <![CDATA[
 UPDATE TQNQD06 T
   SET 
        T.REC_CREATOR = '#REC_CREATOR#',
        T.REC_CREATE_TIME = '#REC_CREATE_TIME#',
        T.REC_REVISOR = '#REC_REVISOR#',
        T.REC_REVISE_TIME = '#REC_REVISE_TIME#',
        T.ARCHIVE_FLAG = '#ARCHIVE_FLAG#',
        T.DU_FLAG = '#DU_FLAG#',
        T.DU_MAKER = '#DU_MAKER#',
        T.DU_TIME = '#DU_TIME#',
        T.VERSION = '#VERSION#',
        T.SERIAL_NUM = '#SERIAL_NUM#',
        T.STRATEGRY_IS = '#STRATEGRY_IS#',
        T.RP_CODE = '#RP_CODE#',
        T.WHOLE_BACKLOG_NAME = '#WHOLE_BACKLOG_NAME#',
        T.WHOLE_BACKLOG = '#WHOLE_BACKLOG#',
        T.ALLOY_BAK1 = '#ALLOY_BAK1#',
        T.ALLOY_BAK2 = '#ALLOY_BAK2#',
        T.ALLOY_BAK3 = '#ALLOY_BAK3#',
        T.ALLOY_BAK4 = '#ALLOY_BAK4#',
        T.ALLOY_BAK5 = '#ALLOY_BAK5#',
        T.ALLOY_BAK6 = '#ALLOY_BAK6#',
        T.ALLOY_BAK7 = '#ALLOY_BAK7#',
        T.ALLOY_BAK8 = '#ALLOY_BAK8#',
        T.ALLOY_BAK9 = '#ALLOY_BAK9#',
        T.ALLOY_BAK10 = '#ALLOY_BAK10#',
        T.LTEM_NUM = '#LTEM_NUM#',
        T.WHOLE_BACKLOG_CODE = '#WHOLE_BACKLOG_CODE#',
        T.DANHAO = '#DANHAO#',
        T.UNIT_PRICE = '#UNIT_PRICE#',
        T.PROCESS_COST = '#PROCESS_COST#',
        T.MAT_ORIGIN = '#MAT_ORIGIN#',
        T.CLASS_INTERVAL = '#CLASS_INTERVAL#',
        T.PROCESS_CODE = '#PROCESS_CODE#',
        T.SPARE_ITEM_N1 = '#SPARE_ITEM_N1#',
        T.SPARE_ITEM_N2 = '#SPARE_ITEM_N2#',
        T.SPARE_ITEM_N3 = '#SPARE_ITEM_N3#',
        T.SPARE_ITEM_N4 = '#SPARE_ITEM_N4#',
        T.SPARE_ITEM_N5 = '#SPARE_ITEM_N5#',
        T.SPARE_ITEM_N6 = '#SPARE_ITEM_N6#',
        T.SPARE_ITEM_N7 = '#SPARE_ITEM_N7#',
        T.SPARE_ITEM_N8 = '#SPARE_ITEM_N8#',
        T.MATERIAL_CODE = '#MATERIAL_CODE#',
        T.UNIT_PRICE_NOW = '#UNIT_PRICE_NOW#',
        T.UNIT_PRICE_NEXT = '#UNIT_PRICE_NEXT#',
        T.PROCESS_COST_NOW = '#PROCESS_COST_NOW#',
        T.PROCESS_COST_NEXT = '#PROCESS_COST_NEXT#',
        T.YEAR_MONTH = '#YEAR_MONTH#'
 WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd06DAL.GetMaxPk" desc="获取最大主键">
        <![CDATA[
SELECT NVL(MAX(?), 0) + 1 MAX_VALUE FROM TQNQD06 T
        ]]>
    </query>
    <query id="Tqnqd06DAL.Delete" desc="作废">
        <![CDATA[
UPDATE TQNQD06 T
   SET
       T.VALIDFLAG = '0',
       T.DELETE_NAME = '#DELETE_NAME#',
       T.DELETE_TIME = SYSDATE
WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd06DAL.Resume" desc="恢复">
        <![CDATA[
UPDATE TQNQD06 T
   SET
       T.VALIDFLAG = '1',
       T.DELETE_NAME = NULL,
       T.DELETE_TIME = NULL,
       T.UPDATE_NAME = '#UPDATE_NAME#',
       T.UPDATE_TIME = SYSDATE
WHERE
      1<>1
        ]]>
    </query>
</queryMap>