This commit is contained in:
2023-03-30 10:30:39 +08:00
parent ca7bb356dd
commit 662e014921

View File

@@ -338,9 +338,10 @@ public class OrderService {
.payMode(dto.getPayMode())
.orderAmount(BigDecimal.ZERO)
.startType(dto.getStartType())
.appointmentTime(DateUtils.parseDate(dto.getAppointmentTime(), DateUtils.YYYY_MM_DD_HH_MM_SS))
.build();
if (StringUtils.equals(dto.getStartType(), StartTypeEnum.APPOINTMENT.getValue())) {
orderBasicInfo.setAppointmentTime(DateUtils.parseDate(dto.getAppointmentTime(), DateUtils.YYYY_MM_DD_HH_MM_SS));
}
// 订单详情
OrderDetail orderDetail = OrderDetail.builder()
.orderCode(orderCode)