Commit 2c0e9895 by 徐高华

朋友圈

parent ce966504
......@@ -371,7 +371,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
if (CollectionUtils.isNotEmpty(list)) {
for (QwMomentPlanAttendDTO dto : list) {
this.sendTaskToClerk(dto.getClerkId(),plan);
this.addPendingTask(plan,dto.getStoreId(),dto.getClerkId()) ;
this.addPendingTask(plan,dto.getStoreId(),dto.getClerkId(),dto.getAttendId()) ;
}
}
}else {
......@@ -420,7 +420,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
return;
}
for (QwMomentPlanAttendDTO dto : clerkList) {
this.addPendingTask(plan,dto.getStoreId(),dto.getClerkId()) ;
this.addPendingTask(plan,dto.getStoreId(),dto.getClerkId(),dto.getAttendId()) ;
}
this.qwMomentPlanMapper.updateJobid(plan.getPlanId(),jobId) ;
WxEnterpriseQwDTO qwDTO = this.wxEnterpriseService.getQwInfo(plan.getWxEnterpriseId());
......@@ -515,9 +515,9 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
return dto ;
}
private void addPendingTask(TabQwMomentPlan plan , String storeId , String clerkId ) {
private void addPendingTask(TabQwMomentPlan plan , String storeId , String clerkId , Long attendId) {
PendingTaskBO bo = new PendingTaskBO();
bo.setRelationId(plan.getPlanId()+"");
bo.setRelationId(attendId+"");
bo.setBusinessId(plan.getPlanId()+"");
bo.setTaskType(PendingTaskTypeEnum.QYWX_MOMENT.getType());
bo.setTitle(plan.getTitle());
......
......@@ -95,7 +95,7 @@
<select id="listClerk" resultType="com.gic.haoban.manage.api.dto.moment.QwMomentPlanAttendDTO">
select clerk_id clerkId , clerk_code clerkCode , clerk_name clerkName , staff_id staffId , store_id storeId
select clerk_id clerkId , clerk_code clerkCode , clerk_name clerkName , staff_id staffId , store_id storeId , attend_id attendId
from tab_haoban_qw_moment_plan_attend where plan_id = #{planId}
<if test="null != statusFlag">
and status_flag = #{statusFlag}
......
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