用户上报新增地址名称字段

This commit is contained in:
yanglei 2026-01-05 15:29:27 +08:00
parent 73125f8bf3
commit eefc645cee
5 changed files with 21 additions and 0 deletions

View File

@ -27,6 +27,11 @@ public class FeignEbikeReportRecordDto {
@NotNull(message = "上报位置") @NotNull(message = "上报位置")
private PGpoint location; private PGpoint location;
/**
* 地址名称
*/
private String address;
/** /**
* 上报原因 * 上报原因
*/ */

View File

@ -37,6 +37,11 @@ public class FeignEbikeReportRecordVo implements Serializable {
*/ */
private PGpoint location; private PGpoint location;
/**
* 地址名称
*/
private String address;
/** /**
* 上报原因 * 上报原因
*/ */

View File

@ -40,6 +40,11 @@ public class EbikeReportRecordDto {
@NotNull(message = "上报位置") @NotNull(message = "上报位置")
private Point location; private Point location;
/**
* 地址名称
*/
private String address;
/** /**
* 上报原因 * 上报原因
*/ */

View File

@ -45,6 +45,11 @@ public class EbikeReportRecord implements Serializable {
@JsonDeserialize(using = PointDeserializer.class) @JsonDeserialize(using = PointDeserializer.class)
private Point location; private Point location;
/**
* 上报位置名称
*/
private String address;
/** /**
* 上报原因 * 上报原因
*/ */

View File

@ -53,6 +53,7 @@ public class EbikeReportRecordServiceImpl extends ServiceImpl<EbikeReportRecordM
} }
EbikeReportRecord ebikeReportRecord = EbikeReportRecord.builder() EbikeReportRecord ebikeReportRecord = EbikeReportRecord.builder()
.location(reportRecordDto.getLocation()) .location(reportRecordDto.getLocation())
.address(reportRecordDto.getAddress())
.recordStatus(GlobalConstants.NUMBER_ZERO) .recordStatus(GlobalConstants.NUMBER_ZERO)
.reportReason(reportRecordDto.getReportReason()) .reportReason(reportRecordDto.getReportReason())
.regionId(currentRegion.getRegionId()) .regionId(currentRegion.getRegionId())