Quellcode durchsuchen

教材导入调整

dzx vor 1 Jahr
Ursprung
Commit
3defd1572a

+ 4 - 4
src/main/java/com/xjrsoft/module/textbook/dto/TextbookImportDto.java

@@ -14,7 +14,7 @@ public class TextbookImportDto {
      * 国际标准刊号
      */
     @ContentStyle(dataFormat = 49)
-    @ExcelProperty("书号(ISSN)")
+    @ExcelProperty("书号(ISSN)")
     @ApiModelProperty("国际标准刊号")
     private String issn;
     /**
@@ -35,7 +35,7 @@ public class TextbookImportDto {
      * 主编
      */
     @ContentStyle(dataFormat = 49)
-    @ExcelProperty("作者(主编)")
+    @ExcelProperty("作者(主编)")
     @ApiModelProperty("主编")
     private String editorInChief;
     /**
@@ -49,7 +49,7 @@ public class TextbookImportDto {
      * 是否为规划教材
      */
     @ContentStyle(dataFormat = 49)
-    @ExcelProperty("规划教材(是或否)")
+    @ExcelProperty("规划教材(是或否)")
     @ApiModelProperty("是否为规划教材")
     private String isTextbookPlanCn;
     /**
@@ -128,5 +128,5 @@ public class TextbookImportDto {
     @ContentStyle(dataFormat = 49)
     @ExcelProperty("编著作总数")
     @ApiModelProperty("编著作总数")
-    private String workTotalCount;
+    private Integer workTotalCount;
 }

+ 0 - 2
src/main/java/com/xjrsoft/module/textbook/service/impl/TextbookServiceImpl.java

@@ -943,8 +943,6 @@ public class TextbookServiceImpl extends MPJBaseServiceImpl<TextbookMapper, Text
                     .orElse("no");
             textbook.setIsTextbookPlan(isTextbookPlan);
 
-
-
             // 处理教材类型映射
             String textbookTypeCn = textbookImportDto.getTextbookTypeCn();
             String textbookTypeCode = Optional.ofNullable(textbookTypeCn)