Commit 7b589b8a authored by fangxinjiang's avatar fangxinjiang

错误信息返回优化-fxj

parent 80949aa3
......@@ -1276,10 +1276,6 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr
}
}
}
// 如果有错误信息,一起返回
if (!allErrorMessages.isEmpty()) {
return String.join(";", allErrorMessages);
}
// 校验合同有效期:合同截止日期不得早于合同开始日期
if (Common.isNotNull(employeeContractPreVo.getContractStart())
&& Common.isNotNull(employeeContractPreVo.getContractEnd())) {
......@@ -1288,6 +1284,10 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr
}
}
// 如果有错误信息,一起返回
if (!allErrorMessages.isEmpty()) {
return String.join(";", allErrorMessages);
}
return null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment