|
|
@@ -862,8 +862,8 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
|
|
|
LocalDate currentDate = LocalDate.now();
|
|
|
//为了删除PDF查询要删除的任务id
|
|
|
List<Long> longs = coreMonitoringRetrievalTaskBuilderService.selectTaskByToday(id, currentDate.toString());
|
|
|
- if (CollectionUtils.isNotEmpty(longs)){
|
|
|
- longs.forEach(l->{
|
|
|
+ if (CollectionUtils.isNotEmpty(longs)) {
|
|
|
+ longs.forEach(l -> {
|
|
|
iCoreRegisterBookPdfService.deleteWithFile(l);
|
|
|
});
|
|
|
}
|
|
|
@@ -874,8 +874,8 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
|
|
|
String format = simpleDateFormat.format(new Date());
|
|
|
//为了删除PDF查询要删除的任务id
|
|
|
List<Long> longs = coreMonitoringRetrievalTaskBuilderService.selectTaskByStartTime(id, format);
|
|
|
- if (CollectionUtils.isNotEmpty(longs)){
|
|
|
- longs.forEach(l->{
|
|
|
+ if (CollectionUtils.isNotEmpty(longs)) {
|
|
|
+ longs.forEach(l -> {
|
|
|
iCoreRegisterBookPdfService.deleteWithFile(l);
|
|
|
});
|
|
|
}
|
|
|
@@ -952,7 +952,15 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
|
|
|
accessPdf.setTaskTitle("标题");
|
|
|
final SimpleDateFormat format = new SimpleDateFormat("yyyy年MM月dd日 HH时mm分");
|
|
|
Calendar calendar = Calendar.getInstance();
|
|
|
- String dateStr = format.format(accessPdfVO.getTaskStartTime()) + "-" + calendar.get(Calendar.HOUR_OF_DAY) + "时" + calendar.get(Calendar.MINUTE) + "分";
|
|
|
+ String m = String.valueOf(calendar.get(Calendar.MINUTE));
|
|
|
+ if (m.length() == 1) {
|
|
|
+ m = "0" + calendar.get(Calendar.MINUTE);
|
|
|
+ }
|
|
|
+ String h = String.valueOf(calendar.get(Calendar.HOUR_OF_DAY));
|
|
|
+ if (h.length() == 1) {
|
|
|
+ h = "0" + calendar.get(Calendar.HOUR_OF_DAY);
|
|
|
+ }
|
|
|
+ String dateStr = format.format(accessPdfVO.getTaskStartTime()) + "-" + h + "时" + m + "分";
|
|
|
accessPdf.setTaskStartTime(dateStr);
|
|
|
accessPdf.setCheckUser(accessPdfVO.getCheckUser());
|
|
|
accessPdf.setOrgId(accessPdfVO.getOrgId());
|