Преглед на файлове

【企业微信】【打卡记录去掉日志打印】

wuyx преди 2 месеца
родител
ревизия
2e58b20197
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      uas-office-qywx/src/main/java/com/usoftchina/uas/office/qywx/task/QywxCheckinTask.java

+ 4 - 4
uas-office-qywx/src/main/java/com/usoftchina/uas/office/qywx/task/QywxCheckinTask.java

@@ -143,7 +143,7 @@ public class QywxCheckinTask {
         for (GetCheckinDataResp.CheckinData data : dataList) {
             if (!data.getException_type().equals("未打卡")) {
                 Employee employee = employeeMap.get(data.getUserid());
-                logger.debug("get checkin data, user {}, type {}", employee.getEm_name(), data.getCheckin_type());
+//                logger.debug("get checkin data, user {}, type {}", employee.getEm_name(), data.getCheckin_type());
                 if (endTime < data.getCheckin_time()) {
                     endTime = data.getCheckin_time();
                 }
@@ -164,9 +164,9 @@ public class QywxCheckinTask {
     private Long saveCheckinByDevData(Long endTime, Map<String, Employee> employeeMap, List<GetCheckinByDevDataResp.CheckinData> dataList) {
         for (GetCheckinByDevDataResp.CheckinData data : dataList) {
             Employee employee = employeeMap.get(data.getUserid());
-            DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-            logger.debug("get checkin ByDev data, user {}, type {}, checkinTime {}", employee.getEm_name(), data.getDevice_name()
-                    , format.format(new Date((data.getCheckin_time() * 1000))));
+//            DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+//            logger.debug("get checkin ByDev data, user {}, type {}, checkinTime {}", employee.getEm_name(), data.getDevice_name()
+//                    , format.format(new Date((data.getCheckin_time() * 1000))));
             cardLogService.saveWhenNotExist(new CardLog(employee, data));
             if (endTime < data.getCheckin_time()) {
                 endTime = data.getCheckin_time();