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
<?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="CheckForEditQuery">
        <![CDATA[
 
SELECT
    a.ioch_sn,
    a.ioch_date,
    a.ioch_year_month,
    a.ioch_state,
    b.bbwt_name
FROM
    io_check a
LEFT JOIN bb_warehouse b ON a.ioch_bbwh_id = b.bbwh_id
WHERE
    1 = 1
<<AND a.ioch_locationid=:locationid>>
<<AND b.bbwt_locationid=:locationid>>
<<AND a.ioch_id=:iochId>>
 
        ]]>
    </sql-query>
</hibernate-mapping>