liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
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
<?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="BbProcurePriceQuery">
        <![CDATA[
 
select 
p.bbpp_id,
p.bbpp_bbbp_id,
p.bbpp_bbst_id,
p.bbpp_price,
p.create_time,
p.creator,
p.modifier,
p.modify_time,
p.bbpp_flag,
p.bbpp_log,
s.bbst_style,
s.bbst_name,
b.bbbp_name,
b.bbbp_linker,
b.bbbp_telephone,
b.bbbp_type
from 
bb_business_partner as b,
bb_procure_price AS p ,
bb_stuff AS s 
where
p.bbpp_bbbp_id =  b.bbbp_id
and s.bbst_id =p.bbpp_bbst_id
<<and p.bbpp_id=:bbppId>>
<<and p.bbpp_bbst_id=:bbppBbstId>>
<<and p.bbpp_bbbp_id=:bbppBbbpId>>
<<and p.bbpp_price=:bbppPrice>>
 
   and ##CONDITIONS##
 
        ]]>
    </sql-query>
</hibernate-mapping>