<?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>
|