Commit 025b4b34 by 徐高华

朋友圈

parent 3c32e415
......@@ -39,7 +39,7 @@ public class QwMomentPlanWxaDTO implements Serializable {
/**
* 点赞数
*/
private int linkCount ;
private int likeCount ;
/**
* 评论数
......@@ -102,12 +102,12 @@ public class QwMomentPlanWxaDTO implements Serializable {
this.endTime = endTime;
}
public int getLinkCount() {
return linkCount;
public int getLikeCount() {
return likeCount;
}
public void setLinkCount(int linkCount) {
this.linkCount = linkCount;
public void setLikeCount(int likeCount) {
this.likeCount = likeCount;
}
public int getCommentCount() {
......
......@@ -39,7 +39,7 @@ public class TaskDetailDTO implements Serializable {
/**
* 点赞数
*/
private int linkCount ;
private int likeCount ;
/**
* 评论数
......@@ -145,12 +145,12 @@ public class TaskDetailDTO implements Serializable {
this.endTime = endTime;
}
public int getLinkCount() {
return linkCount;
public int getLikeCount() {
return likeCount;
}
public void setLinkCount(int linkCount) {
this.linkCount = linkCount;
public void setLikeCount(int likeCount) {
this.likeCount = likeCount;
}
public int getCommentCount() {
......
......@@ -38,7 +38,7 @@ public class TaskListWxaDTO implements Serializable {
/**
* 点赞数
*/
private int linkCount ;
private int likeCount ;
/**
* 评论数
......@@ -142,12 +142,12 @@ public class TaskListWxaDTO implements Serializable {
this.endTime = endTime;
}
public int getLinkCount() {
return linkCount;
public int getLikeCount() {
return likeCount;
}
public void setLinkCount(int linkCount) {
this.linkCount = linkCount;
public void setLikeCount(int likeCount) {
this.likeCount = likeCount;
}
public int getCommentCount() {
......
......@@ -2,16 +2,16 @@ package com.gic.haoban.manage.service.pojo.bo.moment;
public class CountBO {
private Integer linkCount ;
private Integer likeCount ;
private Integer commentCount ;
public Integer getLinkCount() {
return linkCount;
public Integer getLikeCount() {
return likeCount;
}
public void setLinkCount(Integer linkCount) {
this.linkCount = linkCount;
public void setLikeCount(Integer likeCount) {
this.likeCount = likeCount;
}
public Integer getCommentCount() {
......
......@@ -480,11 +480,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
this.getQwData(item , 0 , plan.getMomentId());
}
CountBO bo = this.qwMomentPlanAttendMapper.getQwCount(planId) ;
if (null != bo && (null != bo.getLinkCount() || null != bo.getCommentCount())) {
if (null != bo && (null != bo.getLikeCount() || null != bo.getCommentCount())) {
int like = 0 ;
int comment = 0 ;
if(bo.getLinkCount() != null) {
like = bo.getLinkCount() ;
if(bo.getLikeCount() != null) {
like = bo.getLikeCount() ;
}
if(bo.getCommentCount() != null) {
comment = bo.getCommentCount() ;
......@@ -507,11 +507,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
this.qwMomentPlanDataService.save(task, dto);
if(type==1) {
CountBO bo = this.qwMomentPlanAttendMapper.getQwCount(task.getPlanId()) ;
if (null != bo && (null != bo.getLinkCount() || null != bo.getCommentCount())) {
if (null != bo && (null != bo.getLikeCount() || null != bo.getCommentCount())) {
int like = 0 ;
int comment = 0 ;
if(bo.getLinkCount() != null) {
like = bo.getLinkCount() ;
if(bo.getLikeCount() != null) {
like = bo.getLikeCount() ;
}
if(bo.getCommentCount() != null) {
comment = bo.getCommentCount() ;
......
......@@ -163,7 +163,7 @@
</select>
<select id="getQwCount" resultType="com.gic.haoban.manage.service.pojo.bo.moment.CountBO">
select sum(like_count) linkCount , sum(comment_count) commentCount from tab_haoban_qw_moment_plan_attend where plan_id=#{planId} and delete_flag = 0 and
select sum(like_count) likeCount , sum(comment_count) commentCount from tab_haoban_qw_moment_plan_attend where plan_id=#{planId} and delete_flag = 0 and
like_count is not null and comment_count is not null
</select>
......
......@@ -24,7 +24,6 @@ import com.gic.haoban.manage.web.vo.moment.PlanClerkListVO;
import com.gic.haoban.manage.web.vo.moment.PlanListVO;
import com.gic.haoban.manage.web.vo.moment.TaskDetailVO;
import com.gic.haoban.manage.web.vo.moment.TaskMaterialVO;
import com.gic.search.engine.api.service.dynamic.ESDataDynamicOperationApiService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
......
......@@ -25,7 +25,7 @@ public class PlanClerkListVO implements Serializable {
/**
* 点赞数
*/
private int linkCount ;
private int likeCount ;
/**
* 评论数
......@@ -87,12 +87,12 @@ public class PlanClerkListVO implements Serializable {
this.endTime = endTime;
}
public int getLinkCount() {
return linkCount;
public int getLikeCount() {
return likeCount;
}
public void setLinkCount(int linkCount) {
this.linkCount = linkCount;
public void setLikeCount(int likeCount) {
this.likeCount = likeCount;
}
public int getCommentCount() {
......
......@@ -38,7 +38,7 @@ public class PlanListVO implements Serializable {
/**
* 点赞数
*/
private int linkCount ;
private int likeCount ;
/**
* 评论数
......@@ -101,12 +101,12 @@ public class PlanListVO implements Serializable {
this.endTime = endTime;
}
public int getLinkCount() {
return linkCount;
public int getLikeCount() {
return likeCount;
}
public void setLinkCount(int linkCount) {
this.linkCount = linkCount;
public void setLikeCount(int likeCount) {
this.likeCount = likeCount;
}
public int getCommentCount() {
......
......@@ -37,7 +37,7 @@ public class TaskDetailVO implements Serializable {
/**
* 点赞数
*/
private int linkCount ;
private int likeCount ;
/**
* 评论数
......@@ -135,12 +135,12 @@ public class TaskDetailVO implements Serializable {
this.endTime = endTime;
}
public int getLinkCount() {
return linkCount;
public int getLikeCount() {
return likeCount;
}
public void setLinkCount(int linkCount) {
this.linkCount = linkCount;
public void setLikeCount(int likeCount) {
this.likeCount = likeCount;
}
public int getCommentCount() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment