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