| | |
| | | import com.doumee.dao.vo.StoreDepositVO; |
| | | import com.doumee.dao.vo.RevenueShareVO; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | List<RemoteDeliveryPricingVO> listRemoteDeliveryPricing(Integer cityId); |
| | | |
| | | /** |
| | | * 保存预计时效配置(有则更新,无则新增) |
| | | * 保存预计时效配置(标速达fieldA=1 + 极速达fieldA=2,有则更新无则新增) |
| | | * @param request 保存请求 |
| | | */ |
| | | void saveEstimatedDelivery(EstimatedDeliverySaveDTO request); |
| | | |
| | | /** |
| | | * 查询预计时效配置(有且只有一条,无数据返回空对象) |
| | | * 查询预计时效配置列表(标速达fieldA=1 + 极速达fieldA=2) |
| | | * @param cityId 城市主键 |
| | | * @return 预计时效配置 |
| | | * @return 预计时效配置列表 |
| | | */ |
| | | EstimatedDeliveryVO getEstimatedDelivery(Integer cityId); |
| | | List<EstimatedDeliveryVO> getEstimatedDelivery(Integer cityId); |
| | | |
| | | /** |
| | | * 根据城市、类型、距离计算预计时效时长 |
| | | * @param cityId 城市主键 |
| | | * @param fieldA 类型:1=标速达;2=极速达 |
| | | * @param distance 距离(公里) |
| | | * @return 预计时长(小时),未找到配置返回null |
| | | */ |
| | | BigDecimal calculateEstimatedTime(Integer cityId, Integer fieldA, BigDecimal distance); |
| | | |
| | | /** |
| | | * 批量保存门店注册押金 |