|
@@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.google.common.collect.ImmutableMap;
|
|
import com.google.common.collect.ImmutableMap;
|
|
|
|
+import com.management.platform.constant.Constant;
|
|
import com.management.platform.entity.*;
|
|
import com.management.platform.entity.*;
|
|
import com.management.platform.entity.vo.*;
|
|
import com.management.platform.entity.vo.*;
|
|
import com.management.platform.mapper.*;
|
|
import com.management.platform.mapper.*;
|
|
@@ -1694,7 +1695,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
TimeType timeType = timeTypeMapper.selectById(user.getCompanyId());
|
|
TimeType timeType = timeTypeMapper.selectById(user.getCompanyId());
|
|
Company company = companyMapper.selectById(companyId);
|
|
Company company = companyMapper.selectById(companyId);
|
|
boolean isNew = true;
|
|
boolean isNew = true;
|
|
- if (companyId==4811&&projectMainId==null){
|
|
|
|
|
|
+ if (companyId== Constant.ZHE_ZHONG_COMPANY_ID&&projectMainId==null){
|
|
httpRespMsg.setError("请选择主项目");
|
|
httpRespMsg.setError("请选择主项目");
|
|
return httpRespMsg;
|
|
return httpRespMsg;
|
|
}
|
|
}
|
|
@@ -3871,7 +3872,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
String[] statusNames = {"-",MessageUtils.message("excel.onGoing"),MessageUtils.message("excel.complete"),MessageUtils.message("excel.revoke"),MessageUtils.message("excel.pause")};
|
|
String[] statusNames = {"-",MessageUtils.message("excel.onGoing"),MessageUtils.message("excel.complete"),MessageUtils.message("excel.revoke"),MessageUtils.message("excel.pause")};
|
|
List<List<String>> exportList = new ArrayList<>();
|
|
List<List<String>> exportList = new ArrayList<>();
|
|
List<ProjectMain> projectMainList=new ArrayList<>();
|
|
List<ProjectMain> projectMainList=new ArrayList<>();
|
|
- if (user.getCompanyId()==4811){
|
|
|
|
|
|
+ if (user.getCompanyId()==Constant.ZHE_ZHONG_COMPANY_ID){
|
|
String[] titles = {MessageUtils.message("entry.projectId"),"主项目", MessageUtils.message("entry.projectName"),
|
|
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.charge"), MessageUtils.message("excel.projectAmount")+"(元)", MessageUtils.message("leave.status")
|
|
,MessageUtils.message("excel.planStart"), MessageUtils.message("excel.planEnd"),
|
|
,MessageUtils.message("excel.planStart"), MessageUtils.message("excel.planEnd"),
|
|
@@ -3891,7 +3892,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
for (Project project : projectList) {
|
|
for (Project project : projectList) {
|
|
List<String> data = new ArrayList<>();
|
|
List<String> data = new ArrayList<>();
|
|
data.add(project.getProjectCode() == null?"":project.getProjectCode());
|
|
data.add(project.getProjectCode() == null?"":project.getProjectCode());
|
|
- if (user.getCompanyId()==4811){
|
|
|
|
|
|
+ if (user.getCompanyId()==Constant.ZHE_ZHONG_COMPANY_ID){
|
|
Optional<ProjectMain> first = projectMainList.stream().filter(pm -> project.getProjectMainId() != null && pm.getId().equals(project.getProjectMainId())).findFirst();
|
|
Optional<ProjectMain> first = projectMainList.stream().filter(pm -> project.getProjectMainId() != null && pm.getId().equals(project.getProjectMainId())).findFirst();
|
|
if (first.isPresent()){
|
|
if (first.isPresent()){
|
|
data.add(org.apache.commons.lang3.StringUtils.isEmpty(first.get().getName())?"":first.get().getName());
|
|
data.add(org.apache.commons.lang3.StringUtils.isEmpty(first.get().getName())?"":first.get().getName());
|
|
@@ -4465,7 +4466,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
//获取表头
|
|
//获取表头
|
|
List<ExpenseMainType> mainTypeList = expenseMainTypeMapper.selectList(new QueryWrapper<ExpenseMainType>().eq("company_id", companyId));
|
|
List<ExpenseMainType> mainTypeList = expenseMainTypeMapper.selectList(new QueryWrapper<ExpenseMainType>().eq("company_id", companyId));
|
|
List<Project> projectList=new ArrayList<>();
|
|
List<Project> projectList=new ArrayList<>();
|
|
- if (user.getCompanyId()==4811){
|
|
|
|
|
|
+ if (user.getCompanyId()==Constant.ZHE_ZHONG_COMPANY_ID){
|
|
projectList = projectMapper.getProjectInAndOut(companyId, null, null, projectId,inchagerIds,projectMainId);
|
|
projectList = projectMapper.getProjectInAndOut(companyId, null, null, projectId,inchagerIds,projectMainId);
|
|
}else {
|
|
}else {
|
|
projectList = projectMapper.getProjectInAndOut(companyId, null, null, null,inchagerIds,null);
|
|
projectList = projectMapper.getProjectInAndOut(companyId, null, null, null,inchagerIds,null);
|
|
@@ -4481,7 +4482,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
}
|
|
}
|
|
|
|
|
|
List<List<String>> exportList = new ArrayList<>();
|
|
List<List<String>> exportList = new ArrayList<>();
|
|
- if (user.getCompanyId()==4811){
|
|
|
|
|
|
+ if (user.getCompanyId()==Constant.ZHE_ZHONG_COMPANY_ID){
|
|
String[] titles = {"项目编号","主项目","项目名称","合同金额(元)","总费用","利润","利润率","","人工成本"};
|
|
String[] titles = {"项目编号","主项目","项目名称","合同金额(元)","总费用","利润","利润率","","人工成本"};
|
|
ArrayList<String> strings = Lists.newArrayList(titles);
|
|
ArrayList<String> strings = Lists.newArrayList(titles);
|
|
|
|
|