## 订单查询不强制判断体系必须存在;
This commit is contained in:
parent
75ae4b8bcb
commit
d79cd0a91a
|
@ -771,11 +771,11 @@
|
|||
left join sa_order so on oi.PK_ORDER = so.PK_ID
|
||||
left join cu_member m on m.PK_ID = so.PK_CREATOR
|
||||
left join cu_member cm on cm.PK_ID = so.PK_MEMBER
|
||||
left join bd_vertex ver on ver.PK_ID = cm.PK_VERTEX
|
||||
left join bd_vertex ver on ver.PK_ID = cm.PK_VERTEX and ver.del_flag = 0
|
||||
left join bd_wares_extend we on we.PK_WARES = oi.PK_WARES
|
||||
left join bd_wares bw on bw.PK_ID = we.PK_WARES
|
||||
left join bd_product bp on bp.PK_ID = oi.PK_PRODUCT
|
||||
where oi.del_flag = 0 and so.del_flag = 0 and ver.del_flag = 0
|
||||
where oi.del_flag = 0 and so.del_flag = 0
|
||||
<if test="addPurchaseFlag != null and addPurchaseFlag == 0">
|
||||
and oi.pk_order in (
|
||||
select distinct soi.pk_order
|
||||
|
|
|
@ -658,9 +658,8 @@
|
|||
from sa_order so
|
||||
left join CU_MEMBER cm on cm.PK_ID = so.PK_MEMBER
|
||||
left join CU_MEMBER m on m.PK_ID = so.PK_CREATOR
|
||||
left join BD_VERTEX ver on ver.PK_ID = cm.PK_VERTEX
|
||||
left join BD_VERTEX ver on ver.PK_ID = cm.PK_VERTEX and ver.DEL_FLAG = 0
|
||||
where so.DEL_FLAG = 0
|
||||
and ver.DEL_FLAG = 0
|
||||
<if test="addPurchaseFlag != null and addPurchaseFlag == 0">
|
||||
and so.PK_ID in (
|
||||
select distinct soi.pk_order
|
||||
|
|
Loading…
Reference in New Issue