update 已购商品查询接口问题修复
This commit is contained in:
@@ -69,8 +69,7 @@
|
||||
</update>
|
||||
|
||||
<select id="getPurchasedItems" resultType="com.m2pool.lease.dto.v2.PurchasedMachineListDto">
|
||||
select
|
||||
id,
|
||||
select MAX(id) as id,
|
||||
coin,
|
||||
algorithm,
|
||||
pool,
|
||||
@@ -78,11 +77,11 @@
|
||||
pool_user as poolUser,
|
||||
wallet_address as walletAddress,
|
||||
watch_url as watchUrl,
|
||||
end_time
|
||||
MAX(end_time) as endTime
|
||||
FROM lease_order_mining
|
||||
WHERE auth_id = #{authId}
|
||||
GROUP BY wallet_address,pool_user,pool,pool_url,coin,`algorithm`
|
||||
ORDER BY `status` DESC,end_time DESC
|
||||
GROUP BY coin,`algorithm`,pool,pool_url,pool_user,wallet_address,watch_url
|
||||
ORDER BY endTime DESC
|
||||
</select>
|
||||
<select id="getPurchasedInfo" resultType="com.m2pool.lease.dto.v2.MiningConfigInfoDto">
|
||||
select
|
||||
|
||||
Reference in New Issue
Block a user