|
@@ -53,18 +53,24 @@
|
|
|
user_account_detail
|
|
|
where
|
|
|
type = 18
|
|
|
+ and
|
|
|
+ DATE_FORMAT( create_time, "%Y-%m-%d" ) = DATE_FORMAT(now(), "%Y-%m-%d" )
|
|
|
),0)systemSendBeans,
|
|
|
ifnull((select
|
|
|
- -sum(trade_sugar)
|
|
|
+ sum(with_draw_amount) * 10
|
|
|
from
|
|
|
- user_account_detail
|
|
|
+ user_account_with_draw_detail
|
|
|
where
|
|
|
- type = 4
|
|
|
+ status = 3
|
|
|
+ and
|
|
|
+ DATE_FORMAT( create_time, "%Y-%m-%d" ) = DATE_FORMAT(now(), "%Y-%m-%d" )
|
|
|
),0) withDrawalSugars
|
|
|
from
|
|
|
user_account_detail
|
|
|
where
|
|
|
type = 0
|
|
|
+ and
|
|
|
+ DATE_FORMAT( create_time, "%Y-%m-%d" ) = DATE_FORMAT(now(), "%Y-%m-%d" )
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|