Commit b8f3bbb4 by 18356073052

群发消息任务修改

1 parent 100a0d90
......@@ -8,6 +8,7 @@ import com.linkwechat.common.constant.WeConstans;
import com.linkwechat.common.enums.ChatType;
import com.linkwechat.common.exception.wecom.WeComException;
import com.linkwechat.common.utils.DateUtils;
import com.linkwechat.common.utils.SecurityUtils;
import com.linkwechat.common.utils.SnowFlakeUtil;
import com.linkwechat.wecom.client.WeCustomerMessagePushClient;
import com.linkwechat.wecom.domain.*;
......@@ -73,8 +74,6 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
public void addWeCustomerMessagePush(CustomerMessagePushDto customerMessagePushDto) throws JsonProcessingException {
//立即发送
if (null == customerMessagePushDto.getSettingTime() || customerMessagePushDto.getSettingTime().equals("")) {
customerMessagePushDto.setMessageType("1");
sendMessgae(customerMessagePushDto);
} else {
......@@ -199,6 +198,7 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
customerMessage.setDelFlag(0);
customerMessage.setContent(content(customerMessagePushDto));
customerMessage.setSendInfo(sendInfo.toString());
customerMessage.setCreateBy(SecurityUtils.getUsername());
weCustomerMessageService.save(customerMessage);
//保存分类消息信息
......
......@@ -5,7 +5,7 @@
<mapper namespace="com.linkwechat.wecom.mapper.WeCustomerMessageOriginalMapper">
<select id="selectCustomerMessagePushs" resultType="com.linkwechat.wecom.domain.vo.CustomerMessagePushVo">
SELECT
wcmo.push_type,wcmo.message_type,wcmo.push_range,wcmo.create_by sender,wcmo.create_time
wcmo.push_type,wcmo.message_type,wcmo.push_range,wcm.create_by sender,wcmo.create_time
sendTime,wcm.message_id,wcm.content,wcm.send_info
FROM we_customer_messageOriginal wcmo LEFT JOIN we_customer_message wcm ON
wcmo.message_original_Id=wcm.original_id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!