|
@@ -208,8 +208,10 @@ public class WeComHistoryDataJob {
|
|
|
selectGroupMsgList(startTime, Math.min(startTime + TimeConstant.DAY, endTime), corp.getId(), xxlJobParam.getStaffId());
|
|
|
}
|
|
|
}
|
|
|
- for (Corp corp : corps) {
|
|
|
- selectAlertHistoryMessage(xxlJobParam.getStartTime(), xxlJobParam.getEndTime(), corp.getId(), corp.getName());
|
|
|
+ if (xxlJobParam.getIsAlert() != null && xxlJobParam.getIsAlert() == 1) {
|
|
|
+ for (Corp corp : corps) {
|
|
|
+ selectAlertHistoryMessage(xxlJobParam.getStartTime(), xxlJobParam.getEndTime(), corp.getId(), corp.getName());
|
|
|
+ }
|
|
|
}
|
|
|
return ReturnT.SUCCESS;
|
|
|
}
|