Browse Source

删除试卷

tags/正式版本
王宁 2 years ago
parent
commit
5a497a72d1

+ 4
- 2
sexam/src/main/java/com/xhkjedu/sexam/service/paper/EPaperQtypeService.java View File

@@ -8,12 +8,12 @@ import com.xhkjedu.sexam.model.paper.*;
8 8
 import com.xhkjedu.sexam.vo.paper.*;
9 9
 import com.xhkjedu.utils.N_Utils;
10 10
 import com.xhkjedu.vo.ResultVo;
11
+import lombok.extern.slf4j.Slf4j;
11 12
 import org.springframework.beans.BeanUtils;
12 13
 import org.springframework.stereotype.Service;
13 14
 import org.springframework.transaction.annotation.Transactional;
14 15
 
15 16
 import javax.annotation.Resource;
16
-import java.awt.*;
17 17
 import java.util.*;
18 18
 import java.util.List;
19 19
 import java.util.stream.Collectors;
@@ -24,6 +24,7 @@ import java.util.stream.Collectors;
24 24
  * Date 2022/7/19 9:07
25 25
  **/
26 26
 @Service
27
+@Slf4j
27 28
 public class EPaperQtypeService {
28 29
     @Resource
29 30
     private EPaperQtypeMapper ePaperQtypeMapper;
@@ -55,9 +56,10 @@ public class EPaperQtypeService {
55 56
         if(espVo.getExamstate() > 0){
56 57
             return new ResultVo(1,"不能进行操作");
57 58
         }
59
+
58 60
         if(espVo.getEpid()!=null){
59 61
             //说明已经有改考试对应的试卷,删除原试卷,重新保存
60
-            ePaperMapper.deletePaperByEpid(paper.getEpid());
62
+            ePaperMapper.deletePaperByEpid(espVo.getEpid());
61 63
         }
62 64
 
63 65
         List<EPaperQtype> qtypelist = paper.getQtypelist();

Loading…
Cancel
Save