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
<?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="WarehouseTreeCheckingQuery">
        <![CDATA[
 
SELECT
    a.ioch_id,
    a.ioch_locationid,
    a.ioch_sn,
    a.ioch_year_month,
    a.ioch_date,
    a.ioch_state,
    a.ioch_bbwh_id,
    a.ioch_prtu_id,
    a.ioch_ouex_id,
    a.creator,
    a.create_time,
    a.modifier,
    a.modify_time,
    b.bbwt_name,
    b.bbwh_ids
FROM
    io_check a
LEFT JOIN bb_warehouse b ON a.ioch_bbwh_id = b.bbwh_id
WHERE
    1 = 1
<<AND bbwt_locationid=:locationid>>
<<AND ioch_locationid=:locationid>>
<<AND ioch_year_month=:yearMonth>>
<<AND bbwh_ids not like concat('%,',:notBbwhId,',%')>>
   and ##CONDITIONS##
 
        ]]>
    </sql-query>
</hibernate-mapping>