|
@@ -34,6 +34,7 @@ import com.zhongzheng.modules.exam.service.IExamKnowledgeService;
|
|
|
import com.zhongzheng.modules.goods.bo.GoodsQueryBo;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsUserQuestionVo;
|
|
|
import io.micrometer.core.lang.NonNull;
|
|
|
+import org.apache.poi.xwpf.usermodel.XWPFDocument;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -328,8 +329,13 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
|
|
|
@Override
|
|
|
public void importWordQuestion(MultipartFile file) {
|
|
|
- /* InputStream inputStream = baseInfoFile.getInputStream();
|
|
|
- XWPFDocument doc = new XWPFDocument(inputStream);*/
|
|
|
+ try{
|
|
|
+ /* InputStream inputStream = baseInfoFile.getInputStream();
|
|
|
+ XWPFDocument doc = new XWPFDocument(inputStream);*/
|
|
|
+ }catch (Exception e){
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|