Browse Source

调整顺序

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

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppRecordService.java View File

@@ -33,8 +33,8 @@ public class AppRecordService {
33 33
 
34 34
     //删除
35 35
     public Integer deleteById(Integer versionid) {
36
-        int result = appRecordMapper.deleteByPrimaryKey(versionid);
37 36
         List<String> resourceUrls = appRecordMapper.listApppath(versionid);//获取APP文件
37
+        int result = appRecordMapper.deleteByPrimaryKey(versionid);
38 38
         if(N_Utils.isListNotEmpty(resourceUrls)){
39 39
             messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
40 40
         }

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppScanService.java View File

@@ -33,8 +33,8 @@ public class AppScanService {
33 33
 
34 34
     //删除
35 35
     public Integer deleteById(Integer versionid) {
36
-        Integer result = AppScanMapper.deleteByPrimaryKey(versionid);
37 36
         List<String> resourceUrls = AppScanMapper.listApppath(versionid);//获取APP文件
37
+        Integer result = AppScanMapper.deleteByPrimaryKey(versionid);
38 38
         if(N_Utils.isListNotEmpty(resourceUrls)){
39 39
             messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
40 40
         }

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppStuappService.java View File

@@ -34,8 +34,8 @@ public class AppStuappService {
34 34
 
35 35
     //删除
36 36
     public Integer deleteById(Integer versionid) {
37
-        Integer result = appStuappMapper.deleteByPrimaryKey(versionid);
38 37
         List<String> resourceUrls = appStuappMapper.listApppath(versionid);//获取APP文件
38
+        Integer result = appStuappMapper.deleteByPrimaryKey(versionid);
39 39
         if(N_Utils.isListNotEmpty(resourceUrls)){
40 40
             messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
41 41
         }

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppStuliveService.java View File

@@ -33,8 +33,8 @@ public class AppStuliveService {
33 33
 
34 34
     //删除
35 35
     public Integer deleteById(Integer versionid) {
36
-        Integer result = appStuliveMapper.deleteByPrimaryKey(versionid);
37 36
         List<String> resourceUrls = appStuliveMapper.listApppath(versionid);//获取APP文件
37
+        Integer result = appStuliveMapper.deleteByPrimaryKey(versionid);
38 38
         if(N_Utils.isListNotEmpty(resourceUrls)){
39 39
             messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
40 40
         }

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppTeacherappService.java View File

@@ -33,8 +33,8 @@ public class AppTeacherappService {
33 33
 
34 34
     //删除
35 35
     public Integer deleteById(Integer versionid) {
36
-        int result = appTeacherappMapper.deleteByPrimaryKey(versionid);
37 36
         List<String> resourceUrls = appTeacherappMapper.listApppath(versionid);//获取APP文件
37
+        int result = appTeacherappMapper.deleteByPrimaryKey(versionid);
38 38
         if(N_Utils.isListNotEmpty(resourceUrls)){
39 39
             messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
40 40
         }

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppTeacherclientService.java View File

@@ -33,8 +33,8 @@ public class AppTeacherclientService {
33 33
 
34 34
     //删除
35 35
     public Integer deleteById(Integer versionid) {
36
-        Integer result = appTeacherclientMapper.deleteByPrimaryKey(versionid);
37 36
         List<String> resourceUrls = appTeacherclientMapper.listApppath(versionid);//获取APP文件
37
+        Integer result = appTeacherclientMapper.deleteByPrimaryKey(versionid);
38 38
         if(N_Utils.isListNotEmpty(resourceUrls)){
39 39
             messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
40 40
         }

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppTeacherliveService.java View File

@@ -33,8 +33,8 @@ public class AppTeacherliveService {
33 33
 
34 34
     //删除
35 35
     public Integer deleteById(Integer versionid) {
36
-        Integer result = appTeacherliveMapper.deleteByPrimaryKey(versionid);
37 36
         List<String> resourceUrls = appTeacherliveMapper.listApppath(versionid);//获取APP文件
37
+        Integer result = appTeacherliveMapper.deleteByPrimaryKey(versionid);
38 38
         if(N_Utils.isListNotEmpty(resourceUrls)){
39 39
             messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
40 40
         }

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppthirdService.java View File

@@ -46,9 +46,9 @@ public class AppthirdService {
46 46
     //删除
47 47
     @Transactional(rollbackFor = Exception.class)
48 48
     public Integer deleteById(Integer appid) {
49
+        List<String> resourceUrls = appthirdHistoryMapper.listApppath(appid);//获取APP文件
49 50
         Integer result = appthirdMapper.deleteByPrimaryKey(appid);
50 51
         handleThirdManager(appid, 2);//处理应用白名单
51
-        List<String> resourceUrls = appthirdHistoryMapper.listApppath(appid);//获取APP文件
52 52
         if(N_Utils.isListNotEmpty(resourceUrls)){
53 53
             messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
54 54
         }

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/itemtool/ReadService.java View File

@@ -100,8 +100,8 @@ public class ReadService {
100 100
      * @date 2020/6/9
101 101
      */
102 102
     public Integer del(Integer readid) {
103
-        Integer result = readMapper.deleteByPrimaryKey(readid);
104 103
         TRead read = readMapper.getReadPath(readid);//获取电子书文件
104
+        Integer result = readMapper.deleteByPrimaryKey(readid);
105 105
         List<String> resourceUrls = new ArrayList<>();
106 106
         if (read != null && N_Utils.isNotEmpty(read.getReadthumb())) {
107 107
             resourceUrls.add(read.getReadthumb());

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

@@ -267,8 +267,8 @@ public class PaperService {
267 267
      * @return void
268 268
      */
269 269
     public Integer delPaper(TPaper paper){
270
-        int result =  paperMapper.delPaper(paper.getPaperid());
271 270
         List<TPaperFile> pfilelist = paperFileService.listObjsByPaperid(paper.getPaperid());//获取作业文件夹
271
+        int result =  paperMapper.delPaper(paper.getPaperid());
272 272
         if (N_Utils.isListNotEmpty(pfilelist)) {
273 273
             List<String> resourceUrls = new ArrayList<>();
274 274
             for (int i = 0; i < pfilelist.size(); i++) {

Loading…
Cancel
Save