|
@@ -65,17 +65,17 @@ public class ExerciseBookYearDto implements Serializable {
|
|
|
}
|
|
|
|
|
|
public void addBookPartType (int bookType){
|
|
|
+ List<ExerciseBookPartDto> list = new ArrayList<>();
|
|
|
+ ExerciseBookPartDto temp = new ExerciseBookPartDto();
|
|
|
+ temp.setBookPartType(1);
|
|
|
+ temp.setBookPartName("全部");
|
|
|
+ list.add(temp);
|
|
|
if (bookType == 3){
|
|
|
- List<ExerciseBookPartDto> list = new ArrayList<>();
|
|
|
- ExerciseBookPartDto temp = new ExerciseBookPartDto();
|
|
|
- temp.setBookPartType(1);
|
|
|
- temp.setBookPartName("全部");
|
|
|
- list.add(temp);
|
|
|
temp = new ExerciseBookPartDto();
|
|
|
temp.setBookPartType(2);
|
|
|
temp.setBookPartName("不同");
|
|
|
list.add(temp);
|
|
|
- this.setBookPartList(list);
|
|
|
}
|
|
|
+ this.setBookPartList(list);
|
|
|
}
|
|
|
}
|