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