From 657466e3e83fced373dc4a501766a844c15fa9d6 Mon Sep 17 00:00:00 2001
From: 彭雪彬 <1724387007@qq.com>
Date: Thu, 04 Sep 2025 15:08:46 +0800
Subject: [PATCH] 骑手上传送达图片
---
oying-system/src/main/java/com/oying/modules/sh/domain/UserAddress.java | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/oying-system/src/main/java/com/oying/modules/sh/domain/UserAddress.java b/oying-system/src/main/java/com/oying/modules/sh/domain/UserAddress.java
index 91286d0..b608f37 100644
--- a/oying-system/src/main/java/com/oying/modules/sh/domain/UserAddress.java
+++ b/oying-system/src/main/java/com/oying/modules/sh/domain/UserAddress.java
@@ -1,12 +1,12 @@
package com.oying.modules.sh.domain;
+import com.baomidou.mybatisplus.annotation.TableField;
import com.oying.base.BaseEntity;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
-import javax.validation.constraints.NotNull;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
@@ -28,7 +28,6 @@
@ApiModelProperty(value = "主键")
private Long addressId;
- @NotNull
@ApiModelProperty(value = "用户id")
private Long userId;
@@ -52,6 +51,10 @@
@ApiModelProperty(value = "街道")
private String street;
+ @ApiModelProperty(value = "短地址")
+ @NotBlank
+ private String shortAddress;
+
@NotBlank
@ApiModelProperty(value = "详细地址")
private String detail;
@@ -62,14 +65,17 @@
@ApiModelProperty(value = "纬度")
private BigDecimal latitude;
- @NotNull
- @ApiModelProperty(value = "是否默认")
- private Integer isDefault;
+ @ApiModelProperty(value = "是否默认: false")
+ private Boolean isDefault = false;
@NotBlank
@ApiModelProperty(value = "标签(家、公司等)")
private String tag;
+ @TableField(exist = false)
+ @ApiModelProperty(value = "距离")
+ private BigDecimal distance;
+
public void copy(UserAddress source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
--
Gitblit v1.9.3