删除无关字段

This commit is contained in:
yanglei 2025-12-31 10:27:03 +08:00
parent a8682bd08d
commit 13346d3da5
8 changed files with 2 additions and 80 deletions

View File

@ -98,16 +98,6 @@ public class EbikeOrder implements Serializable {
*/ */
private Integer paymentMethod; private Integer paymentMethod;
/**
* 使用卡券ID集合JSON数组
*/
private String couponIds;
/**
* 优惠明细结构化存储便于对账
*/
private String discountDetails;
/** /**
* 起步费用 * 起步费用
*/ */
@ -153,10 +143,6 @@ public class EbikeOrder implements Serializable {
*/ */
private BigDecimal helmetManagementFee; private BigDecimal helmetManagementFee;
/**
* 地理位置GeoHash编码用于区域优惠分析
*/
private String geoHash;
/** /**
* 骑行起始点 * 骑行起始点
@ -174,16 +160,6 @@ public class EbikeOrder implements Serializable {
@JsonDeserialize(using = PointDeserializer.class) @JsonDeserialize(using = PointDeserializer.class)
private Point endLocation; private Point endLocation;
/**
* 取消时间
*/
private LocalDateTime cancelTime;
/**
* 是否临时锁车 0-未临时锁车 -1-临时锁车
*/
private Integer tempLock;
/** /**
* 创建人 * 创建人

View File

@ -78,11 +78,6 @@ public class EbikeFaultReportDto {
*/ */
private Long orderId; private Long orderId;
/**
* 工单ID
*/
private Long reviewId;
/** /**
* 附件文件列表 * 附件文件列表
*/ */

View File

@ -18,11 +18,6 @@ public class EbikeFaultReportQueryDto {
@NotBlank(message = "车辆编号不能为空") @NotBlank(message = "车辆编号不能为空")
private String bikeCode; private String bikeCode;
/**
* 工单ID
*/
private Long reviewId;
/** /**
* 故障部件 * 故障部件
*/ */

View File

@ -89,11 +89,6 @@ public class EbikeFaultReport implements Serializable {
*/ */
private Long orderId; private Long orderId;
/**
* 工单ID
*/
private Long reviewId;
/** /**
* 创建人 * 创建人
*/ */

View File

@ -98,16 +98,6 @@ public class EbikeOrder implements Serializable {
*/ */
private Integer paymentMethod; private Integer paymentMethod;
/**
* 使用卡券ID集合JSON数组
*/
private String couponIds;
/**
* 优惠明细结构化存储便于对账
*/
private String discountDetails;
/** /**
* 起步费用 * 起步费用
*/ */
@ -153,11 +143,6 @@ public class EbikeOrder implements Serializable {
*/ */
private BigDecimal helmetManagementFee; private BigDecimal helmetManagementFee;
/**
* 地理位置GeoHash编码用于区域优惠分析
*/
private String geoHash;
/** /**
* 骑行起始点 * 骑行起始点
*/ */
@ -174,17 +159,6 @@ public class EbikeOrder implements Serializable {
@JsonDeserialize(using = PointDeserializer.class) @JsonDeserialize(using = PointDeserializer.class)
private Point endLocation; private Point endLocation;
/**
* 取消时间
*/
private LocalDateTime cancelTime;
/**
* 是否临时锁车 0-未临时锁车 -1-临时锁车
*/
private Integer tempLock;
/** /**
* 创建人 * 创建人
*/ */

View File

@ -63,11 +63,6 @@ public class EbikeOrderDetail implements Serializable {
*/ */
private BigDecimal detailAmount; private BigDecimal detailAmount;
/**
* 优惠券Id
*/
private String couponId;
/** /**
* 创建人 * 创建人
*/ */

View File

@ -78,7 +78,6 @@ public class EbikeFaultReportServiceImpl extends ServiceImpl<EbikeFaultReportMap
.location(ebikeFaultReportDto.getLocation()) .location(ebikeFaultReportDto.getLocation())
.handleStatus(EbikeFaultReportStatus.PENDING) .handleStatus(EbikeFaultReportStatus.PENDING)
.orderId(ebikeFaultReportDto.getOrderId()) .orderId(ebikeFaultReportDto.getOrderId())
.reviewId(ebikeFaultReportDto.getReviewId())
.createBy(ebikeFaultReportDto.getUserId()) .createBy(ebikeFaultReportDto.getUserId())
.build(); .build();
this.save(userFaultReport); this.save(userFaultReport);
@ -200,7 +199,6 @@ public class EbikeFaultReportServiceImpl extends ServiceImpl<EbikeFaultReportMap
.reportSource(ebikeFaultReportDto.getReportSource()) .reportSource(ebikeFaultReportDto.getReportSource())
.location(ebikeFaultReportDto.getLocation()) .location(ebikeFaultReportDto.getLocation())
.orderId(ebikeFaultReportDto.getOrderId()) .orderId(ebikeFaultReportDto.getOrderId())
.reviewId(ebikeFaultReportDto.getReviewId())
.updateBy(ebikeFaultReportDto.getUserId()) .updateBy(ebikeFaultReportDto.getUserId())
.build(); .build();
this.updateById(userFaultReport); this.updateById(userFaultReport);
@ -297,7 +295,6 @@ public class EbikeFaultReportServiceImpl extends ServiceImpl<EbikeFaultReportMap
.reportSource(report.getReportSource()) .reportSource(report.getReportSource())
.location(report.getLocation()) .location(report.getLocation())
.orderId(report.getOrderId()) .orderId(report.getOrderId())
.reviewId(report.getReviewId())
.attachmentFiles(fileInfo) .attachmentFiles(fileInfo)
.build(); .build();
} }
@ -308,9 +305,6 @@ public class EbikeFaultReportServiceImpl extends ServiceImpl<EbikeFaultReportMap
QueryWrapper query = QueryWrapper.create() QueryWrapper query = QueryWrapper.create()
.where(EBIKE_FAULT_REPORT.BIKE_CODE.eq(ebikeFaultReportQueryDto.getBikeCode())) .where(EBIKE_FAULT_REPORT.BIKE_CODE.eq(ebikeFaultReportQueryDto.getBikeCode()))
.and(EBIKE_FAULT_REPORT.IS_DELETED.eq(false)); .and(EBIKE_FAULT_REPORT.IS_DELETED.eq(false));
if (ebikeFaultReportQueryDto.getReviewId() != null) {
query.and(EBIKE_FAULT_REPORT.REVIEW_ID.eq(ebikeFaultReportQueryDto.getReviewId()));
}
List<EbikeFaultReport> reports = this.list(query); List<EbikeFaultReport> reports = this.list(query);
if (reports.isEmpty()) { if (reports.isEmpty()) {
return Collections.emptyList(); return Collections.emptyList();
@ -359,7 +353,6 @@ public class EbikeFaultReportServiceImpl extends ServiceImpl<EbikeFaultReportMap
.reportSource(report.getReportSource()) .reportSource(report.getReportSource())
.location(report.getLocation()) .location(report.getLocation())
.orderId(report.getOrderId()) .orderId(report.getOrderId())
.reviewId(report.getReviewId())
.attachmentFiles(fileDtos) .attachmentFiles(fileDtos)
.build(); .build();
}).collect(Collectors.toList()); }).collect(Collectors.toList());

View File

@ -108,7 +108,7 @@ public class EbikeOrderServiceImpl extends ServiceImpl<EbikeOrderMapper, EbikeOr
.outOfParkingAreaFee(bikeInfo.getOutOfParkingAreaFee()) .outOfParkingAreaFee(bikeInfo.getOutOfParkingAreaFee())
.outOfServiceAreaFee(bikeInfo.getOutOfServiceAreaFee()) .outOfServiceAreaFee(bikeInfo.getOutOfServiceAreaFee())
.maxFeeAmount(bikeInfo.getMaxFeeAmount()) .maxFeeAmount(bikeInfo.getMaxFeeAmount())
.createTime(LocalDateTime.now()) .createBy(userId)
.build(); .build();
save(order); save(order);
// 尝试开锁 // 尝试开锁
@ -120,7 +120,6 @@ public class EbikeOrderServiceImpl extends ServiceImpl<EbikeOrderMapper, EbikeOr
EbikeOrder orders = EbikeOrder.builder() EbikeOrder orders = EbikeOrder.builder()
.orderId(order.getOrderId()) .orderId(order.getOrderId())
.orderStatus(OrderStatus.IN_PROGRESS) .orderStatus(OrderStatus.IN_PROGRESS)
.updateTime(LocalDateTime.now())
.build(); .build();
updateById(orders); updateById(orders);
return getById(order.getOrderId()); return getById(order.getOrderId());
@ -374,7 +373,7 @@ public class EbikeOrderServiceImpl extends ServiceImpl<EbikeOrderMapper, EbikeOr
.detailDescription(orderDetailType.getName()) .detailDescription(orderDetailType.getName())
.detailName(detailName) .detailName(detailName)
.detailAmount(amount) .detailAmount(amount)
.couponId(order.getCouponIds()) .createBy(order.getUserId())
.build(); .build();
} }