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
35
36
37
38
39
40
41
42
43
44
45
46
47
| <?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="IoDeliverDetailListQuery">
| <![CDATA[
|
| select
| d.iodd_id,
| d.iodd_did,
| d.iodd_iode_id,
| d.iodd_bbpr_id,
| d.iodd_bbst_id,
| d.iodd_prod_id,
| d.iodd_goods_type,
| d.iodd_cost_price,
| d.iodd_product_name,
| d.iodd_sale_price,
| d.iodd_size,
| d.iodd_sub_total,
| d.iodd_print_flag,
| d.iodd_type,
| d.iodd_return_size,
| d.iodd_tax,
| d.iodd_remark,
| s.bbst_name,
| s.bbst_type,
| s.bbst_style,
| t.iode_sn,
| t.iode_saler,
| p.bbpr_name,
| p.bbpr_style,
| t.create_time
| from io_deliver_detail d
| Left Join io_deliver t ON d.iodd_iode_id = t.iode_id
| Left Join bb_stuff s ON d.iodd_bbst_id = s.bbst_id
| Left Join bb_product p ON d.iodd_bbpr_id = p.bbpr_id
| where 1 = 1
| << t.create_time >= :startCreateTime >>
| << t.create_time <= :endCreateTime >>
| and ##CONDITIONS##
|
| ]]>
| </sql-query>
| </hibernate-mapping>
|
|