|
@@ -102,6 +102,7 @@ public class BusinessOpportunityController {
|
|
|
|
|
|
@RequestMapping("/exportData")
|
|
@RequestMapping("/exportData")
|
|
public HttpRespMsg exportData(BusinessOpportunity bo ,HttpServletRequest request) throws Exception {
|
|
public HttpRespMsg exportData(BusinessOpportunity bo ,HttpServletRequest request) throws Exception {
|
|
|
|
+ bo.setPageIndex(null).setPageFrom(null);
|
|
User user = userMapper.selectById(request.getHeader("token"));
|
|
User user = userMapper.selectById(request.getHeader("token"));
|
|
SysForm sysForm = sysFormMapper.selectOne(new LambdaQueryWrapper<SysForm>().eq(SysForm::getCompanyId, user.getCompanyId()).eq(SysForm::getCode, "business").eq(SysForm::getIsCurrent, 1));
|
|
SysForm sysForm = sysFormMapper.selectOne(new LambdaQueryWrapper<SysForm>().eq(SysForm::getCompanyId, user.getCompanyId()).eq(SysForm::getCode, "business").eq(SysForm::getIsCurrent, 1));
|
|
WxCorpInfo wxCorpInfo = wxCorpInfoService.getOne(new LambdaQueryWrapper<WxCorpInfo>().eq(WxCorpInfo::getCompanyId, user.getCompanyId()));
|
|
WxCorpInfo wxCorpInfo = wxCorpInfoService.getOne(new LambdaQueryWrapper<WxCorpInfo>().eq(WxCorpInfo::getCompanyId, user.getCompanyId()));
|
|
@@ -146,6 +147,7 @@ public class BusinessOpportunityController {
|
|
HttpRespMsg respMsg = list(bo,request);
|
|
HttpRespMsg respMsg = list(bo,request);
|
|
Map<String, Object> msgData = (Map<String, Object>) respMsg.getData();
|
|
Map<String, Object> msgData = (Map<String, Object>) respMsg.getData();
|
|
List<BusinessOpportunity> list = (List<BusinessOpportunity>) msgData.get("data");
|
|
List<BusinessOpportunity> list = (List<BusinessOpportunity>) msgData.get("data");
|
|
|
|
+ System.out.println("商机数据量==="+list.size());
|
|
|
|
|
|
for (BusinessOpportunity data : list) {
|
|
for (BusinessOpportunity data : list) {
|
|
List<String> item=new ArrayList<>();
|
|
List<String> item=new ArrayList<>();
|
|
@@ -207,6 +209,7 @@ public class BusinessOpportunityController {
|
|
dataList.add(item);
|
|
dataList.add(item);
|
|
}
|
|
}
|
|
String fileName=str+"表导出_"+ System.currentTimeMillis();
|
|
String fileName=str+"表导出_"+ System.currentTimeMillis();
|
|
|
|
+ System.out.println("fileName===="+fileName);
|
|
return excelExportService.exportGeneralExcelByTitleAndList(wxCorpInfo,fileName,dataList,path);
|
|
return excelExportService.exportGeneralExcelByTitleAndList(wxCorpInfo,fileName,dataList,path);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -454,7 +457,9 @@ public class BusinessOpportunityController {
|
|
bo.setCompanyId(user.getCompanyId());
|
|
bo.setCompanyId(user.getCompanyId());
|
|
bo.setUserId(user.getId());
|
|
bo.setUserId(user.getId());
|
|
bo.setEndTime(bo.getEndTime() + " 23:59:59");
|
|
bo.setEndTime(bo.getEndTime() + " 23:59:59");
|
|
- bo.setPageIndex((bo.getPageIndex()-1) * bo.getPageFrom());
|
|
|
|
|
|
+ if (bo.getPageIndex() != null) {
|
|
|
|
+ bo.setPageIndex((bo.getPageIndex()-1) * bo.getPageFrom());
|
|
|
|
+ }
|
|
List<BusinessOpportunity> list = new ArrayList<>();
|
|
List<BusinessOpportunity> list = new ArrayList<>();
|
|
boolean isAll = sysFunctionService.hasPriviledge(user.getRoleId(), "查看全部商机");
|
|
boolean isAll = sysFunctionService.hasPriviledge(user.getRoleId(), "查看全部商机");
|
|
boolean isNotAll = sysFunctionService.hasPriviledge(user.getRoleId(), "查看负责部门商机");
|
|
boolean isNotAll = sysFunctionService.hasPriviledge(user.getRoleId(), "查看负责部门商机");
|