<?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="WillCheckEntryCountQuery">
|
<![CDATA[
|
|
SELECT
|
count(bbit_id) scan_size
|
FROM
|
cg_procure
|
LEFT JOIN cg_procure_detail ON cgpr_id = cgpd_cgpr_id
|
LEFT JOIN bb_product_item ON bbit_cgpd_id = cgpd_id
|
WHERE
|
1 = 1
|
and bbit_cged_id is null
|
<<and bbit_locationid=:locationid>>
|
<<and cgpr_locationid=:locationid>>
|
<<and cgpd_locationid=:locationid>>
|
<<and cgpr_id in (:cgprIds)>>
|
|
]]>
|
</sql-query>
|
</hibernate-mapping>
|