Commit c2308969 authored by 赵啸非's avatar 赵啸非

修改考勤汇总

parent b83e2193
......@@ -135,7 +135,7 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
checkDingMsg.setScore(entity.getScore().toString());
checkDingMsg.setSubAddType(entity.getSubAddType());
checkDingMsg.setPath(String.format("#/api/v1/perform/info?id=%s&&performType=complain", entity.getId()));
Rest<String> msgRest = messageService.sendDingTalkWorkMsg(checkDingMsg);
messageService.sendDingTalkWorkMsg(checkDingMsg);
} else {
log.error("根据手机号码获取人员错误,msg:{}", personRest.getMsg());
}
......
......@@ -18,6 +18,7 @@ import com.taobao.api.ApiException;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.logging.Log;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
@Service("dingPersonService")
......@@ -75,11 +76,16 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
req.setUseridList(workMsgReq.getUseridList());
//.setMsg(JSON.toJSONString(workMsgReq.getMsg()));
log.info("workMsgReq:{}",JSON.toJSONString(workMsgReq));
OapiMessageCorpconversationAsyncsendV2Request.Msg msg = new OapiMessageCorpconversationAsyncsendV2Request.Msg();
OapiMessageCorpconversationAsyncsendV2Request.Link link = new OapiMessageCorpconversationAsyncsendV2Request.Link();
link.setMessageUrl(workMsgReq.getMsg().getLink().getMessageUrl());
link.setText(workMsgReq.getMsg().getLink().getText());
link.setTitle(workMsgReq.getMsg().getLink().getTitle());
if(!ObjectUtils.isEmpty(workMsgReq.getMsg())&&!ObjectUtils.isEmpty(workMsgReq.getMsg().getLink())){
link.setMessageUrl(workMsgReq.getMsg().getLink().getMessageUrl());
link.setText(workMsgReq.getMsg().getLink().getText());
link.setTitle(workMsgReq.getMsg().getLink().getTitle());
}
link.setPicUrl("@lADOADmaWMzazQKA");
msg.setLink(link);
msg.setMsgtype("link");
......
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