<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="TQNQD05 （生成工具：代码生成工具1.0.0.0   访问地址：http://172.16.2.128/tool/）">
    <query id="Tqnqd05DAL.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.COST_CENTER_AC,
       T.WHOLE_BACKLOG,
       T.JZ_WHOLE_BACKLOG,
       T.SUB_BACKLOG,
       T.STEEL_TYPE_CODE,
       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.UNIT_PRICE,
       T.TIME_NUM,
       T.PROCESS_CODE,
       T.SUB_CODE
 FROM TQNQD05 T
 WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd05DAL.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.COST_CENTER_AC,
       T.WHOLE_BACKLOG,
       T.JZ_WHOLE_BACKLOG,
       T.SUB_BACKLOG,
       T.STEEL_TYPE_CODE,
       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.UNIT_PRICE,
       T.TIME_NUM,
       T.PROCESS_CODE,
       T.SUB_CODE
 FROM TQNQD05 T
 WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd05DAL.Insert" desc="新增">
        <![CDATA[
 INSERT INTO TQNQD05(
        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,
        COST_CENTER_AC,
        WHOLE_BACKLOG,
        JZ_WHOLE_BACKLOG,
        SUB_BACKLOG,
        STEEL_TYPE_CODE,
        ALLOY_BAK1,
        ALLOY_BAK2,
        ALLOY_BAK3,
        ALLOY_BAK4,
        ALLOY_BAK5,
        ALLOY_BAK6,
        ALLOY_BAK7,
        ALLOY_BAK8,
        ALLOY_BAK9,
        ALLOY_BAK10,
        UNIT_PRICE,
        TIME_NUM,
        PROCESS_CODE,
        SUB_CODE)
 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#',
        '#COST_CENTER_AC#',
        '#WHOLE_BACKLOG#',
        '#JZ_WHOLE_BACKLOG#',
        '#SUB_BACKLOG#',
        '#STEEL_TYPE_CODE#',
        '#ALLOY_BAK1#',
        '#ALLOY_BAK2#',
        '#ALLOY_BAK3#',
        '#ALLOY_BAK4#',
        '#ALLOY_BAK5#',
        '#ALLOY_BAK6#',
        '#ALLOY_BAK7#',
        '#ALLOY_BAK8#',
        '#ALLOY_BAK9#',
        '#ALLOY_BAK10#',
        '#UNIT_PRICE#',
        '#TIME_NUM#',
        '#PROCESS_CODE#',
        '#SUB_CODE#')
        ]]>
    </query>
    <query id="Tqnqd05DAL.Update" desc="修改">
        <![CDATA[
 UPDATE TQNQD05 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.COST_CENTER_AC = '#COST_CENTER_AC#',
        T.WHOLE_BACKLOG = '#WHOLE_BACKLOG#',
        T.JZ_WHOLE_BACKLOG = '#JZ_WHOLE_BACKLOG#',
        T.SUB_BACKLOG = '#SUB_BACKLOG#',
        T.STEEL_TYPE_CODE = '#STEEL_TYPE_CODE#',
        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.UNIT_PRICE = '#UNIT_PRICE#',
        T.TIME_NUM = '#TIME_NUM#',
        T.PROCESS_CODE = '#PROCESS_CODE#',
        T.SUB_CODE = '#SUB_CODE#'
 WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd05DAL.GetMaxPk" desc="获取最大主键">
        <![CDATA[
SELECT NVL(MAX(?), 0) + 1 MAX_VALUE FROM TQNQD05 T
        ]]>
    </query>
    <query id="Tqnqd05DAL.Delete" desc="作废">
        <![CDATA[
UPDATE TQNQD05 T
   SET
       T.VALIDFLAG = '0',
       T.DELETE_NAME = '#DELETE_NAME#',
       T.DELETE_TIME = SYSDATE
WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd05DAL.Resume" desc="恢复">
        <![CDATA[
UPDATE TQNQD05 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>