puzhibing
2023-03-22 12b75ea8869fa6e65b1bd53d4460328e73a66125
driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/impl/RevenueServiceImpl.java
@@ -14,6 +14,7 @@
import com.supersavedriving.driver.modular.system.service.IOrderService;
import com.supersavedriving.driver.modular.system.service.IRevenueService;
import com.supersavedriving.driver.modular.system.warpper.CommissionListWarpper;
import com.supersavedriving.driver.modular.system.warpper.PerformanceRankingWarpper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -82,4 +83,27 @@
        }
        return list;
    }
    /**
     * 获取司机总收入
     * @param driverId
     * @return
     * @throws Exception
     */
    @Override
    public Double queryTotalAmount(Integer driverId) throws Exception {
        return this.baseMapper.queryTotalAmount(driverId);
    }
    /**
     * 获取司机佣金收入排行
     * @param time
     * @param dayType
     * @return
     */
    @Override
    public List<PerformanceRankingWarpper> queryDriverRank(Integer type, String time, Integer dayType) {
        return this.baseMapper.queryDriverRank(type, time, dayType);
    }
}