|
|
@@ -243,9 +243,9 @@ open class AccountData(
|
|
|
if (it.buyorsell == "1") { //卖方向
|
|
|
Profit = NumberUtils.roundNum(
|
|
|
(quoteDayData.getPrice()).times(it.curpositionqty?.toDouble() ?: 0.0)
|
|
|
- .times(goodsInfo2.agreeunit).minus((it.curholderamount?.toDouble() ?: 0.0).times(-1)).toString(),
|
|
|
+ .times(goodsInfo2.agreeunit).minus(it.curholderamount?.toDouble() ?: 0.0).toString(),
|
|
|
2
|
|
|
- ).toDouble()
|
|
|
+ ).toDouble().times(-1)
|
|
|
} else {
|
|
|
Profit = NumberUtils.roundNum(
|
|
|
(quoteDayData.getPrice()).times(it.curpositionqty?.toDouble() ?: 0.0)
|