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="ProductItemInWarehouseQuery">
| <![CDATA[
|
| SELECT
| a.bbit_id,
| a.bbit_bbpr_id,
| a.bbit_cgpd_id,
| a.bbit_cged_id,
| a.bbit_sheng_chan_date,
| a.bbit_xiao_qi_date,
| a.bbit_xu_hao,
| a.bbit_batch_number,
| a.bbit_remark,
| a.bbit_code,
| a.bbit_rev1,
| a.bbit_rev2,
| a.bbit_rev3,
| a.bbit_rev4,
| a.bbit_locationid,
| a.creator,
| a.create_time,
| a.modifier,
| a.modify_time,
| a.bbit_bbwh_id,
| a.bbit_price,
| a.bbit_is_exit,
| a.bbit_bbbp_id,
| a.bbit_bbbp_sn
| FROM
| bb_product_item a
| LEFT JOIN bb_warehouse b ON a.bbit_bbwh_id = b.bbwh_id
| WHERE
| 1 = 1
| <<AND bbit_bbpr_id = :bbprId>>
| <<AND bbit_is_exit = :bbitIsExit>>
| <<AND bbit_locationid =:locationid>>
| <<AND bbwh_ids LIKE concat('%', :bbwhId, '%')>>
|
| ]]>
| </sql-query>
| </hibernate-mapping>
|
|