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
| <?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="SupplierListByProductIdQuery">
| <![CDATA[
|
| SELECT
| a.bbbp_id,
| a.bbbp_name,
| a.bbbp_sn,
| bbpp_id,
| bbpp_price,
| bbbp_gongyingjiezhi_date
| FROM
| bb_product_partner
| LEFT JOIN bb_business_partner a ON bbpp_bbbp_id = bbbp_id
| WHERE
| 1 = 1
| <<and bbpp_locationid=:locationid>>
| <<and bbpp_bbpr_id=:bbprId>>
| <<and bbpp_state=:bbppState>>
| and ##CONDITIONS##
|
| ]]>
| </sql-query>
| </hibernate-mapping>
|
|