1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| <?xml version="1.0"?>
| <!DOCTYPE hibernate-mapping PUBLIC
| "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
| <hibernate-mapping>
| <sql-query name="IoTurnStorageQuery">
| <![CDATA[
|
| select
| t.iots_id,
| t.iots_bbss_id,
| t.iots_sn,
| t.iots_flag,
| t.iots_totalize,
| t.iost_remark,
| t.iots_entry_date,
| t.creator,
| t.create_time,
| t.modifier,
| t.modify_time,
| s.bbss_name
| from
| io_turn_storage t
| left join bb_sub_storage s on t.iots_bbss_id = s.bbss_id
| where 1=1
| <<and t.iots_flag = :tsFlag>>
| <<and t.iots_entry_date >= :startDate>>
| <<and t.iots_entry_date <= :endDate>>
| and ##CONDITIONS##
|
| ]]>
| </sql-query>
| </hibernate-mapping>
|
|