mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-06 17:36:47 +08:00
Merge branch 'stat' of https://codeup.aliyun.com/6265f483e4166464dc2f9c14/boeu/baseservers into stat
This commit is contained in:
@@ -113,6 +113,9 @@ public class Comments extends IdBaseEntity {
|
||||
|
||||
@Column(name = "praises")
|
||||
private Integer praises;
|
||||
|
||||
@Column(name = "favorites")
|
||||
private Integer favorites;
|
||||
|
||||
// /**
|
||||
// * 最后回答时间
|
||||
|
||||
@@ -62,6 +62,8 @@ public class CommentsServiceImpl implements ICommentsService{
|
||||
public void add(Comments c) {
|
||||
c.setDeleted(false);
|
||||
c.setIsread(false);
|
||||
c.setPraises(0);
|
||||
c.setFavorites(0);
|
||||
dao.save(c);
|
||||
callback.increase(BoedxResourceType.toEnum(c.getObjType()),c.getObjId(), BoedxHitsField.Comments);
|
||||
}
|
||||
|
||||
@@ -96,6 +96,7 @@ public class PortalConsoleApi extends ApiBaseController{
|
||||
map.put("userNo",user.getUserNo());
|
||||
map.put("userType",utype);
|
||||
map.put("departId",user.getDepartId());
|
||||
map.put("sign",user.getSign());
|
||||
map.put("departName",departName);
|
||||
map.put("departFullName",departFullName);
|
||||
map.put("studyTotal",user.getStudyTotal() == null ? 0 : user.getStudyTotal());
|
||||
|
||||
Reference in New Issue
Block a user