TextbookImportDto.java 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. package com.xjrsoft.module.textbook.dto;
  2. import com.alibaba.excel.annotation.ExcelProperty;
  3. import com.alibaba.excel.annotation.write.style.ContentStyle;
  4. import com.xjrsoft.common.annotation.Required;
  5. import io.swagger.annotations.ApiModelProperty;
  6. import lombok.Data;
  7. import java.math.BigDecimal;
  8. import java.time.LocalDate;
  9. import java.util.Date;
  10. @Data
  11. public class TextbookImportDto {
  12. /**
  13. * 学科组名称
  14. */
  15. @ContentStyle(dataFormat = 49)
  16. @ExcelProperty("学科组(必须是系统中已有的学科组名称)")
  17. @ApiModelProperty("学科组名称")
  18. @Required
  19. private String groupName;
  20. /**
  21. * 课程
  22. */
  23. @ContentStyle(dataFormat = 49)
  24. @ExcelProperty("对应课程(必须是系统中已有的课程名称)")
  25. @ApiModelProperty("对应课程")
  26. @Required
  27. private String courseName;
  28. /**
  29. * 使用类型(单位:学期)
  30. */
  31. @ContentStyle(dataFormat = 49)
  32. @ExcelProperty("使用时长(一学期~六学期)")
  33. @ApiModelProperty("使用类型(单位:学期)")
  34. @Required
  35. private String useTypeCn;
  36. /**
  37. * 国际标准刊号
  38. */
  39. @ContentStyle(dataFormat = 49)
  40. @ExcelProperty("书号(ISSN)")
  41. @ApiModelProperty("国际标准刊号")
  42. @Required
  43. private String issn;
  44. /**
  45. * 书名
  46. */
  47. @ContentStyle(dataFormat = 49)
  48. @ExcelProperty("书名")
  49. @ApiModelProperty("书名")
  50. @Required
  51. private String bookName;
  52. /**
  53. * 出版社
  54. */
  55. @ContentStyle(dataFormat = 49)
  56. @ExcelProperty("出版社")
  57. @ApiModelProperty("出版社")
  58. @Required
  59. private String publishingHouse;
  60. /**
  61. * 主编
  62. */
  63. @ContentStyle(dataFormat = 49)
  64. @ExcelProperty("作者(主编)")
  65. @ApiModelProperty("主编")
  66. @Required
  67. private String editorInChief;
  68. /**
  69. * 版本
  70. */
  71. @ContentStyle(dataFormat = 49)
  72. @ExcelProperty("版次")
  73. @ApiModelProperty("版本")
  74. @Required
  75. private String version;
  76. /**
  77. * 是否为规划教材
  78. */
  79. @ContentStyle(dataFormat = 49)
  80. @ExcelProperty("规划教材(是或否)")
  81. @ApiModelProperty("是否为规划教材")
  82. @Required
  83. private String isTextbookPlanCn;
  84. /**
  85. * 教材类型(xjr_dictionary_item[textbook_type])
  86. */
  87. @ContentStyle(dataFormat = 49)
  88. @ExcelProperty("教材分类(教材、辅材、作业本)")
  89. @ApiModelProperty("教材类型-中文")
  90. @Required
  91. private String textbookTypeCn;
  92. /**
  93. * 规格型号
  94. */
  95. @ContentStyle(dataFormat = 49)
  96. @ExcelProperty("规格型号")
  97. @ApiModelProperty("规格型号")
  98. private String specificationsModels;
  99. /**
  100. * 出版日期
  101. */
  102. @ContentStyle(dataFormat = 49)
  103. @ExcelProperty("出版日期(YYYY-MM-DD)")
  104. @ApiModelProperty("出版日期")
  105. private LocalDate publishingDate;
  106. /**
  107. * 是否为校企合作教材
  108. */
  109. @ContentStyle(dataFormat = 49)
  110. @ExcelProperty("是否为校企合作教材(是或否)")
  111. @ApiModelProperty("是否校企合作开发教材")
  112. @Required
  113. private String isSecd;
  114. /**
  115. * 分类号
  116. */
  117. @ContentStyle(dataFormat = 49)
  118. @ExcelProperty("分类号")
  119. @ApiModelProperty("分类号")
  120. private String category;
  121. /**
  122. * 规划批次
  123. */
  124. @ContentStyle(dataFormat = 49)
  125. @ExcelProperty("规划批次")
  126. @ApiModelProperty("规划批次")
  127. private String planBatch;
  128. /**
  129. * 编著作总数
  130. */
  131. @ContentStyle(dataFormat = 49)
  132. @ExcelProperty("编著作总数")
  133. @ApiModelProperty("编著作总数")
  134. private Integer workTotalCount;
  135. /**
  136. * 教材类型
  137. */
  138. @ContentStyle(dataFormat = 49)
  139. @ExcelProperty("教材类型(纸质教材、数字教材、纸质与数字资源结合教材)")
  140. @ApiModelProperty("教材类型")
  141. @Required
  142. private String textbookCategory;
  143. /**
  144. * 定价(元)
  145. */
  146. @ContentStyle(dataFormat = 49)
  147. @ExcelProperty("定价(元)")
  148. @ApiModelProperty("定价(元)")
  149. @Required
  150. private BigDecimal price;
  151. /**
  152. * 折扣
  153. */
  154. @ContentStyle(dataFormat = 49)
  155. @ExcelProperty("折扣(折)")
  156. @ApiModelProperty("折扣")
  157. private Double discount;
  158. }