|
@@ -690,7 +690,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
|
|
|
//获取项目列表
|
|
|
@Override
|
|
|
- public HttpRespMsg getProjectList(Integer forReport, String userId, HttpServletRequest request) {
|
|
|
+ public HttpRespMsg getProjectList(Integer forReport, String userId,Integer projectMainId, HttpServletRequest request) {
|
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
try {
|
|
|
System.out.println("userId===="+userId);
|
|
@@ -708,15 +708,26 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
queryWrapper.eq("company_id", user.getCompanyId())
|
|
|
.eq("status", 1)
|
|
|
.orderByDesc("is_public").orderByAsc("id");
|
|
|
+ if (projectMainId!=null){
|
|
|
+ queryWrapper.eq("project_main_id",projectMainId);
|
|
|
+ }
|
|
|
httpRespMsg.data = projectMapper.selectList(queryWrapper);
|
|
|
}
|
|
|
} else {
|
|
|
if (!sysFunctionService.hasPriviledge(user.getRoleId(), "查看全部项目")) {
|
|
|
- //只能看本人相关的项目
|
|
|
- httpRespMsg.data = projectMapper.getParticipatedProject(user.getId(), user.getCompanyId());
|
|
|
+ if (projectMainId!=null){
|
|
|
+ httpRespMsg.data = projectMapper.getParticipatedProjectWithMainProjectId(user.getId(), user.getCompanyId(),projectMainId);
|
|
|
+ }else {
|
|
|
+ //只能看本人相关的项目
|
|
|
+ httpRespMsg.data = projectMapper.getParticipatedProject(user.getId(), user.getCompanyId());
|
|
|
+ }
|
|
|
} else {
|
|
|
- //有权限的看全部的
|
|
|
- httpRespMsg.data = projectMapper.selectList(new QueryWrapper<Project>().eq("company_id", user.getCompanyId()).orderByDesc("is_public").orderByAsc("id"));
|
|
|
+ if (projectMainId!=null){
|
|
|
+ httpRespMsg.data = projectMapper.selectList(new QueryWrapper<Project>().eq("project_main_id",projectMainId).eq("company_id", user.getCompanyId()).orderByDesc("is_public").orderByAsc("id"));
|
|
|
+ }else {
|
|
|
+ //有权限的看全部的
|
|
|
+ httpRespMsg.data = projectMapper.selectList(new QueryWrapper<Project>().eq("company_id", user.getCompanyId()).orderByDesc("is_public").orderByAsc("id"));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
} catch (NullPointerException e) {
|
|
@@ -1480,6 +1491,8 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
|
|
|
|
BeanUtils.copyProperties(project, projectVO);
|
|
|
+ System.out.println("==========>主任务id"+project.getProjectMainId()==null?"空":project.getProjectMainId());
|
|
|
+ System.out.println("==========>主任务名称"+project.getProjectMainName()==null?"空":project.getProjectMainName());
|
|
|
long dt0 = System.currentTimeMillis();
|
|
|
Optional<Department> optional = allDepartmentList.stream().filter(ad -> ad.getDepartmentId().equals(projectVO.getDeptId())).findFirst();
|
|
|
if(optional.isPresent()){
|
|
@@ -1673,6 +1686,10 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
TimeType timeType = timeTypeMapper.selectById(user.getCompanyId());
|
|
|
Company company = companyMapper.selectById(companyId);
|
|
|
boolean isNew = true;
|
|
|
+ if (companyId==4811&&projectMainId==null){
|
|
|
+ httpRespMsg.setError("请选择主项目");
|
|
|
+ return httpRespMsg;
|
|
|
+ }
|
|
|
//检查负责人要在参与人中
|
|
|
if (!StringUtils.isEmpty(inchargerId)) {
|
|
|
if (userIds == null || userIds.length == 0) {
|
|
@@ -3818,7 +3835,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public HttpRespMsg exportProject(HttpServletRequest request) {
|
|
|
+ public HttpRespMsg exportProject(Integer projectId, Integer projectMainId, HttpServletRequest request) {
|
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
//通过公司id获取该公司所有的项目列表
|
|
|
User user = userMapper.selectById(request.getHeader("Token"));
|
|
@@ -3827,6 +3844,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
CompanyDingding dingding = companyDingdingMapper.selectOne(new LambdaQueryWrapper<CompanyDingding>().eq(CompanyDingding::getCompanyId, companyId));
|
|
|
//判断用户的角色,如果是管理员和负责人,查看全部的。如果是普通员工,只能是看到参与的项目
|
|
|
QueryWrapper<Project> queryWrapper = new QueryWrapper<Project>().eq("company_id", companyId);
|
|
|
+ if (projectMainId!=null){
|
|
|
+ queryWrapper.eq("project_main_id",projectMainId);
|
|
|
+ }
|
|
|
+ if (projectId!=null){
|
|
|
+ queryWrapper.eq("id",projectId);
|
|
|
+ }
|
|
|
DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
List<Project> projectList = projectMapper.selectList(queryWrapper);
|
|
|
List<User> userList = userMapper.selectList(new QueryWrapper<User>().eq("company_id", companyId));
|
|
@@ -3835,15 +3858,35 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
//String[] statusNames = {"-","进行中","已完成","已撤销","暂停"};
|
|
|
String[] statusNames = {"-",MessageUtils.message("excel.onGoing"),MessageUtils.message("excel.complete"),MessageUtils.message("excel.revoke"),MessageUtils.message("excel.pause")};
|
|
|
List<List<String>> exportList = new ArrayList<>();
|
|
|
- //String[] titles = {"项目编号", "项目名称", "负责人", "项目金额(元)", "状态","计划开始时间", "计划结束时间", "完成度"};
|
|
|
- String[] titles = {MessageUtils.message("entry.projectId"), MessageUtils.message("entry.projectName"),
|
|
|
- MessageUtils.message("excel.charge"), MessageUtils.message("excel.projectAmount")+"(元)", MessageUtils.message("leave.status")
|
|
|
- ,MessageUtils.message("excel.planStart"), MessageUtils.message("excel.planEnd"),
|
|
|
- MessageUtils.message("excel.minFillDate"), MessageUtils.message("excel.maxFillDate"),MessageUtils.message("excel.degree")};
|
|
|
- exportList.add(Lists.list(titles));
|
|
|
+ List<ProjectMain> projectMainList=new ArrayList<>();
|
|
|
+ if (user.getCompanyId()==4811){
|
|
|
+ String[] titles = {MessageUtils.message("entry.projectId"),"主项目", MessageUtils.message("entry.projectName"),
|
|
|
+ MessageUtils.message("excel.charge"), MessageUtils.message("excel.projectAmount")+"(元)", MessageUtils.message("leave.status")
|
|
|
+ ,MessageUtils.message("excel.planStart"), MessageUtils.message("excel.planEnd"),
|
|
|
+ MessageUtils.message("excel.minFillDate"), MessageUtils.message("excel.maxFillDate"),MessageUtils.message("excel.degree")};
|
|
|
+ exportList.add(Lists.list(titles));
|
|
|
+
|
|
|
+ projectMainList = projectMainMapper.selectList(new QueryWrapper<ProjectMain>().eq("company_id", companyId));
|
|
|
+
|
|
|
+ }else {
|
|
|
+ //String[] titles = {"项目编号", "项目名称", "负责人", "项目金额(元)", "状态","计划开始时间", "计划结束时间", "完成度"};
|
|
|
+ String[] titles = {MessageUtils.message("entry.projectId"), MessageUtils.message("entry.projectName"),
|
|
|
+ MessageUtils.message("excel.charge"), MessageUtils.message("excel.projectAmount")+"(元)", MessageUtils.message("leave.status")
|
|
|
+ ,MessageUtils.message("excel.planStart"), MessageUtils.message("excel.planEnd"),
|
|
|
+ MessageUtils.message("excel.minFillDate"), MessageUtils.message("excel.maxFillDate"),MessageUtils.message("excel.degree")};
|
|
|
+ exportList.add(Lists.list(titles));
|
|
|
+ }
|
|
|
for (Project project : projectList) {
|
|
|
List<String> data = new ArrayList<>();
|
|
|
data.add(project.getProjectCode() == null?"":project.getProjectCode());
|
|
|
+ if (user.getCompanyId()==4811){
|
|
|
+ Optional<ProjectMain> first = projectMainList.stream().filter(pm -> project.getProjectMainId() != null && pm.getId().equals(project.getProjectMainId())).findFirst();
|
|
|
+ if (first.isPresent()){
|
|
|
+ data.add(org.apache.commons.lang3.StringUtils.isEmpty(first.get().getName())?"":first.get().getName());
|
|
|
+ }else {
|
|
|
+ data.add("");
|
|
|
+ }
|
|
|
+ }
|
|
|
data.add(project.getProjectName() == null?"":project.getProjectName());
|
|
|
Optional<User> first = userList.stream().filter(u -> u.getId().equals(project.getInchargerId())).findFirst();
|
|
|
if (first.isPresent()) {
|
|
@@ -4309,7 +4352,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public HttpRespMsg getProjectInAndOut(Integer pageIndex, Integer pageSize, Integer projectId, HttpServletRequest request) {
|
|
|
+ public HttpRespMsg getProjectInAndOut(Integer pageIndex, Integer pageSize, Integer projectId,Integer projectMainId, HttpServletRequest request) {
|
|
|
User user = userMapper.selectById(request.getHeader("Token"));
|
|
|
Integer companyId = user.getCompanyId();
|
|
|
List<Project> projectList = projectMapper.selectList(new QueryWrapper<Project>().eq("company_id", companyId));
|
|
@@ -4333,14 +4376,15 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
List<ExpenseMainType> mainTypeList = expenseMainTypeMapper.selectList(new QueryWrapper<ExpenseMainType>().eq("company_id", companyId));
|
|
|
|
|
|
//撤销的项目不算
|
|
|
- QueryWrapper<Project> queryWrapper = new QueryWrapper<Project>().eq("company_id", companyId);
|
|
|
+ /*QueryWrapper<Project> queryWrapper = new QueryWrapper<Project>().eq("company_id", companyId);
|
|
|
queryWrapper.and(wrapper->wrapper.isNull("status").or().ne("status", 3));
|
|
|
if(inchagerIds!=null){
|
|
|
queryWrapper.in("id",inchagerIds);
|
|
|
}
|
|
|
- int total = projectMapper.selectCount(queryWrapper);
|
|
|
+ int total = projectMapper.selectCount(queryWrapper);*/
|
|
|
int pageStart = (pageIndex -1) * pageSize;
|
|
|
- List<Project> projectTask = projectMapper.getProjectInAndOut(companyId, pageStart, pageSize, projectId,inchagerIds);
|
|
|
+ List<Project> projectTask = projectMapper.getProjectInAndOut(companyId, pageStart, pageSize, projectId,inchagerIds,projectMainId);
|
|
|
+ int total = projectMapper.getProjectInAndOutTotal(companyId, projectId,inchagerIds,projectMainId);
|
|
|
List<Integer> collect = projectTask.stream().map(Project::getId).collect(Collectors.toList());
|
|
|
if (collect.size() > 0) {
|
|
|
List<Map<String, Object>> projectExpenseFee = projectMapper.getProjectExpenseFee(companyId, collect);
|
|
@@ -4381,7 +4425,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public HttpRespMsg exportProjectInAndOut(HttpServletRequest request) {
|
|
|
+ public HttpRespMsg exportProjectInAndOut(Integer projectId,Integer projectMainId,HttpServletRequest request) {
|
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
//通过公司id获取该公司所有的项目列表
|
|
|
User user = userMapper.selectById(request.getHeader("Token"));
|
|
@@ -4408,7 +4452,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
|
//获取表头
|
|
|
List<ExpenseMainType> mainTypeList = expenseMainTypeMapper.selectList(new QueryWrapper<ExpenseMainType>().eq("company_id", companyId));
|
|
|
- List<Project> projectList = projectMapper.getProjectInAndOut(companyId, null, null, null,inchagerIds);
|
|
|
+ List<Project> projectList=new ArrayList<>();
|
|
|
+ if (user.getCompanyId()==4811){
|
|
|
+ projectList = projectMapper.getProjectInAndOut(companyId, null, null, projectId,inchagerIds,projectMainId);
|
|
|
+ }else {
|
|
|
+ projectList = projectMapper.getProjectInAndOut(companyId, null, null, null,inchagerIds,null);
|
|
|
+ }
|
|
|
List<Integer> collect = projectList.stream().map(Project::getId).collect(Collectors.toList());
|
|
|
if (collect.size() > 0) {
|
|
|
List<Map<String, Object>> projectExpenseFee = projectMapper.getProjectExpenseFee(companyId, collect);
|
|
@@ -4420,80 +4469,135 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
|
|
|
|
List<List<String>> exportList = new ArrayList<>();
|
|
|
- //String[] titles = {"项目编号", "项目名称", "合同金额", "人工成本", "自定义费用类型"...};
|
|
|
- String[] titles = {MessageUtils.message("entry.projectId"), MessageUtils.message("entry.projectName"), MessageUtils.message("entry.contract")};
|
|
|
- ArrayList<String> strings = Lists.newArrayList(titles);
|
|
|
- if (company.getPackageContract() == 1) {
|
|
|
- strings.add("已回款金额");
|
|
|
- }
|
|
|
- strings.add(MessageUtils.message("entry.laborCost"));
|
|
|
- mainTypeList.forEach(m->{
|
|
|
- strings.add(m.getName());
|
|
|
- });
|
|
|
- strings.add(MessageUtils.message("excel.totalExp"));
|
|
|
- if (company.getPackageContract() == 1) {
|
|
|
- strings.add("已回款利润");
|
|
|
- strings.add("已回款利润率");
|
|
|
- }
|
|
|
- strings.add(MessageUtils.message("excel.profit"));
|
|
|
- strings.add(MessageUtils.message("excel.profitMargin"));
|
|
|
- titles = strings.toArray(new String[0]);
|
|
|
+ if (user.getCompanyId()==4811){
|
|
|
+ String[] titles = {"项目编号","主项目","项目名称","合同金额(元)","总费用","利润","利润率","","人工成本"};
|
|
|
+ ArrayList<String> strings = Lists.newArrayList(titles);
|
|
|
|
|
|
- exportList.add(Lists.list(titles));
|
|
|
- for (Project project : projectList) {
|
|
|
- List<String> data = new ArrayList<>();
|
|
|
- data.add(project.getProjectCode());
|
|
|
- data.add(project.getProjectName());
|
|
|
- data.add(project.getContractAmount() != null?project.getContractAmount().toString():"");
|
|
|
- if (company.getPackageContract() == 1) {
|
|
|
- data.add(project.getPayment() != null?project.getPayment().toString():"");
|
|
|
- }
|
|
|
- data.add(project.getFeeMan().toString());
|
|
|
- for (ExpenseMainType mainType : mainTypeList) {
|
|
|
- if (project.getProjectExpenseFeeList() != null) {
|
|
|
- Optional<Map<String, Object>> first = project.getProjectExpenseFeeList().stream().filter(pef -> pef.get("typeId").equals(mainType.getId())).findFirst();
|
|
|
- if (first.isPresent()) {
|
|
|
- data.add(first.get().get("amount").toString());
|
|
|
+ mainTypeList.forEach(m->{
|
|
|
+ strings.add(m.getName());
|
|
|
+ });
|
|
|
+ exportList.add(strings);
|
|
|
+
|
|
|
+ for (Project project : projectList) {
|
|
|
+ List<String> data = new ArrayList<>();
|
|
|
+ data.add(project.getProjectCode());
|
|
|
+ data.add(project.getProjectMainName());
|
|
|
+ data.add(project.getProjectName());
|
|
|
+ data.add(project.getContractAmount() != null?project.getContractAmount().toString():"");
|
|
|
+
|
|
|
+ double totalFee = project.getBudget();
|
|
|
+ data.add(new java.text.DecimalFormat("#0.00").format(totalFee));
|
|
|
+ if (project.getContractAmount() != null && project.getContractAmount() > 0) {
|
|
|
+ double profitAmt = project.getContractAmount() - totalFee;
|
|
|
+ data.add(profitAmt+"");
|
|
|
+ data.add(new java.text.DecimalFormat("#0.0").format((100*profitAmt/project.getContractAmount()))+"%");
|
|
|
+ } else {
|
|
|
+ double profitAmt = 0 -totalFee;
|
|
|
+ data.add(profitAmt+"");
|
|
|
+ data.add("");
|
|
|
+ }
|
|
|
+
|
|
|
+ data.add("总费用明细");
|
|
|
+
|
|
|
+ data.add(project.getFeeMan().toString());
|
|
|
+ for (ExpenseMainType mainType : mainTypeList) {
|
|
|
+ if (project.getProjectExpenseFeeList() != null) {
|
|
|
+ Optional<Map<String, Object>> first = project.getProjectExpenseFeeList().stream().filter(pef -> pef.get("typeId").equals(mainType.getId())).findFirst();
|
|
|
+ if (first.isPresent()) {
|
|
|
+ data.add(first.get().get("amount").toString());
|
|
|
+ } else {
|
|
|
+ data.add("");
|
|
|
+ }
|
|
|
} else {
|
|
|
data.add("");
|
|
|
}
|
|
|
- } else {
|
|
|
- data.add("");
|
|
|
}
|
|
|
+
|
|
|
+ exportList.add(data);
|
|
|
+ }
|
|
|
+ String fileName = MessageUtils.message("fileName.profitSta")+System.currentTimeMillis();
|
|
|
+ try {
|
|
|
+ return excelExportService.exportGeneralExcelByTitleAndListByZheZhong(wxCorpInfo,dingding,fileName, exportList, path);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ httpRespMsg.data = pathPrefix + fileName+".xlsx";
|
|
|
+ }else {
|
|
|
+ //String[] titles = {"项目编号", "项目名称", "合同金额", "人工成本", "自定义费用类型"...};
|
|
|
+ String[] titles = {MessageUtils.message("entry.projectId"), MessageUtils.message("entry.projectName"), MessageUtils.message("entry.contract")};
|
|
|
+ ArrayList<String> strings = Lists.newArrayList(titles);
|
|
|
+ if (company.getPackageContract() == 1) {
|
|
|
+ strings.add("已回款金额");
|
|
|
}
|
|
|
- double totalFee = project.getBudget();
|
|
|
- data.add(new java.text.DecimalFormat("#0.00").format(totalFee));
|
|
|
+ strings.add(MessageUtils.message("entry.laborCost"));
|
|
|
+ mainTypeList.forEach(m->{
|
|
|
+ strings.add(m.getName());
|
|
|
+ });
|
|
|
+ strings.add(MessageUtils.message("excel.totalExp"));
|
|
|
if (company.getPackageContract() == 1) {
|
|
|
- //已回款利润
|
|
|
- double profitPayment = project.getPayment().doubleValue() - totalFee;
|
|
|
- double profitRate = profitPayment / project.getPayment().doubleValue();
|
|
|
- data.add(new java.text.DecimalFormat("#0.00").format(profitPayment));
|
|
|
- if (profitRate > 0) {
|
|
|
- data.add(new java.text.DecimalFormat("#0.0").format(100*profitRate)+"%");
|
|
|
+ strings.add("已回款利润");
|
|
|
+ strings.add("已回款利润率");
|
|
|
+ }
|
|
|
+ strings.add(MessageUtils.message("excel.profit"));
|
|
|
+ strings.add(MessageUtils.message("excel.profitMargin"));
|
|
|
+ titles = strings.toArray(new String[0]);
|
|
|
+
|
|
|
+ exportList.add(Lists.list(titles));
|
|
|
+ for (Project project : projectList) {
|
|
|
+ List<String> data = new ArrayList<>();
|
|
|
+ data.add(project.getProjectCode());
|
|
|
+ data.add(project.getProjectName());
|
|
|
+ data.add(project.getContractAmount() != null?project.getContractAmount().toString():"");
|
|
|
+ if (company.getPackageContract() == 1) {
|
|
|
+ data.add(project.getPayment() != null?project.getPayment().toString():"");
|
|
|
+ }
|
|
|
+ data.add(project.getFeeMan().toString());
|
|
|
+ for (ExpenseMainType mainType : mainTypeList) {
|
|
|
+ if (project.getProjectExpenseFeeList() != null) {
|
|
|
+ Optional<Map<String, Object>> first = project.getProjectExpenseFeeList().stream().filter(pef -> pef.get("typeId").equals(mainType.getId())).findFirst();
|
|
|
+ if (first.isPresent()) {
|
|
|
+ data.add(first.get().get("amount").toString());
|
|
|
+ } else {
|
|
|
+ data.add("");
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ data.add("");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ double totalFee = project.getBudget();
|
|
|
+ data.add(new java.text.DecimalFormat("#0.00").format(totalFee));
|
|
|
+ if (company.getPackageContract() == 1) {
|
|
|
+ //已回款利润
|
|
|
+ double profitPayment = project.getPayment().doubleValue() - totalFee;
|
|
|
+ double profitRate = profitPayment / project.getPayment().doubleValue();
|
|
|
+ data.add(new java.text.DecimalFormat("#0.00").format(profitPayment));
|
|
|
+ if (profitRate > 0) {
|
|
|
+ data.add(new java.text.DecimalFormat("#0.0").format(100*profitRate)+"%");
|
|
|
+ } else {
|
|
|
+ data.add("-");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (project.getContractAmount() != null && project.getContractAmount() > 0) {
|
|
|
+ double profitAmt = project.getContractAmount() - totalFee;
|
|
|
+ data.add(profitAmt+"");
|
|
|
+ data.add(new java.text.DecimalFormat("#0.0").format((100*profitAmt/project.getContractAmount()))+"%");
|
|
|
} else {
|
|
|
- data.add("-");
|
|
|
+ double profitAmt = 0 -totalFee;
|
|
|
+ data.add(profitAmt+"");
|
|
|
+ data.add("");
|
|
|
}
|
|
|
+ exportList.add(data);
|
|
|
}
|
|
|
-
|
|
|
- if (project.getContractAmount() != null && project.getContractAmount() > 0) {
|
|
|
- double profitAmt = project.getContractAmount() - totalFee;
|
|
|
- data.add(profitAmt+"");
|
|
|
- data.add(new java.text.DecimalFormat("#0.0").format((100*profitAmt/project.getContractAmount()))+"%");
|
|
|
- } else {
|
|
|
- double profitAmt = 0 -totalFee;
|
|
|
- data.add(profitAmt+"");
|
|
|
- data.add("");
|
|
|
+ //String fileName = "项目收支平衡报表(利润表)_"+System.currentTimeMillis();
|
|
|
+ String fileName = MessageUtils.message("fileName.profitSta")+System.currentTimeMillis();
|
|
|
+ try {
|
|
|
+ return excelExportService.exportGeneralExcelByTitleAndList(wxCorpInfo,dingding,fileName, exportList, path);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
- exportList.add(data);
|
|
|
+ httpRespMsg.data = pathPrefix + fileName+".xlsx";
|
|
|
}
|
|
|
- //String fileName = "项目收支平衡报表(利润表)_"+System.currentTimeMillis();
|
|
|
- String fileName = MessageUtils.message("fileName.profitSta")+System.currentTimeMillis();
|
|
|
- try {
|
|
|
- return excelExportService.exportGeneralExcelByTitleAndList(wxCorpInfo,dingding,fileName, exportList, path);
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- httpRespMsg.data = pathPrefix + fileName+".xlsx";
|
|
|
return httpRespMsg;
|
|
|
}
|
|
|
|