|
|
@@ -62,6 +62,7 @@ public class QywxProcessTask {
|
|
|
//获取待提醒流程列表
|
|
|
List<Map<String,Object>> remindList = uasJProcessService.getRemindList(em.getEm_code());
|
|
|
if(remindList.size() > 0){
|
|
|
+ logger.debug("send process remind,remindList: user {} {}, size {}", em.getEm_name(),em.getEm_code(), remindList.size());
|
|
|
StringBuffer content = new StringBuffer();
|
|
|
content.append("**您有<font color=blue>"+remindList.get(0).get("COUNTS")+"</font>个审批单还未处理**\n" );
|
|
|
for (Map<String,Object> remind: remindList) {
|
|
|
@@ -76,7 +77,14 @@ public class QywxProcessTask {
|
|
|
dataCenter.getOuterUrl() + "api/authorize", "uas/uasApproval/"+dataCenter.getUsername()+"/receive");
|
|
|
content.append("[更多...](").append(moreUrl).append(")");
|
|
|
}
|
|
|
+ if("SZ0275".equals(em.getEm_code())){
|
|
|
+ logger.debug("send process remind to SZ0275: content: {}", content.toString());
|
|
|
+ }
|
|
|
messageSdk.send("UasAudit", new SendMessageReq().markdown(content.toString()).toUser(em.getEm_qywx()));
|
|
|
+ }else {
|
|
|
+ if("SZ0275".equals(em.getEm_code())){
|
|
|
+ logger.debug("send process remind to SZ0275: no data!!");
|
|
|
+ }
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
logger.error("send process remind error", e);
|