瀏覽代碼

调整批量首页花费计算逻辑

yumeng 3 年之前
父節點
當前提交
1ae055d7f6

+ 3 - 3
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/BatchServiceImpl.java

@@ -63,10 +63,10 @@ public class BatchServiceImpl implements IBatchService {
      */
     @Override
     public BigDecimal getCost(Long accountId) {
-        BigDecimal dailyCost = batchMapper.getDailyCost(accountId);
+        //BigDecimal dailyCost = batchMapper.getDailyCost(accountId);
         BigDecimal hourlyCost = batchMapper.getHourCost(accountId, DateUtils.formatDate(new Date()));
-        BigDecimal totalCost = dailyCost.add(hourlyCost);
-        return totalCost;
+    //    BigDecimal totalCost = dailyCost.add(hourlyCost);
+        return hourlyCost;
     }
 
     /**