|
|
|
@ -88,6 +88,7 @@ public class MonthReportServiceImpl extends ServiceImpl<MonthReportMapper, OperM
|
|
|
|
|
eq(OperMonthReportEntity::getIsDeleted, 0); |
|
|
|
|
last("limit 1;"); |
|
|
|
|
}}); |
|
|
|
|
if (ObjectUtil.isEmpty(operMonthReportEntityByMonth) || month.equals(YearMonth.now().toString())) { |
|
|
|
|
if (ObjectUtil.isNotEmpty(operMonthReportEntityByMonth)) { |
|
|
|
|
this.removeById(operMonthReportEntityByMonth.getId()); |
|
|
|
|
} |
|
|
|
@ -108,6 +109,9 @@ public class MonthReportServiceImpl extends ServiceImpl<MonthReportMapper, OperM
|
|
|
|
|
//修改为每运行一次,保存一次
|
|
|
|
|
this.save(operMonthReportEntity); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
log.info("该月{}已生成月报", deptVO.getDeptName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|