liujie
2026-06-09 c96fbe6b0aeb413a17c429133ee6d81d138144b9
xp-robotaxi-api/src/main/java/com/xiaopeng/api/model/operation/XpPoint.java
@@ -6,6 +6,9 @@
import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xiaopeng.common.core.web.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -26,12 +29,16 @@
@Accessors(chain = true)
@TableName("xp_point")
@ApiModel(value="XpPoint对象", description="点位管理")
public class XpPoint extends c {
public class XpPoint extends BaseModel {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.NONE)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @TableField(exist = false)
    private String strId;
    @ApiModelProperty(value = "电子围栏区域id")
    private Long electronicAreaId;
@@ -66,7 +73,7 @@
    @ApiModelProperty(value = "生效周期 1=“每日生效”、2=“仅工作日生效”、3=“仅非工作日生效”、4=“仅节假日生效”")
    private Integer effectivePeriod;
    @ApiModelProperty(value = "生效时间段")
    @ApiModelProperty(value = "自定义运营生效时间段")
    private String effectiveTimePeriod;
    @ApiModelProperty(value = "点位地址")
@@ -120,6 +127,7 @@
    @TableField("district_code")
    private String districtCode;
    @ApiModelProperty(value = "所属场站id,为空表示运营区直属点位")
    @TableField("station_id")
    private Long stationId;
@@ -128,4 +136,59 @@
    @TableField("station_sort_no")
    private Integer stationSortNo;
    @ApiModelProperty(value = "点位上下车 1仅上车点/ 2 仅下车/ 3上下车均可")
    private Integer pointOnOff;
    public String getPointOnOffName() {
        if(pointOnOff != null){
            if(pointOnOff == 1){
                return "仅上车点";
            }else if(pointOnOff == 2){
                return "仅下车点";
            }else if(pointOnOff == 3){
                return "上下车均可";
            }
        }
        return "";
    }
    @ApiModelProperty(value = "电子围栏名称")
    @TableField(exist = false)
    private String electronicName;
    @ApiModelProperty(value = "所属场站名称")
    @TableField(exist = false)
    private String stationName;
    /**
     * hover在状态标签时,展示信息
     * - 已停用:展示停用原因;比如“因所属场站 [白云机场] 已关闭,该点位同步失效”
     * - 测试不通过:展示不通过原因
     * - 待生效:展示生效时间
     */
    @ApiModelProperty(value = "状态描述")
    @TableField(exist = false)
    private String hoverStatusDes;
    @ApiModelProperty(value = "围栏的生效时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime electronicEffectTime;
    //[{"name": "策略组1", "time": ["04:00-10:00", "14:00-23:00"], "type": 0, "typeStr": []}]
    @ApiModelProperty(value = "围栏运营策略")
    @TableField(exist = false)
    private String fenceOperationStrategy;
    @ApiModelProperty(value = "场站运营类型 1=与运营区同步 2=自定义时间段")
    @TableField(exist = false)
    private Integer stationOperationType;
    @ApiModelProperty(value = "场站生效周期 1=每日 2=仅工作日 3=仅非工作日 4=仅节假日")
    @TableField(exist = false)
    private Integer stationEffectivePeriod;
    @ApiModelProperty(value = "场站运营策略")
    @TableField(exist = false)
    private String stationEffectiveTimePeriod;
}