mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 02:46:50 +08:00
回复时设置默认值
This commit is contained in:
@@ -72,6 +72,8 @@ public class CommentsServiceImpl implements ICommentsService{
|
||||
public void reply(Comments c) {
|
||||
c.setDeleted(false);
|
||||
c.setIsread(false);
|
||||
c.setPraises(0);
|
||||
c.setFavorites(0);
|
||||
dao.save(c);
|
||||
if(c.getParentRead()!=null && c.getParentRead()) {
|
||||
dao.updateMultiFieldById(c.getParentId(),
|
||||
|
||||
Reference in New Issue
Block a user