lisy
2023-06-30 add48c8930d02d58046e89e78b0530c2d5fce32d
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
package com.dsh.account.feignclient.course.model;
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.util.ArrayList;
import java.util.List;
 
 
@Data
public class CourseOfStoreVo {
 
    @ApiModelProperty(value = "课包id")
    private Integer courseId;
 
    @ApiModelProperty(value = "课包名称")
    private String courseName;
 
    @ApiModelProperty(value = "课包开始时间")
    private String classStartTime;
 
    @ApiModelProperty(value = "课包结束时间")
    private String classEndTime;
 
    @ApiModelProperty(value = "课包 周列表 分号隔开1;2;3;4;5")
    private String classWeeks;
 
    @ApiModelProperty(value = "门店id")
    private Integer storeId;
 
    @ApiModelProperty(value = "门店名称")
    private String storeName;
 
    @ApiModelProperty(value = "经度")
    private String lat;
 
    @ApiModelProperty(value = "纬度")
    private String lon;
 
    public CourseOfStoreVo(Integer courseId, String courseName, Integer storeId, String storeName,String classWeeks) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.storeId = storeId;
        this.storeName = storeName;
        this.classWeeks = classWeeks;
    }
    @ApiModelProperty(value = "周列表")
    private List<Integer> classWeekList;
 
    public List<Integer> getClassWeekList() {
        String[] split = this.classWeeks.split(";");
        List<Integer> integers = new ArrayList<>();
        for (String s : split) {
            int num = Integer.parseInt(s);
            integers.add(num);
        }
        return integers;
    }
}