|
@@ -2001,11 +2001,12 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
User u = first.get();
|
|
User u = first.get();
|
|
if(u.getCorpwxUserid()!=null){
|
|
if(u.getCorpwxUserid()!=null){
|
|
if(wxCorpInfoList.size()>0){
|
|
if(wxCorpInfoList.size()>0){
|
|
- JSONObject json=new JSONObject();
|
|
|
|
|
|
+ WxCorpInfo wxCorpInfo = wxCorpInfoList.get(0);
|
|
|
|
+ JSONObject json = new JSONObject();
|
|
JSONArray dataJson=new JSONArray();
|
|
JSONArray dataJson=new JSONArray();
|
|
JSONObject item=new JSONObject();
|
|
JSONObject item=new JSONObject();
|
|
item.put("key","审核人");
|
|
item.put("key","审核人");
|
|
- item.put("value",user.getName());
|
|
|
|
|
|
+ item.put("value",wxCorpInfo.getSaasSyncContact() == 1?("$userName="+user.getName()+"$"): user.getName());
|
|
dataJson.add(item);
|
|
dataJson.add(item);
|
|
if(timeType.getNeedEvaluate()==1){
|
|
if(timeType.getNeedEvaluate()==1){
|
|
JSONObject item1=new JSONObject();
|
|
JSONObject item1=new JSONObject();
|
|
@@ -2022,7 +2023,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
dataJson.add(item2);
|
|
dataJson.add(item2);
|
|
json.put("url","https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww4e237fd6abb635af&redirect_uri=http://worktime.ttkuaiban.com/api/corpWXAuth&response_type=code&scope=snsapi_base&state=0#wechat_redirect");
|
|
json.put("url","https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww4e237fd6abb635af&redirect_uri=http://worktime.ttkuaiban.com/api/corpWXAuth&response_type=code&scope=snsapi_base&state=0#wechat_redirect");
|
|
json.put("content_item",dataJson);
|
|
json.put("content_item",dataJson);
|
|
- wxCorpInfoService.sendWXCorpTemplateMsg(wxCorpInfoList.get(0),u.getCorpwxUserid(),json);
|
|
|
|
|
|
+ wxCorpInfoService.sendWXCorpTemplateMsg(wxCorpInfo,u.getCorpwxUserid(),json);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(u.getDingdingUserid()!=null){
|
|
if(u.getDingdingUserid()!=null){
|
|
@@ -5620,15 +5621,15 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
if(auditMsg.contains("提交了")){
|
|
if(auditMsg.contains("提交了")){
|
|
int i = auditMsg.indexOf("提");
|
|
int i = auditMsg.indexOf("提");
|
|
String substring = auditMsg.substring(0, i);
|
|
String substring = auditMsg.substring(0, i);
|
|
- msg = time+" " + auditMsg.replace(substring,"\\$userName="+corpwxUserId+"\\$");
|
|
|
|
|
|
+ msg = time+" " + auditMsg.replace(substring,"\\$userName="+corpwxUserId+"$\\");
|
|
}else if(auditMsg.contains("审核通过了")){
|
|
}else if(auditMsg.contains("审核通过了")){
|
|
int i = auditMsg.indexOf("审");
|
|
int i = auditMsg.indexOf("审");
|
|
String substring = auditMsg.substring(0, i);
|
|
String substring = auditMsg.substring(0, i);
|
|
- msg = time+" " + auditMsg.replace(substring,"\\$userName="+corpwxUserId+"\\$");
|
|
|
|
|
|
+ msg = time+" " + auditMsg.replace(substring,"\\$userName="+corpwxUserId+"$\\");
|
|
}else if(auditMsg.contains("驳回了")) {
|
|
}else if(auditMsg.contains("驳回了")) {
|
|
int i = auditMsg.indexOf("驳");
|
|
int i = auditMsg.indexOf("驳");
|
|
String substring = auditMsg.substring(0, i);
|
|
String substring = auditMsg.substring(0, i);
|
|
- msg = time+" " + auditMsg.replace(substring,"\\$userName="+corpwxUserId+"\\$");
|
|
|
|
|
|
+ msg = time+" " + auditMsg.replace(substring,"\\$userName="+corpwxUserId+"$\\");
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
msg = time+" " + auditMsg;
|
|
msg = time+" " + auditMsg;
|