Commit 025b4b34 by 徐高华

朋友圈

parent 3c32e415
...@@ -39,7 +39,7 @@ public class QwMomentPlanWxaDTO implements Serializable { ...@@ -39,7 +39,7 @@ public class QwMomentPlanWxaDTO implements Serializable {
/** /**
* 点赞数 * 点赞数
*/ */
private int linkCount ; private int likeCount ;
/** /**
* 评论数 * 评论数
...@@ -102,12 +102,12 @@ public class QwMomentPlanWxaDTO implements Serializable { ...@@ -102,12 +102,12 @@ public class QwMomentPlanWxaDTO implements Serializable {
this.endTime = endTime; this.endTime = endTime;
} }
public int getLinkCount() { public int getLikeCount() {
return linkCount; return likeCount;
} }
public void setLinkCount(int linkCount) { public void setLikeCount(int likeCount) {
this.linkCount = linkCount; this.likeCount = likeCount;
} }
public int getCommentCount() { public int getCommentCount() {
......
...@@ -39,7 +39,7 @@ public class TaskDetailDTO implements Serializable { ...@@ -39,7 +39,7 @@ public class TaskDetailDTO implements Serializable {
/** /**
* 点赞数 * 点赞数
*/ */
private int linkCount ; private int likeCount ;
/** /**
* 评论数 * 评论数
...@@ -145,12 +145,12 @@ public class TaskDetailDTO implements Serializable { ...@@ -145,12 +145,12 @@ public class TaskDetailDTO implements Serializable {
this.endTime = endTime; this.endTime = endTime;
} }
public int getLinkCount() { public int getLikeCount() {
return linkCount; return likeCount;
} }
public void setLinkCount(int linkCount) { public void setLikeCount(int likeCount) {
this.linkCount = linkCount; this.likeCount = likeCount;
} }
public int getCommentCount() { public int getCommentCount() {
......
...@@ -38,7 +38,7 @@ public class TaskListWxaDTO implements Serializable { ...@@ -38,7 +38,7 @@ public class TaskListWxaDTO implements Serializable {
/** /**
* 点赞数 * 点赞数
*/ */
private int linkCount ; private int likeCount ;
/** /**
* 评论数 * 评论数
...@@ -142,12 +142,12 @@ public class TaskListWxaDTO implements Serializable { ...@@ -142,12 +142,12 @@ public class TaskListWxaDTO implements Serializable {
this.endTime = endTime; this.endTime = endTime;
} }
public int getLinkCount() { public int getLikeCount() {
return linkCount; return likeCount;
} }
public void setLinkCount(int linkCount) { public void setLikeCount(int likeCount) {
this.linkCount = linkCount; this.likeCount = likeCount;
} }
public int getCommentCount() { public int getCommentCount() {
......
...@@ -2,16 +2,16 @@ package com.gic.haoban.manage.service.pojo.bo.moment; ...@@ -2,16 +2,16 @@ package com.gic.haoban.manage.service.pojo.bo.moment;
public class CountBO { public class CountBO {
private Integer linkCount ; private Integer likeCount ;
private Integer commentCount ; private Integer commentCount ;
public Integer getLinkCount() { public Integer getLikeCount() {
return linkCount; return likeCount;
} }
public void setLinkCount(Integer linkCount) { public void setLikeCount(Integer likeCount) {
this.linkCount = linkCount; this.likeCount = likeCount;
} }
public Integer getCommentCount() { public Integer getCommentCount() {
......
...@@ -480,11 +480,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService { ...@@ -480,11 +480,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
this.getQwData(item , 0 , plan.getMomentId()); this.getQwData(item , 0 , plan.getMomentId());
} }
CountBO bo = this.qwMomentPlanAttendMapper.getQwCount(planId) ; 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 like = 0 ;
int comment = 0 ; int comment = 0 ;
if(bo.getLinkCount() != null) { if(bo.getLikeCount() != null) {
like = bo.getLinkCount() ; like = bo.getLikeCount() ;
} }
if(bo.getCommentCount() != null) { if(bo.getCommentCount() != null) {
comment = bo.getCommentCount() ; comment = bo.getCommentCount() ;
...@@ -507,11 +507,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService { ...@@ -507,11 +507,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
this.qwMomentPlanDataService.save(task, dto); this.qwMomentPlanDataService.save(task, dto);
if(type==1) { if(type==1) {
CountBO bo = this.qwMomentPlanAttendMapper.getQwCount(task.getPlanId()) ; 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 like = 0 ;
int comment = 0 ; int comment = 0 ;
if(bo.getLinkCount() != null) { if(bo.getLikeCount() != null) {
like = bo.getLinkCount() ; like = bo.getLikeCount() ;
} }
if(bo.getCommentCount() != null) { if(bo.getCommentCount() != null) {
comment = bo.getCommentCount() ; comment = bo.getCommentCount() ;
......
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
</select> </select>
<select id="getQwCount" resultType="com.gic.haoban.manage.service.pojo.bo.moment.CountBO"> <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 like_count is not null and comment_count is not null
</select> </select>
......
...@@ -24,7 +24,6 @@ import com.gic.haoban.manage.web.vo.moment.PlanClerkListVO; ...@@ -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.PlanListVO;
import com.gic.haoban.manage.web.vo.moment.TaskDetailVO; import com.gic.haoban.manage.web.vo.moment.TaskDetailVO;
import com.gic.haoban.manage.web.vo.moment.TaskMaterialVO; 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.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
......
...@@ -25,7 +25,7 @@ public class PlanClerkListVO implements Serializable { ...@@ -25,7 +25,7 @@ public class PlanClerkListVO implements Serializable {
/** /**
* 点赞数 * 点赞数
*/ */
private int linkCount ; private int likeCount ;
/** /**
* 评论数 * 评论数
...@@ -87,12 +87,12 @@ public class PlanClerkListVO implements Serializable { ...@@ -87,12 +87,12 @@ public class PlanClerkListVO implements Serializable {
this.endTime = endTime; this.endTime = endTime;
} }
public int getLinkCount() { public int getLikeCount() {
return linkCount; return likeCount;
} }
public void setLinkCount(int linkCount) { public void setLikeCount(int likeCount) {
this.linkCount = linkCount; this.likeCount = likeCount;
} }
public int getCommentCount() { public int getCommentCount() {
......
...@@ -38,7 +38,7 @@ public class PlanListVO implements Serializable { ...@@ -38,7 +38,7 @@ public class PlanListVO implements Serializable {
/** /**
* 点赞数 * 点赞数
*/ */
private int linkCount ; private int likeCount ;
/** /**
* 评论数 * 评论数
...@@ -101,12 +101,12 @@ public class PlanListVO implements Serializable { ...@@ -101,12 +101,12 @@ public class PlanListVO implements Serializable {
this.endTime = endTime; this.endTime = endTime;
} }
public int getLinkCount() { public int getLikeCount() {
return linkCount; return likeCount;
} }
public void setLinkCount(int linkCount) { public void setLikeCount(int likeCount) {
this.linkCount = linkCount; this.likeCount = likeCount;
} }
public int getCommentCount() { public int getCommentCount() {
......
...@@ -37,7 +37,7 @@ public class TaskDetailVO implements Serializable { ...@@ -37,7 +37,7 @@ public class TaskDetailVO implements Serializable {
/** /**
* 点赞数 * 点赞数
*/ */
private int linkCount ; private int likeCount ;
/** /**
* 评论数 * 评论数
...@@ -135,12 +135,12 @@ public class TaskDetailVO implements Serializable { ...@@ -135,12 +135,12 @@ public class TaskDetailVO implements Serializable {
this.endTime = endTime; this.endTime = endTime;
} }
public int getLinkCount() { public int getLikeCount() {
return linkCount; return likeCount;
} }
public void setLinkCount(int linkCount) { public void setLikeCount(int likeCount) {
this.linkCount = linkCount; this.likeCount = likeCount;
} }
public int getCommentCount() { 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