状态导出
This commit is contained in:
+6
-2
@@ -292,8 +292,12 @@ public class OtaManageApplyEOController extends JeroController<OtaManageApplyEO,
|
|||||||
@ApiOperation(value = "通过软件版本和项目ID查询状态", notes = "通过软件版本和项目ID查询状态")
|
@ApiOperation(value = "通过软件版本和项目ID查询状态", notes = "通过软件版本和项目ID查询状态")
|
||||||
@GetMapping(value = "/getStatisticalStatus")
|
@GetMapping(value = "/getStatisticalStatus")
|
||||||
public Result<?> getStatisticalStatus(String projectId, String plannedBpLaunchBatch, String cut) {
|
public Result<?> getStatisticalStatus(String projectId, String plannedBpLaunchBatch, String cut) {
|
||||||
Map<String, Object> res = otaManageApplyEOService.getStatisticalStatus(projectId, plannedBpLaunchBatch, cut);
|
List<Map<String, Object>> res = otaManageApplyEOService.getStatisticalStatus(projectId, plannedBpLaunchBatch, cut);
|
||||||
return Result.OK("操作成功!", res);
|
if(!res.isEmpty()){
|
||||||
|
return Result.OK("操作成功!", res.get(0));
|
||||||
|
}else{
|
||||||
|
return Result.OK("操作成功!", new HashMap<>());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-1
@@ -127,7 +127,7 @@ public interface IOtaManageApplyEOService extends IService<OtaManageApplyEO> {
|
|||||||
|
|
||||||
List<OtaManageApplyEO> getVdrListByProject(String projectId, String cut);
|
List<OtaManageApplyEO> getVdrListByProject(String projectId, String cut);
|
||||||
|
|
||||||
Map<String, Object> getStatisticalStatus(String projectId, String plannedBpLaunchBatch, String cut);
|
List<Map<String, Object>> getStatisticalStatus(String projectId, String plannedBpLaunchBatch, String cut);
|
||||||
|
|
||||||
ModelAndView otaExportXls(HttpServletRequest request, OtaManageApplyEO otaManageApplyEO);
|
ModelAndView otaExportXls(HttpServletRequest request, OtaManageApplyEO otaManageApplyEO);
|
||||||
|
|
||||||
|
|||||||
+94
-81
@@ -1354,91 +1354,104 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getStatisticalStatus(String projectId, String plannedBpLaunchBatch, String cut) {
|
public List<Map<String, Object>> getStatisticalStatus(String projectId, String plannedBpLaunchBatch, String cut) {
|
||||||
List<OtaManageApplyEO> receiveList = this.getBaseMapper().getListByProjectId(projectId, plannedBpLaunchBatch);
|
List<OtaManageApplyEO> receiveList = this.getBaseMapper().getListByProjectId(projectId, plannedBpLaunchBatch);
|
||||||
int total = receiveList.size();
|
List<Map<String,Object>> result = new ArrayList<>();
|
||||||
//匹配状态
|
if(!receiveList.isEmpty()){
|
||||||
int toBeMatched = 0;//待匹配
|
List<String> plannedBpLaunchBatchList = receiveList.stream()
|
||||||
int toBeApproved = 0;//待审批
|
.filter(e -> StringUtils.isNotBlank(e.getPlannedBpLaunchBatch()))
|
||||||
int locked = 0;//锁定
|
.map(OtaManageApplyEO::getPlannedBpLaunchBatch).distinct().collect(Collectors.toList());
|
||||||
int rejected = 0;//退回
|
|
||||||
//认证进度
|
|
||||||
int notStart = 0;//未开始
|
|
||||||
int inProgress = 0;//进行中
|
|
||||||
int testPassed = 0;//实验通过
|
|
||||||
int testFailed = 0;//实验失败
|
|
||||||
int notSubmitted = 0;//部件报告未提交
|
|
||||||
int submitted = 0;//部件报告已提交
|
|
||||||
int stored = 0;//部件报告已入库
|
|
||||||
|
|
||||||
for (OtaManageApplyEO oma : receiveList) {
|
for (String s : plannedBpLaunchBatchList) {
|
||||||
if (StringUtils.isBlank(oma.getMatchStatus()) || oma.getMatchStatus().equals(OtaStatusEnum.TO_BE_MATCHED.getKey())) {
|
List<OtaManageApplyEO> otaManageApplyEOList = receiveList.stream()
|
||||||
toBeMatched++;
|
.filter(e -> s.equals(e.getPlannedBpLaunchBatch())).collect(Collectors.toList());
|
||||||
} else if (oma.getMatchStatus().equals(OtaStatusEnum.TO_BE_APPROVED.getKey())) {
|
|
||||||
toBeApproved++;
|
int total = otaManageApplyEOList.size();
|
||||||
} else if (oma.getMatchStatus().equals(OtaStatusEnum.LOCKED.getKey())) {
|
//匹配状态
|
||||||
locked++;
|
int toBeMatched = 0;//待匹配
|
||||||
} else if (oma.getMatchStatus().equals(OtaStatusEnum.REJECTED.getKey())) {
|
int toBeApproved = 0;//待审批
|
||||||
rejected++;
|
int locked = 0;//锁定
|
||||||
} else {
|
int rejected = 0;//退回
|
||||||
toBeMatched++;
|
//认证进度
|
||||||
}
|
int notStart = 0;//未开始
|
||||||
if (StringUtils.isBlank(oma.getAttestationSchedule()) || oma.getAttestationSchedule().equals(CertificationProgressEnum.NOT_START.getValue())) {
|
int inProgress = 0;//进行中
|
||||||
notStart++;
|
int testPassed = 0;//实验通过
|
||||||
} else if (oma.getAttestationSchedule().equals(CertificationProgressEnum.IN_PROGRESS.getValue())) {
|
int testFailed = 0;//实验失败
|
||||||
inProgress++;
|
int notSubmitted = 0;//部件报告未提交
|
||||||
} else if (oma.getAttestationSchedule().equals(CertificationProgressEnum.TEST_PASSED.getValue())) {
|
int submitted = 0;//部件报告已提交
|
||||||
testPassed++;
|
int stored = 0;//部件报告已入库
|
||||||
} else if (oma.getAttestationSchedule().equals(CertificationProgressEnum.TEST_FAILED.getValue())) {
|
|
||||||
testFailed++;
|
for (OtaManageApplyEO oma : otaManageApplyEOList) {
|
||||||
} else if (oma.getAttestationSchedule().equals(CertificationProgressEnum.COMPONENT_REPORT_NOT_SUBMITTED.getValue())) {
|
if (StringUtils.isBlank(oma.getMatchStatus()) || oma.getMatchStatus().equals(OtaStatusEnum.TO_BE_MATCHED.getKey())) {
|
||||||
notSubmitted++;
|
toBeMatched++;
|
||||||
} else if (oma.getAttestationSchedule().equals(CertificationProgressEnum.COMPONENT_REPORT_SUBMITTED.getValue())) {
|
} else if (oma.getMatchStatus().equals(OtaStatusEnum.TO_BE_APPROVED.getKey())) {
|
||||||
submitted++;
|
toBeApproved++;
|
||||||
} else if (oma.getAttestationSchedule().equals(CertificationProgressEnum.COMPONENT_REPORT_HAS_BEEN_STORED.getValue())) {
|
} else if (oma.getMatchStatus().equals(OtaStatusEnum.LOCKED.getKey())) {
|
||||||
stored++;
|
locked++;
|
||||||
} else {
|
} else if (oma.getMatchStatus().equals(OtaStatusEnum.REJECTED.getKey())) {
|
||||||
notStart++;
|
rejected++;
|
||||||
|
} else {
|
||||||
|
toBeMatched++;
|
||||||
|
}
|
||||||
|
if (StringUtils.isBlank(oma.getAttestationSchedule()) || oma.getAttestationSchedule().equals(CertificationProgressEnum.NOT_START.getValue())) {
|
||||||
|
notStart++;
|
||||||
|
} else if (oma.getAttestationSchedule().equals(CertificationProgressEnum.IN_PROGRESS.getValue())) {
|
||||||
|
inProgress++;
|
||||||
|
} else if (oma.getAttestationSchedule().equals(CertificationProgressEnum.TEST_PASSED.getValue())) {
|
||||||
|
testPassed++;
|
||||||
|
} else if (oma.getAttestationSchedule().equals(CertificationProgressEnum.TEST_FAILED.getValue())) {
|
||||||
|
testFailed++;
|
||||||
|
} else if (oma.getAttestationSchedule().equals(CertificationProgressEnum.COMPONENT_REPORT_NOT_SUBMITTED.getValue())) {
|
||||||
|
notSubmitted++;
|
||||||
|
} else if (oma.getAttestationSchedule().equals(CertificationProgressEnum.COMPONENT_REPORT_SUBMITTED.getValue())) {
|
||||||
|
submitted++;
|
||||||
|
} else if (oma.getAttestationSchedule().equals(CertificationProgressEnum.COMPONENT_REPORT_HAS_BEEN_STORED.getValue())) {
|
||||||
|
stored++;
|
||||||
|
} else {
|
||||||
|
notStart++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, Object> statisticalMap = new HashMap<>();
|
||||||
|
statisticalMap.put("plannedBpLaunchBatch",s);
|
||||||
|
statisticalMap.put("allCount", total);
|
||||||
|
List<Map<String, Object>> matchStatusMapList = new ArrayList<>();
|
||||||
|
matchStatusMapList.add(wrapStatMap("matchStatus", "matchStatusCount", OtaStatusEnum.TO_BE_MATCHED.getKey(), toBeMatched));
|
||||||
|
matchStatusMapList.add(wrapStatMap("matchStatus", "matchStatusCount", OtaStatusEnum.TO_BE_APPROVED.getKey(), toBeApproved));
|
||||||
|
matchStatusMapList.add(wrapStatMap("matchStatus", "matchStatusCount", OtaStatusEnum.LOCKED.getKey(), locked));
|
||||||
|
matchStatusMapList.add(wrapStatMap("matchStatus", "matchStatusCount", OtaStatusEnum.REJECTED.getKey(), rejected));
|
||||||
|
statisticalMap.put("matchStatusMapList", matchStatusMapList);
|
||||||
|
|
||||||
|
Map<String, Object> matchStatusMap = new HashMap<>();
|
||||||
|
matchStatusMap.put(OtaStatusEnum.TO_BE_MATCHED.getKey(), toBeMatched);
|
||||||
|
matchStatusMap.put(OtaStatusEnum.TO_BE_APPROVED.getKey(), toBeApproved);
|
||||||
|
matchStatusMap.put(OtaStatusEnum.LOCKED.getKey(), locked);
|
||||||
|
matchStatusMap.put(OtaStatusEnum.REJECTED.getKey(), rejected);
|
||||||
|
statisticalMap.put("matchStatusMap", matchStatusMap);
|
||||||
|
|
||||||
|
List<Map<String, Object>> attestationScheduleMapList = new ArrayList<>();
|
||||||
|
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.NOT_START.getValue(), notStart));
|
||||||
|
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.IN_PROGRESS.getValue(), inProgress));
|
||||||
|
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.TEST_PASSED.getValue(), testPassed));
|
||||||
|
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.TEST_FAILED.getValue(), testFailed));
|
||||||
|
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.COMPONENT_REPORT_NOT_SUBMITTED.getValue(), notSubmitted));
|
||||||
|
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.COMPONENT_REPORT_SUBMITTED.getValue(), submitted));
|
||||||
|
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.COMPONENT_REPORT_HAS_BEEN_STORED.getValue(), stored));
|
||||||
|
statisticalMap.put("attestationScheduleMapList", attestationScheduleMapList);
|
||||||
|
|
||||||
|
Map<String, Object> attestationScheduleMap = new HashMap<>();
|
||||||
|
attestationScheduleMap.put(CertificationProgressEnum.NOT_START.getValue().replace(" ", "_"), notStart);
|
||||||
|
attestationScheduleMap.put(CertificationProgressEnum.IN_PROGRESS.getValue().replace(" ", "_"), inProgress);
|
||||||
|
attestationScheduleMap.put(CertificationProgressEnum.TEST_PASSED.getValue().replace(" ", "_"), testPassed);
|
||||||
|
attestationScheduleMap.put(CertificationProgressEnum.TEST_FAILED.getValue().replace(" ", "_"), testFailed);
|
||||||
|
attestationScheduleMap.put(CertificationProgressEnum.COMPONENT_REPORT_NOT_SUBMITTED.getValue().replace(" ", "_"), notSubmitted);
|
||||||
|
attestationScheduleMap.put(CertificationProgressEnum.COMPONENT_REPORT_SUBMITTED.getValue().replace(" ", "_"), submitted);
|
||||||
|
attestationScheduleMap.put(CertificationProgressEnum.COMPONENT_REPORT_HAS_BEEN_STORED.getValue().replace(" ", "_"), stored);
|
||||||
|
statisticalMap.put("attestationScheduleMap", attestationScheduleMap);
|
||||||
|
result.add(statisticalMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return result;
|
||||||
Map<String, Object> statisticalMap = new HashMap<>();
|
|
||||||
statisticalMap.put("allCount", total);
|
|
||||||
List<Map<String, Object>> matchStatusMapList = new ArrayList<>();
|
|
||||||
matchStatusMapList.add(wrapStatMap("matchStatus", "matchStatusCount", OtaStatusEnum.TO_BE_MATCHED.getKey(), toBeMatched));
|
|
||||||
matchStatusMapList.add(wrapStatMap("matchStatus", "matchStatusCount", OtaStatusEnum.TO_BE_APPROVED.getKey(), toBeApproved));
|
|
||||||
matchStatusMapList.add(wrapStatMap("matchStatus", "matchStatusCount", OtaStatusEnum.LOCKED.getKey(), locked));
|
|
||||||
matchStatusMapList.add(wrapStatMap("matchStatus", "matchStatusCount", OtaStatusEnum.REJECTED.getKey(), rejected));
|
|
||||||
statisticalMap.put("matchStatusMapList", matchStatusMapList);
|
|
||||||
|
|
||||||
Map<String, Object> matchStatusMap = new HashMap<>();
|
|
||||||
matchStatusMap.put(OtaStatusEnum.TO_BE_MATCHED.getKey(), toBeMatched);
|
|
||||||
matchStatusMap.put(OtaStatusEnum.TO_BE_APPROVED.getKey(), toBeApproved);
|
|
||||||
matchStatusMap.put(OtaStatusEnum.LOCKED.getKey(), locked);
|
|
||||||
matchStatusMap.put(OtaStatusEnum.REJECTED.getKey(), rejected);
|
|
||||||
statisticalMap.put("matchStatusMap", matchStatusMap);
|
|
||||||
|
|
||||||
List<Map<String, Object>> attestationScheduleMapList = new ArrayList<>();
|
|
||||||
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.NOT_START.getValue(), notStart));
|
|
||||||
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.IN_PROGRESS.getValue(), inProgress));
|
|
||||||
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.TEST_PASSED.getValue(), testPassed));
|
|
||||||
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.TEST_FAILED.getValue(), testFailed));
|
|
||||||
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.COMPONENT_REPORT_NOT_SUBMITTED.getValue(), notSubmitted));
|
|
||||||
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.COMPONENT_REPORT_SUBMITTED.getValue(), submitted));
|
|
||||||
attestationScheduleMapList.add(wrapStatMap("attestationSchedule", "attestationScheduleCount", CertificationProgressEnum.COMPONENT_REPORT_HAS_BEEN_STORED.getValue(), stored));
|
|
||||||
statisticalMap.put("attestationScheduleMapList", attestationScheduleMapList);
|
|
||||||
|
|
||||||
Map<String, Object> attestationScheduleMap = new HashMap<>();
|
|
||||||
attestationScheduleMap.put(CertificationProgressEnum.NOT_START.getValue().replace(" ", "_"), notStart);
|
|
||||||
attestationScheduleMap.put(CertificationProgressEnum.IN_PROGRESS.getValue().replace(" ", "_"), inProgress);
|
|
||||||
attestationScheduleMap.put(CertificationProgressEnum.TEST_PASSED.getValue().replace(" ", "_"), testPassed);
|
|
||||||
attestationScheduleMap.put(CertificationProgressEnum.TEST_FAILED.getValue().replace(" ", "_"), testFailed);
|
|
||||||
attestationScheduleMap.put(CertificationProgressEnum.COMPONENT_REPORT_NOT_SUBMITTED.getValue().replace(" ", "_"), notSubmitted);
|
|
||||||
attestationScheduleMap.put(CertificationProgressEnum.COMPONENT_REPORT_SUBMITTED.getValue().replace(" ", "_"), submitted);
|
|
||||||
attestationScheduleMap.put(CertificationProgressEnum.COMPONENT_REPORT_HAS_BEEN_STORED.getValue().replace(" ", "_"), stored);
|
|
||||||
statisticalMap.put("attestationScheduleMap", attestationScheduleMap);
|
|
||||||
|
|
||||||
return statisticalMap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private Map<String, Object> wrapStatMap(String key, String val, String keyStr, Object valObj) {
|
private Map<String, Object> wrapStatMap(String key, String val, String keyStr, Object valObj) {
|
||||||
|
|||||||
+93
@@ -22,6 +22,8 @@ import com.jero.modules.cert.template.enums.ControlTypeEnum;
|
|||||||
import com.jero.modules.dummy.enums.OrderEnum;
|
import com.jero.modules.dummy.enums.OrderEnum;
|
||||||
import com.jero.modules.enums.DictCodeEnum;
|
import com.jero.modules.enums.DictCodeEnum;
|
||||||
import com.jero.modules.feishu.enums.TemplateInfoEnum2;
|
import com.jero.modules.feishu.enums.TemplateInfoEnum2;
|
||||||
|
import com.jero.modules.ota.entity.OtaManageApplyEO;
|
||||||
|
import com.jero.modules.ota.service.impl.OtaManageApplyEOServiceImpl;
|
||||||
import com.jero.modules.project.entity.*;
|
import com.jero.modules.project.entity.*;
|
||||||
import com.jero.modules.project.enums.*;
|
import com.jero.modules.project.enums.*;
|
||||||
import com.jero.modules.project.mapper.ProjectLawsInventoryEOMapper;
|
import com.jero.modules.project.mapper.ProjectLawsInventoryEOMapper;
|
||||||
@@ -48,6 +50,7 @@ import com.jero.modules.todoCenter.service.IProcessInfoDetailEOService;
|
|||||||
import com.jero.modules.top.entity.TopProjectEO;
|
import com.jero.modules.top.entity.TopProjectEO;
|
||||||
import com.jero.modules.top.service.ITopProjectEOService;
|
import com.jero.modules.top.service.ITopProjectEOService;
|
||||||
import com.jero.modules.wkflow.enums.FlowTypeEnum;
|
import com.jero.modules.wkflow.enums.FlowTypeEnum;
|
||||||
|
import javafx.beans.binding.ObjectBinding;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||||
@@ -173,6 +176,8 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IProjectLibraryStatisticsService projectLibraryStatisticsService;
|
private IProjectLibraryStatisticsService projectLibraryStatisticsService;
|
||||||
|
@Autowired
|
||||||
|
private OtaManageApplyEOServiceImpl otaManageApplyEOService;
|
||||||
|
|
||||||
private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
private static DecimalFormat df = new DecimalFormat("#.00");
|
private static DecimalFormat df = new DecimalFormat("#.00");
|
||||||
@@ -2576,6 +2581,7 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
|||||||
this.exportRegulatoryManagement(workbook,params);
|
this.exportRegulatoryManagement(workbook,params);
|
||||||
this.exportCertificationManagement(workbook,params);
|
this.exportCertificationManagement(workbook,params);
|
||||||
this.exportParameterCollecting(workbook,params);
|
this.exportParameterCollecting(workbook,params);
|
||||||
|
this.exportOtaCollecting(workbook,params);
|
||||||
try {
|
try {
|
||||||
response.setHeader("Content-Disposition",
|
response.setHeader("Content-Disposition",
|
||||||
"attachment; filename=" + fileName);
|
"attachment; filename=" + fileName);
|
||||||
@@ -3107,6 +3113,93 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private void exportOtaCollecting(HSSFWorkbook workbook, Map<String, Object> params) {
|
||||||
|
String cut = (String) params.get("cut");
|
||||||
|
String sheetName = "OTA状态";
|
||||||
|
String firstTitle = "匹配状态统计,OTA认证进度统计";
|
||||||
|
String secondTitle = "软件版本,待匹配,待审批,锁定,退回,未开始,进行中,实验通过,实验失败,部件报告未提交,部件报告已提交,部件报告已入库";
|
||||||
|
if(StringUtils.equals(cut,CutEnum.EN.getValue())){
|
||||||
|
sheetName = "OTA status";
|
||||||
|
firstTitle = "Matching state statistics,OTA authentication progress statistics";
|
||||||
|
secondTitle = "Software version," +
|
||||||
|
"To be matched," +
|
||||||
|
"To be approved," +
|
||||||
|
"lock," +
|
||||||
|
"Reject,"+
|
||||||
|
"Not started," +
|
||||||
|
"Ongoing," +
|
||||||
|
"Test Passed," +
|
||||||
|
"Test Failed," +
|
||||||
|
"Component report not submitted," +
|
||||||
|
"Component report submitted," +
|
||||||
|
"Component report has been stored";
|
||||||
|
}
|
||||||
|
HSSFSheet sheet = workbook.createSheet(sheetName);
|
||||||
|
//合并单元格 起始行,结束行,起始列,结束列
|
||||||
|
CellRangeAddress region1 = new CellRangeAddress(0, 0, 1, 4);
|
||||||
|
sheet.addMergedRegion(region1);
|
||||||
|
CellRangeAddress region2 = new CellRangeAddress(0, 0, 5, 11);
|
||||||
|
sheet.addMergedRegion(region2);
|
||||||
|
|
||||||
|
String[] firstTitleArr = firstTitle.split(",");
|
||||||
|
String[] secondTitleArr = secondTitle.split(",");
|
||||||
|
Row firstRow = sheet.createRow(0);
|
||||||
|
Row secondRow = sheet.createRow(1);
|
||||||
|
|
||||||
|
CellStyle cellStyleTitle = workbook.createCellStyle();
|
||||||
|
cellStyleTitle.setAlignment(HorizontalAlignment.CENTER);
|
||||||
|
for (int i = 0; i <= 11; i++){
|
||||||
|
sheet.setColumnWidth(i, 3500);
|
||||||
|
Cell firstRowCell = firstRow.createCell(i);
|
||||||
|
firstRowCell.setCellStyle(cellStyleTitle);
|
||||||
|
if(i == 1){
|
||||||
|
firstRowCell.setCellValue(firstTitleArr[0]);
|
||||||
|
}else if(i==5){
|
||||||
|
firstRowCell.setCellValue(firstTitleArr[1]);
|
||||||
|
}
|
||||||
|
Cell secondRowCell = secondRow.createCell(i);
|
||||||
|
secondRowCell.setCellValue(secondTitleArr[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
String projectLibraryId = (String) params.get("projectLibraryId");
|
||||||
|
List<Map<String, Object>> mapList = otaManageApplyEOService.getStatisticalStatus(projectLibraryId, null, cut);
|
||||||
|
|
||||||
|
if(ObjectUtils.isNotEmpty(mapList)){
|
||||||
|
int dataIndex = 2;
|
||||||
|
for (Map<String, Object> map : mapList) {
|
||||||
|
String plannedBpLaunchBatch = (String) map.get("plannedBpLaunchBatch");
|
||||||
|
Map<String, Object> matchStatusMap = (Map<String, Object>)map.get("matchStatusMap");
|
||||||
|
Map<String, Object> attestationScheduleMap = (Map<String, Object>)map.get("attestationScheduleMap");
|
||||||
|
|
||||||
|
String.valueOf(matchStatusMap.get("locked"));
|
||||||
|
String locked = String.valueOf(matchStatusMap.get("locked"));
|
||||||
|
String rejected = String.valueOf(matchStatusMap.get("rejected"));
|
||||||
|
String to_be_approved = String.valueOf(matchStatusMap.get("to_be_approved"));
|
||||||
|
String to_be_matched = String.valueOf(matchStatusMap.get("to_be_matched"));
|
||||||
|
String Component_report_has_been_stored = String.valueOf(attestationScheduleMap.get("Component_report_has_been_stored"));
|
||||||
|
String Component_report_not_submitted = String.valueOf(attestationScheduleMap.get("Component_report_not_submitted"));
|
||||||
|
String Component_report_submitted = String.valueOf(attestationScheduleMap.get("Component_report_submitted"));
|
||||||
|
String In_progress = String.valueOf(attestationScheduleMap.get("In_progress"));
|
||||||
|
String Not_start =String.valueOf(attestationScheduleMap.get("Not_start"));
|
||||||
|
String Test_failed = String.valueOf(attestationScheduleMap.get("Test_failed"));
|
||||||
|
String Test_passed = String.valueOf(attestationScheduleMap.get("Test_passed"));
|
||||||
|
Row dataRow = sheet.createRow(dataIndex);
|
||||||
|
dataRow.createCell(0).setCellValue(plannedBpLaunchBatch);
|
||||||
|
dataRow.createCell(1).setCellValue(to_be_matched);
|
||||||
|
dataRow.createCell(2).setCellValue(to_be_approved);
|
||||||
|
dataRow.createCell(3).setCellValue(locked);
|
||||||
|
dataRow.createCell(4).setCellValue(rejected);
|
||||||
|
dataRow.createCell(5).setCellValue(Not_start);
|
||||||
|
dataRow.createCell(6).setCellValue(In_progress);
|
||||||
|
dataRow.createCell(7).setCellValue(Test_passed);
|
||||||
|
dataRow.createCell(8).setCellValue(Test_failed);
|
||||||
|
dataRow.createCell(9).setCellValue(Component_report_not_submitted);
|
||||||
|
dataRow.createCell(10).setCellValue(Component_report_submitted);
|
||||||
|
dataRow.createCell(11).setCellValue(Component_report_has_been_stored);
|
||||||
|
dataIndex ++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导出认证参数收集-设置数据
|
* 导出认证参数收集-设置数据
|
||||||
|
|||||||
Reference in New Issue
Block a user