|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.logpm.statistics.feign; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
|
import cn.hutool.core.convert.Convert; |
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
@ -36,7 +37,7 @@ public class ExpenseDispatchClient implements IExpenseDispatchClient {
|
|
|
|
|
private final IExpenseDispatchTrainDetailService trainDetailService; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public ExpenseDispatchClientDTO findPriceByDriverId(Long warehouseId, Long driverId, String carType, String dispatchType) { |
|
|
|
|
public ExpenseDispatchClientDTO findPriceByDriverId(Long warehouseId, Long driverId, Long carType, String dispatchType) { |
|
|
|
|
List<ExpenseDispatchPriceServiceEntity> list = serviceService.list(Wrappers.<ExpenseDispatchPriceServiceEntity>lambdaQuery() |
|
|
|
|
.eq(ExpenseDispatchPriceServiceEntity::getWarehouseId, warehouseId) |
|
|
|
|
.eq(ExpenseDispatchPriceServiceEntity::getDriverId, driverId) |
|
|
|
@ -53,7 +54,7 @@ public class ExpenseDispatchClient implements IExpenseDispatchClient {
|
|
|
|
|
dto.setRule(expenseDispatchPriceRuleDTO); |
|
|
|
|
} |
|
|
|
|
ExpenseDispatchPriceEntity param = new ExpenseDispatchPriceVO(); |
|
|
|
|
param.setCarModel(carType); |
|
|
|
|
param.setCarModel(Convert.toStr(carType)); |
|
|
|
|
param.setTemplateId(templateId); |
|
|
|
|
param.setType(StrUtil.equals(dispatchType, "商配") ? 1: 2); |
|
|
|
|
ExpenseDispatchPriceVO detail = priceService.detail(param); |
|
|
|
|