Helius
2020-08-29 07888c58174c6209740c5f3677914f6234e4a3e8
modify
1 files modified
5 ■■■■■ changed files
src/main/java/com/xcong/excoin/utils/CalculateUtil.java 5 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/utils/CalculateUtil.java
@@ -115,6 +115,7 @@
                    openPrice = holdOrderEntity.getOpeningPrice();
                    type = holdOrderEntity.getOpeningType();
                    index++;
                    log.info("--{}, {}, {}, {}, {}", maxCnt, subCnt, openPrice, type, index);
                }
                if (index == 0) {
@@ -123,14 +124,14 @@
                    subCnt = holdOrderEntity.getSymbolCntSale();
                    type = holdOrderEntity.getOpeningType();
                    openPrice = holdOrderEntity.getOpeningPrice();
                    log.info("{}, {}, {}, {}", maxCnt, subCnt, type, openPrice);
                    log.info("---{}, {}, {}, {}, {}", maxCnt, subCnt, type, openPrice, index);
                }
                feeAmount = feeAmount.add(holdOrderEntity.getOpeningFeeAmount());
                sku = holdOrderEntity.getSymbolSku();
            }
            BigDecimal forceSetPrice = BigDecimal.ZERO;
            if (subCnt != 0) {
                log.info("{}, {}, {}, {}, {}", openPrice, subCnt, sku, type, maxCnt);
                log.info("--->{}, {}, {}, {}, {}", openPrice, subCnt, sku, type, maxCnt);
                forceSetPrice = getForceSetPrice(walletContract.getTotalBalance().subtract(feeAmount), openPrice, subCnt, sku, type, memberEntity);
            }