Browse Source

课表列表导出

zouxuan 4 years ago
parent
commit
fe6ceffe10

+ 3 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/ExportService.java

@@ -1,6 +1,7 @@
 package com.ym.mec.biz.service;
 
 import com.ym.mec.biz.dal.entity.ManagerDownload;
+import com.ym.mec.biz.dal.page.EndCourseScheduleQueryInfo;
 
 import java.io.FileNotFoundException;
 import java.util.Map;
@@ -26,8 +27,8 @@ public interface ExportService {
 
     /**
      * 课表列表导出
-     * @param params
+     * @param queryInfo
      * @param managerDownload
      */
-    void superFindCourseSchedules(Map<String, Object> params, ManagerDownload managerDownload) throws FileNotFoundException;
+    void superFindCourseSchedules(EndCourseScheduleQueryInfo queryInfo, ManagerDownload managerDownload) throws FileNotFoundException;
 }

+ 5 - 3
mec-biz/src/main/java/com/ym/mec/biz/service/impl/ExportServiceImpl.java

@@ -7,7 +7,9 @@ import com.ym.mec.biz.dal.enums.GroupType;
 import com.ym.mec.biz.dal.enums.KitGroupPurchaseTypeEnum;
 import com.ym.mec.biz.dal.enums.OrderTypeEnum;
 import com.ym.mec.biz.dal.enums.SporadicChargeTypeEnum;
+import com.ym.mec.biz.dal.page.EndCourseScheduleQueryInfo;
 import com.ym.mec.biz.dal.page.StudentPaymentOrderQueryInfo;
+import com.ym.mec.biz.service.CourseScheduleService;
 import com.ym.mec.biz.service.ExportService;
 import com.ym.mec.biz.service.StudentPaymentOrderService;
 import com.ym.mec.common.exception.BizException;
@@ -55,7 +57,7 @@ public class ExportServiceImpl implements ExportService {
     @Autowired
     private ReplacementInstrumentActivityDao replacementInstrumentActivityDao;
     @Autowired
-    private CourseScheduleDao courseScheduleDao;
+    private CourseScheduleService courseScheduleService;
 
     @Override
     @Async
@@ -723,8 +725,8 @@ public class ExportServiceImpl implements ExportService {
     }
 
     @Override
-    public void superFindCourseSchedules(Map<String, Object> params, ManagerDownload managerDownload) throws FileNotFoundException {
-        List<CourseScheduleEndDto> rows = courseScheduleDao.endFindCourseSchedules(params);
+    public void superFindCourseSchedules(EndCourseScheduleQueryInfo queryInfo, ManagerDownload managerDownload) throws FileNotFoundException {
+        List<CourseScheduleEndDto> rows = courseScheduleService.endFindCourseSchedules(queryInfo).getRows();
         for (CourseScheduleEndDto row : rows) {
             row.setIsComplaints(StringUtils.equals(row.getIsComplaints(), "1") ? "有" : "无");
         }

+ 1 - 1
mec-web/src/main/java/com/ym/mec/web/controller/ExportController.java

@@ -894,7 +894,7 @@ public class ExportController extends BaseController {
         managerDownload.setCreateTime(nowDate);
         managerDownload.setUpdateTime(nowDate);
         managerDownloadDao.insert(managerDownload);
-        exportService.superFindCourseSchedules(params, managerDownload);
+        exportService.superFindCourseSchedules(queryInfo, managerDownload);
         return succeed(fileName+"导出申请已提交,请到【报表中心-下载列表查看】");
     }