<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="V_JHY_SHIYOUYINGDU （生成工具：代码生成工具1.0.0.0   访问地址：http://172.16.2.128/tool/）">
    <query id="VJhyShiyouyingduDAL.Query" desc="查询">
        <![CDATA[
 SELECT 
       TO_CHAR(T.CHECK_TIME, 'YYYY-MM-DD HH24:MI:SS') CHECK_TIME,
       T.CHECK_NO,
       T.BATCH_NO,
       T.SAMPLE_NO,
       T.HEAT_NO,
       T.STEEL_GRADE,
       T.STEEL_NO,
       T.DIMATER,
       T.HEIGHT,
       T.CIC,
       T.DEVICE_NAME,
       T.ITEM_NAME_W,
       T.CHECK_STD,
       T.PHY_NAME_MIN,
       T.STDMAX,
       T.VALUE1,
       T.CHECK_CLASS,
       T.REPORTED_NAME,
       T.REMARK,
       T.T1VALUE5,
       T.T1VALUE6,
       T.T1VALUE1,
       T.T1VALUE2,
       T.T1VALUE3,
       T.T1VALUE4,
       T.T1AVERAGE_VALUE,
       T.T2AVERAGE_VALUE,
       T.T3AVERAGE_VALUE,
       T.T4AVERAGE_VALUE,
       T.T5AVERAGE_VALUE,
       T.T6AVERAGE_VALUE,
       T.T7AVERAGE_VALUE,
       T.T8AVERAGE_VALUE,
       T.T9AVERAGE_VALUE,
       T.T10AVERAGE_VALUE,
       T.T11AVERAGE_VALUE,
       T.T12VALUE1,
       T.T12VALUE2,
       T.T12VALUE3,
       T.T12VALUE4,
       T.T12AVERAGE_VALUE,
       T.T2VALUE1,
       T.T2VALUE2,
       T.T2VALUE3,
       T.T2VALUE4,
       T.T3VALUE1,
       T.T3VALUE2,
       T.T3VALUE3,
       T.T3VALUE4,
       T.T4VALUE1,
       T.T4VALUE2,
       T.T4VALUE3,
       T.T4VALUE4,
       T.T5VALUE1,
       T.T5VALUE2,
       T.T5VALUE3,
       T.T5VALUE4,
       T.T6VALUE1,
       T.T6VALUE2,
       T.T6VALUE3,
       T.T6VALUE4,
       T.T7VALUE1,
       T.T7VALUE2,
       T.T7VALUE3,
       T.T7VALUE4,
       T.T8VALUE1,
       T.T8VALUE2,
       T.T8VALUE3,
       T.T8VALUE4,
       T.T9VALUE1,
       T.T9VALUE2,
       T.T9VALUE3,
       T.T9VALUE4,
       T.T10VALUE1,
       T.T10VALUE2,
       T.T10VALUE3,
       T.T10VALUE4,
       T.T11VALUE1,
       T.T11VALUE2,
       T.T11VALUE3,
       T.T11VALUE4
 FROM V_JHY_SHIYOUYINGDU 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="JhyShiyouyingduDAL.Query" desc="查询">
        <![CDATA[
 SELECT 
       TO_CHAR(T.CHECK_TIME, 'YYYY-MM-DD HH24:MI:SS') CHECK_TIME,
       T.CHECK_NO,
       T.BATCH_NO,
       T.SAMPLE_NO,
       T.HEAT_NO,
       T.STEEL_GRADE,
       T.STEEL_NO,
       T.DIMATER,
       T.HEIGHT,
       T.CIC,
       T.CRAFT_SOURCE,
       T.DEVICE_NAME,
       T.ITEM_NAME_W,
       T.CHECK_STD,
       T.PHY_NAME_MIN,
       T.STDMAX,
       T.VALUE1,
       T.CHECK_CLASS,
       T.REPORTED_NAME,
       T.REMARK,
       T.T1VALUE5,
       T.T1VALUE6,
       T.T1VALUE1,
       T.T1VALUE2,
       T.T1VALUE3,
       T.T1VALUE4,
       T.T1AVERAGE_VALUE,
       T.T2AVERAGE_VALUE,
       T.T3AVERAGE_VALUE,
       T.T4AVERAGE_VALUE,
       T.T5AVERAGE_VALUE,
       T.T6AVERAGE_VALUE,
       T.T7AVERAGE_VALUE,
       T.T8AVERAGE_VALUE,
       T.T9AVERAGE_VALUE,
       T.T10AVERAGE_VALUE,
       T.T11AVERAGE_VALUE,
       T.T12VALUE1,
       T.T12VALUE2,
       T.T12VALUE3,
       T.T12VALUE4,
       T.T12AVERAGE_VALUE,
       T.T2VALUE1,
       T.T2VALUE2,
       T.T2VALUE3,
       T.T2VALUE4,
       T.T3VALUE1,
       T.T3VALUE2,
       T.T3VALUE3,
       T.T3VALUE4,
       T.T4VALUE1,
       T.T4VALUE2,
       T.T4VALUE3,
       T.T4VALUE4,
       T.T5VALUE1,
       T.T5VALUE2,
       T.T5VALUE3,
       T.T5VALUE4,
       T.T6VALUE1,
       T.T6VALUE2,
       T.T6VALUE3,
       T.T6VALUE4,
       T.T7VALUE1,
       T.T7VALUE2,
       T.T7VALUE3,
       T.T7VALUE4,
       T.T8VALUE1,
       T.T8VALUE2,
       T.T8VALUE3,
       T.T8VALUE4,
       T.T9VALUE1,
       T.T9VALUE2,
       T.T9VALUE3,
       T.T9VALUE4,
       T.T10VALUE1,
       T.T10VALUE2,
       T.T10VALUE3,
       T.T10VALUE4,
       T.T11VALUE1,
       T.T11VALUE2,
       T.T11VALUE3,
       T.T11VALUE4,T.consign_dept
 FROM V_JHY_SHIYOUYINGDU 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.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="VJhyShiyouyingduDAL.QueryByPk" desc="通过主键查询">
        <![CDATA[
 SELECT 
       TO_CHAR(T.CHECK_TIME, 'YYYY-MM-DD HH24:MI:SS') CHECK_TIME,
       T.CHECK_NO,
       T.BATCH_NO,
       T.SAMPLE_NO,
       T.HEAT_NO,
       T.STEEL_GRADE,
       T.STEEL_NO,
       T.DIMATER,
       T.HEIGHT,
       T.CIC,
       T.DEVICE_NAME,
       T.ITEM_NAME_W,
       T.CHECK_STD,
       T.PHY_NAME_MIN,
       T.STDMAX,
       T.VALUE1,
       T.CHECK_CLASS,
       T.REPORTED_NAME,
       T.REMARK,
       T.T1VALUE5,
       T.T1VALUE6,
       T.T1VALUE1,
       T.T1VALUE2,
       T.T1VALUE3,
       T.T1VALUE4,
       T.T1AVERAGE_VALUE,
       T.T2AVERAGE_VALUE,
       T.T3AVERAGE_VALUE,
       T.T4AVERAGE_VALUE,
       T.T5AVERAGE_VALUE,
       T.T6AVERAGE_VALUE,
       T.T7AVERAGE_VALUE,
       T.T8AVERAGE_VALUE,
       T.T9AVERAGE_VALUE,
       T.T10AVERAGE_VALUE,
       T.T11AVERAGE_VALUE,
       T.T12VALUE1,
       T.T12VALUE2,
       T.T12VALUE3,
       T.T12VALUE4,
       T.T12AVERAGE_VALUE,
       T.T2VALUE1,
       T.T2VALUE2,
       T.T2VALUE3,
       T.T2VALUE4,
       T.T3VALUE1,
       T.T3VALUE2,
       T.T3VALUE3,
       T.T3VALUE4,
       T.T4VALUE1,
       T.T4VALUE2,
       T.T4VALUE3,
       T.T4VALUE4,
       T.T5VALUE1,
       T.T5VALUE2,
       T.T5VALUE3,
       T.T5VALUE4,
       T.T6VALUE1,
       T.T6VALUE2,
       T.T6VALUE3,
       T.T6VALUE4,
       T.T7VALUE1,
       T.T7VALUE2,
       T.T7VALUE3,
       T.T7VALUE4,
       T.T8VALUE1,
       T.T8VALUE2,
       T.T8VALUE3,
       T.T8VALUE4,
       T.T9VALUE1,
       T.T9VALUE2,
       T.T9VALUE3,
       T.T9VALUE4,
       T.T10VALUE1,
       T.T10VALUE2,
       T.T10VALUE3,
       T.T10VALUE4,
       T.T11VALUE1,
       T.T11VALUE2,
       T.T11VALUE3,
       T.T11VALUE4
 FROM V_JHY_SHIYOUYINGDU T
 WHERE
      1<>1
        ]]>
    </query>
    <query id="VJhyShiyouyingduDAL.Insert" desc="新增">
        <![CDATA[
 INSERT INTO V_JHY_SHIYOUYINGDU(
        CHECK_TIME,
        CHECK_NO,
        BATCH_NO,
        SAMPLE_NO,
        HEAT_NO,
        STEEL_GRADE,
        STEEL_NO,
        DIMATER,
        HEIGHT,
        CIC,
        DEVICE_NAME,
        ITEM_NAME_W,
        CHECK_STD,
        PHY_NAME_MIN,
        STDMAX,
        VALUE1,
        CHECK_CLASS,
        REPORTED_NAME,
        REMARK,
        T1VALUE5,
        T1VALUE6,
        T1VALUE1,
        T1VALUE2,
        T1VALUE3,
        T1VALUE4,
        T1AVERAGE_VALUE,
        T2AVERAGE_VALUE,
        T3AVERAGE_VALUE,
        T4AVERAGE_VALUE,
        T5AVERAGE_VALUE,
        T6AVERAGE_VALUE,
        T7AVERAGE_VALUE,
        T8AVERAGE_VALUE,
        T9AVERAGE_VALUE,
        T10AVERAGE_VALUE,
        T11AVERAGE_VALUE,
        T12VALUE1,
        T12VALUE2,
        T12VALUE3,
        T12VALUE4,
        T12AVERAGE_VALUE,
        T2VALUE1,
        T2VALUE2,
        T2VALUE3,
        T2VALUE4,
        T3VALUE1,
        T3VALUE2,
        T3VALUE3,
        T3VALUE4,
        T4VALUE1,
        T4VALUE2,
        T4VALUE3,
        T4VALUE4,
        T5VALUE1,
        T5VALUE2,
        T5VALUE3,
        T5VALUE4,
        T6VALUE1,
        T6VALUE2,
        T6VALUE3,
        T6VALUE4,
        T7VALUE1,
        T7VALUE2,
        T7VALUE3,
        T7VALUE4,
        T8VALUE1,
        T8VALUE2,
        T8VALUE3,
        T8VALUE4,
        T9VALUE1,
        T9VALUE2,
        T9VALUE3,
        T9VALUE4,
        T10VALUE1,
        T10VALUE2,
        T10VALUE3,
        T10VALUE4,
        T11VALUE1,
        T11VALUE2,
        T11VALUE3,
        T11VALUE4)
 VALUES( 
        SYSDATE,
        '#CHECK_NO#',
        '#BATCH_NO#',
        '#SAMPLE_NO#',
        '#HEAT_NO#',
        '#STEEL_GRADE#',
        '#STEEL_NO#',
        '#DIMATER#',
        '#HEIGHT#',
        '#CIC#',
        '#DEVICE_NAME#',
        '#ITEM_NAME_W#',
        '#CHECK_STD#',
        '#PHY_NAME_MIN#',
        '#STDMAX#',
        '#VALUE1#',
        '#CHECK_CLASS#',
        '#REPORTED_NAME#',
        '#REMARK#',
        '#T1VALUE5#',
        '#T1VALUE6#',
        '#T1VALUE1#',
        '#T1VALUE2#',
        '#T1VALUE3#',
        '#T1VALUE4#',
        '#T1AVERAGE_VALUE#',
        '#T2AVERAGE_VALUE#',
        '#T3AVERAGE_VALUE#',
        '#T4AVERAGE_VALUE#',
        '#T5AVERAGE_VALUE#',
        '#T6AVERAGE_VALUE#',
        '#T7AVERAGE_VALUE#',
        '#T8AVERAGE_VALUE#',
        '#T9AVERAGE_VALUE#',
        '#T10AVERAGE_VALUE#',
        '#T11AVERAGE_VALUE#',
        '#T12VALUE1#',
        '#T12VALUE2#',
        '#T12VALUE3#',
        '#T12VALUE4#',
        '#T12AVERAGE_VALUE#',
        '#T2VALUE1#',
        '#T2VALUE2#',
        '#T2VALUE3#',
        '#T2VALUE4#',
        '#T3VALUE1#',
        '#T3VALUE2#',
        '#T3VALUE3#',
        '#T3VALUE4#',
        '#T4VALUE1#',
        '#T4VALUE2#',
        '#T4VALUE3#',
        '#T4VALUE4#',
        '#T5VALUE1#',
        '#T5VALUE2#',
        '#T5VALUE3#',
        '#T5VALUE4#',
        '#T6VALUE1#',
        '#T6VALUE2#',
        '#T6VALUE3#',
        '#T6VALUE4#',
        '#T7VALUE1#',
        '#T7VALUE2#',
        '#T7VALUE3#',
        '#T7VALUE4#',
        '#T8VALUE1#',
        '#T8VALUE2#',
        '#T8VALUE3#',
        '#T8VALUE4#',
        '#T9VALUE1#',
        '#T9VALUE2#',
        '#T9VALUE3#',
        '#T9VALUE4#',
        '#T10VALUE1#',
        '#T10VALUE2#',
        '#T10VALUE3#',
        '#T10VALUE4#',
        '#T11VALUE1#',
        '#T11VALUE2#',
        '#T11VALUE3#',
        '#T11VALUE4#')
        ]]>
    </query>
    <query id="VJhyShiyouyingduDAL.Update" desc="修改">
        <![CDATA[
 UPDATE V_JHY_SHIYOUYINGDU T
   SET 
        T.CHECK_TIME = SYSDATE,
        T.CHECK_NO = '#CHECK_NO#',
        T.BATCH_NO = '#BATCH_NO#',
        T.SAMPLE_NO = '#SAMPLE_NO#',
        T.HEAT_NO = '#HEAT_NO#',
        T.STEEL_GRADE = '#STEEL_GRADE#',
        T.STEEL_NO = '#STEEL_NO#',
        T.DIMATER = '#DIMATER#',
        T.HEIGHT = '#HEIGHT#',
        T.CIC = '#CIC#',
        T.DEVICE_NAME = '#DEVICE_NAME#',
        T.ITEM_NAME_W = '#ITEM_NAME_W#',
        T.CHECK_STD = '#CHECK_STD#',
        T.PHY_NAME_MIN = '#PHY_NAME_MIN#',
        T.STDMAX = '#STDMAX#',
        T.VALUE1 = '#VALUE1#',
        T.CHECK_CLASS = '#CHECK_CLASS#',
        T.REPORTED_NAME = '#REPORTED_NAME#',
        T.REMARK = '#REMARK#',
        T.T1VALUE5 = '#T1VALUE5#',
        T.T1VALUE6 = '#T1VALUE6#',
        T.T1VALUE1 = '#T1VALUE1#',
        T.T1VALUE2 = '#T1VALUE2#',
        T.T1VALUE3 = '#T1VALUE3#',
        T.T1VALUE4 = '#T1VALUE4#',
        T.T1AVERAGE_VALUE = '#T1AVERAGE_VALUE#',
        T.T2AVERAGE_VALUE = '#T2AVERAGE_VALUE#',
        T.T3AVERAGE_VALUE = '#T3AVERAGE_VALUE#',
        T.T4AVERAGE_VALUE = '#T4AVERAGE_VALUE#',
        T.T5AVERAGE_VALUE = '#T5AVERAGE_VALUE#',
        T.T6AVERAGE_VALUE = '#T6AVERAGE_VALUE#',
        T.T7AVERAGE_VALUE = '#T7AVERAGE_VALUE#',
        T.T8AVERAGE_VALUE = '#T8AVERAGE_VALUE#',
        T.T9AVERAGE_VALUE = '#T9AVERAGE_VALUE#',
        T.T10AVERAGE_VALUE = '#T10AVERAGE_VALUE#',
        T.T11AVERAGE_VALUE = '#T11AVERAGE_VALUE#',
        T.T12VALUE1 = '#T12VALUE1#',
        T.T12VALUE2 = '#T12VALUE2#',
        T.T12VALUE3 = '#T12VALUE3#',
        T.T12VALUE4 = '#T12VALUE4#',
        T.T12AVERAGE_VALUE = '#T12AVERAGE_VALUE#',
        T.T2VALUE1 = '#T2VALUE1#',
        T.T2VALUE2 = '#T2VALUE2#',
        T.T2VALUE3 = '#T2VALUE3#',
        T.T2VALUE4 = '#T2VALUE4#',
        T.T3VALUE1 = '#T3VALUE1#',
        T.T3VALUE2 = '#T3VALUE2#',
        T.T3VALUE3 = '#T3VALUE3#',
        T.T3VALUE4 = '#T3VALUE4#',
        T.T4VALUE1 = '#T4VALUE1#',
        T.T4VALUE2 = '#T4VALUE2#',
        T.T4VALUE3 = '#T4VALUE3#',
        T.T4VALUE4 = '#T4VALUE4#',
        T.T5VALUE1 = '#T5VALUE1#',
        T.T5VALUE2 = '#T5VALUE2#',
        T.T5VALUE3 = '#T5VALUE3#',
        T.T5VALUE4 = '#T5VALUE4#',
        T.T6VALUE1 = '#T6VALUE1#',
        T.T6VALUE2 = '#T6VALUE2#',
        T.T6VALUE3 = '#T6VALUE3#',
        T.T6VALUE4 = '#T6VALUE4#',
        T.T7VALUE1 = '#T7VALUE1#',
        T.T7VALUE2 = '#T7VALUE2#',
        T.T7VALUE3 = '#T7VALUE3#',
        T.T7VALUE4 = '#T7VALUE4#',
        T.T8VALUE1 = '#T8VALUE1#',
        T.T8VALUE2 = '#T8VALUE2#',
        T.T8VALUE3 = '#T8VALUE3#',
        T.T8VALUE4 = '#T8VALUE4#',
        T.T9VALUE1 = '#T9VALUE1#',
        T.T9VALUE2 = '#T9VALUE2#',
        T.T9VALUE3 = '#T9VALUE3#',
        T.T9VALUE4 = '#T9VALUE4#',
        T.T10VALUE1 = '#T10VALUE1#',
        T.T10VALUE2 = '#T10VALUE2#',
        T.T10VALUE3 = '#T10VALUE3#',
        T.T10VALUE4 = '#T10VALUE4#',
        T.T11VALUE1 = '#T11VALUE1#',
        T.T11VALUE2 = '#T11VALUE2#',
        T.T11VALUE3 = '#T11VALUE3#',
        T.T11VALUE4 = '#T11VALUE4#'
 WHERE
      1<>1
        ]]>
    </query>
    <query id="VJhyShiyouyingduDAL.GetMaxPk" desc="获取最大主键">
        <![CDATA[
SELECT NVL(MAX(?), 0) + 1 MAX_VALUE FROM V_JHY_SHIYOUYINGDU T
        ]]>
    </query>
    <query id="VJhyShiyouyingduDAL.Delete" desc="作废">
        <![CDATA[
UPDATE V_JHY_SHIYOUYINGDU T
   SET
       T.VALIDFLAG = '0',
       T.DELETE_NAME = '#DELETE_NAME#',
       T.DELETE_TIME = SYSDATE
WHERE
      1<>1
        ]]>
    </query>
    <query id="VJhyShiyouyingduDAL.Resume" desc="恢复">
        <![CDATA[
UPDATE V_JHY_SHIYOUYINGDU 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>
