订单dto,增加租电套餐信息
This commit is contained in:
@ -3,6 +3,7 @@ package com.sczx.order.dto;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.sczx.order.thirdpart.dto.CarModelSimpleDTO;
|
||||
import com.sczx.order.thirdpart.dto.CompanyStoreDTO;
|
||||
import com.sczx.order.thirdpart.dto.RentBatteyRuleDTO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@ -118,6 +119,9 @@ public class OrderDTO {
|
||||
@ApiModelProperty("租电套餐id")
|
||||
private Long rentBatteyRuleId;
|
||||
|
||||
@ApiModelProperty("租电套餐信息")
|
||||
private RentBatteyRuleDTO rentBatteyRule;
|
||||
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiModelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ -172,6 +172,11 @@ public class OrderServiceImpl implements OrderService {
|
||||
CompanyStoreDTO companyStoreDTO = storeInteg.getStoreById(Integer.valueOf(orderMainPO.getStoreId().toString()));
|
||||
|
||||
CarModelSimpleDTO carModelSimpleDTO = carInteg.getCarModelByModelId(orderMainPO.getCarModelId());
|
||||
RentBatteyRuleDTO rentBatteyRuleDTO = null;
|
||||
if(orderMainPO.getRentBatteyRuleId()!=null){
|
||||
rentBatteyRuleDTO = carInteg.getRentBatteyRuleByBatteyRuleId(orderMainPO.getRentBatteyRuleId());
|
||||
orderDTO.setRentBatteyRule(rentBatteyRuleDTO);
|
||||
}
|
||||
orderDTO.setCarModelSimpleDTO(carModelSimpleDTO);
|
||||
orderDTO.setCompanyStoreDTO(companyStoreDTO);
|
||||
LambdaQueryWrapper<OrderSubPO> orderSubLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
Reference in New Issue
Block a user