<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="TQNQD03 （生成工具：代码生成工具1.0.0.0   访问地址：http://172.16.2.128/tool/）">
    <query id="Tqnqd03DAL.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.SUB_BACKLOG,
       T.BLANK_SOURCE,
       T.CLASS_INTERVAL,
       T.PRODUCT_NAME,
       T.COST_CENTER_AC,
       T.UNIT_PRICE,
       T.PROCESS_CODE,
       T.PROCESS_COST,
       T.CHENCAILV,
       T.RP_NUM,
       T.BURN_WEAR,
       T.PRODUCT_CODE,
       T.HOT_TREAT_METHOD,
       T.SPECIAL_PRICE,
       T.SPECIAL_REMARK
 FROM TQNQD03 T
 WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd03DAL.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.SUB_BACKLOG,
       T.BLANK_SOURCE,
       T.CLASS_INTERVAL,
       T.PRODUCT_NAME,
       T.COST_CENTER_AC,
       T.UNIT_PRICE,
       T.PROCESS_CODE,
       T.PROCESS_COST,
       T.CHENCAILV,
       T.RP_NUM,
       T.BURN_WEAR,
       T.PRODUCT_CODE,
       T.HOT_TREAT_METHOD,
       T.SPECIAL_PRICE,
       T.SPECIAL_REMARK
 FROM TQNQD03 T
 WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd03DAL.Insert" desc="新增">
        <![CDATA[
		 insert into TQNQD03
		(REC_CREATOR,
		REC_CREATE_TIME,
		OUT_SG_SIGN,
		OUT_SG_STD,
		OUT_STEEL_TYPE_CODE,
		OUT_SMELT_CODE,
		HOT_TREAT_METHOD,
		PROCESS_CODE,
		PRODUCT_NAME,
		CLASS_INTERVAL,
		ALLOY_BAK1,
		WHOLE_BACKLOG_NAME,
		WHOLE_BACKLOG,
		LTEM_NUM
		)
		values
		(
		 '#REC_CREATOR#',
		 to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),
		 '#OUT_SG_SIGN#',
		 '#OUT_SG_STD#',
		 '#OUT_STEEL_TYPE_CODE#',
		 '#OUT_SMELT_CODE#',
		 '#HOT_TREAT_METHOD#',
		 '#PROCESS_CODE#'，
		 '#PRODUCT_NAME#',
		 '#CLASS_INTERVAL#',
		 '#ALLOY_BAK1#',
		 '#WHOLE_BACKLOG_NAME#',
		'#WHOLE_BACKLOG#',
		'#LTEM_NUM#'
		)
        ]]>
    </query>
    <query id = "Tqnqd03.Update" desc="修改">
     UPDATE TQNQD03 t
     SET
      T.REC_REVISOR = '#REC_REVISOR#',
      T.REC_REVISE_TIME = to_char(sysdate,'yyyy-mmdd-hh24:mi:ss'),
      T.SUB_BACKLOG = '#SUB_BACKLOG#',
      T.CHENCAILV = '#CHENCAILV#',
      T.UNIT_PRICE = '#UNIT_PRICE#',
      T.SPECIAL_PRICE = '#SPECIAL_PRICE#',
      T.SPECIAL_REMARK = '#SPECIAL_REMARK#'
      WHERE
      T.OUT_SG_STD = '#OUT_SG_STD#'
      AND T.OUT_SG_SIGN = '#OUT_SG_SIGN#'
      AND T.WHOLE_BACKLOG = '#WHOLE_BACKLOG#'
      AND T.WHOLE_BACKLOG_NAME = '#WHOLE_BACKLOG_NAME#'
    </query>
    <query id="Tqnqd03DAL.Update" desc="修改">
        <![CDATA[
 UPDATE TQNQD03 T
   SET 
        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.SUB_BACKLOG = '#SUB_BACKLOG#',
        T.BLANK_SOURCE = '#BLANK_SOURCE#',
        T.CLASS_INTERVAL = '#CLASS_INTERVAL#',
        T.PRODUCT_NAME = '#PRODUCT_NAME#',
        T.COST_CENTER_AC = '#COST_CENTER_AC#',
        T.UNIT_PRICE = '#UNIT_PRICE#',
        T.PROCESS_CODE = '#PROCESS_CODE#',
        T.PROCESS_COST = '#PROCESS_COST#',
        T.CHENCAILV = '#CHENCAILV#',
        T.RP_NUM = '#RP_NUM#',
        T.BURN_WEAR = '#BURN_WEAR#',
        T.PRODUCT_CODE = '#PRODUCT_CODE#',
        T.HOT_TREAT_METHOD = '#HOT_TREAT_METHOD#',
        T.SPECIAL_PRICE = '#SPECIAL_PRICE#',
        T.SPECIAL_REMARK = '#SPECIAL_REMARK#'
 WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd03DAL.GetMaxPk" desc="获取最大主键">
        <![CDATA[
SELECT NVL(MAX(?), 0) + 1 MAX_VALUE FROM TQNQD03 T
        ]]>
    </query>
    <query id="Tqnqd03DAL.Delete" desc="作废">
        <![CDATA[
UPDATE TQNQD03 T
   SET
       T.VALIDFLAG = '0',
       T.DELETE_NAME = '#DELETE_NAME#',
       T.DELETE_TIME = SYSDATE
WHERE
      1<>1
        ]]>
    </query>
    <query id="Tqnqd03DAL.Resume" desc="恢复">
        <![CDATA[
UPDATE TQNQD03 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>