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
| <?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="ExitListQuery">
| <![CDATA[
|
| SELECT
| ouex_id,
| ouex_sn,
| ouex_exit_date,
| ouex_exit_type,
| ouex_state,
| ouex_remark,
| a.creator,
| bbbp_name,
| sum(ifnull(oued_size,0)) ouex_size,
| ouex_total
| FROM
| out_exit a
| LEFT JOIN out_exit_detail ON ouex_id = oued_ouex_id
| LEFT JOIN bb_business_partner ON bbbp_id = ouex_bbbp_id
| WHERE
| 1 = 1
| <<and (ouex_sn like concat('%', :exitInfo, '%') or bbbp_name like concat('%', :exitInfo, '%') )>>
| <<and ouex_state=:ouexState>>
| <<and ouex_exit_date>=:beginExitDate>>
| <<and ouex_exit_date<=:endExitDate>>
| <<and ouex_exit_type=:ouexExitType>>
| <<and ouex_locationid=:locationid>>
| <<and ouex_id=:ouexId>>
| and ##CONDITIONS##
|
| ]]>
| </sql-query>
| </hibernate-mapping>
|
|