|
|
@@ -101,7 +101,11 @@ public class AttendanceStatisticsServiceImpl extends MPJBaseServiceImpl<Attendan
|
|
|
return true;
|
|
|
} catch (Exception e) {
|
|
|
Log.error(e.getMessage(), e);
|
|
|
- throw new MyException("添加报错,请联系管理员");
|
|
|
+ if(e.getClass().equals(MyException.class)){
|
|
|
+ throw new MyException(e.getMessage());
|
|
|
+ }else{
|
|
|
+ throw new MyException("添加报错,请联系管理员");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|