|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
6
|
6
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
7
|
7
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
8
|
8
|
import com.example.wholeestate.common.resp.ResponseBean;
|
|
9
|
+import com.example.wholeestate.common.uuid.IdGen;
|
9
|
10
|
import com.example.wholeestate.dao.CommentMapper;
|
10
|
11
|
import com.example.wholeestate.dao.CustomerMapper;
|
11
|
12
|
import com.example.wholeestate.model.Activity;
|
|
@@ -36,6 +37,8 @@ public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> impl
|
36
|
37
|
@Autowired
|
37
|
38
|
private CustomerMapper customerMapper;
|
38
|
39
|
|
|
40
|
+ private IdGen idGen = IdGen.get();
|
|
41
|
+
|
39
|
42
|
@Override
|
40
|
43
|
public ResponseBean addComment(String parameter) {
|
41
|
44
|
ResponseBean responseBean = new ResponseBean();
|
|
@@ -51,6 +54,7 @@ public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> impl
|
51
|
54
|
return responseBean;
|
52
|
55
|
}
|
53
|
56
|
|
|
57
|
+ comment.setCommentId(idGen.nextId()+"");
|
54
|
58
|
comment.setCustomerName(customer.getCustomerName());
|
55
|
59
|
comment.setAvatar(customer.getAvatar());
|
56
|
60
|
|