|
@@ -185,6 +185,11 @@ public class ProjectPercentageServiceImpl extends ServiceImpl<ProjectPercentageM
|
|
|
if (ExcelUtil.isRowEmpty(row)) {
|
|
|
continue;
|
|
|
}
|
|
|
+ if (row.getCell(0) == null) {
|
|
|
+ //msg.setError("第"+dataCount+"行缺少员工姓名");
|
|
|
+ msg.setError(MessageUtils.message("staff.nameNullByRow",rowIndex));
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
String username = row.getCell(0).getStringCellValue().trim();
|
|
|
if(!userNameList.contains(username)&&!StringUtils.isEmpty(username)){
|
|
|
userNameList.add(username);
|