Reiskuchen 5 tahun lalu
induk
melakukan
aea4712510

+ 1 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/ReportController.java

@@ -92,7 +92,7 @@ public class ReportController {
             httpRespMsg.setError("验证失败");
             return httpRespMsg;
         }
-        return reportService.editReport(projectId, reportList, createDate.length > 0 ? createDate[0] : null);
+        return reportService.editReport(id, reportList, createDate.length > 0 ? createDate[0] : null);
     }
 
     /**

+ 1 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/service/ReportService.java

@@ -22,7 +22,7 @@ public interface ReportService extends IService<Report> {
 
     HttpRespMsg getReport(String date, HttpServletRequest request);
 
-    HttpRespMsg editReport(Integer[] projectIds, List<Report> reportList, String date);
+    HttpRespMsg editReport(Integer[] ids, List<Report> reportList, String date);
 
     HttpRespMsg deleteReport(Integer reportId);
 

+ 2 - 2
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/service/impl/ReportServiceImpl.java

@@ -236,7 +236,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
 
     //新增或编辑报告
     @Override
-    public HttpRespMsg editReport(Integer[] projectIds, List<Report> reportList, String date) {
+    public HttpRespMsg editReport(Integer[] ids, List<Report> reportList, String date) {
         HttpRespMsg httpRespMsg = new HttpRespMsg();
         for (Report report : reportList) {
             //获取一下信息
@@ -258,7 +258,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
         }
         if (reportList.size() > 0 && date != null) {
             List<Integer> idList = new ArrayList<>();
-            for (Integer id : projectIds) {
+            for (Integer id : ids) {
                 if (id != -1) {
                     idList.add(id);
                 }