| | |
| | | import com.github.xiaoymin.knife4j.core.util.CollectionUtils; |
| | | import com.taobao.api.ApiException; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | request.setAgentId(agentId); |
| | | request.setUseridList(userIds); |
| | | request.setToAllUser(false); |
| | | |
| | | request.setMsg(msg); |
| | | log.error("推送简道云人员离岗请求信息:====================>"+JSONObject.toJSONString(request)); |
| | | OapiMessageCorpconversationAsyncsendV2Response rsp = client.execute(request, getToken()); |
| | | log.error("推送简道云人员离岗响应信息:====================>"+JSONObject.toJSONString(rsp)); |
| | | if(rsp.getErrcode().equals(Constants.DD_ERR_CODE)){ |
| | | return true; |
| | | }else{ |
| | |
| | | |
| | | /** |
| | | * 安防/消防 markdown |
| | | * @param hiddenDanger |
| | | * @return |
| | | */ |
| | | public OapiMessageCorpconversationAsyncsendV2Request.Msg getAlarmNoticeMsg(String areaName,String submitTime,String infoType){ |