|
|
@@ -1,10 +1,13 @@
|
|
|
package com.fs.course.controller;
|
|
|
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.core.domain.model.LoginUser;
|
|
|
import com.fs.common.utils.ServletUtils;
|
|
|
+import com.fs.course.domain.DuplicateFans;
|
|
|
import com.fs.framework.web.service.TokenService;
|
|
|
import com.fs.his.domain.FsStoreProductCategory;
|
|
|
import com.fs.his.vo.FsStoreProductCategoryVO;
|
|
|
@@ -17,14 +20,8 @@ import com.fs.his.vo.OptionsVO;
|
|
|
import com.fs.system.service.ISysConfigService;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
import com.fs.common.annotation.Log;
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
|
@@ -91,6 +88,29 @@ public class FsUserCourseCategoryController extends BaseController
|
|
|
return util.exportExcel(list, "课堂分类数据");
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 导出重粉
|
|
|
+ */
|
|
|
+ @PreAuthorize("@ss.hasPermi('course:userCourseCategory:fansExport')")
|
|
|
+ @Log(title = "课堂分类重粉", businessType = BusinessType.EXPORT)
|
|
|
+ @PostMapping("/exportFans")
|
|
|
+ public AjaxResult exportFans(@RequestBody Map<String, List<Integer>> map) {
|
|
|
+
|
|
|
+ List<Integer> ids = map.get("ids");
|
|
|
+
|
|
|
+ List<DuplicateFans> list = fsUserCourseCategoryService.exportFans(ids);
|
|
|
+
|
|
|
+ if (CollectionUtils.isEmpty(list)) {
|
|
|
+ return AjaxResult.error("没有可导出的数据");
|
|
|
+ }
|
|
|
+
|
|
|
+ ExcelUtil<DuplicateFans> util = new ExcelUtil<>(DuplicateFans.class);
|
|
|
+
|
|
|
+ return util.exportExcel(list, "课堂分类重粉数据");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 获取课堂分类详细信息
|
|
|
*/
|