bug53474相关人员模板校验修改
This commit is contained in:
+10
-8
@@ -713,7 +713,7 @@ public class ProjectRelatedPersonnelServiceImpl extends ServiceImpl<ProjectRelat
|
|||||||
Row headerRow = sheet.getRow(i);
|
Row headerRow = sheet.getRow(i);
|
||||||
boolean isBlank = dummyInventoryInfoEOService.isRowEmpty(row);
|
boolean isBlank = dummyInventoryInfoEOService.isRowEmpty(row);
|
||||||
|
|
||||||
// if (row != null && !isBlank) {
|
if (row != null && !isBlank) {
|
||||||
int columHeadNos = headerRow.getLastCellNum();// 表头总共的列数
|
int columHeadNos = headerRow.getLastCellNum();// 表头总共的列数
|
||||||
if (columHeadNos == 5) {//列数对
|
if (columHeadNos == 5) {//列数对
|
||||||
for (int j = 0; j < columHeadNos; j++) {
|
for (int j = 0; j < columHeadNos; j++) {
|
||||||
@@ -735,13 +735,13 @@ public class ProjectRelatedPersonnelServiceImpl extends ServiceImpl<ProjectRelat
|
|||||||
throw new JeroBootException("The number of imported columns is wrong. Please check!");
|
throw new JeroBootException("The number of imported columns is wrong. Please check!");
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
// }else{
|
}else{
|
||||||
// if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
// throw new JeroBootException("导入的数据不能为空,请检查");
|
throw new JeroBootException("导入的数据不能为空,请检查");
|
||||||
// } else {
|
} else {
|
||||||
// throw new JeroBootException("The imported data of cannot be empty. Please check!");
|
throw new JeroBootException("The imported data of cannot be empty. Please check!");
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
if (i == 1) {//校验填写说明
|
if (i == 1) {//校验填写说明
|
||||||
row = sheet.getRow(i);
|
row = sheet.getRow(i);
|
||||||
int columNos = row.getLastCellNum();
|
int columNos = row.getLastCellNum();
|
||||||
@@ -827,8 +827,10 @@ public class ProjectRelatedPersonnelServiceImpl extends ServiceImpl<ProjectRelat
|
|||||||
//按照责任领域名,查value
|
//按照责任领域名,查value
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
dutyTerritoryValueList = sysDictItemList.stream().filter(f -> f.getItemText().equals(projectRelatedPersonnel.getDutyTerritory())).map(e -> e.getItemValue()).collect(Collectors.toList());
|
dutyTerritoryValueList = sysDictItemList.stream().filter(f -> f.getItemText().equals(projectRelatedPersonnel.getDutyTerritory())).map(e -> e.getItemValue()).collect(Collectors.toList());
|
||||||
|
System.out.println(dutyTerritoryValueList);
|
||||||
} else {
|
} else {
|
||||||
dutyTerritoryValueList = sysDictItemList.stream().filter(f -> f.getEnName().equals(projectRelatedPersonnel.getDutyTerritory())).map(e -> e.getItemValue()).collect(Collectors.toList());
|
dutyTerritoryValueList = sysDictItemList.stream().filter(f -> f.getEnName().equals(projectRelatedPersonnel.getDutyTerritory())).map(e -> e.getItemValue()).collect(Collectors.toList());
|
||||||
|
System.out.println(dutyTerritoryValueList);
|
||||||
}
|
}
|
||||||
|
|
||||||
//责任领域
|
//责任领域
|
||||||
|
|||||||
Reference in New Issue
Block a user