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
31
| <?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="PsingRightDownQuery">
| <![CDATA[
|
| select
| ouql_order_date,ouql_id,ouql_sn,ouql_order_author,ouql_org,ouql_recived_author,ouql_type,
| if(CONCAT(ouql_remark,',',ouqd_remark)=',','',CONCAT(ouql_remark,',',ouqd_remark))as ouqd_remark,
| ouqd_id,ouqd_size,ouqd_send_size,ouqd_jia_ji,ouqd_pei_huo_author
| from out_qingling_detail w1
| left join out_qingling on ouql_id=ouqd_ouql_id
| left join bb_product on ouqd_bbpr_id=bbpr_id
|
| where 1=1
| and ouql_state='保存'
| and ouql_flow_state=100
| and ouqd_send_size<ouqd_size
| and ouqd_state <> '完成'
| and ouqd_process_date is not null
| and bbpr_id=:bbprId
| and ouqd_locationid=:locationid
| and ouqd_process_date=:ouqdProcessDate
| and ##CONDITIONS##
|
| ]]>
| </sql-query>
| </hibernate-mapping>
|
|