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
48
49
50
51
| <?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="ProductListQuery">
| <![CDATA[
|
| SELECT
| a.bbpr_id,
| a.bbpr_sn,
| a.bbpr_name,
| a.bbpr_en_name,
| a.bbpr_unit,
| a.bbpr_style,
| a.bbpr_brand,
| a.bbpr_attribute,
| a.bbpr_purchase_max,
| a.bbpr_inventory_max,
| a.bbpr_inventory_min,
| a.bbpr_sale_price,
| a.bbpr_into_social_security,
| a.bbpr_state,
| a.bbpr_pickable,
| a.bbpr_desc,
| a.bbpr_syacc_ids,
| a.bbpr_locationid,
| a.bbpr_bbbr_id,
| a.creator,
| a.create_time,
| a.modifier,
| a.modify_time,
| a.bbpr_sydi_id,
| a.bbpr_management_model,
| a.bbpr_into_inventory_manage,
| a.bbpr_code,
| a.bbpr_code1,
| a.bbpr_code2,
| a.bbpr_into_barcode,
| a.bbpr_pick_max,
| b.bbbr_name
| from bb_product a
| left join bb_branch b on bbpr_bbbr_id=b.bbbr_id
| where 1=1
| <<and bbbr_id=:bbbrId>>
| and ##CONDITIONS##
|
| ]]>
| </sql-query>
| </hibernate-mapping>
|
|