You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.1 KiB

package com.entity.view;
import com.entity.YonghuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
/**
*
* 后端返回视图实体辅助类
* (通常后端关联的表或者自定义的字段需要返回使用)
* @author
* @email
* @date 2021-03-11
*/
@TableName("yonghu")
public class YonghuView extends YonghuEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 性别的值
*/
private String sexValue;
public YonghuView() {
}
public YonghuView(YonghuEntity yonghuEntity) {
try {
BeanUtils.copyProperties(this, yonghuEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* 获取: 性别的值
*/
public String getSexValue() {
return sexValue;
}
/**
* 设置: 性别的值
*/
public void setSexValue(String sexValue) {
this.sexValue = sexValue;
}
}