<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="V_JHY_JINXIANG （生成工具：代码生成工具1.0.0.0   访问地址：http://172.16.2.128/tool/）">
    <query id="VJhyJinxiangDAL.Query" desc="查询">
        <![CDATA[
 SELECT 
         T.CHECK_TIME,
       T.CHECK_NO,
       T.BATCH_NO,
       T.SAMPLE_NO,
       T.STEEL_GRADE,
       T.STEEL_NO,
       T.DIMATER,
       T.HEIGHT,
       T.CIC,
       T.HEAT_NO,
       T.A粗,
       T.A细,
       T.B粗,
       T.B细,
       T.C细,
       T.D粗,
       T.D细,
       T.TUOTANCENGNEI,
       T.TUOTANCENGWAI,
       T.ZUZHI,
       T.JINGLIDU,
       T.CHECK_NAME,
       T.AUDIT_NAME,
       T.REMARK,
       T.C粗,
       T.CHECK_CLASS,
       T.ITEM_NAME_W,
       T.CHECK_STD,
       T.DEVICE_NAME,
       T.DS,
       T.WEISHIZUZHI,
       T.DAIZHUANGZUZHI,
       T.QIUHUAZUZHI,
       T.TIESUTI,
       T.JINGJIANFUSHI
 FROM V_JHY_JINXIANG T
 WHERE
       UPPER(T.CHECK_NO) LIKE '%'|| UPPER('#CHECK_NO#') || '%'
       and UPPER(T.STEEL_NO) LIKE '%'|| UPPER('#STEEL_NO#') || '%'
       and UPPER(T.STEEL_GRADE) LIKE '%'|| UPPER('#STEEL_GRADE#') || '%'
        and nvl(T.DIMATER,0) >= #DIMATER1#
         and nvl(T.DIMATER,0) <= #DIMATER2#
         and nvl(T.HEIGHT,0) >= #HEIGHT1#
         and nvl(T.HEIGHT,0) <= #HEIGHT2#
        and UPPER(T.CIC) LIKE '%'|| UPPER('#CIC#') || '%'
         and T.HEAT_NO >= '#LUHAO1#'
         and T.HEAT_NO <= '#LUHAO2#'
         and   T.CHECK_TIME BETWEEN TO_DATE('#DATE_BEGIN#','YYYY-MM-DD HH24:MI:SS') AND TO_DATE('#DATE_END#','YYYY-MM-DD HH24:MI:SS') 
        ]]>
    </query>
    
    <query id="JhyJinxiangDAL.Query" desc="查询">
        <![CDATA[
 SELECT 
         T.CHECK_TIME,
       T.CHECK_NO,
       T.BATCH_NO,
       T.SAMPLE_NO,
       T.STEEL_GRADE,
       T.STEEL_NO,
       T.DIMATER,
       T.HEIGHT,
       T.CIC,
       T.CRAFT_SOURCE,
       T.HEAT_NO,
       T.CONSIGN_DEPT,
       T.A粗,
       T.A细,
       T.B粗,
       T.B细,
       T.C细,
       T.D粗,
       T.D细,
       T.TUOTANCENGNEI,
       T.TUOTANCENGWAI,
       T.ZUZHI,
       T.JINGLIDU,
       T.CHECK_NAME,
       T.AUDIT_NAME,
       T.REMARK,
       T.C粗,
       T.CHECK_CLASS,
       T.ITEM_NAME_W,
       T.CHECK_STD,
       T.DEVICE_NAME,
       T.DS,
       T.WEISHIZUZHI,
       T.DAIZHUANGZUZHI,
       T.QIUHUAZUZHI,
       T.TIESUTI,
       T.JINGJIANFUSHI
 FROM V_JHY_JINXIANG T
 WHERE
       UPPER(T.CHECK_NO) LIKE '%'|| UPPER('#CHECK_NO#') || '%'
       and UPPER(T.STEEL_NO) LIKE '%'|| UPPER('#STEEL_NO#') || '%'
       and UPPER(T.STEEL_GRADE) LIKE '%'|| UPPER('#STEEL_GRADE#') || '%'
        and nvl(T.DIMATER,0) >= #DIMATER1#
         and nvl(T.DIMATER,0) <= #DIMATER2#
         and nvl(T.HEIGHT,0) >= #HEIGHT1#
         and nvl(T.HEIGHT,0) <= #HEIGHT2#
        and UPPER(T.CIC) LIKE '%'|| UPPER('#CIC#') || '%'
         --and T.HEAT_NO LIKE '%'|| '#LUHAO1#' || '%'
         and   T.CHECK_TIME BETWEEN TO_DATE('#DATE_BEGIN#','YYYY-MM-DD HH24:MI:SS') AND TO_DATE('#DATE_END#','YYYY-MM-DD HH24:MI:SS') 
        ]]>
    </query>
    <query id="VJhyJinxiangDAL.QueryByPk" desc="通过主键查询">
        <![CDATA[
 SELECT 
       T.RCVTIME,
       T.CHECK_NO,
       T.BATCH_NO,
       T.SAMPLE_NO,
       T.STEEL_GRADE,
       T.STEEL_NO,
       T.DIMATER,
       T.HEIGHT,
       T.CIC,
       T.A粗,
       T.A细,
       T.B粗,
       T.B细,
       T.C细,
       T.D粗,
       T.D细,
       T.TUOTANCENGNEI,
       T.TUOTANCENGWAI,
       T.ZUZHI,
       T.JINGLIDU,
       T.CHECK_NAME,
       T.AUDIT_NAME,
       T.REMARK,
       T.C粗,
       T.CHECK_CLASS,
       T.ITEM_NAME_W,
       T.CHECK_STD,
       T.DEVICE_NAME,
       T.DS,
       T.WEISHIZUZHI,
       T.DAIZHUANGZUZHI,
       T.QIUHUAZUZHI,
       T.TIESUTI,
       T.JINGJIANFUSHI
 FROM V_JHY_JINXIANG T
 WHERE
      1<>1
        ]]>
    </query>
    <query id="VJhyJinxiangDAL.Insert" desc="新增">
        <![CDATA[
 INSERT INTO V_JHY_JINXIANG(
        RCVTIME,
        CHECK_NO,
        BATCH_NO,
        SAMPLE_NO,
        STEEL_GRADE,
        STEEL_NO,
        DIMATER,
        HEIGHT,
        CIC,
        A粗,
        A细,
        B粗,
        B细,
        C细,
        D粗,
        D细,
        TUOTANCENGNEI,
        TUOTANCENGWAI,
        ZUZHI,
        JINGLIDU,
        CHECK_NAME,
        AUDIT_NAME,
        REMARK,
        C粗,
        CHECK_CLASS,
        ITEM_NAME_W,
        CHECK_STD,
        DEVICE_NAME,
        DS,
        WEISHIZUZHI,
        DAIZHUANGZUZHI,
        QIUHUAZUZHI,
        TIESUTI,
        JINGJIANFUSHI)
 VALUES( 
        '#RCVTIME#',
        '#CHECK_NO#',
        '#BATCH_NO#',
        '#SAMPLE_NO#',
        '#STEEL_GRADE#',
        '#STEEL_NO#',
        '#DIMATER#',
        '#HEIGHT#',
        '#CIC#',
        '#A粗#',
        '#A细#',
        '#B粗#',
        '#B细#',
        '#C细#',
        '#D粗#',
        '#D细#',
        '#TUOTANCENGNEI#',
        '#TUOTANCENGWAI#',
        '#ZUZHI#',
        '#JINGLIDU#',
        '#CHECK_NAME#',
        '#AUDIT_NAME#',
        '#REMARK#',
        '#C粗#',
        '#CHECK_CLASS#',
        '#ITEM_NAME_W#',
        '#CHECK_STD#',
        '#DEVICE_NAME#',
        '#DS#',
        '#WEISHIZUZHI#',
        '#DAIZHUANGZUZHI#',
        '#QIUHUAZUZHI#',
        '#TIESUTI#',
        '#JINGJIANFUSHI#')
        ]]>
    </query>
    <query id="VJhyJinxiangDAL.Update" desc="修改">
        <![CDATA[
 UPDATE V_JHY_JINXIANG T
   SET 
        T.RCVTIME = '#RCVTIME#',
        T.CHECK_NO = '#CHECK_NO#',
        T.BATCH_NO = '#BATCH_NO#',
        T.SAMPLE_NO = '#SAMPLE_NO#',
        T.STEEL_GRADE = '#STEEL_GRADE#',
        T.STEEL_NO = '#STEEL_NO#',
        T.DIMATER = '#DIMATER#',
        T.HEIGHT = '#HEIGHT#',
        T.CIC = '#CIC#',
        T.A粗 = '#A粗#',
        T.A细 = '#A细#',
        T.B粗 = '#B粗#',
        T.B细 = '#B细#',
        T.C细 = '#C细#',
        T.D粗 = '#D粗#',
        T.D细 = '#D细#',
        T.TUOTANCENGNEI = '#TUOTANCENGNEI#',
        T.TUOTANCENGWAI = '#TUOTANCENGWAI#',
        T.ZUZHI = '#ZUZHI#',
        T.JINGLIDU = '#JINGLIDU#',
        T.CHECK_NAME = '#CHECK_NAME#',
        T.AUDIT_NAME = '#AUDIT_NAME#',
        T.REMARK = '#REMARK#',
        T.C粗 = '#C粗#',
        T.CHECK_CLASS = '#CHECK_CLASS#',
        T.ITEM_NAME_W = '#ITEM_NAME_W#',
        T.CHECK_STD = '#CHECK_STD#',
        T.DEVICE_NAME = '#DEVICE_NAME#',
        T.DS = '#DS#',
        T.WEISHIZUZHI = '#WEISHIZUZHI#',
        T.DAIZHUANGZUZHI = '#DAIZHUANGZUZHI#',
        T.QIUHUAZUZHI = '#QIUHUAZUZHI#',
        T.TIESUTI = '#TIESUTI#',
        T.JINGJIANFUSHI = '#JINGJIANFUSHI#'
 WHERE
      1<>1
        ]]>
    </query>
    <query id="VJhyJinxiangDAL.GetMaxPk" desc="获取最大主键">
        <![CDATA[
SELECT NVL(MAX(?), 0) + 1 MAX_VALUE FROM V_JHY_JINXIANG T
        ]]>
    </query>
    <query id="VJhyJinxiangDAL.Delete" desc="作废">
        <![CDATA[
UPDATE V_JHY_JINXIANG T
   SET
       T.VALIDFLAG = '0',
       T.DELETE_NAME = '#DELETE_NAME#',
       T.DELETE_TIME = SYSDATE
WHERE
      1<>1
        ]]>
    </query>
    <query id="VJhyJinxiangDAL.Resume" desc="恢复">
        <![CDATA[
UPDATE V_JHY_JINXIANG 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>