|
@ -1,6 +1,10 @@ |
|
|
package com.epmet.controller; |
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.nacos.client.naming.utils.CollectionUtils; |
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
|
|
import com.epmet.commons.tools.utils.ExcelUtils; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.dto.form.yt.CommunityLoginFormDTO; |
|
|
import com.epmet.dto.form.yt.CommunityLoginFormDTO; |
|
|
import com.epmet.dto.form.yt.CountActivityFormDTO; |
|
|
import com.epmet.dto.form.yt.CountActivityFormDTO; |
|
@ -16,6 +20,8 @@ import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
import com.epmet.dto.result.yt.AccountActivityInfo; |
|
|
import com.epmet.dto.result.yt.AccountActivityInfo; |
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 工作人员登录日志表 |
|
|
* 工作人员登录日志表 |
|
@ -115,4 +121,23 @@ public class StaffLoginLogController { |
|
|
return new Result<ActivityTatalInfo>().ok(staffLoginLogService.getActivityTotal(formDTO)); |
|
|
return new Result<ActivityTatalInfo>().ok(staffLoginLogService.getActivityTotal(formDTO)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
|
* 导出活跃 |
|
|
|
|
|
* @param response |
|
|
|
|
|
* @param tokenDto |
|
|
|
|
|
* @param formDTO |
|
|
|
|
|
* @return void |
|
|
|
|
|
* @author qushutong |
|
|
|
|
|
* @date 2023/4/6 18:04 |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("accountActivityInfo-export") |
|
|
|
|
|
public void analysisExport(HttpServletResponse response, @LoginUser TokenDto tokenDto, @RequestBody CountActivityFormDTO formDTO) throws Exception { |
|
|
|
|
|
formDTO.setIsPage(false); |
|
|
|
|
|
PageData<AccountActivityInfo> res = staffLoginLogService.getAccountActivityInfo(formDTO); |
|
|
|
|
|
if (!CollectionUtils.isEmpty(res.getList())) { |
|
|
|
|
|
ExcelUtils.exportExcelToTarget(response, null, res.getList(), AccountActivityInfo.class); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|