TextbookImportDto.java 4.1 KB

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