| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | |
| | | @Data |
| | | public class CourseOfStoreVo { |
| | |
| | | @ApiModelProperty(value = "课包结束时间") |
| | | private String classEndTime; |
| | | |
| | | @ApiModelProperty(value = "课包 周列表 分号隔开") |
| | | @ApiModelProperty(value = "课包 周列表 分号隔开1;2;3;4;5") |
| | | private String classWeeks; |
| | | |
| | | @ApiModelProperty(value = "门店id") |
| | |
| | | @ApiModelProperty(value = "纬度") |
| | | private String lon; |
| | | |
| | | public CourseOfStoreVo(Integer courseId, String courseName, Integer storeId, String storeName) { |
| | | 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; |
| | | } |
| | | } |