<?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="MonthProductionEntryQuery">
|
<![CDATA[
|
|
select cgsd_id,cgsd_cgse_id,bbpr_id,cgse_entry_date,bbpr_style,
|
bbpr_name,bbpr_grammage,cgsd_amount_w,cgsd_reject_amount,cgsd_remark
|
from cg_stuff_entry_detail
|
left join cg_stuff_entry cgse on cgsd_cgse_id=cgse_id
|
left join bb_product on cgsd_bbpr_id=bbpr_id
|
where cgse_flag_entry='生产'
|
<<and cgse_entry_date >=:beginDate>>
|
<<and cgse_entry_date <=:endDate>>
|
<<and cgse.factory_id in (:factoryIds)>>
|
<<and bbpr_grammage in (:bbprGrammage)>>
|
<<and bbpr_name like concat("%",:bbprName,"%")>>
|
|
]]>
|
</sql-query>
|
</hibernate-mapping>
|