|
@@ -246,7 +246,7 @@ public class UnmeasureTemperatureAlarmTask {
|
|
|
//开始时间
|
|
|
if (weekdays.indexOf(String.valueOf(weekday)) != -1) {
|
|
|
if (now.compareTo(alarmTime)>=0 && now.compareTo(alarmTime.plusMinutes(intervalMinute))<0) {
|
|
|
- writeDbLog(String.format("考勤测温提醒:考勤时间:{0},当前时间:{2}",
|
|
|
+ writeDbLog(String.format("考勤测温提醒:考勤时间:%s,当前时间:%s",
|
|
|
alarmTime.toString("yyyy-MM-dd HH:mm:ss"),
|
|
|
now.toString("yyyy-MM-dd HH:mm:ss")),
|
|
|
alarmConfig.getCompanyId());
|
|
@@ -411,7 +411,7 @@ public class UnmeasureTemperatureAlarmTask {
|
|
|
List<PersonInfo> unmeasuredList = personDeviceLogService.queryUnAttendanceList(companyCode,startTime.toDate(),endTime.toDate());
|
|
|
|
|
|
writeDbLog(String.format(
|
|
|
- "查询考勤时段:{0}~{1},未考勤人员数量:{2}",
|
|
|
+ "查询考勤时段:%s~%s,未考勤人员数量:%s",
|
|
|
startTime.toString("yyyy-MM-dd HH:mm"),
|
|
|
endTime.toString("yyyy-MM-dd HH:mm"),
|
|
|
unmeasuredList.size()
|
|
@@ -464,7 +464,7 @@ public class UnmeasureTemperatureAlarmTask {
|
|
|
sendData.put("keyword3", keyword3);
|
|
|
sendData.put("remark", remark);
|
|
|
|
|
|
- writeDbLog(String.format("向未测温人:{0}发送测温提醒通知",personInfo.getName()),alarmConfig.getCompanyId());
|
|
|
+ writeDbLog(String.format("向未测温人:%s 发送测温提醒通知",personInfo.getName()),alarmConfig.getCompanyId());
|
|
|
|
|
|
WechatMessageUtil.sendTemplate(sendData, wxConfig.getAppId(),wxConfig.getAppSecret(),remindTmplCode,personInfo.getOpenId(), null);
|
|
|
}
|
|
@@ -510,7 +510,7 @@ public class UnmeasureTemperatureAlarmTask {
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
- writeDbLog(String.format("查询单位:{0},测温统计信息接收人:{1},personId={2}",companyInfo.getName(),pusher.getName(),personId),companyInfo.getId());
|
|
|
+ writeDbLog(String.format("查询单位:%s,测温统计信息接收人: %s,personId=%s",companyInfo.getName(),pusher.getName(),personId),companyInfo.getId());
|
|
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
@@ -637,13 +637,13 @@ public class UnmeasureTemperatureAlarmTask {
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- Boolean result = null;
|
|
|
-
|
|
|
- if (result){
|
|
|
- System.out.println("yes");
|
|
|
- }
|
|
|
- else{
|
|
|
- System.out.println("no");
|
|
|
- }
|
|
|
+ String str = String.format(
|
|
|
+ "查询考勤时段:%s~%s,未考勤人员数量:%s",
|
|
|
+ "2020-04-24 08:00",
|
|
|
+ "2020-04-24 09:00",
|
|
|
+ 10
|
|
|
+ );
|
|
|
+
|
|
|
+ System.out.println(str);
|
|
|
}
|
|
|
}
|