mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
完善错误信息
This commit is contained in:
@@ -57,7 +57,7 @@ public class EmpMonthAttendanceService
|
||||
.getSingleResult();
|
||||
|
||||
if (cnt > 0) {
|
||||
throw new BizException(String.format("员工 %s %s月 考勤数据已存在", employeeService.get(request.getEmployee()).getName(), request.getYearMonth().getMonth()));
|
||||
throw new BizException(String.format("员工 %s %s月 考勤数据已存在", employeeService.get(request.getEmployee()).getName(), request.getYearMonth().getMonthValue()));
|
||||
}
|
||||
|
||||
this.repository.save(entity);
|
||||
@@ -94,7 +94,7 @@ public class EmpMonthAttendanceService
|
||||
.getSingleResult();
|
||||
|
||||
if (cnt > 0) {
|
||||
throw new BizException(String.format("员工 %s %s月 考勤数据已存在", employeeService.get(request.getEmployee()).getName(), request.getYearMonth().getMonth()));
|
||||
throw new BizException(String.format("员工 %s %s月 考勤数据已存在", employeeService.get(request.getEmployee()).getName(), request.getYearMonth().getMonthValue()));
|
||||
}
|
||||
|
||||
this.mapper.updateEntity(entity, request);
|
||||
|
||||
Reference in New Issue
Block a user