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
<?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="FindStuffEntryDetailVolumeQuery">
        <![CDATA[
 
select
cgsd_id,
cgsd_volume,
cgsd_now_amount_w,
iopd_flag
from cg_stuff_entry_detail 
left join io_stuff_pick on cgsd_bbst_id=iosp_bbst_id
left join io_stuff_pick_detail on iosp_id=iopd_iosp_id
where
cgsd_bbst_id = :bbstId
and cgsd_now_amount_w>0
   and ##CONDITIONS##
 
        ]]>
    </sql-query>
</hibernate-mapping>