项目库相关人员导入接收为空修改
This commit is contained in:
+6
-3
@@ -459,7 +459,9 @@ 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);
|
||||||
if(CollectionUtils.isNotEmpty(records)) {
|
for(ProjectRelatedPersonnel projectRelatedPersonnel:records) {
|
||||||
|
if (StringUtils.isNotBlank(projectRelatedPersonnel.getDutyTerritory()) || StringUtils.isNotBlank(projectRelatedPersonnel.getLawEngineer())) {
|
||||||
|
|
||||||
oppositeDisposeData(records, projectId, cut);
|
oppositeDisposeData(records, projectId, cut);
|
||||||
|
|
||||||
//中英切换提示语
|
//中英切换提示语
|
||||||
@@ -471,9 +473,10 @@ public class ProjectRelatedPersonnelServiceImpl extends ServiceImpl<ProjectRelat
|
|||||||
} else {
|
} else {
|
||||||
//中英切换提示语
|
//中英切换提示语
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
result.error500("数据为空,请检查");
|
result.error500("请先下载模板文件,按照它导入!");
|
||||||
} else {
|
} else {
|
||||||
result.error500("The data is empty, please check!");
|
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