<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="TQNQD02 （生成工具：代码生成工具1.0.0.0   访问地址：http://172.16.2.128/tool/）">
    <query id="Tqnqd02DAL.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.OUT_SG_SIGN,
       T.OUT_SG_STD,
       T.OUT_STEEL_TYPE_CODE,
       T.OUT_SMELT_CODE,
       T.HOT_TREAT_METHOD,
       T.PROCESS_CODE,
       T.SMELT_METHOD,
       T.CATE_RETURN,
       T.PRICE_RETURN,
       T.PRICE_CUSTOM,
       T.PRICE_SAELS,
       T.USER_REVIEW,
       T.DIM_SPECS,
       T.MAT_ACT_WT,
       T.MAT_LEN,
       T.INGOT_NAME,
       T.SG_SIGN,
       T.SG_STD,
       T.GANYINGLU_IS,
       T.WAIGOUFAN1,
       T.WAIGOUFAN2,
       T.WAIGOUFAN3,
       T.MATERIAL_CODE1,
       T.MATERIAL_CODE2,
       T.MATERIAL_CODE3,
       T.PROCESS_COST,
       T.PROCESS_COST1,
       T.PROCESS_COST2,
       T.PROCESS_COST3,
       T.PROCESS_COST4,
       T.PROCESS_COST5,
       T.PROCESS_COST6,
       T.PROCESS_COST7,
       T.PROD_CLASS_CODE,
       T.YUANLIAO_CODE1,
       T.YUANLIAOGANG,
       T.NEISHENG_CODE1,
       T.NEISHENGFAN1,
       T.SG_SEQ,
       T.STD_CODE,
       T.PROCESS_COST_NOW,
       T.PROCESS_COST_NEXT,
       T.PRICE_RETURN_NOW,
       T.PRICE_RETURN_NEXT,
       T.PROCESS_COST1_NOW,
       T.PROCESS_COST2_NOW,
       T.PROCESS_COST3_NOW,
       T.PROCESS_COST4_NOW,
       T.PROCESS_COST5_NOW,
       T.PROCESS_COST6_NOW,
       T.PROCESS_COST7_NOW
 FROM TQNQD02 T
 WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd02DAL.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.OUT_SG_SIGN,
       T.OUT_SG_STD,
       T.OUT_STEEL_TYPE_CODE,
       T.OUT_SMELT_CODE,
       T.HOT_TREAT_METHOD,
       T.PROCESS_CODE,
       T.SMELT_METHOD,
       T.CATE_RETURN,
       T.PRICE_RETURN,
       T.PRICE_CUSTOM,
       T.PRICE_SAELS,
       T.USER_REVIEW,
       T.DIM_SPECS,
       T.MAT_ACT_WT,
       T.MAT_LEN,
       T.INGOT_NAME,
       T.SG_SIGN,
       T.SG_STD,
       T.GANYINGLU_IS,
       T.WAIGOUFAN1,
       T.WAIGOUFAN2,
       T.WAIGOUFAN3,
       T.MATERIAL_CODE1,
       T.MATERIAL_CODE2,
       T.MATERIAL_CODE3,
       T.PROCESS_COST,
       T.PROCESS_COST1,
       T.PROCESS_COST2,
       T.PROCESS_COST3,
       T.PROCESS_COST4,
       T.PROCESS_COST5,
       T.PROCESS_COST6,
       T.PROCESS_COST7,
       T.PROD_CLASS_CODE,
       T.YUANLIAO_CODE1,
       T.YUANLIAOGANG,
       T.NEISHENG_CODE1,
       T.NEISHENGFAN1,
       T.SG_SEQ,
       T.STD_CODE,
       T.PROCESS_COST_NOW,
       T.PROCESS_COST_NEXT,
       T.PRICE_RETURN_NOW,
       T.PRICE_RETURN_NEXT,
       T.PROCESS_COST1_NOW,
       T.PROCESS_COST2_NOW,
       T.PROCESS_COST3_NOW,
       T.PROCESS_COST4_NOW,
       T.PROCESS_COST5_NOW,
       T.PROCESS_COST6_NOW,
       T.PROCESS_COST7_NOW
 FROM TQNQD02 T
 WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd02DAL.Insert" desc="新增">
        <![CDATA[
 insert into Tqnqd02
  (REC_CREATOR,
   REC_CREATE_TIME,
   OUT_SG_SIGN,
   OUT_SG_STD,
   SG_SIGN,
   SG_STD,
   OUT_STEEL_TYPE_CODE,
   OUT_SMELT_CODE,
   PROD_CLASS_CODE,
   CATE_RETURN,
   HOT_TREAT_METHOD,
   RP_CODE,
   WHOLE_BACKLOG_NAME,
   PROCESS_CODE)
values
  ('#REC_CREATOR#', to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),
  '#OUT_SG_SIGN#', '#OUT_SG_STD#', 
  '#SG_SIGN#', '#SG_STD#','#OUT_STEEL_TYPE_CODE#','#OUT_SMELT_CODE#','#PROD_CLASS_CODE#',
  '#CATE_RETURN#',
   '#HOT_TREAT_METHOD#','#RP_CODE#','#WHOLE_BACKLOG_NAME#', '#PROCESS_CODE#')
        ]]>
    </query>
    <query id = "Tqnqd02.Update" desc="修改">
     UPDATE TQNQD02 T
     SET
      T.REC_REVISOR = '#REC_REVISOR#',
      T.REC_REVISE_TIME = TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss'),
      T.PROD_CLASS_CODE = '#PROD_CLASS_CODE#',
      T.CATE_RETURN = '#CATE_RETURN#',
      T.HOT_TREAT_METHOD = '#HOT_TREAT_METHOD#'
      WHERE 
      PROCESS_CODE = '#PROCESS_CODE#'
    </query>
    <query id="Tqnqd02DAL.Update" desc="修改">
        <![CDATA[
 UPDATE TQNQD02 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.OUT_SG_SIGN = '#OUT_SG_SIGN#',
        T.OUT_SG_STD = '#OUT_SG_STD#',
        T.OUT_STEEL_TYPE_CODE = '#OUT_STEEL_TYPE_CODE#',
        T.OUT_SMELT_CODE = '#OUT_SMELT_CODE#',
        T.HOT_TREAT_METHOD = '#HOT_TREAT_METHOD#',
        T.PROCESS_CODE = '#PROCESS_CODE#',
        T.SMELT_METHOD = '#SMELT_METHOD#',
        T.CATE_RETURN = '#CATE_RETURN#',
        T.PRICE_RETURN = '#PRICE_RETURN#',
        T.PRICE_CUSTOM = '#PRICE_CUSTOM#',
        T.PRICE_SAELS = '#PRICE_SAELS#',
        T.USER_REVIEW = '#USER_REVIEW#',
        T.DIM_SPECS = '#DIM_SPECS#',
        T.MAT_ACT_WT = '#MAT_ACT_WT#',
        T.MAT_LEN = '#MAT_LEN#',
        T.INGOT_NAME = '#INGOT_NAME#',
        T.SG_SIGN = '#SG_SIGN#',
        T.SG_STD = '#SG_STD#',
        T.GANYINGLU_IS = '#GANYINGLU_IS#',
        T.WAIGOUFAN1 = '#WAIGOUFAN1#',
        T.WAIGOUFAN2 = '#WAIGOUFAN2#',
        T.WAIGOUFAN3 = '#WAIGOUFAN3#',
        T.MATERIAL_CODE1 = '#MATERIAL_CODE1#',
        T.MATERIAL_CODE2 = '#MATERIAL_CODE2#',
        T.MATERIAL_CODE3 = '#MATERIAL_CODE3#',
        T.PROCESS_COST = '#PROCESS_COST#',
        T.PROCESS_COST1 = '#PROCESS_COST1#',
        T.PROCESS_COST2 = '#PROCESS_COST2#',
        T.PROCESS_COST3 = '#PROCESS_COST3#',
        T.PROCESS_COST4 = '#PROCESS_COST4#',
        T.PROCESS_COST5 = '#PROCESS_COST5#',
        T.PROCESS_COST6 = '#PROCESS_COST6#',
        T.PROCESS_COST7 = '#PROCESS_COST7#',
        T.PROD_CLASS_CODE = '#PROD_CLASS_CODE#',
        T.YUANLIAO_CODE1 = '#YUANLIAO_CODE1#',
        T.YUANLIAOGANG = '#YUANLIAOGANG#',
        T.NEISHENG_CODE1 = '#NEISHENG_CODE1#',
        T.NEISHENGFAN1 = '#NEISHENGFAN1#',
        T.SG_SEQ = '#SG_SEQ#',
        T.STD_CODE = '#STD_CODE#',
        T.PROCESS_COST_NOW = '#PROCESS_COST_NOW#',
        T.PROCESS_COST_NEXT = '#PROCESS_COST_NEXT#',
        T.PRICE_RETURN_NOW = '#PRICE_RETURN_NOW#',
        T.PRICE_RETURN_NEXT = '#PRICE_RETURN_NEXT#',
        T.PROCESS_COST1_NOW = '#PROCESS_COST1_NOW#',
        T.PROCESS_COST2_NOW = '#PROCESS_COST2_NOW#',
        T.PROCESS_COST3_NOW = '#PROCESS_COST3_NOW#',
        T.PROCESS_COST4_NOW = '#PROCESS_COST4_NOW#',
        T.PROCESS_COST5_NOW = '#PROCESS_COST5_NOW#',
        T.PROCESS_COST6_NOW = '#PROCESS_COST6_NOW#',
        T.PROCESS_COST7_NOW = '#PROCESS_COST7_NOW#'
 WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd02DAL.GetMaxPk" desc="获取最大主键">
        <![CDATA[
SELECT NVL(MAX(?), 0) + 1 MAX_VALUE FROM TQNQD02 T
        ]]>
    </query>
    <query id="Tqnqd02DAL.Delete" desc="作废">
        <![CDATA[
UPDATE TQNQD02 T
   SET
       T.VALIDFLAG = '0',
       T.DELETE_NAME = '#DELETE_NAME#',
       T.DELETE_TIME = SYSDATE
WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd02DAL.Resume" desc="恢复">
        <![CDATA[
UPDATE TQNQD02 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>