|
|
@@ -253,6 +253,36 @@
|
|
|
AND store.store_name LIKE CONCAT('%', #{storeName}, '%')
|
|
|
</if>
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="getCashOutDetail" resultType="shop.alien.entity.store.vo.ManagementInfoVo">
|
|
|
+ SELECT
|
|
|
+ cash.id AS cash_id,
|
|
|
+ store.store_name AS store_name ,
|
|
|
+ storeUser.phone AS store_phone ,
|
|
|
+ store.id AS store_id,
|
|
|
+ cash.cash_out_type,
|
|
|
+ CASE
|
|
|
+ cash.cash_out_type
|
|
|
+ WHEN 0 THEN
|
|
|
+ "手动提现"
|
|
|
+ WHEN 1 THEN
|
|
|
+ "到期自动提现"
|
|
|
+ END AS cash_out_type_name,
|
|
|
+ ROUND(IFNULL(cash.money, 0) / 100,2) AS money,
|
|
|
+ cash.created_time,
|
|
|
+ cash.payment_date,
|
|
|
+ cash.approve_time,
|
|
|
+ cash.pay_date,
|
|
|
+ cash.fail_reason,
|
|
|
+ cash.payment_status,
|
|
|
+ cash.approve_fail_reason
|
|
|
+ FROM
|
|
|
+ store_cash_out_record cash
|
|
|
+ LEFT JOIN store_info store ON cash.store_id = store.id
|
|
|
+ LEFT JOIN store_user storeUser ON storeUser.store_id = store.id
|
|
|
+ WHERE cash.id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="getPlatformNetProfit" resultType="shop.alien.entity.store.vo.ManagementInfoVo">
|
|
|
select IFNULL(ROUND(sum(all_data.platform_profit),2), 0) AS profit from
|
|
|
(SELECT
|