瀏覽代碼

教材导入调整

dzx 1 年之前
父節點
當前提交
affe49ae03
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/main/java/com/xjrsoft/module/textbook/service/impl/TextbookServiceImpl.java

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

@@ -943,6 +943,13 @@ public class TextbookServiceImpl extends MPJBaseServiceImpl<TextbookMapper, Text
                     .orElse("no");
             textbook.setIsTextbookPlan(isTextbookPlan);
 
+            String isSecd = textbookImportDto.getIsSecd();
+            Integer isSecdI = Optional.ofNullable(isSecd)
+                    .filter("是"::equals)
+                    .map(s -> 1)
+                    .orElse(0);
+            textbook.setIsSecd(isSecdI);
+
             // 处理教材类型映射
             String textbookTypeCn = textbookImportDto.getTextbookTypeCn();
             String textbookTypeCode = Optional.ofNullable(textbookTypeCn)