Browse Source

优化删除作业

wn0920
王宁 2 years ago
parent
commit
5d06e67d9d

+ 2
- 1
sstudy/src/main/java/com/xhkjedu/sstudy/service/paper/PaperService.java View File

269
      * @date 2020/6/9
269
      * @date 2020/6/9
270
      */
270
      */
271
     public Integer delPaper(TPaper paper) {
271
     public Integer delPaper(TPaper paper) {
272
+        Integer result = paperMapper.delPaper(paper.getPaperid());
272
         List<TPaperFile> pfilelist = paperFileService.listObjsByPaperid(paper.getPaperid());//获取作业文件夹
273
         List<TPaperFile> pfilelist = paperFileService.listObjsByPaperid(paper.getPaperid());//获取作业文件夹
273
         if (N_Utils.isListNotEmpty(pfilelist)) {
274
         if (N_Utils.isListNotEmpty(pfilelist)) {
274
             List<String> resourceUrls = new ArrayList<>();
275
             List<String> resourceUrls = new ArrayList<>();
282
             messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
283
             messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
283
         }
284
         }
284
 
285
 
285
-        return paperMapper.delPaper(paper.getPaperid());
286
+        return result;
286
     }
287
     }
287
 
288
 
288
     /**
289
     /**

Loading…
Cancel
Save