<?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="ProductWarehouseItemEditQuery">
|
<![CDATA[
|
|
select bbit_id,bbit_sheng_chan_date,bbit_xiao_qi_date,bbit_xu_hao,bbit_batch_number from bb_product_item
|
left join bb_product on bbit_bbpr_id=bbpr_id
|
where 1=1
|
<<and bbit_bbpr_id=:bbprId>>
|
<<and bbit_bbwh_id=:warehouseId>>
|
<<and bbit_locationid=:locationid>>
|
<<and if((:wareHouseIsNull='-2'),bbit_bbwh_id is null,1=1)>>
|
and ##CONDITIONS##
|
|
]]>
|
</sql-query>
|
</hibernate-mapping>
|