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="VerifyCheckProductIsAllQuery">
        <![CDATA[
 
select bbpr_name,iocd_id,bbpr_size from bb_product
left JOIN io_check_detail on bbpr_id=iocd_bbpr_id
left join io_check on iocd_ioch_id=ioch_id
    where 1=1
    and bbpr_locationid=:locationid
    and (ioch_year_month=:iochYearMonth or ioch_year_month is null)
    and bbpr_size>0
       and ##CONDITIONS##
group by bbpr_id
HAVING iocd_id is NULL and bbpr_size>0
 
        ]]>
    </sql-query>
</hibernate-mapping>