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

修改考勤汇总

parent 8c473651
...@@ -21,7 +21,7 @@ import org.springframework.stereotype.Service; ...@@ -21,7 +21,7 @@ import org.springframework.stereotype.Service;
@Slf4j @Slf4j
public class MessageServiceImpl implements MessageService { public class MessageServiceImpl implements MessageService {
@Value("${webUrl:''}") @Value("${webUrl:}")
private String webUrl; private String webUrl;
@Autowired @Autowired
private IDingPersonService dingPersonService; private IDingPersonService dingPersonService;
...@@ -34,6 +34,7 @@ public class MessageServiceImpl implements MessageService { ...@@ -34,6 +34,7 @@ public class MessageServiceImpl implements MessageService {
Link link = new Link(); Link link = new Link();
//link.setMessageUrl(webUrl + dingMsg.getPath()); //link.setMessageUrl(webUrl + dingMsg.getPath());
link.setMessageUrl(webUrl + dingMsg.getPath()); link.setMessageUrl(webUrl + dingMsg.getPath());
log.info("linkUrl:"+link.getMessageUrl());
if (SubAddTypeEnum.增加.getValue() == dingMsg.getSubAddType()) { if (SubAddTypeEnum.增加.getValue() == dingMsg.getSubAddType()) {
link.setText(String.format("你好,经人工核实后你在%%-%s" + link.setText(String.format("你好,经人工核实后你在%%-%s" +
......
...@@ -70,7 +70,6 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID ...@@ -70,7 +70,6 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
public Rest<String> sendWorkMsg(WorkMsgReq workMsgReq) { public Rest<String> sendWorkMsg(WorkMsgReq workMsgReq) {
try { try {
DingTalkClient client = getDingTalkClient("/topapi/message/corpconversation/asyncsend_v2"); DingTalkClient client = getDingTalkClient("/topapi/message/corpconversation/asyncsend_v2");
OapiMessageCorpconversationAsyncsendV2Request req = new OapiMessageCorpconversationAsyncsendV2Request(); OapiMessageCorpconversationAsyncsendV2Request req = new OapiMessageCorpconversationAsyncsendV2Request();
req.setAgentId(agentId); req.setAgentId(agentId);
req.setUseridList(workMsgReq.getUseridList()); req.setUseridList(workMsgReq.getUseridList());
......
...@@ -66,13 +66,12 @@ hik: ...@@ -66,13 +66,12 @@ hik:
# AppKey: dingpqzradgfr4efdi2j # AppKey: dingpqzradgfr4efdi2j
# AppSecret: bF2WALmo5_Wuj3hg5gXeWqezrYnZChUJ88HjzNWpkA9ivdOxfBDGOGYcfVRfB3vd # AppSecret: bF2WALmo5_Wuj3hg5gXeWqezrYnZChUJ88HjzNWpkA9ivdOxfBDGOGYcfVRfB3vd
# domain: https://oapi.dingtalk.com # domain: https://oapi.dingtalk.com
webUrl: @profiles.webUrl@
dingtalk: dingtalk:
domain: @profiles.dingtalk.domain@ domain: @profiles.dingtalk.domain@
agentId: @profiles.dingtalk.agentId@ agentId: @profiles.dingtalk.agentId@
AppKey: @profiles.dingtalk.appKey@ AppKey: @profiles.dingtalk.appKey@
AppSecret: @profiles.dingtalk.appSecret@ AppSecret: @profiles.dingtalk.appSecret@
webUrl: @profiles.webUrl@
AesKey: @profiles.dingtalk.aesKey@ AesKey: @profiles.dingtalk.aesKey@
token: @profiles.dingtalk.token@ token: @profiles.dingtalk.token@
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