package com.entity.view; import com.entity.WenjuandiaochaEntity; import com.baomidou.mybatisplus.annotations.TableName; import org.apache.commons.beanutils.BeanUtils; import java.lang.reflect.InvocationTargetException; import java.io.Serializable; /** * 问卷调查视图实体类 * 该类用于在后端返回视图时使用的辅助实体类。 * 通常在后端需要关联其他表或自定义字段时,会使用此类来封装返回的数据。 * @author 未填写具体作者 * @email 未填写具体邮箱 * @date 2023-02-21 09:46:06 */ @TableName("wenjuandiaocha") public class WenjuandiaochaView extends WenjuandiaochaEntity implements Serializable { private static final long serialVersionUID = 1L; /** * 无参构造函数 */ public WenjuandiaochaView() { } /** * 带参数的构造函数,用于将WenjuandiaochaEntity对象的属性复制到WenjuandiaochaView对象中 * @param wenjuandiaochaEntity 问卷调查实体对象 */ public WenjuandiaochaView(WenjuandiaochaEntity wenjuandiaochaEntity) { try { BeanUtils.copyProperties(this, wenjuandiaochaEntity); } catch (IllegalAccessException | InvocationTargetException e) { // 打印堆栈跟踪信息以便调试 e.printStackTrace(); } } }