|
@@ -245,8 +245,9 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
|
|
|
//新增或编辑报告
|
|
//新增或编辑报告
|
|
@Override
|
|
@Override
|
|
- public HttpRespMsg editReport(Integer[] ids, List<Report> reportList, String date) {
|
|
|
|
|
|
+ public HttpRespMsg editReport(List<Report> reportList, String date) {
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
|
+ List<Integer> idList = new ArrayList<>();
|
|
for (Report report : reportList) {
|
|
for (Report report : reportList) {
|
|
//获取一下信息
|
|
//获取一下信息
|
|
if (report.getWorkingTime() <= 0.0) {
|
|
if (report.getWorkingTime() <= 0.0) {
|
|
@@ -264,14 +265,9 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ idList.add(report.getId());
|
|
}
|
|
}
|
|
- if (reportList.size() > 0 && date != null) {
|
|
|
|
- List<Integer> idList = new ArrayList<>();
|
|
|
|
- for (Integer id : ids) {
|
|
|
|
- if (id != -1) {
|
|
|
|
- idList.add(id);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ if (idList.size() > 0 && date != null) {
|
|
reportMapper.delete(new QueryWrapper<Report>()
|
|
reportMapper.delete(new QueryWrapper<Report>()
|
|
.eq("create_date", date)
|
|
.eq("create_date", date)
|
|
.eq("creator_id", reportList.get(0).getCreatorId())
|
|
.eq("creator_id", reportList.get(0).getCreatorId())
|