update 部分接口新增返回算力单位

This commit is contained in:
yyb
2026-01-28 15:02:09 +08:00
parent f8d1bdf819
commit 96a49c5813
7 changed files with 65 additions and 2 deletions

View File

@@ -527,6 +527,8 @@ public class LeaseOrderInfoServiceImpl extends ServiceImpl<LeaseOrderInfoMapper,
.image(leaseOrderItem.getImage())
.numbers(leaseOrderItem.getNumbers())
.type(leaseOrderItem.getType() ? 1 : 0)
//TODO 先默认MH/S
.unit("MH/S")
.build());
// 累加支付金额
@@ -573,6 +575,8 @@ public class LeaseOrderInfoServiceImpl extends ServiceImpl<LeaseOrderInfoMapper,
.totalTheoryPower(BigDecimal.ZERO)
.totalPracticalPower(BigDecimal.ZERO)
.totalPayAmount(BigDecimal.ZERO)
//TODO 先默认MH/S
.unit("MH/S")
.build();
@@ -603,6 +607,8 @@ public class LeaseOrderInfoServiceImpl extends ServiceImpl<LeaseOrderInfoMapper,
.practicalPower(practicalPower)
.powerRatio(powerRatio)
.payAmount(alreadyPayRealAmount)
//TODO 先默认MH/S
.unit("MH/S")
.build());
}
orderInfoDto.setPayCoin(list.get(0).getPayCoin());