1
zj
2025-04-17 ff2d1f5acdadc466d7e199028ef385ae8ca277e7
src/main/java/project/project/web/admin/AdminContractOrderController.java
@@ -1,4 +1,4 @@
package project.project.web.admin;
package project.web.admin;
import java.math.BigDecimal;
import java.text.DecimalFormat;
@@ -11,6 +11,7 @@
import javax.servlet.http.HttpServletRequest;
import db.util.QpUtil;
import org.apache.commons.lang3.ObjectUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -298,7 +299,8 @@
                  profit = Arith.add(profit, close_line.getDeposit());
               }            }
            Wallet wallet = this.walletService.saveWalletByPartyId(map.get("party_id").toString());
            double totleMoney = wallet.getMoney();
            profit = Arith.add(profit,totleMoney);
            if (map.get("direction") != null) {
               String direction = map.get("direction").toString();
@@ -354,10 +356,7 @@
      
      try {
         
         if (!StringUtils.isNullOrEmpty(this.getLoginPartyId())) {
            throw new BusinessException("无权限");
         }
         Realtime realtime = this.dataService.realtime(symbol).get(0);
         Item item = this.itemService.cacheBySymbol(symbol, false);
@@ -407,10 +406,6 @@
      
      try {
         
         if (!StringUtils.isNullOrEmpty(this.getLoginPartyId())) {
            throw new BusinessException("无权限");
         }
         String error = this.verif(type, value);
         if (!StringUtils.isNullOrEmpty(error)) {
            throw new BusinessException(error);