闪电 %!s(int64=3) %!d(string=před) týdny
rodič
revize
a3e6ece5dc

+ 7 - 1
smart-steward-api/src/main/java/com/smartSteward/web/controller/comm/CommCommentsController.java

@@ -97,7 +97,13 @@ public class CommCommentsController extends BaseController
97 97
         commComments.setUsername(getUsername());
98 98
         commComments.setAvatar(getUserAvatar());
99 99
         commComments.setDelFlag("0");
100
-        return toAjax(commCommentsService.insertCommComments(commComments));
100
+
101
+        int result = commCommentsService.insertCommComments(commComments);
102
+        if (result > 0 && commComments.getTargetType().equals("TASK")) {
103
+            // TODO: 更改任务为已评论
104
+        }
105
+
106
+        return toAjax(result);
101 107
     }
102 108
 
103 109