Commit 19b42b1f by 徐高华

下载

parent 88772129
......@@ -19,7 +19,16 @@ public class ChatHmSearchQDTO implements Serializable {
private List<Long> chatHmIdList;
private List<String> creatorIdList ;
private Integer linkCount ;
private int allFlag ;
public int getAllFlag() {
return allFlag;
}
public void setAllFlag(int allFlag) {
this.allFlag = allFlag;
}
public Integer getLinkCount() {
return linkCount;
}
......
......@@ -320,8 +320,8 @@ public class GroupChatHmController {
@SuppressWarnings("deprecation")
@RequestMapping("download")
public RestResponse<Object> download(@RequestBody ChatHmSearchQDTO qdto,
@RequestParam(defaultValue = "0") int allFlag) {
public RestResponse<Object> download(@RequestBody ChatHmSearchQDTO qdto) {
int allFlag = qdto.getAllFlag();
if (allFlag == 0 && CollectionUtils.isEmpty(qdto.getChatHmIdList())) {
return RestResponse.failure("1", "请选择要下载的群活码");
}
......@@ -348,13 +348,14 @@ public class GroupChatHmController {
WebLoginDTO loginUser = AuthWebRequestUtil.getLoginUser();
String wxEnterpriseId = loginUser.getWxEnterpriseId();
String enterpriseId = loginUser.getEnterpriseId();
qdto.setEnterpriseId(enterpriseId);
qdto.setWxEnterpriseId(wxEnterpriseId);
BasePageInfo basePageInfo = new BasePageInfo();
basePageInfo.setPageNum(1);
basePageInfo.setPageSize(500000);
qdto.setEnterpriseId(enterpriseId);
qdto.setWxEnterpriseId(wxEnterpriseId);
ServiceResponse<Page<GroupChatHmDTO>> resp = this.groupChatHmApiService.listPage(qdto, basePageInfo);
List<GroupChatHmDTO> dtoList = resp.getResult().getResult();
int size = dtoList.size();
JSONResponse jsonResponse = DataPermissionExport.generatedExcel(1, au, "", "", size, fileName, qrCodeName,
downloadReportService);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment