合并分支 'fix_20230524' 到 'master'
Fix 20230524 查看合并请求 laws-nio/laws-weilai!331
This commit is contained in:
+3
-3
@@ -213,8 +213,8 @@ public class OtaBaSjSjmbclServiceImpl extends ServiceImpl<OtaBaSjSjmbclMapper, O
|
||||
private OtaBaSjSjmbcl parseFile(File upFile, String otaId, String cut, StringBuilder errMsg) throws Exception {
|
||||
OtaBaSjSjmbcl mbcl = new OtaBaSjSjmbcl();
|
||||
OtaBaSjSjmbcx mbcx = otaBaSjSjmbcxService.queryByOtaId(otaId, "");
|
||||
if (ObjectUtils.isNotEmpty(mbcx) && StringUtils.isNotEmpty(mbcx.getCpxh())) {
|
||||
String cx = mbcx.getCpxh();
|
||||
if (ObjectUtils.isNotEmpty(mbcx) && StringUtils.isNotEmpty(mbcx.getCpmc())) {
|
||||
String mc = mbcx.getCpmc();
|
||||
Workbook wb = ImportFileUtil.readExcel(upFile);
|
||||
Sheet s = wb.getSheetAt(0);
|
||||
|
||||
@@ -227,7 +227,7 @@ public class OtaBaSjSjmbclServiceImpl extends ServiceImpl<OtaBaSjSjmbclMapper, O
|
||||
vinObj.setVin(ImportFileUtil.getCellValue(cell, wb));
|
||||
cell = row.getCell(1);
|
||||
vinObj.setCx(ImportFileUtil.getCellValue(cell, wb));
|
||||
if (!cx.equals(vinObj.getCx())) {
|
||||
if (!mc.equals(vinObj.getCx())) {
|
||||
continue;
|
||||
}
|
||||
cell = row.getCell(2);
|
||||
|
||||
+3
-2
@@ -3016,8 +3016,9 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
||||
dataRow.createCell(3).setCellValue(submitAmount);
|
||||
dataRow.createCell(4).setCellValue(syncReporAmount);
|
||||
double parameterCollectingCount = notStartAmount + collectingAmount + submitAmount + syncReporAmount;
|
||||
double parameterCollectingPercentage = (syncReporAmount / parameterCollectingCount) * 100;
|
||||
String parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (syncReporAmount !=0 )) ? df.format(parameterCollectingPercentage) : "0";
|
||||
double completionCount = submitAmount + syncReporAmount;
|
||||
double parameterCollectingPercentage = (completionCount / parameterCollectingCount) * 100;
|
||||
String parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (completionCount !=0 )) ? df.format(parameterCollectingPercentage) : "0";
|
||||
dataRow.createCell(5).setCellValue(parameterCollectingPercentageStr + percentSign);
|
||||
}
|
||||
|
||||
|
||||
+6
-4
@@ -984,8 +984,9 @@ public class ProjectStatusBoardServiceImpl implements IProjectStatusBoardService
|
||||
syncReporAmount = (double) syncReporMap.get("amount");
|
||||
|
||||
double parameterCollectingCount = notStartAmount + collectingAmount + submitAmount + syncReporAmount;
|
||||
double parameterCollectingPercentage = ((submitAmount + syncReporAmount) / parameterCollectingCount) * 100;
|
||||
parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (syncReporAmount !=0 )) ? df.format(parameterCollectingPercentage) : "0";
|
||||
double completionCount = submitAmount + syncReporAmount;
|
||||
double parameterCollectingPercentage = (completionCount / parameterCollectingCount) * 100;
|
||||
parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (completionCount !=0 )) ? df.format(parameterCollectingPercentage) : "0";
|
||||
}
|
||||
dataRow.createCell(51).setCellValue(notStartAmount);
|
||||
dataRow.createCell(52).setCellValue(collectingAmount);
|
||||
@@ -1187,8 +1188,9 @@ public class ProjectStatusBoardServiceImpl implements IProjectStatusBoardService
|
||||
double syncReporAmount = (double) syncReporMap.get("amount");
|
||||
|
||||
double parameterCollectingCount = notStartAmount + collectingAmount + submitAmount + syncReporAmount;
|
||||
double parameterCollectingPercentage = (submitAmount + syncReporAmount) / parameterCollectingCount;
|
||||
parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (syncReporAmount !=0 )) ? parameterCollectingPercentage : 0;
|
||||
double completionCount = submitAmount + syncReporAmount;
|
||||
double parameterCollectingPercentage = (completionCount) / parameterCollectingCount;
|
||||
parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (completionCount !=0 )) ? parameterCollectingPercentage : 0;
|
||||
}
|
||||
|
||||
Map<String,Object> certificationProgressMap = this.projectCertificationInventoryEOService.groupByCertificationProgress(pciEos);
|
||||
|
||||
Reference in New Issue
Block a user