|
@@ -7,20 +7,16 @@ import com.tzld.piaoquan.growth.common.component.HttpPoolClient;
|
|
|
import com.tzld.piaoquan.growth.common.dao.mapper.PreSpecialSendMessageMapper;
|
|
|
import com.tzld.piaoquan.growth.common.model.bo.MsgResult;
|
|
|
import com.tzld.piaoquan.growth.common.model.po.PreSpecialSendMessage;
|
|
|
-import com.tzld.piaoquan.growth.common.model.po.PreSpecialSendMessageExample;
|
|
|
import com.tzld.piaoquan.growth.common.service.WeComAccessTokenService;
|
|
|
import com.tzld.piaoquan.growth.common.service.MessageService;
|
|
|
-import com.tzld.piaoquan.growth.common.service.WeComService;
|
|
|
+import com.tzld.piaoquan.growth.common.service.WeComSendService;
|
|
|
import com.tzld.piaoquan.growth.common.utils.DateUtil;
|
|
|
import com.tzld.piaoquan.growth.common.utils.LarkRobotUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
-import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
-import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
import static com.tzld.piaoquan.growth.common.common.constant.MessageConstant.specialStaffIdList;
|
|
@@ -42,7 +38,7 @@ public class MessageServiceImpl implements MessageService {
|
|
|
private PreSpecialSendMessageMapper preSpecialSendMessageMapper;
|
|
|
|
|
|
@Autowired
|
|
|
- private WeComService weComService;
|
|
|
+ private WeComSendService weComSendService;
|
|
|
|
|
|
|
|
|
@Override
|
|
@@ -55,7 +51,7 @@ public class MessageServiceImpl implements MessageService {
|
|
|
if (corpId == 1L) {
|
|
|
s = httpPoolClient.post(url, jsonObject.toJSONString());
|
|
|
} else {
|
|
|
- s = weComService.sendPost(url, jsonObject.toJSONString());
|
|
|
+ s = weComSendService.sendPost(url, jsonObject.toJSONString());
|
|
|
}
|
|
|
JSONObject res = JSONObject.parseObject(s);
|
|
|
log.info("pushWeComMessage res={}", res);
|