| | |
| | | import lombok.Data; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author gonghl |
| | | * @since 2024-7-4 |
| | |
| | | @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER) |
| | | public class QuestionImportVO { |
| | | |
| | | @ExcelProperty("标题") |
| | | private String label; |
| | | |
| | | @ExcelProperty("题目类型") |
| | | private String questionType; |
| | | |
| | | @ExcelProperty("科目") |
| | | private String subject; |
| | | |
| | | @ExcelIgnore |
| | | private List<Integer> subjectIds; |
| | | @ExcelIgnore |
| | | private List<String> subjectList; |
| | | |
| | | @ColumnWidth(80) |
| | | @ExcelProperty("题干") |
| | |
| | | /** |
| | | * 返回该条数据是不是题,因为还有选项。选项的这些值是空的 |
| | | */ |
| | | public boolean master() { |
| | | return StringUtils.hasText(questionType) && StringUtils.hasText(label); |
| | | } |
| | | |
| | | public boolean intact() { |
| | | return StringUtils.hasText(title) && StringUtils.hasText(correct); |
| | | } |