|
@@ -1,30 +1,29 @@
|
|
|
-package cn.iocoder.yudao.module.wechatMp.controller.admin.accountfans;
|
|
|
+package cn.iocoder.yudao.module.mp.admin.accountfans;
|
|
|
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
-import javax.annotation.Resource;
|
|
|
-import org.springframework.validation.annotation.Validated;
|
|
|
+import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|
|
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
+import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
|
|
+import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
|
|
|
+import cn.iocoder.yudao.module.mp.admin.accountfans.vo.*;
|
|
|
+import cn.iocoder.yudao.module.mp.convert.accountfans.WxAccountFansConvert;
|
|
|
+import cn.iocoder.yudao.module.mp.dal.dataobject.accountfans.WxAccountFansDO;
|
|
|
+import cn.iocoder.yudao.module.mp.service.accountfans.WxAccountFansService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import io.swagger.annotations.*;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import javax.validation.constraints.*;
|
|
|
-import javax.validation.*;
|
|
|
-import javax.servlet.http.*;
|
|
|
-import java.util.*;
|
|
|
+import javax.annotation.Resource;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import javax.validation.Valid;
|
|
|
import java.io.IOException;
|
|
|
+import java.util.Collection;
|
|
|
+import java.util.List;
|
|
|
|
|
|
-import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
-import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
|
|
-
|
|
|
-import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
|
|
-
|
|
|
-import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
|
|
|
-import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.*;
|
|
|
-
|
|
|
-import cn.iocoder.yudao.module.wechatMp.controller.admin.accountfans.vo.*;
|
|
|
-import cn.iocoder.yudao.module.wechatMp.dal.dataobject.accountfans.WxAccountFansDO;
|
|
|
-import cn.iocoder.yudao.module.wechatMp.convert.accountfans.WxAccountFansConvert;
|
|
|
-import cn.iocoder.yudao.module.wechatMp.service.accountfans.WxAccountFansService;
|
|
|
+import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.EXPORT;
|
|
|
|
|
|
@Api(tags = "管理后台 - 微信公众号粉丝")
|
|
|
@RestController
|
|
@@ -90,7 +89,7 @@ public class WxAccountFansController {
|
|
|
@PreAuthorize("@ss.hasPermission('wechatMp:wx-account-fans:export')")
|
|
|
@OperateLog(type = EXPORT)
|
|
|
public void exportWxAccountFansExcel(@Valid WxAccountFansExportReqVO exportReqVO,
|
|
|
- HttpServletResponse response) throws IOException {
|
|
|
+ HttpServletResponse response) throws IOException {
|
|
|
List<WxAccountFansDO> list = wxAccountFansService.getWxAccountFansList(exportReqVO);
|
|
|
// 导出 Excel
|
|
|
List<WxAccountFansExcelVO> datas = WxAccountFansConvert.INSTANCE.convertList02(list);
|