Commit 9a23ee2b by yinyong

数据中心--资产负债表第三方平台余额统计修改

parent c3bf0f70
......@@ -14,7 +14,7 @@ import java.util.List;
@Repository
public interface DcPlatformBalanceMapper {
@Select("select sum(case platformcode when 'Ebay' then userable_amount_rmb when 'Aliexpress' then userable_amount_rmb " +
"else (before_balance+amount_sales-withdraw_amount)*exchangerate end) platform_balance from dc_platform_balance where day=#{lastDay} and delstatus=0")
"else (before_balance+amount_sales-withdraw_amount)*exchangerate end) platform_balance from dc_platform_balance where day=#{lastDay} and delstatus=0 and platformcode in ('Ebay', 'Aliexpress')")
BigDecimal getPlatformBalanceSum(@Param("lastDay") Date lastDay);
@Insert("<script>" +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment