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