调整员工入驻审核发送通知接口
This commit is contained in:
parent
05d5fdc117
commit
587be14c11
|
|
@ -101,7 +101,7 @@ public class NuEmployeesAdvisoryInfoServiceImpl extends ServiceImpl<NuEmployeesA
|
|||
Map<String, Object> data = new HashMap<>();
|
||||
com.alibaba.fastjson.JSONObject orgInfo = sysBaseAPI.getOrgInfo(dto.getOrgCode());
|
||||
String companyName = orgInfo.getString("departName");
|
||||
String content = companyName + "员工入驻审核结果";
|
||||
String content = companyName + "审核结果";
|
||||
String auditStatus = "";
|
||||
if (StringUtils.equals("2", dto.getAuditStatus())) {
|
||||
auditStatus = "审核通过";
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ public class TemplateMessageSender {
|
|||
String url = String.format(SEND_TEMPLATE_MSG_URL, accessToken);
|
||||
|
||||
JSONObject json = new JSONObject();
|
||||
System.out.println("touser----------------------------->"+openId);
|
||||
json.put("touser", openId);
|
||||
json.put("template_id", templateId);
|
||||
json.put("page", page);
|
||||
|
|
@ -35,6 +36,7 @@ public class TemplateMessageSender {
|
|||
dataJson.put(entry.getKey(), valueJson);
|
||||
}
|
||||
json.put("data", dataJson);
|
||||
System.out.println("json----------------------------->"+json.toString());
|
||||
|
||||
OkHttpClient client = new OkHttpClient();
|
||||
RequestBody body = RequestBody.create(json.toString(), MediaType.get("application/json"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue