update 部分接口新增返回算力单位
This commit is contained in:
@@ -49,7 +49,8 @@
|
||||
loo.create_time as createTime,
|
||||
loo.update_time as endTime,
|
||||
loo.shop_name as shopName,
|
||||
loo.coin as payCoin
|
||||
loo.coin as payCoin,
|
||||
'MH/S' as unit
|
||||
from lease_order_info loo
|
||||
<where>
|
||||
del = 0
|
||||
|
||||
@@ -155,6 +155,27 @@
|
||||
</foreach>
|
||||
)
|
||||
</select>
|
||||
<select id="getHashrateInRange" resultType="com.m2pool.lease.dto.v2.RealHashrateInfoDto">
|
||||
SELECT
|
||||
hashrate AS power,
|
||||
pool_name AS pool,
|
||||
wallet AS walletAddress,
|
||||
miner AS miner,
|
||||
algorithm,
|
||||
coin,
|
||||
datetime
|
||||
FROM
|
||||
`${tableName}`
|
||||
WHERE
|
||||
datetime >= #{startTime}
|
||||
AND datetime <= #{endTime}
|
||||
AND (wallet, coin, miner, algorithm) IN (
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(#{item.walletAddress}, #{item.coin}, #{item.miner}, #{item.algorithm})
|
||||
</foreach>
|
||||
)
|
||||
ORDER BY datetime ASC
|
||||
</select>
|
||||
<select id="getMiningInfoByOrderId" resultType="com.m2pool.lease.dto.v2.PurchasedMachineListDto">
|
||||
select
|
||||
id ,
|
||||
|
||||
Reference in New Issue
Block a user