Commit 819382ca authored by unset's avatar unset

Merge branch 'master-vehicle-price' into dev-tiande

parents 0e046247 3f5d398b
package com.xxfc.platform.vehicle.pojo;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import javax.persistence.Column;
import java.util.Date;
......@@ -194,4 +197,12 @@ public class AddOrUpdateVehicleVo {
* 上牌日期
*/
private Date vehicleRegisterDate;
private String registerDate;
public void setRegisterDate() {
if (StringUtils.isNotBlank(registerDate)) {
this.vehicleRegisterDate = DateTime.parse(registerDate, DateTimeFormat.forPattern("yyyy-MM-dd")).toDate();
}
}
}
\ No newline at end of file
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