项目库-相关人员
This commit is contained in:
+14
-17
@@ -459,24 +459,21 @@ public class ProjectRelatedPersonnelServiceImpl extends ServiceImpl<ProjectRelat
|
|||||||
try {
|
try {
|
||||||
//接收导入数据
|
//接收导入数据
|
||||||
List<ProjectRelatedPersonnel> records = ExcelImportUtil.importExcel(file.getInputStream(), clazz, params);
|
List<ProjectRelatedPersonnel> records = ExcelImportUtil.importExcel(file.getInputStream(), clazz, params);
|
||||||
for(ProjectRelatedPersonnel projectRelatedPersonnel:records) {
|
if(CollectionUtils.isNotEmpty(records)) {
|
||||||
if (StringUtils.isNotBlank(projectRelatedPersonnel.getDutyTerritory()) || StringUtils.isNotBlank(projectRelatedPersonnel.getLawEngineer())) {
|
oppositeDisposeData(records,projectId,cut);
|
||||||
|
|
||||||
oppositeDisposeData(records, projectId, cut);
|
//中英切换提示语
|
||||||
|
if(CutEnum.CN.getValue().equals(cut)) {
|
||||||
//中英切换提示语
|
result.success("文件导入成功!数据行数:" + records.size());
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
}else{
|
||||||
result.success("文件导入成功!数据行数:" + records.size());
|
result.success("File import succeeded! Number of data rows:" + records.size());
|
||||||
} else {
|
}
|
||||||
result.success("File import succeeded! Number of data rows:" + records.size());
|
}else{
|
||||||
}
|
//中英切换提示语
|
||||||
} else {
|
if(CutEnum.CN.getValue().equals(cut)) {
|
||||||
//中英切换提示语
|
result.error500("数据为空,请检查");
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
}else {
|
||||||
result.error500("请先下载模板文件,按照它导入!");
|
result.error500("The data is empty, please check!");
|
||||||
} else {
|
|
||||||
result.error500("Please download the template file first and import it according to it!");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user