|
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.github.pagehelper.util.StringUtil;
|
|
|
import com.management.platform.entity.*;
|
|
|
import com.management.platform.entity.vo.*;
|
|
|
import com.management.platform.mapper.*;
|
|
@@ -9772,6 +9773,11 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
User user = userMapper.selectById(request.getHeader("token"));
|
|
|
WxCorpInfo wxCorpInfo = wxCorpInfoMapper.selectOne(new QueryWrapper<WxCorpInfo>().eq("company_id", user.getCompanyId()));
|
|
|
+ List<UserCustom> userCustoms = userCustomMapper.selectList(new QueryWrapper<UserCustom>().eq("company_id", user.getCompanyId()).orderByAsc("id"));
|
|
|
+ String customName = "";
|
|
|
+ if (userCustoms.size() != 0){
|
|
|
+ customName = userCustoms.get(0).getName();
|
|
|
+ }
|
|
|
HttpRespMsg fteData = getFTEData(null, null, month, area, request);
|
|
|
Map<String, Object> data = (Map<String, Object>) (Map<String, Object>) fteData.data;
|
|
|
List<Map<String, Object>> resultList = (List<Map<String, Object>>) data.get("resultList");
|
|
@@ -9780,7 +9786,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
List<String> titleList=new ArrayList<>();
|
|
|
List<String> subtitle=new ArrayList<>();
|
|
|
Integer no = 0;
|
|
|
- titleList.add("地区");
|
|
|
+ titleList.add(customName);
|
|
|
titleList.add("序号");
|
|
|
titleList.add("CRC姓名");
|
|
|
titleList.add("项目号");
|
|
@@ -9802,10 +9808,15 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
Float aTimeSum = 0.0F;
|
|
|
Float aFteSum = 0.0F;
|
|
|
for (int i = 0; i < resultList.size(); i++) {
|
|
|
+ if (!resultList.get(i).containsKey("area")){
|
|
|
+ resultList.get(i).put("area","无");
|
|
|
+ }else if(org.apache.commons.lang3.StringUtils.isBlank(resultList.get(i).get("area").toString())){
|
|
|
+ resultList.get(i).put("area","无");
|
|
|
+ }
|
|
|
ArrayList<String> row = new ArrayList<>();
|
|
|
if (i == 0){
|
|
|
no += 1;
|
|
|
- row.add(resultList.get(i).get("area")==null?"无":resultList.get(i).get("area").toString());
|
|
|
+ row.add(resultList.get(i).get("area").toString());
|
|
|
row.add(no + "");
|
|
|
if (wxCorpInfo != null && wxCorpInfo.getSaasSyncContact().equals(1)){
|
|
|
row.add(resultList.get(i).get("corpwx_userid") + "");
|
|
@@ -9907,7 +9918,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
ArrayList<String> sum = new ArrayList<>();
|
|
|
sum.add("");
|
|
|
sum.add("");
|
|
|
- sum.add("地区合计");
|
|
|
+ sum.add(customName + "合计");
|
|
|
sum.add("");
|
|
|
sum.add("");
|
|
|
sum.add(aTimeSum.toString());
|
|
@@ -9965,7 +9976,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
ArrayList<String> sum = new ArrayList<>();
|
|
|
sum.add("");
|
|
|
sum.add("");
|
|
|
- sum.add("地区合计");
|
|
|
+ sum.add(customName + "合计");
|
|
|
sum.add("");
|
|
|
sum.add("");
|
|
|
sum.add(aTimeSum.toString());
|