Commit 667223f1 by 徐高华

朋友圈

parent b32eb545
......@@ -29,4 +29,9 @@ public interface QwMomentPlanMapper {
List<QwMomentPlanWxaDTO> planListWxa(PlanListWxaQDTO qdto);
int getTaskNum(TaskNumQDTO qdto);
void updateJobid(@Param("planId") Long planId, @Param("jobId") String jobId);
void updateMomentId(@Param("planId") Long planId, @Param("momentId") String jobId);
}
......@@ -379,11 +379,16 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
ServiceResponse<String> resp = this.qywxSendService.share(plan.getWxEnterpriseId(),Arrays.asList("b2ef17cce11f476b996d0b27ebadf7fb"),msg,imageList) ;
logger.info("发企微朋友={}",JSONObject.toJSONString(resp));
String jobId = resp.getResult() ;
this.qwMomentPlanMapper.updateJobid(plan.getPlanId(),jobId) ;
WxEnterpriseQwDTO qwDTO = this.wxEnterpriseService.getQwInfo(plan.getWxEnterpriseId());
ServiceResponse<Object> resp2 = this.qywxExternalUserService.getMomentTaskResult(qwDTO.getThirdCorpid(),
qwDTO.getSelf3thSecret(), jobId,qwDTO.isSelf(),qwDTO.getUrlHost()) ;
qwDTO.getSelf3thSecret(), jobId, qwDTO.isSelf(),qwDTO.getUrlHost()) ;
logger.info("获取moment_id={}",JSONObject.toJSONString(resp2));
String moment_id = resp2.getResult().toString() ;
if(null != resp2.getResult()) {
String moment_id = resp2.getResult().toString() ;
this.qwMomentPlanMapper.updateMomentId(plan.getPlanId(),moment_id);
}
}
@Override
......
......@@ -291,5 +291,11 @@
where plan_id = #{planId}
</update>
<update id="updateJobid">
update tab_haoban_qw_moment_plan set qw_jobid = #{jobId} where plan_id = #{planId}
</update>
<update id="updateMomentId">
update tab_haoban_qw_moment_plan set moment_id = #{momentId} where plan_id = #{planId}
</update>
</mapper>
\ No newline at end of file
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