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
28
29
30
<?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="QingLingEditQuery">
        <![CDATA[
 
select 
ouql_id,
ouqd_id,ouqd_bbpr_id,ouqd_size,ouqd_send_size,ouqd_remark,ouqd_jia_ji,ouqd_bbwh_id,
bbpr_style,bbpr_sn,bbpr_size,bbpr_name,bbpr_brand,sydi_name as bbpr_lei_xing,
bbwt_name,bbwh_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
left join bb_warehouse on ouqd_bbwh_id = bbwh_id
left join bb_product_item on bbpr_id = bbit_bbpr_id
where 1=1
and bbit_is_exit!='Y'
<<and ouql_locationid = :locationid>>
<<and ouqd_ouql_id = :detailpid>>
<<and ouql_org = :ouqlOrg>>
and ##CONDITIONS## 
 
        ]]>
    </sql-query>
</hibernate-mapping>