Commit 2bd7e748 by 徐高华

朋友圈

parent ebacd417
......@@ -40,4 +40,7 @@ public interface QwMomentPlanAttendMapper {
List<TaskListWxaDTO> taskListWxa(TaskListWxaQDTO qdto);
void finishTask(@Param("planId")Long attendId, @Param("sendTime")Date sendTime);
void updateMomentId(@Param("id") Long id, @Param("momentId") String jobId);
}
......@@ -132,10 +132,9 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
this.qwMomentPlanAttendMapper.finishTask(dto.getAttendId(),qdto.getSendTime()) ;
this.qwMomentPlanMapper.updateClerkNum(planId,-1,-1,1);
String momentId = this.getMomentId(qdto.getStaffId() , qdto.getSendTime()) ;
if(StringUtils.isNotBlank(momentId)) {
this.qwMomentPlanAttendMapper.updateMomentId(dto.getAttendId(),momentId);
}
return ServiceResponse.success() ;
}
......
......@@ -379,7 +379,9 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
vo.setMaterialDesc(obj.getString("contentText"));
imageList.add(vo);
}
ServiceResponse<String> resp = this.qywxSendService.share(plan.getWxEnterpriseId(),Arrays.asList("b2ef17cce11f476b996d0b27ebadf7fb"),msg,imageList) ;
List<QwMomentPlanAttendDTO> clerkList = this.qwMomentPlanAttendMapper.listClerk(plan.getPlanId()) ;
List<String> clerkIdList = clerkList.stream().map(o->o.getClerkId()).collect(Collectors.toList());
ServiceResponse<String> resp = this.qywxSendService.share(plan.getWxEnterpriseId(),clerkIdList,msg,imageList) ;
logger.info("发企微朋友={}",JSONObject.toJSONString(resp));
String jobId = resp.getResult() ;
if(StringUtils.isBlank(jobId)) {
......
......@@ -162,6 +162,10 @@
update tab_haoban_qw_moment_plan_attend set task_status = 2 , send_time= #{sendTime} where attend_id = #{attendId}
</update>
<update id="updateMomentId">
update tab_haoban_qw_moment_plan_attend set moment_id = #{momentId} where attend_id = #{id}
</update>
<!-- ===================== 新增 ======================== -->
<insert id="batchInsert">
INSERT INTO tab_haoban_qw_moment_plan_attend(
......
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