<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc = "ip报备表">
<query id = "FrmIpMonitor.getLoadIpMonitor" desc = "IP报备表">
<![CDATA[
 SELECT
       T.USERID,
       T.USERNAME,
       T.USERIP,
       T.CREATNAME,
       TO_CHAR(T.CREATEDATE, 'YYYY-MM-DD HH24:MI:SS') CREATEDATE ,
        t.remark
 FROM LoadIPMONITOR  T
 WHERE
1=1
]]>
</query>

    <query id="FrmIpMonitor.DeleteLoadIpMonitor" desc="">
        <![CDATA[
   DELETE from  LoadIPMONITOR t
 WHERE
      T.USERID = '#USERID#'
      and   T.USERNAME = '#USERNAME#'
      and T.USERIP = '#USERIP#'
      and T.CREATNAME = '#CREATNAME#'
      and TO_CHAR(T.CREATEDATE, 'YYYY-MM-DD HH24:MI:SS')  = '#CREATEDATE#'
	  ]]>
    </query>

    <query id="FrmIpMonitor.AddLoadIpMonitor" desc="">
        <![CDATA[
    INSERT INTO LOADIPMONITOR(
        USERID,
        USERNAME,
        USERIP,
        CREATNAME,
        CREATEDATE,
        REMARK)
 VALUES(
        '#USERID#',
        '#USERNAME#',
        '#USERIP#',
        '#CREATNAME#',
        SYSDATE,
        '#REMARK#'
        )
	  ]]>
    </query>
    <query id = "FrmIpMonitor.getLoadRecord" desc = "登录记录">
        <![CDATA[
       select distinct t1.userid, t2.username, t1.ip, t1.ldatetime ，t2.remark
        from CORE_APP_LOGINRECORD t1, LoadIPMONITOR t2
       where t1.userid = t2.userid  and 1=1
]]>
    </query>

</queryMap>