<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="Baseprocessbzcost （生成工具：代码生成工具1.0.0.0   访问地址：http://172.16.2.128/tool/）">
    <query id="Baseprocessbzcost.Query" desc="查询">
        <![CDATA[
 SELECT 
       T.JS_DATE,
       T.ASKPLAN_ID,
       T.ORD_NO,
       T.ORD_SEQ,
       T.SPETKEY,
       T.STEELCODEKEY,
       T.MODEL_DESC,
       T.WAIJIN,
       T.BIHOU,
       T.WLNAME,
       T.STOVE_NO,
       T.COMPANYTYPE,
       T.WEIGHT,
       T.MONEY,
       T.INCEPTCORPCODE,
       T.STEELNAME,
       T.ARTICLENAME,
       T.ID,
       T.IS_CAL
 FROM Baseprocessbzcost T
 WHERE
      1<>1
        ]]>
    </query>
    <query id="Baseprocessbzcost.QueryByPk" desc="通过主键查询">
        <![CDATA[
 SELECT 
       T.JS_DATE,
       T.ASKPLAN_ID,
       T.ORD_NO,
       T.ORD_SEQ,
       T.SPETKEY,
       T.STEELCODEKEY,
       T.MODEL_DESC,
       T.WAIJIN,
       T.BIHOU,
       T.WLNAME,
       T.STOVE_NO,
       T.COMPANYTYPE,
       T.WEIGHT,
       T.MONEY,
       T.INCEPTCORPCODE,
       T.STEELNAME,
       T.ARTICLENAME,
       T.ID,
       T.IS_CAL
 FROM Baseprocessbzcost T
 WHERE
      1<>1
        ]]>
    </query>
    <query id="Baseprocessbzcost.Insert" desc="新增">
        <![CDATA[
 INSERT INTO Baseprocessbzcost(
        JS_DATE,
        ASKPLAN_ID,
        ORD_NO,
        ORD_SEQ,
        SPETKEY,
        STEELCODEKEY,
        MODEL_DESC,
        WAIJIN,
        BIHOU,
        WLNAME,
        STOVE_NO,
        COMPANYTYPE,
        WEIGHT,
        MONEY,
        INCEPTCORPCODE,
        STEELNAME,
        ARTICLENAME,
        IS_CAL)
 VALUES( 
        '#JS_DATE#',
        '#ASKPLAN_ID#',
        '#ORD_NO#',
        '#ORD_SEQ#',
        '#SPETKEY#',
        '#STEELCODEKEY#',
        '#MODEL_DESC#',
        '#WAIJIN#',
        '#BIHOU#',
        '#WLNAME#',
        '#STOVE_NO#',
        '#COMPANYTYPE#',
        '#WEIGHT#',
        '#MONEY#',
        '#INCEPTCORPCODE#',
        '#STEELNAME#',
        '#ARTICLENAME#',
        '#IS_CAL#')
        ]]>
    </query>
    <query id="Baseprocessbzcost.Update" desc="修改">
        <![CDATA[
 UPDATE Baseprocessbzcost T
   SET 
        T.JS_DATE = '#JS_DATE#',
        T.ASKPLAN_ID = '#ASKPLAN_ID#',
        T.ORD_NO = '#ORD_NO#',
        T.ORD_SEQ = '#ORD_SEQ#',
        T.SPETKEY = '#SPETKEY#',
        T.STEELCODEKEY = '#STEELCODEKEY#',
        T.MODEL_DESC = '#MODEL_DESC#',
        T.WAIJIN = '#WAIJIN#',
        T.BIHOU = '#BIHOU#',
        T.WLNAME = '#WLNAME#',
        T.STOVE_NO = '#STOVE_NO#',
        T.COMPANYTYPE = '#COMPANYTYPE#',
        T.WEIGHT = '#WEIGHT#',
        T.MONEY = '#MONEY#',
        T.INCEPTCORPCODE = '#INCEPTCORPCODE#',
        T.STEELNAME = '#STEELNAME#',
        T.ARTICLENAME = '#ARTICLENAME#',
        T.IS_CAL = '#IS_CAL#'
 WHERE
             T.ID = '#ID#',
        ]]>
    </query>
    <query id = "Baseprocessbzcost.DoDelete">
     delete  from Baseprocessbzcost where id = ?
    </query>
   
   
    <query id="Baseprocessbzcost.GetMaxPk" desc="获取最大主键">
        <![CDATA[
SELECT NVL(MAX(?), 0) + 1 MAX_VALUE FROM Baseprocessbzcost T
        ]]>
    </query>
    <query id="Baseprocessbzcost.Delete" desc="作废">
        <![CDATA[
UPDATE Baseprocessbzcost T
   SET
       T.VALIDFLAG = '0',
       T.DELETE_NAME = '#DELETE_NAME#',
       T.DELETE_TIME = SYSDATE
WHERE
      1<>1
        ]]>
    </query>
    <query id="Baseprocessbzcost.Resume" desc="恢复">
        <![CDATA[
UPDATE Baseprocessbzcost 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>