Ver código fonte

优化删除试卷答案文件

wn0920
王宁 2 anos atrás
pai
commit
b34e1c0807

+ 1
- 1
sstudy/src/main/java/com/xhkjedu/sstudy/service/paper/PaperService.java Ver arquivo

@@ -276,7 +276,7 @@ public class PaperService {
276 276
             for (int i = 0; i < pfilelist.size(); i++) {
277 277
                 TPaperFile pf = pfilelist.get(i);
278 278
                 resourceUrls.add(pf.getFilepath());
279
-                if (i == 0) {
279
+                if (!resourceUrls.contains(pf.getSourcepath())) {
280 280
                     resourceUrls.add(pf.getSourcepath());
281 281
                 }
282 282
             }

Carregando…
Cancelar
Salvar