Commit d367acda authored by 付培阳's avatar 付培阳

修改bug

parent 8c66f31c
......@@ -59,6 +59,7 @@ public class BeanDtoVoUtils {
if (source == null) {
return null;
}
try {
// 创建新的对象实例
FireExpertsDto target = FireExpertsDto.class.newInstance();
......@@ -112,6 +113,9 @@ public class BeanDtoVoUtils {
//由出生日期获得年龄
public static int getAge(Date birthDay) {
if(birthDay == null){
return 0;
}
Calendar cal = Calendar.getInstance();
if (cal.before(birthDay)) {
......
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