|
@@ -1767,7 +1767,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
String plate9,
|
|
String plate9,
|
|
|
String plate10,
|
|
String plate10,
|
|
|
String deptIds,
|
|
String deptIds,
|
|
|
- String[] leaderIds) {
|
|
|
|
|
|
|
+ String[] leaderIds, Integer currentStageId, String currentStageName) {
|
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
User user = userMapper.selectById(request.getHeader("Token"));
|
|
User user = userMapper.selectById(request.getHeader("Token"));
|
|
|
Integer companyId = user.getCompanyId();
|
|
Integer companyId = user.getCompanyId();
|
|
@@ -1850,7 +1850,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
.setPlate7(plate7)
|
|
.setPlate7(plate7)
|
|
|
.setPlate8(plate8)
|
|
.setPlate8(plate8)
|
|
|
.setPlate9(plate9)
|
|
.setPlate9(plate9)
|
|
|
- .setPlate10(plate10);
|
|
|
|
|
|
|
+ .setPlate10(plate10).setCurrentStageId(currentStageId).setCurrentStageName(currentStageName);
|
|
|
if(companyId==862){
|
|
if(companyId==862){
|
|
|
project.setBuId(buId);
|
|
project.setBuId(buId);
|
|
|
if (project.getBuId()!=null&&!project.getBuId().equals("")) {
|
|
if (project.getBuId()!=null&&!project.getBuId().equals("")) {
|
|
@@ -1993,7 +1993,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
.setPlate7(plate7)
|
|
.setPlate7(plate7)
|
|
|
.setPlate8(plate8)
|
|
.setPlate8(plate8)
|
|
|
.setPlate9(plate9)
|
|
.setPlate9(plate9)
|
|
|
- .setPlate10(plate10);
|
|
|
|
|
|
|
+ .setPlate10(plate10).setCurrentStageId(currentStageId).setCurrentStageName(currentStageName);
|
|
|
if(companyId==862){
|
|
if(companyId==862){
|
|
|
p.setBuId(buId);
|
|
p.setBuId(buId);
|
|
|
if (p.getBuId()!=null&&!p.getBuId().equals("")) {
|
|
if (p.getBuId()!=null&&!p.getBuId().equals("")) {
|
|
@@ -8007,7 +8007,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public HttpRespMsg getDegreeCost(String startDate, String endDate, Integer projectId,String userId, HttpServletRequest request) {
|
|
|
|
|
|
|
+ public HttpRespMsg getDegreeCost(String startDate, String endDate, Integer projectId,String userId, Integer departmentId, HttpServletRequest request) {
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
String token = request.getHeader("TOKEN");
|
|
String token = request.getHeader("TOKEN");
|
|
|
User user = userMapper.selectById(token);
|
|
User user = userMapper.selectById(token);
|
|
@@ -8035,6 +8035,10 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ } else if (departmentId != null) {
|
|
|
|
|
+ //有查看全公司的权限的情况下,按部门筛选的结果
|
|
|
|
|
+ List<Integer> branchDepartment = getBranchDepartment(departmentId, allDepartmentList);
|
|
|
|
|
+ deptIds = branchDepartment;
|
|
|
}
|
|
}
|
|
|
msg.data = projectMapper.getDegreeCost(startDate, endDate, projectId,userId, user.getCompanyId(),deptIds);
|
|
msg.data = projectMapper.getDegreeCost(startDate, endDate, projectId,userId, user.getCompanyId(),deptIds);
|
|
|
return msg;
|
|
return msg;
|
|
@@ -13333,24 +13337,17 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
List<List<String>> allList=null ;
|
|
List<List<String>> allList=null ;
|
|
|
List<String> sumRow = null;
|
|
List<String> sumRow = null;
|
|
|
List<String> headList = new ArrayList<String>();
|
|
List<String> headList = new ArrayList<String>();
|
|
|
- //headList.add("项目编号");
|
|
|
|
|
- headList.add(MessageUtils.message("entry.projectId"));
|
|
|
|
|
- //headList.add("项目名称");
|
|
|
|
|
- headList.add(MessageUtils.message("entry.projectName"));
|
|
|
|
|
- //headList.add("项目分类");
|
|
|
|
|
- headList.add(MessageUtils.message("entry.projectType"));
|
|
|
|
|
- //headList.add("人员");
|
|
|
|
|
- headList.add(MessageUtils.message("entry.personnel"));
|
|
|
|
|
- //headList.add("部门");
|
|
|
|
|
-// headList.add(MessageUtils.message("excel.department"));
|
|
|
|
|
|
|
+ headList.add("项目编号");
|
|
|
|
|
+ headList.add("项目名称");
|
|
|
|
|
+ headList.add("项目分类");
|
|
|
|
|
+ headList.add("人员");
|
|
|
|
|
+ headList.add("部门");
|
|
|
headList.add(timeType.getCustomDegreeName());
|
|
headList.add(timeType.getCustomDegreeName());
|
|
|
if(functionTimeList.size()>0){
|
|
if(functionTimeList.size()>0){
|
|
|
- //headList.add("工时(h)");
|
|
|
|
|
- headList.add(MessageUtils.message("entry.workHours")+"(h)");
|
|
|
|
|
|
|
+ headList.add("工时(h)");
|
|
|
}
|
|
}
|
|
|
if(functionCostList.size()>0){
|
|
if(functionCostList.size()>0){
|
|
|
- //headList.add("成本(元)");
|
|
|
|
|
- headList.add(MessageUtils.message("entry.cost")+"(元)");
|
|
|
|
|
|
|
+ headList.add("成本(元)");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
allList=new ArrayList<>();
|
|
allList=new ArrayList<>();
|
|
@@ -13373,7 +13370,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
rowData.add(map.get("categoryName")==null?"":map.get("categoryName").toString());
|
|
rowData.add(map.get("categoryName")==null?"":map.get("categoryName").toString());
|
|
|
rowData.add("");
|
|
rowData.add("");
|
|
|
rowData.add("");
|
|
rowData.add("");
|
|
|
-// rowData.add("");
|
|
|
|
|
|
|
+ rowData.add("");
|
|
|
|
|
|
|
|
if(functionTimeList.size()>0){
|
|
if(functionTimeList.size()>0){
|
|
|
rowData.add(((Double)map.get("cost")).toString());
|
|
rowData.add(((Double)map.get("cost")).toString());
|
|
@@ -13401,16 +13398,16 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
membRowData.add("");
|
|
membRowData.add("");
|
|
|
if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()==1){
|
|
if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()==1){
|
|
|
membRowData.add(("$userName="+membMap.get("corpwxUserId")+"$"));
|
|
membRowData.add(("$userName="+membMap.get("corpwxUserId")+"$"));
|
|
|
-// if(membMap.get("departmentName").equals("未分配")){
|
|
|
|
|
-// membRowData.add("未分配");
|
|
|
|
|
-// }else {
|
|
|
|
|
-// membRowData.add((String)("$departmentName="+membMap.get("corpwxDeptId")+"$"));
|
|
|
|
|
-// }
|
|
|
|
|
- }else if(dingding!=null&&dingding.getContactNeedTranslate()==1){
|
|
|
|
|
- membRowData.add(("$userName="+(String)membMap.get("name")+"$"));
|
|
|
|
|
- }else {
|
|
|
|
|
|
|
+ if(membMap.get("departmentName").equals("未分配")){
|
|
|
|
|
+ membRowData.add("未分配");
|
|
|
|
|
+ }else {
|
|
|
|
|
+ Integer curDeptId = (Integer)membMap.get("deptId");
|
|
|
|
|
+ Department curDept = allDepartmentList.stream().filter(dept->dept.getDepartmentId().equals(curDeptId)).findFirst().get();
|
|
|
|
|
+ membRowData.add(exportWxDepartment(curDept));
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
membRowData.add((String)membMap.get("name"));
|
|
membRowData.add((String)membMap.get("name"));
|
|
|
-// membRowData.add((String)membMap.get("departmentName"));
|
|
|
|
|
|
|
+ membRowData.add((String)membMap.get("departmentName"));
|
|
|
}
|
|
}
|
|
|
membRowData.add(membMap.get("degreeName")==null?"未分配":(String)membMap.get("degreeName"));
|
|
membRowData.add(membMap.get("degreeName")==null?"未分配":(String)membMap.get("degreeName"));
|
|
|
if(functionTimeList.size()>0){
|
|
if(functionTimeList.size()>0){
|
|
@@ -13426,7 +13423,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
sumRow=new ArrayList<>();
|
|
sumRow=new ArrayList<>();
|
|
|
//sumRow.add("合计");
|
|
//sumRow.add("合计");
|
|
|
sumRow.add(MessageUtils.message("entry.total"));
|
|
sumRow.add(MessageUtils.message("entry.total"));
|
|
|
- //sumRow.add("");
|
|
|
|
|
|
|
+ sumRow.add("");
|
|
|
sumRow.add("");
|
|
sumRow.add("");
|
|
|
sumRow.add("");
|
|
sumRow.add("");
|
|
|
sumRow.add("");
|
|
sumRow.add("");
|