36 lines
982 B
XML
36 lines
982 B
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE sqls SYSTEM "sql_definition.dtd">
|
||
|
<sqls>
|
||
|
<sql group="rushrecord">
|
||
|
<!-- <i id="getRecord"><![CDATA[
|
||
|
select *
|
||
|
from RUSH_LOG t
|
||
|
where t.action = 'rushfee'
|
||
|
and t.obj_id in
|
||
|
(select r.id from rush_record r where r.customer_id ={customer_id})
|
||
|
order by t.operate_date desc
|
||
|
|
||
|
]]></i>-->
|
||
|
|
||
|
|
||
|
<i id="getRecord"><![CDATA[
|
||
|
|
||
|
select s.*
|
||
|
from(
|
||
|
select t.*
|
||
|
from RUSH_LOG t,rush_record r
|
||
|
where t.action = 'rushfee'
|
||
|
and t.obj_id = r.id
|
||
|
and to_date(r.end_date,'yyyy-mm-dd') = (
|
||
|
select max(to_date(end_date,'YYYY-mm-dd'))
|
||
|
from rush_record
|
||
|
where customer_id ={customer_id} )
|
||
|
and r.customer_id = {customer_id}
|
||
|
order by t.operate_date desc
|
||
|
) s
|
||
|
where rownum<={text}
|
||
|
|
||
|
]]></i>
|
||
|
|
||
|
</sql>
|
||
|
</sqls>
|