|
|
@@ -1,9 +1,12 @@
|
|
|
package com.usoftchina.uas.office.dingtalk.listener;
|
|
|
|
|
|
import com.usoftchina.uas.office.dingtalk.service.UasOaService;
|
|
|
+import com.usoftchina.uas.office.dingtalk.task.DingTalkCheckinTask;
|
|
|
import com.usoftchina.uas.office.dto.UasEvent;
|
|
|
import com.usoftchina.uas.office.entity.DataCenter;
|
|
|
import com.usoftchina.uas.office.listener.UasEventListener;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
@@ -12,8 +15,12 @@ public class UasOaListener {
|
|
|
@Autowired
|
|
|
private UasOaService uasOaService;
|
|
|
|
|
|
+ private final Logger logger = LoggerFactory.getLogger(UasOaListener.class);
|
|
|
+
|
|
|
+
|
|
|
@UasEventListener(caller = "OaDingTalklog", operation = "SAVE")
|
|
|
public void oaDingTalklog(UasEvent event) {
|
|
|
+ logger.info("OaDingTalklog开始");
|
|
|
if (!event.getMaster().equals(DataCenter.INSTANCE.getUsername())) {
|
|
|
return;
|
|
|
}
|