Commit 4f6664da by 徐高华

社群群发

parent 6689900f
......@@ -67,4 +67,6 @@ public interface GroupChatPlanOwnerLogMapper {
List<GroupChatPlanOwnerLogDTO> listForCancelSend() ;
void updateMsgid(@Param("planId")Long id , @Param("msgid")String msgid) ;
void staffSendResult(@Param("staffId")String staffId, @Param("planId")Long planId, @Param("sendTime")Date sendTime, @Param("failRemark")String failRemark);
}
\ No newline at end of file
......@@ -7,6 +7,8 @@ import com.gic.haoban.manage.api.dto.chat.GroupChatPlanLogDTO;
import com.gic.haoban.manage.api.dto.qdto.chat.GroupChatPlanSearchQDTO;
import com.gic.haoban.manage.service.pojo.bo.chat.GroupChatPlanBO;
import java.util.Date;
public interface GroupChatPlanService {
public void save(GroupChatPlanDTO dto);
......@@ -32,4 +34,6 @@ public interface GroupChatPlanService {
void groupChatMsgidTimer(String params);
void cancelSendTimer(String params);
void staffSendResult(String wxEnterpriseId, String staffId, Long planId, String failRemark, Date sendTime);
}
\ No newline at end of file
......@@ -657,6 +657,11 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
return retPage;
}
@Override
public void staffSendResult(String wxEnterpriseId, String staffId, Long planId, String failRemark, Date sendTime) {
this.groupChatPlanOwnerLogMapper.staffSendResult(staffId,planId,sendTime,failRemark) ;
}
public void addOrDelTimer(Long planId, Date sendTime, int status) {
logger.info("添加1/删除0定时,{},{}", status, planId);
QuartzTaskDTO quartzTask = new QuartzTaskDTO();
......
......@@ -172,6 +172,6 @@ public class GroupChatPlanApiServiceImpl implements GroupChatPlanApiService {
@Override
public void staffSendResult(String wxEnterpriseId, String staffId, Long planId, String failRemark, Date sendTime) {
this.groupChatPlanService.staffSendResult(wxEnterpriseId,staffId,planId,failRemark,sendTime);
}
}
......@@ -107,6 +107,9 @@
<update id="giveUp" parameterType="java.lang.Long">
update tab_haoban_group_chat_plan_owner_log set send_status = 3 where owner_log_id = #{id}
</update>
<update id="staffSendResult">
update tab_haoban_group_chat_plan_owner_log set send_status = 2 , send_time = #{sendTime} where plan_id = #{planId} and staff_id = #{staffId}
</update>
<!-- ============ 查询=============-->
<select id="selectById" parameterType="long" resultMap="result-map-tabHaobanGroupChatPlanOwnerLog">
......
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