刘帅
2026-09-29 dcb96821f905f3fd93c059d8703517bdcac4d336
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package com.dsh.guns.modular.system.model;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
 
import java.math.BigDecimal;
 
@TableName("t_store")
@Data
public class TStoreListVo {
    private Integer id;
    private String name;
    @TableField("storeStaffId")
    private Integer storeStaffId;
    @TableField("cityManagerId")
    private Integer cityManagerId;
    private String province;
    @TableField("provinceCode")
    private String provinceCode;
    private String city;
    @TableField("cityCode")
    private String cityCode;
    private String phone;
    private String address;
    private String lat;
    private String lon;
    @TableField("startTime")
    private String startTime;
    @TableField("endTime")
    private String endTime;
    @TableField("coverDrawing")
    private String coverDrawing;
    @TableField("realPicture")
    private String realPicture;
    private String introduce;
    @TableField("welfarePicture")
    private String welfarePicture;
    private BigDecimal score;
    private Integer state;
 
    private String userName;
    private String userPhone;
 
    /**
     * 兼容历史门店:历史数据可能只在店长账号中保存手机号。
     * 列表对外的 phone 统一返回可用的店长手机号。
     */
    public String getPhone() {
        return hasText(phone) ? phone : defaultString(userPhone);
    }
 
    /**
     * 兼容历史门店:当店长资料中未维护 phone 时,列表仍返回可用的门店手机号。
     * 返回空字符串而非 null,避免不同环境的 JSON 忽略 null 配置导致字段消失。
     */
    public String getUserPhone() {
        return hasText(userPhone) ? userPhone : defaultString(phone);
    }
 
    private boolean hasText(String value) {
        return value != null && !value.trim().isEmpty();
    }
 
    private String defaultString(String value) {
        return value == null ? "" : value;
    }
 
    private String account;
 
    private Integer type;
 
    private String yysName;
 
}