Commit 848d5a26 by 徐高华

朋友圈

parent d8c9c02c
...@@ -65,6 +65,26 @@ public class TaskDetailDTO implements Serializable { ...@@ -65,6 +65,26 @@ public class TaskDetailDTO implements Serializable {
// 1内容 // 1内容
private Integer mediaType ; private Integer mediaType ;
private String momentId ;
private String planMomentId ;
public String getMomentId() {
return momentId;
}
public void setMomentId(String momentId) {
this.momentId = momentId;
}
public String getPlanMomentId() {
return planMomentId;
}
public void setPlanMomentId(String planMomentId) {
this.planMomentId = planMomentId;
}
public Integer getMediaType() { public Integer getMediaType() {
return mediaType; return mediaType;
} }
......
...@@ -37,7 +37,7 @@ public interface QwMomentPlanService { ...@@ -37,7 +37,7 @@ public interface QwMomentPlanService {
* 拉取企微点赞、评论 * 拉取企微点赞、评论
* @param task * @param task
*/ */
void getQwData(TabQwMomentPlanAttend task , int type) ; void getQwData(TabQwMomentPlanAttend task , int type, String planMomentId) ;
void getMomentId(Long planId) ; void getMomentId(Long planId) ;
......
...@@ -182,7 +182,8 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService ...@@ -182,7 +182,8 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
TaskDetailDTO dto = this.qwMomentPlanAttendMapper.taskDetail(planId,execClerkId) ; TaskDetailDTO dto = this.qwMomentPlanAttendMapper.taskDetail(planId,execClerkId) ;
Long attendId = dto.getAttendId() ; Long attendId = dto.getAttendId() ;
TabQwMomentPlanAttend attend = this.qwMomentPlanAttendMapper.getById(attendId) ; TabQwMomentPlanAttend attend = this.qwMomentPlanAttendMapper.getById(attendId) ;
this.qwMomentPlanService.getQwData(attend,1); TabQwMomentPlan plan = this.qwMomentPlanMapper.getById(planId) ;
this.qwMomentPlanService.getQwData(attend,1,plan.getMomentId());
return ServiceResponse.success(dto); return ServiceResponse.success(dto);
} }
......
...@@ -472,8 +472,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService { ...@@ -472,8 +472,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
TabQwMomentPlan plan = this.qwMomentPlanMapper.getById(planId) ; TabQwMomentPlan plan = this.qwMomentPlanMapper.getById(planId) ;
List< TabQwMomentPlanAttend> list = this.qwMomentPlanAttendMapper.listForData(planId) ; List< TabQwMomentPlanAttend> list = this.qwMomentPlanAttendMapper.listForData(planId) ;
for(TabQwMomentPlanAttend item : list) { for(TabQwMomentPlanAttend item : list) {
item.setMomentId(plan.getMomentId()); this.getQwData(item , 0 , plan.getMomentId());
this.getQwData(item , 0);
} }
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.getLinkCount() || null != bo.getCommentCount())) {
...@@ -490,8 +489,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService { ...@@ -490,8 +489,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
} }
@Override @Override
public void getQwData(TabQwMomentPlanAttend task , int type) { public void getQwData(TabQwMomentPlanAttend task , int type ,String planMomentId) {
logger.info("获取企微的统计"); logger.info("获取企微的统计={},{},{}",JSONObject.toJSONString(task),task,planMomentId);
if(StringUtils.isNotBlank(planMomentId)) {
task.setMomentId(planMomentId);
}
if(StringUtils.isBlank(task.getMomentId())) { if(StringUtils.isBlank(task.getMomentId())) {
return; return;
} }
......
...@@ -119,7 +119,9 @@ ...@@ -119,7 +119,9 @@
a.like_count likeCount , a.like_count likeCount ,
a.comment_count commentCount , a.comment_count commentCount ,
a.qw_data_time qwDataTime , a.qw_data_time qwDataTime ,
a.task_status taskStatus a.task_status taskStatus ,
a.moment_id momentId ,
b.moment_id planMomentId
from tab_haoban_qw_moment_plan_attend a left join tab_haoban_qw_moment_plan b on a.plan_id = b.plan_id from tab_haoban_qw_moment_plan_attend a left join tab_haoban_qw_moment_plan b on a.plan_id = b.plan_id
where a.plan_id = #{planId} and a.clerk_id = #{clerkId} and a.delete_flag = 0 and a.status_flag = 1 where a.plan_id = #{planId} and a.clerk_id = #{clerkId} and a.delete_flag = 0 and a.status_flag = 1
</select> </select>
......
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