2024年6月20日 计算价格接口新增返回技师免费公里数
This commit is contained in:
parent
888f7b7e8f
commit
087cc97e2d
|
@ -200,6 +200,7 @@ public class TravelConfServiceImpl extends ServiceImpl<TravelConfDao, TravelConf
|
|||
@Override
|
||||
public TravelPriceVo calcTravelPrice(Integer _travelType, BigDecimal freeKilometers, String longitude, String latitude, String toLongitude, String toLatitude){
|
||||
TravelPriceVo vo = new TravelPriceVo();
|
||||
vo.setFreeKilometers(NumberUtil.decimalFormat("0.00",freeKilometers));
|
||||
|
||||
Date now = DateTime.now();
|
||||
//按条件取配置,
|
||||
|
|
|
@ -5,6 +5,8 @@ import io.swagger.annotations.ApiModel;
|
|||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @ClassName TravelPriceVo
|
||||
* @Description TODO
|
||||
|
@ -18,17 +20,21 @@ public class TravelPriceVo {
|
|||
|
||||
/**出行价格(元)*/
|
||||
@ApiModelProperty("出行价格(元)")
|
||||
String travelPrice;
|
||||
private String travelPrice;
|
||||
|
||||
/**出行距离(米)*/
|
||||
@ApiModelProperty("出行距离(米)")
|
||||
Integer distances;
|
||||
private Integer distances;
|
||||
|
||||
/**出行距离(公里/千米)*/
|
||||
@ApiModelProperty("出行距离(公里)")
|
||||
String kilometerNum;
|
||||
private String kilometerNum;
|
||||
|
||||
/**技师免费公里数*/
|
||||
@ApiModelProperty("技师免费公里数")
|
||||
private String freeKilometers;
|
||||
|
||||
/**出行配置具体参数*/
|
||||
@ApiModelProperty("出行配置具体参数")
|
||||
TravelConf conf;
|
||||
private TravelConf conf;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue