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
| <?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="ProductItemByCodeQuery">
| <![CDATA[
|
| SELECT
| a.bbit_bbpr_id AS bbpr_id,
| a.bbit_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
| from bb_product_item a
| where 1=1
| <<and bbit_batch_number=:batchNumber>>
| <<and bbit_locationid=:locationid>>
| <<and bbit_xu_hao=:xuHao>>
| and ##CONDITIONS##
|
| ]]>
| </sql-query>
| </hibernate-mapping>
|
|