|
|
@@ -357,7 +357,7 @@ |
|
|
</if> |
|
|
</if> |
|
|
GROUP BY merchant_id |
|
|
GROUP BY merchant_id |
|
|
) d on d.merchant_id = wm.id |
|
|
) d on d.merchant_id = wm.id |
|
|
where (sumAddCredit > 0 or sumLesCredit < 0) |
|
|
|
|
|
|
|
|
where (IFNULL(a.sum_credit_num,0) > 0 or IFNULL(b.sum_credit_num,0) < 0) |
|
|
ORDER BY sumAddCredit desc |
|
|
ORDER BY sumAddCredit desc |
|
|
|
|
|
|
|
|
</select> |
|
|
</select> |
|
|
|