Family.java
676 字节
package com.sunyo.office.model;
import com.tianbo.util.Date.DateUtil;
import lombok.Data;
import java.text.ParseException;
import java.util.Date;
@Data
public class Family {
private String ChengWei;
private String XingMing;
private String ChuShengRiQi;
private String ZhengZhiMianMao;
private String GongZuoDanWeiJiZhiWu;
private String Age;
public void setAge() {
try{
Date chushengDate = DateUtil.parseDate(this.ChuShengRiQi,"yyyyMM");
int age = DateUtil.getAgeByBirth(chushengDate);
this.Age = String.valueOf(age);
}catch (ParseException e){
this.Age = "0";
}
}
}