|
|
@@ -842,7 +842,7 @@ func (r *InternalUncorrelatedTradeDetail) buildSql() string {
|
|
|
ta.accountname TAACCOUNTNAME,
|
|
|
ept.ACCOUNTID,
|
|
|
ept.CHANNELBUILDTYPE,
|
|
|
- (ept.TRADELOT - ept.RELATEDQTY) ENABLEQTY
|
|
|
+ (ept.MIDDLEGOODSQTY - ept.RELATEDQTY) ENABLEQTY
|
|
|
FROM ERMCP_PA_TRADELINK ept
|
|
|
LEFT JOIN goods g ON ept.goodsid = g.goodsid
|
|
|
LEFT JOIN taaccount ta ON ta.accountid = ept.accountid
|