Compare commits
2 Commits
9ee55fdfa2
...
58ebb4b44e
Author | SHA1 | Date |
---|---|---|
|
58ebb4b44e | |
|
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