1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| <?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="ProductWarehouseEditQuery">
| <![CDATA[
|
| select bbpr_size,bbpr_id,bbpr_sn,bbpr_name,bbpr_brand from bb_product_item left join
| bb_product on bbit_bbpr_id = bbpr_id
| where 1=1
| <<and bbit_locationid = :locationid>>
| and bbit_is_exit <> 'Y'
| <<and bbit_bbwh_id = :warehouseId>>
| <<and if((:wareHouseIsNull='-2'),bbit_bbwh_id is null,1=1)>>
| <<and (bbpr_sn like concat("%",:message,"%") or bbpr_name like concat("%",:message,"%") or bbpr_brand like concat("%",:message,"%"))>>
| group by bbit_bbpr_id
|
| ]]>
| </sql-query>
| </hibernate-mapping>
|
|