/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.person.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springblade.core.mp.base.BaseEntity;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-05-28
 */
@Data
@TableName("personnel_veterans")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Veterans对象", description = "Veterans对象")
public class Veterans extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 基本表Id
	*/
		@ApiModelProperty(value = "基本表Id")
		private Long parentId;
	/**
	 * 姓名
	 */
		@ApiModelProperty(value = "姓名")
		private String name;
	/**
	* 是否独生子女
	*/
		@ApiModelProperty(value = "是否独生子女")
		private Integer onlyChild;
	/**
	* 身体状况
	*/
		@ApiModelProperty(value = "身体状况")
		private String physicalCondition;
	/**
	* 可编方向
	*/
		@ApiModelProperty(value = "可编方向")
		private String programmableDirection;
	/**
	* 服役地点
	*/
		@ApiModelProperty(value = "服役地点")
		private String servicePlace;
	/**
	* 入伍时间
	*/
		@ApiModelProperty(value = "入伍日期")
		@DateTimeFormat(pattern = "yyyy-MM-dd")
		@JsonFormat(pattern = "yyyy-MM-dd")
		private LocalDateTime enlistmentTime;
	/**
	* 退伍时间
	*/
		@ApiModelProperty(value = "退伍日期")
		@DateTimeFormat(pattern = "yyyy-MM-dd")
		@JsonFormat(pattern = "yyyy-MM-dd")
		private LocalDateTime dischargeTime;
	/**
	* 服役军种
	*/
		@ApiModelProperty(value = "服役军种")
		private String services;
	/**
	* 转业退伍时职务
	*/
		@ApiModelProperty(value = "转业退伍时职务")
		private String postOfDischarge;
	/**
	* 退役证件名称
	*/
		@ApiModelProperty(value = "退役证件名称")
		private String retirementCertificate;
	/**
	* 退役证件编号
	*/
		@ApiModelProperty(value = "退役证件编号")
		private String retirementCertificateCode;
	/**
	* 优抚证书
	*/
		@ApiModelProperty(value = "优抚证书")
		private String specialCareCertificate;
	/**
	* 在部队由何原因受过何种奖励、处分
	*/
		@ApiModelProperty(value = "在部队由何原因受过何种奖励、处分")
		private String rewardAndPunishment;
	/**
	 * 机构路径
	 */
		@ApiModelProperty(value = "机构路径")
		private String orgPosition;

}
