Commit fc879677 by 徐高华

朋友圈

parent cb5cf6be
...@@ -465,7 +465,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService { ...@@ -465,7 +465,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
this.getQwData(item); this.getQwData(item);
} }
CountBO bo = this.qwMomentPlanAttendMapper.getQwCount(planId) ; CountBO bo = this.qwMomentPlanAttendMapper.getQwCount(planId) ;
if (null != bo.getLinkCount() || null != bo.getCommentCount()) { if (null != bo && (null != bo.getLinkCount() || null != bo.getCommentCount())) {
int like = 0 ; int like = 0 ;
int comment = 0 ; int comment = 0 ;
if(bo.getLinkCount() == null) { if(bo.getLinkCount() == null) {
......
...@@ -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) , sum(comment_count) from tab_haoban_qw_moment_plan_attend where plan_id=#{planId} and delete_flag = 0 and 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
like_count is not null and comment_count is not null like_count is not null and comment_count is not null
</select> </select>
......
...@@ -8,6 +8,7 @@ import com.gic.haoban.manage.api.dto.moment.QwMomentPlanDTO; ...@@ -8,6 +8,7 @@ import com.gic.haoban.manage.api.dto.moment.QwMomentPlanDTO;
import com.gic.haoban.manage.api.qdto.moment.PlanClerkListQDTO; import com.gic.haoban.manage.api.qdto.moment.PlanClerkListQDTO;
import com.gic.haoban.manage.api.qdto.moment.PlanDataListQDTO; import com.gic.haoban.manage.api.qdto.moment.PlanDataListQDTO;
import com.gic.haoban.manage.api.qdto.moment.QwMomentPlanQDTO; import com.gic.haoban.manage.api.qdto.moment.QwMomentPlanQDTO;
import com.gic.haoban.manage.api.qdto.moment.SendResultQDTO;
import com.gic.haoban.manage.api.service.moment.QwMomentApiService; import com.gic.haoban.manage.api.service.moment.QwMomentApiService;
import com.gic.haoban.manage.service.dao.mapper.moment.QwMomentPlanAttendMapper; import com.gic.haoban.manage.service.dao.mapper.moment.QwMomentPlanAttendMapper;
import com.gic.haoban.manage.service.dao.mapper.moment.QwMomentPlanMapper; import com.gic.haoban.manage.service.dao.mapper.moment.QwMomentPlanMapper;
...@@ -124,14 +125,19 @@ public class MomentTest { ...@@ -124,14 +125,19 @@ public class MomentTest {
@Test @Test
public void data() { public void data() {
Long planId = 772267599454027777L ; Long planId = 772267599454027777L ;
TabQwMomentPlan plan = this.qwMomentPlanMapper.getById(planId) ; this.qwMomentPlanService.getQwData(planId);
List< TabQwMomentPlanAttend> list = this.qwMomentPlanAttendMapper.listForData(planId) ; }
for(TabQwMomentPlanAttend item : list) {
item.setMomentId(plan.getMomentId());
this.qwMomentPlanService.getQwData(item);
}
@Test
public void finish() {
SendResultQDTO q = new SendResultQDTO() ;
q.setClerkId("2dd543ad1f2e4feab2e5a5c767197858");
q.setWxEnterpriseId("ca66a01b79474c40b3e7c7f93daf1a3b");
q.setStaffId("2c0d179610a04016bf8971ac0f158442");
q.setPlanId(772845323461615680L);
q.setSendTime(new Date(1741760727397l));
this.qwMomentApiService.finishTask(q) ;
} }
} }
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