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
<?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,
(select count(*) from  io_stuff_pick_detail  where iopd_flag<5 and iopd_volume=cgsd_volume) as countIopd
from cg_stuff_entry_detail 
where
cgsd_bbst_id = :bbstId
and cgsd_now_amount_w>0
   and ##CONDITIONS##
 
        ]]>
    </sql-query>
</hibernate-mapping>