Commit 0143182c by 徐高华

Merge branch 'feature/xgh/2502朋友圈' into 'master'

朋友圈

See merge request !2664
parents b227008f 4f78ca68
...@@ -46,7 +46,7 @@ public interface QwMomentPlanAttendMapper { ...@@ -46,7 +46,7 @@ public interface QwMomentPlanAttendMapper {
List<TaskListWxaDTO> taskListWxa(TaskListWxaQDTO qdto); List<TaskListWxaDTO> taskListWxa(TaskListWxaQDTO qdto);
void finishTask(@Param("attendId")Long attendId, @Param("sendTime")Date sendTime ); void finishTask(@Param("attendId")Long attendId, @Param("sendTime")Date sendTime , @Param("staffId") String staffId);
void updateMomentId(@Param("id") Long id, @Param("momentId") String jobId); void updateMomentId(@Param("id") Long id, @Param("momentId") String jobId);
......
...@@ -35,5 +35,5 @@ public interface QwMomentPlanAttendService { ...@@ -35,5 +35,5 @@ public interface QwMomentPlanAttendService {
void updateStatusFlag(TabQwMomentPlan plan) ; void updateStatusFlag(TabQwMomentPlan plan) ;
void finishTaskUpdateData(Long attendId , Long planId , Date sendDate) ; void finishTaskUpdateData(Long attendId , Long planId , Date sendDate , String staffId) ;
} }
...@@ -214,7 +214,7 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService ...@@ -214,7 +214,7 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
if(null == dto) { if(null == dto) {
return ServiceResponse.failure("9999","任务不存在"); return ServiceResponse.failure("9999","任务不存在");
} }
this.finishTaskUpdateData(dto.getAttendId(),planId,qdto.getSendTime()) ; this.finishTaskUpdateData(dto.getAttendId(),planId,qdto.getSendTime(),qdto.getStaffId()) ;
String momentId = this.getMomentId(qdto.getStaffId() , qdto.getSendTime() , 0) ; String momentId = this.getMomentId(qdto.getStaffId() , qdto.getSendTime() , 0) ;
if(StringUtils.isNotBlank(momentId)) { if(StringUtils.isNotBlank(momentId)) {
this.qwMomentPlanAttendMapper.updateMomentId(dto.getAttendId(),momentId); this.qwMomentPlanAttendMapper.updateMomentId(dto.getAttendId(),momentId);
...@@ -253,12 +253,12 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService ...@@ -253,12 +253,12 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
} }
@Override @Override
public void finishTaskUpdateData(Long attendId , Long planId , Date sendDate) { public void finishTaskUpdateData(Long attendId , Long planId , Date sendDate , String staffId) {
TabQwMomentPlanAttend attend = this.qwMomentPlanAttendMapper.getById(attendId) ; TabQwMomentPlanAttend attend = this.qwMomentPlanAttendMapper.getById(attendId) ;
if(attend.getTaskStatus()==2) { if(attend.getTaskStatus()==2) {
return; return;
} }
this.qwMomentPlanAttendMapper.finishTask(attendId,sendDate) ; this.qwMomentPlanAttendMapper.finishTask(attendId,sendDate,staffId) ;
this.qwMomentPlanMapper.updateClerkNum(planId,-1,-1,1); this.qwMomentPlanMapper.updateClerkNum(planId,-1,-1,1);
// 完成代办 // 完成代办
this.pendingTaskService.updateFinish(attendId+"") ; this.pendingTaskService.updateFinish(attendId+"") ;
......
...@@ -129,7 +129,7 @@ public class QwMomentPlanDataServiceImpl implements QwMomentPlanDataService { ...@@ -129,7 +129,7 @@ public class QwMomentPlanDataServiceImpl implements QwMomentPlanDataService {
} }
this.qwMomentPlanAttendMapper.updateQwData(task.getPlanId(),task.getClerkId(),likeCount,commentCount) ; this.qwMomentPlanAttendMapper.updateQwData(task.getPlanId(),task.getClerkId(),likeCount,commentCount) ;
if((likeCount > 0 || commentCount > 0) && task.getTaskStatus()==1) { if((likeCount > 0 || commentCount > 0) && task.getTaskStatus()==1) {
this.qwMomentPlanAttendService.finishTaskUpdateData(task.getAttendId(), task.getPlanId() , new Date()); this.qwMomentPlanAttendService.finishTaskUpdateData(task.getAttendId(), task.getPlanId() , new Date(),null);
} }
return ServiceResponse.success(); return ServiceResponse.success();
} }
......
...@@ -597,7 +597,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService { ...@@ -597,7 +597,7 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
String staffId = staff.getStaffId(); String staffId = staff.getStaffId();
TabQwMomentPlanAttend attend = this.qwMomentPlanAttendMapper.getByStaff(planId, staffId); TabQwMomentPlanAttend attend = this.qwMomentPlanAttendMapper.getByStaff(planId, staffId);
if(attend.getTaskStatus()==1) { if(attend.getTaskStatus()==1) {
this.qwMomentPlanAttendService.finishTaskUpdateData(attend.getAttendId(),attend.getPlanId(),new Date()) ; this.qwMomentPlanAttendService.finishTaskUpdateData(attend.getAttendId(),attend.getPlanId(),new Date(),null) ;
} }
} }
} }
......
...@@ -203,7 +203,11 @@ ...@@ -203,7 +203,11 @@
<update id="finishTask"> <update id="finishTask">
update tab_haoban_qw_moment_plan_attend set task_status = 2 , send_time= #{sendTime} where attend_id = #{attendId} update tab_haoban_qw_moment_plan_attend set task_status = 2 , send_time= #{sendTime}
<if test="null != staffId">
, staff_id = #{staffId}
</if>
where attend_id = #{attendId}
</update> </update>
<update id="updateMomentId"> <update id="updateMomentId">
......
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