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
25
26
27
<?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="QingLingHistoryDetailQuery">
        <![CDATA[
 
select 
ouql_id,
ouqd_bbpr_id,ouqd_size,ouqd_send_size,ouqd_remark,ouqd_jia_ji,bbpr_style,
bbpr_sn,bbpr_size,bbpr_name,bbpr_brand,sydi_name as bbpr_lei_xing,ouqd_id
from out_qingling_detail  
left join out_qingling on ouql_id = ouqd_ouql_id
left join bb_product on bbpr_id=ouqd_bbpr_id
left join sys_dictionary on sydi_id=bbpr_sydi_id
where 1=1
<<and ouql_locationid = :locationid>>
<<and ouqd_ouql_id = :detailpid>>
<<and ouql_org = :ouqlOrg>>
and ##CONDITIONS## 
GROUP BY ouqd_bbpr_id
 
        ]]>
    </sql-query>
</hibernate-mapping>