branch3
admin 4 months ago
parent 42e0abed18
commit 4eb0023121

@ -1,36 +1,52 @@
package com.entity.view; package com.entity.view; // 定义包路径
import com.entity.DiscusshuodongxindeEntity; import com.entity.DiscusshuodongxindeEntity; // 导入基础实体类
import com.baomidou.mybatisplus.annotations.TableName; // 导入 MyBatis-Plus 的表注解
import com.baomidou.mybatisplus.annotations.TableName; import org.apache.commons.beanutils.BeanUtils; // 导入 Apache Commons BeanUtils 工具类
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.io.Serializable; // 导入序列化接口
import java.lang.reflect.InvocationTargetException; // 导入反射相关的异常类
import java.util.Objects; // 导入 Java 8 的 Objects 工具类
/** /**
* *
* *
* 使 * 使
* @author *
* @email * @author YourName
* @email your.email@example.com
* @date 2022-05-06 08:33:49 * @date 2022-05-06 08:33:49
*/ */
@TableName("discusshuodongxinde") @TableName("discusshuodongxinde") // 指定数据库表名
public class DiscusshuodongxindeView extends DiscusshuodongxindeEntity implements Serializable { public class DiscusshuodongxindeView extends DiscusshuodongxindeEntity implements Serializable { // 定义视图实体类,继承实体类并实现序列化接口
private static final long serialVersionUID = 1L;
private static final long serialVersionUID = 1L; // 定义序列化版本号
public DiscusshuodongxindeView(){ // 默认构造方法,用于实例化对象
public DiscusshuodongxindeView() {
} }
public DiscusshuodongxindeView(DiscusshuodongxindeEntity discusshuodongxindeEntity){ // 带参构造方法,将实体类属性拷贝到视图类
try { public DiscusshuodongxindeView(DiscusshuodongxindeEntity entity) {
BeanUtils.copyProperties(this, discusshuodongxindeEntity); try {
} catch (IllegalAccessException | InvocationTargetException e) { BeanUtils.copyProperties(this, entity); // 使用 BeanUtils 工具类拷贝属性
// TODO Auto-generated catch block } catch (IllegalAccessException | InvocationTargetException e) { // 捕获拷贝过程中可能发生的异常
e.printStackTrace(); throw new RuntimeException("Failed to copy properties from entity", e); // 抛出自定义异常,便于调用方处理
} }
}
// 重写 equals 方法,用于比较两个对象是否相等
@Override
public boolean equals(Object o) {
if (this == o) return true; // 判断引用是否相同
if (o == null || getClass() != o.getClass()) return false; // 判断类型是否一致
DiscusshuodongxindeView that = (DiscusshuodongxindeView) o; // 强制类型转换
return Objects.equals(getId(), that.getId()); // 假设主键为 id判断主键是否相等
}
// 重写 hashCode 方法,用于生成哈希值
@Override
public int hashCode() {
return Objects.hash(getId()); // 基于主键生成哈希值
} }
} }

@ -1,10 +1,20 @@
package com.entity.view; // 定义包路径,存放视图实体类 // 定义包路径,存放视图实体类
package com.entity.view;
import com.entity.HuodongbaomingEntity; // 引入活动报名表的实体类 // 引入活动报名表的实体类
import com.baomidou.mybatisplus.annotations.TableName; // 引入 MyBatis-Plus 的 TableName 注解 import com.entity.HuodongbaomingEntity;
import org.apache.commons.beanutils.BeanUtils; // 引入 Apache Commons BeanUtils 工具类
import java.lang.reflect.InvocationTargetException; // 引入反射异常类 // 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名
import java.io.Serializable; // 引入 Serializable 接口,使类支持序列化 import com.baomidou.mybatisplus.annotations.TableName;
// 引入 Apache Commons BeanUtils 工具类,用于属性拷贝
import org.apache.commons.beanutils.BeanUtils;
// 引入反射异常类,用于处理 BeanUtils.copyProperties 方法可能抛出的异常
import java.lang.reflect.InvocationTargetException;
// 引入 Serializable 接口,使类支持序列化
import java.io.Serializable;
/** /**
* *
@ -14,20 +24,23 @@ import java.io.Serializable; // 引入 Serializable 接口,使类支持序列
* @email [] * @email []
* @date 2022-05-06 08:33:49 * @date 2022-05-06 08:33:49
*/ */
@TableName("huodongbaoming") // 设置数据库表名 @TableName("huodongbaoming") // 设置数据库表名为 "huodongbaoming"
public class HuodongbaomingView extends HuodongbaomingEntity implements Serializable { // 继承实体类并实现 Serializable 接口 public class HuodongbaomingView extends HuodongbaomingEntity implements Serializable { // 定义视图实体类,继承实体类并实现 Serializable 接口
private static final long serialVersionUID = 1L; // 定义序列化版本号
private static final long serialVersionUID = 1L; // 定义序列化版本号,确保不同版本的类可以正确反序列化
public HuodongbaomingView(){ // 无参构造函数 // 无参构造函数,用于实例化对象
public HuodongbaomingView() {
} }
public HuodongbaomingView(HuodongbaomingEntity huodongbaomingEntity){ // 有参构造函数 // 有参构造函数,用于将实体类的属性复制到视图类中
public HuodongbaomingView(HuodongbaomingEntity huodongbaomingEntity) {
try { try {
BeanUtils.copyProperties(this, huodongbaomingEntity); // 使用 BeanUtils 工具类将实体类的属性复制到视图类中 // 使用 BeanUtils 工具类将实体类的属性复制到视图类中
BeanUtils.copyProperties(this, huodongbaomingEntity);
} catch (IllegalAccessException | InvocationTargetException e) { } catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block // 捕获异常并打印堆栈信息
e.printStackTrace(); // 打印异常堆栈信息 e.printStackTrace();
} }
} }
} }

@ -1,36 +1,56 @@
// 定义包路径,存放视图实体类
package com.entity.view; package com.entity.view;
// 引入消息实体类
import com.entity.MessagesEntity; import com.entity.MessagesEntity;
// 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名
import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.annotations.TableName;
// 引入 Apache Commons BeanUtils 工具类,用于属性拷贝
import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.beanutils.BeanUtils;
// 引入反射异常类,用于处理 BeanUtils.copyProperties 方法可能抛出的异常
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
// 引入 Serializable 接口,使类支持序列化
import java.io.Serializable; import java.io.Serializable;
/** /**
* *
* *
* 使 *
* @author * @author []
* @email * @email []
* @date 2022-05-06 08:33:49 * @date 2022-05-06 08:33:49
*/ */
@TableName("messages") @TableName("messages") // 设置数据库表名为 "messages"
public class MessagesView extends MessagesEntity implements Serializable { public class MessagesView extends MessagesEntity implements Serializable { // 继承实体类并实现 Serializable 接口
// 定义序列化版本号,确保不同版本的类可以正确反序列化
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public MessagesView(){ /**
*
*
*/
public MessagesView() {
} }
public MessagesView(MessagesEntity messagesEntity){ /**
try { *
*
*
* @param messagesEntity
*/
public MessagesView(MessagesEntity messagesEntity) {
try {
// 使用 Apache Commons BeanUtils 工具类的 copyProperties 方法,
// 将实体类对象的属性值复制到当前视图对象中。
BeanUtils.copyProperties(this, messagesEntity); BeanUtils.copyProperties(this, messagesEntity);
} catch (IllegalAccessException | InvocationTargetException e) { } catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block // 如果在拷贝过程中发生异常,则记录日志而不是直接打印堆栈信息。
e.printStackTrace(); e.printStackTrace(); // 示例:直接打印堆栈信息
} }
} }
} }

@ -1,36 +1,57 @@
// 定义包路径,存放视图实体类
package com.entity.view; package com.entity.view;
// 引入新闻实体类
import com.entity.NewsEntity; import com.entity.NewsEntity;
// 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名
import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.annotations.TableName;
// 引入 Apache Commons BeanUtils 工具类,用于属性拷贝
import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.beanutils.BeanUtils;
// 引入反射异常类,用于处理 BeanUtils.copyProperties 方法可能抛出的异常
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
// 引入 Serializable 接口,使类支持序列化
import java.io.Serializable; import java.io.Serializable;
/** /**
* *
* *
* 使 * 使
* @author *
* @email * @author []
* @email []
* @date 2022-05-06 08:33:49 * @date 2022-05-06 08:33:49
*/ */
@TableName("news") @TableName("news") // 设置数据库表名为 "news"
public class NewsView extends NewsEntity implements Serializable { public class NewsView extends NewsEntity implements Serializable { // 继承实体类并实现 Serializable 接口
// 定义序列化版本号,确保不同版本的类可以正确反序列化
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public NewsView(){ /**
*
*
*/
public NewsView() {
} }
public NewsView(NewsEntity newsEntity){ /**
try { *
*
*
* @param newsEntity
*/
public NewsView(NewsEntity newsEntity) {
try {
// 使用 Apache Commons BeanUtils 工具类的 copyProperties 方法,
// 将实体类对象的属性值复制到当前视图对象中。
BeanUtils.copyProperties(this, newsEntity); BeanUtils.copyProperties(this, newsEntity);
} catch (IllegalAccessException | InvocationTargetException e) { } catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block // 如果在拷贝过程中发生异常,则记录日志而不是直接打印堆栈信息。
e.printStackTrace(); e.printStackTrace(); // 示例:直接打印堆栈信息
} }
} }
} }

@ -1,36 +1,57 @@
// 定义包路径,存放视图实体类
package com.entity.view; package com.entity.view;
// 引入收藏实体类
import com.entity.StoreupEntity; import com.entity.StoreupEntity;
// 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名
import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.annotations.TableName;
// 引入 Apache Commons BeanUtils 工具类,用于属性拷贝
import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.beanutils.BeanUtils;
// 引入反射异常类,用于处理 BeanUtils.copyProperties 方法可能抛出的异常
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
// 引入 Serializable 接口,使类支持序列化
import java.io.Serializable; import java.io.Serializable;
/** /**
* *
* *
* 使 * 使
* @author *
* @email * @author []
* @email []
* @date 2022-05-06 08:33:49 * @date 2022-05-06 08:33:49
*/ */
@TableName("storeup") @TableName("storeup") // 设置数据库表名为 "storeup"
public class StoreupView extends StoreupEntity implements Serializable { public class StoreupView extends StoreupEntity implements Serializable { // 继承实体类并实现 Serializable 接口
// 定义序列化版本号,确保不同版本的类可以正确反序列化
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public StoreupView(){ /**
*
*
*/
public StoreupView() {
} }
public StoreupView(StoreupEntity storeupEntity){ /**
try { *
*
*
* @param storeupEntity
*/
public StoreupView(StoreupEntity storeupEntity) {
try {
// 使用 Apache Commons BeanUtils 工具类的 copyProperties 方法,
// 将实体类对象的属性值复制到当前视图对象中。
BeanUtils.copyProperties(this, storeupEntity); BeanUtils.copyProperties(this, storeupEntity);
} catch (IllegalAccessException | InvocationTargetException e) { } catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block // 如果在拷贝过程中发生异常,则记录日志而不是直接打印堆栈信息。
e.printStackTrace(); e.printStackTrace(); // 示例:直接打印堆栈信息
} }
} }
} }

@ -1,113 +1,108 @@
// 定义包路径,存放视图对象类
package com.entity.vo; package com.entity.vo;
// 引入活动心得评论实体类
import com.entity.DiscusshuodongxindeEntity; import com.entity.DiscusshuodongxindeEntity;
// 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名
import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.annotations.TableName;
// 引入日期格式化注解,用于控制日期格式
import java.util.Date; import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
// 引入 JSON 格式化注解,用于序列化日期字段
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
// 引入 Serializable 接口,使类支持序列化
import java.io.Serializable;
/** /**
* *
* *
* *
* @author *
* @email * @author []
* @email []
* @date 2022-05-06 08:33:49 * @date 2022-05-06 08:33:49
*/ */
public class DiscusshuodongxindeVO implements Serializable { public class DiscusshuodongxindeVO implements Serializable { // 实现序列化接口
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L; // 定义序列化版本号
/** /**
* id * ID
*/ */
private Long userid; // 用户ID字段
private Long userid;
/** /**
* *
*/ */
private String nickname; // 用户名字段
private String nickname;
/** /**
* *
*/ */
private String content; // 评论内容字段
private String content;
/** /**
* *
*/ */
private String reply; // 回复内容字段
private String reply;
/** /**
* id * ID
*/ */
public void setUserid(Long userid) { // 设置用户ID的方法
public void setUserid(Long userid) {
this.userid = userid; this.userid = userid;
} }
/** /**
* id * ID
*/ */
public Long getUserid() { public Long getUserid() { // 获取用户ID的方法
return userid; return userid;
} }
/** /**
* *
*/ */
public void setNickname(String nickname) { // 设置用户名的方法
public void setNickname(String nickname) {
this.nickname = nickname; this.nickname = nickname;
} }
/** /**
* *
*/ */
public String getNickname() { public String getNickname() { // 获取用户名的方法
return nickname; return nickname;
} }
/** /**
* *
*/ */
public void setContent(String content) { // 设置评论内容的方法
public void setContent(String content) {
this.content = content; this.content = content;
} }
/** /**
* *
*/ */
public String getContent() { public String getContent() { // 获取评论内容的方法
return content; return content;
} }
/** /**
* *
*/ */
public void setReply(String reply) { // 设置回复内容的方法
public void setReply(String reply) {
this.reply = reply; this.reply = reply;
} }
/** /**
* *
*/ */
public String getReply() { public String getReply() { // 获取回复内容的方法
return reply; return reply;
} }
} }

@ -1,225 +1,205 @@
// 定义包路径,存放视图对象类
package com.entity.vo; package com.entity.vo;
// 引入活动报名实体类
import com.entity.HuodongbaomingEntity; import com.entity.HuodongbaomingEntity;
// 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名
import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.annotations.TableName;
// 引入日期格式化注解,用于控制日期格式
import java.util.Date; import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
// 引入 JSON 格式化注解,用于序列化日期字段
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
// 引入 Serializable 接口,使类支持序列化
import java.io.Serializable;
/** /**
* *
* *
* *
* @author *
* @email * @author []
* @email []
* @date 2022-05-06 08:33:49 * @date 2022-05-06 08:33:49
*/ */
public class HuodongbaomingVO implements Serializable { public class HuodongbaomingVO implements Serializable { // 实现序列化接口
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L; // 定义序列化版本号
/** /**
* *
*/ */
private String huodongleixing; // 活动类型的字段
private String huodongleixing;
/** /**
* *
*/ */
private Integer renshu; // 人数字段
private Integer renshu;
/** /**
* *
*/ */
private String baomingshuoming; // 报名说明字段
private String baomingshuoming;
/** /**
* *
*/ */
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") // JSON 格式化注解
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") // 日期格式化注解
@DateTimeFormat private Date baomingshijian; // 报名时间字段
private Date baomingshijian;
/** /**
* *
*/ */
private String xuehao; // 学号字段
private String xuehao;
/** /**
* *
*/ */
private String xingming; // 姓名字段
private String xingming;
/** /**
* *
*/ */
private String shouji; // 手机字段
private String shouji;
/** /**
* *
*/ */
private String sfsh; // 是否审核字段
private String sfsh;
/** /**
* *
*/ */
private String shhf; // 审核回复字段
private String shhf;
/** /**
* *
*/ */
public void setHuodongleixing(String huodongleixing) { // 设置活动类型的方法
public void setHuodongleixing(String huodongleixing) {
this.huodongleixing = huodongleixing; this.huodongleixing = huodongleixing;
} }
/** /**
* *
*/ */
public String getHuodongleixing() { public String getHuodongleixing() { // 获取活动类型的方法
return huodongleixing; return huodongleixing;
} }
/** /**
* *
*/ */
public void setRenshu(Integer renshu) { // 设置人数的方法
public void setRenshu(Integer renshu) {
this.renshu = renshu; this.renshu = renshu;
} }
/** /**
* *
*/ */
public Integer getRenshu() { public Integer getRenshu() { // 获取人数的方法
return renshu; return renshu;
} }
/** /**
* *
*/ */
public void setBaomingshuoming(String baomingshuoming) { // 设置报名说明的方法
public void setBaomingshuoming(String baomingshuoming) {
this.baomingshuoming = baomingshuoming; this.baomingshuoming = baomingshuoming;
} }
/** /**
* *
*/ */
public String getBaomingshuoming() { public String getBaomingshuoming() { // 获取报名说明的方法
return baomingshuoming; return baomingshuoming;
} }
/** /**
* *
*/ */
public void setBaomingshijian(Date baomingshijian) { // 设置报名时间的方法
public void setBaomingshijian(Date baomingshijian) {
this.baomingshijian = baomingshijian; this.baomingshijian = baomingshijian;
} }
/** /**
* *
*/ */
public Date getBaomingshijian() { public Date getBaomingshijian() { // 获取报名时间的方法
return baomingshijian; return baomingshijian;
} }
/** /**
* *
*/ */
public void setXuehao(String xuehao) { // 设置学号的方法
public void setXuehao(String xuehao) {
this.xuehao = xuehao; this.xuehao = xuehao;
} }
/** /**
* *
*/ */
public String getXuehao() { public String getXuehao() { // 获取学号的方法
return xuehao; return xuehao;
} }
/** /**
* *
*/ */
public void setXingming(String xingming) { // 设置姓名的方法
public void setXingming(String xingming) {
this.xingming = xingming; this.xingming = xingming;
} }
/** /**
* *
*/ */
public String getXingming() { public String getXingming() { // 获取姓名的方法
return xingming; return xingming;
} }
/** /**
* *
*/ */
public void setShouji(String shouji) { // 设置手机的方法
public void setShouji(String shouji) {
this.shouji = shouji; this.shouji = shouji;
} }
/** /**
* *
*/ */
public String getShouji() { public String getShouji() { // 获取手机的方法
return shouji; return shouji;
} }
/** /**
* *
*/ */
public void setSfsh(String sfsh) { // 设置是否审核的方法
public void setSfsh(String sfsh) {
this.sfsh = sfsh; this.sfsh = sfsh;
} }
/** /**
* *
*/ */
public String getSfsh() { public String getSfsh() { // 获取是否审核的方法
return sfsh; return sfsh;
} }
/** /**
* *
*/ */
public void setShhf(String shhf) { // 设置审核回复的方法
public void setShhf(String shhf) {
this.shhf = shhf; this.shhf = shhf;
} }
/** /**
* *
*/ */
public String getShhf() { public String getShhf() { // 获取审核回复的方法
return shhf; return shhf;
} }
} }

@ -1,137 +1,129 @@
// 定义包路径,存放视图对象类
package com.entity.vo; package com.entity.vo;
// 引入活动通知实体类
import com.entity.HuodongtongzhiEntity; import com.entity.HuodongtongzhiEntity;
// 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名
import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.annotations.TableName;
// 引入日期格式化注解,用于控制日期格式
import java.util.Date; import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
// 引入 JSON 格式化注解,用于序列化日期字段
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
// 引入 Serializable 接口,使类支持序列化
import java.io.Serializable;
/** /**
* *
* *
* *
* @author *
* @email * @author []
* @email []
* @date 2022-05-06 08:33:49 * @date 2022-05-06 08:33:49
*/ */
public class HuodongtongzhiVO implements Serializable { public class HuodongtongzhiVO implements Serializable { // 实现序列化接口
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L; // 定义序列化版本号
/** /**
* *
*/ */
private String xuehao; // 学号字段
private String xuehao;
/** /**
* *
*/ */
private String xingming; // 姓名字段
private String xingming;
/** /**
* *
*/ */
private String shouji; // 手机字段
private String shouji;
/** /**
* *
*/ */
private String tongzhineirong; // 通知内容字段
private String tongzhineirong;
/** /**
* *
*/ */
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") // JSON 格式化注解
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") // 日期格式化注解
@DateTimeFormat private Date tongzhishijian; // 通知时间字段
private Date tongzhishijian;
/** /**
* *
*/ */
public void setXuehao(String xuehao) { // 设置学号的方法
public void setXuehao(String xuehao) {
this.xuehao = xuehao; this.xuehao = xuehao;
} }
/** /**
* *
*/ */
public String getXuehao() { public String getXuehao() { // 获取学号的方法
return xuehao; return xuehao;
} }
/** /**
* *
*/ */
public void setXingming(String xingming) { // 设置姓名的方法
public void setXingming(String xingming) {
this.xingming = xingming; this.xingming = xingming;
} }
/** /**
* *
*/ */
public String getXingming() { public String getXingming() { // 获取姓名的方法
return xingming; return xingming;
} }
/** /**
* *
*/ */
public void setShouji(String shouji) { // 设置手机的方法
public void setShouji(String shouji) {
this.shouji = shouji; this.shouji = shouji;
} }
/** /**
* *
*/ */
public String getShouji() { public String getShouji() { // 获取手机的方法
return shouji; return shouji;
} }
/** /**
* *
*/ */
public void setTongzhineirong(String tongzhineirong) { // 设置通知内容的方法
public void setTongzhineirong(String tongzhineirong) {
this.tongzhineirong = tongzhineirong; this.tongzhineirong = tongzhineirong;
} }
/** /**
* *
*/ */
public String getTongzhineirong() { public String getTongzhineirong() { // 获取通知内容的方法
return tongzhineirong; return tongzhineirong;
} }
/** /**
* *
*/ */
public void setTongzhishijian(Date tongzhishijian) { // 设置通知时间的方法
public void setTongzhishijian(Date tongzhishijian) {
this.tongzhishijian = tongzhishijian; this.tongzhishijian = tongzhishijian;
} }
/** /**
* *
*/ */
public Date getTongzhishijian() { public Date getTongzhishijian() { // 获取通知时间的方法
return tongzhishijian; return tongzhishijian;
} }
} }

@ -1,45 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 定义命名空间,与对应的 DAO 类关联 -->
<mapper namespace="com.dao.HuodongbaomingDao"> <mapper namespace="com.dao.HuodongbaomingDao">
<!-- 可根据自己的需求,是否要使用 --> <!-- 定义一个 resultMap用于将数据库查询结果映射到实体类 -->
<resultMap type="com.entity.HuodongbaomingEntity" id="huodongbaomingMap"> <resultMap type="com.entity.HuodongbaomingEntity" id="huodongbaomingMap">
<result property="huodongmingcheng" column="huodongmingcheng"/> <!-- 将数据库字段映射到实体类的属性 -->
<result property="huodongleixing" column="huodongleixing"/> <result property="huodongmingcheng" column="huodongmingcheng"/> <!-- 活动名称 -->
<result property="renshu" column="renshu"/> <result property="huodongleixing" column="huodongleixing"/> <!-- 活动类型 -->
<result property="baomingshuoming" column="baomingshuoming"/> <result property="renshu" column="renshu"/> <!-- 人数 -->
<result property="baomingshijian" column="baomingshijian"/> <result property="baomingshuoming" column="baomingshuoming"/> <!-- 报名说明 -->
<result property="xuehao" column="xuehao"/> <result property="baomingshijian" column="baomingshijian"/> <!-- 报名时间 -->
<result property="xingming" column="xingming"/> <result property="xuehao" column="xuehao"/> <!-- 学号 -->
<result property="shouji" column="shouji"/> <result property="xingming" column="xingming"/> <!-- 姓名 -->
<result property="sfsh" column="sfsh"/> <result property="shouji" column="shouji"/> <!-- 手机号码 -->
<result property="shhf" column="shhf"/> <result property="sfsh" column="sfsh"/> <!-- 是否审核 -->
</resultMap> <result property="shhf" column="shhf"/> <!-- 审核回复 -->
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.HuodongbaomingVO" > <!-- 查询方法:返回 VO 对象列表 -->
SELECT * FROM huodongbaoming huodongbaoming <select id="selectListVO" resultType="com.entity.vo.HuodongbaomingVO">
<where> 1=1 ${ew.sqlSegment}</where> SELECT * FROM huodongbaoming huodongbaoming
<!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectVO" <!-- 查询方法:返回 VO 对象 -->
resultType="com.entity.vo.HuodongbaomingVO" > <select id="selectVO" resultType="com.entity.vo.HuodongbaomingVO">
SELECT huodongbaoming.* FROM huodongbaoming huodongbaoming SELECT huodongbaoming.* FROM huodongbaoming huodongbaoming
<where> 1=1 ${ew.sqlSegment}</where> <!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectListView" <!-- 查询方法:返回 View 对象列表 -->
resultType="com.entity.view.HuodongbaomingView" > <select id="selectListView" resultType="com.entity.view.HuodongbaomingView">
SELECT huodongbaoming.* FROM huodongbaoming huodongbaoming
SELECT huodongbaoming.* FROM huodongbaoming huodongbaoming <!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where> <where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectView" <!-- 查询方法:返回 View 对象 -->
resultType="com.entity.view.HuodongbaomingView" > <select id="selectView" resultType="com.entity.view.HuodongbaomingView">
SELECT * FROM huodongbaoming huodongbaoming <where> 1=1 ${ew.sqlSegment}</where> SELECT * FROM huodongbaoming huodongbaoming
<!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
</mapper> </mapper>

@ -1,36 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 定义命名空间,与对应的 DAO 类关联 -->
<mapper namespace="com.dao.HuodongleixingDao"> <mapper namespace="com.dao.HuodongleixingDao">
<!-- 可根据自己的需求,是否要使用 --> <!-- 定义一个 resultMap用于将数据库查询结果映射到实体类 -->
<resultMap type="com.entity.HuodongleixingEntity" id="huodongleixingMap"> <resultMap type="com.entity.HuodongleixingEntity" id="huodongleixingMap">
<result property="huodongleixing" column="huodongleixing"/> <!-- 映射字段到实体类的属性 -->
</resultMap> <result property="huodongleixing" column="huodongleixing"/> <!-- 活动类型 -->
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.HuodongleixingVO" > <!-- 查询方法:返回 VO 对象列表 -->
SELECT * FROM huodongleixing huodongleixing <select id="selectListVO" resultType="com.entity.vo.HuodongleixingVO">
<where> 1=1 ${ew.sqlSegment}</where> SELECT * FROM huodongleixing huodongleixing
<!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectVO" <!-- 查询方法:返回 VO 对象 -->
resultType="com.entity.vo.HuodongleixingVO" > <select id="selectVO" resultType="com.entity.vo.HuodongleixingVO">
SELECT huodongleixing.* FROM huodongleixing huodongleixing SELECT huodongleixing.* FROM huodongleixing huodongleixing
<where> 1=1 ${ew.sqlSegment}</where> <!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectListView" <!-- 查询方法:返回 View 对象列表 -->
resultType="com.entity.view.HuodongleixingView" > <select id="selectListView" resultType="com.entity.view.HuodongleixingView">
SELECT huodongleixing.* FROM huodongleixing huodongleixing
SELECT huodongleixing.* FROM huodongleixing huodongleixing <!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where> <where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectView" <!-- 查询方法:返回 View 对象 -->
resultType="com.entity.view.HuodongleixingView" > <select id="selectView" resultType="com.entity.view.HuodongleixingView">
SELECT * FROM huodongleixing huodongleixing <where> 1=1 ${ew.sqlSegment}</where> SELECT * FROM huodongleixing huodongleixing
<!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
</mapper> </mapper>

@ -1,41 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 定义命名空间,与对应的 DAO 类关联 -->
<mapper namespace="com.dao.HuodongtongzhiDao"> <mapper namespace="com.dao.HuodongtongzhiDao">
<!-- 可根据自己的需求,是否要使用 --> <!-- 定义一个 resultMap用于将数据库查询结果映射到实体类 -->
<resultMap type="com.entity.HuodongtongzhiEntity" id="huodongtongzhiMap"> <resultMap type="com.entity.HuodongtongzhiEntity" id="huodongtongzhiMap">
<result property="biaoti" column="biaoti"/> <!-- 映射字段到实体类的属性 -->
<result property="xuehao" column="xuehao"/> <result property="biaoti" column="biaoti"/> <!-- 标题 -->
<result property="xingming" column="xingming"/> <result property="xuehao" column="xuehao"/> <!-- 学号 -->
<result property="shouji" column="shouji"/> <result property="xingming" column="xingming"/> <!-- 姓名 -->
<result property="tongzhineirong" column="tongzhineirong"/> <result property="shouji" column="shouji"/> <!-- 手机号码 -->
<result property="tongzhishijian" column="tongzhishijian"/> <result property="tongzhineirong" column="tongzhineirong"/> <!-- 通知内容 -->
</resultMap> <result property="tongzhishijian" column="tongzhishijian"/> <!-- 通知时间 -->
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.HuodongtongzhiVO" > <!-- 查询方法:返回 VO 对象列表 -->
SELECT * FROM huodongtongzhi huodongtongzhi <select id="selectListVO" resultType="com.entity.vo.HuodongtongzhiVO">
<where> 1=1 ${ew.sqlSegment}</where> SELECT * FROM huodongtongzhi huodongtongzhi
<!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectVO" <!-- 查询方法:返回 VO 对象 -->
resultType="com.entity.vo.HuodongtongzhiVO" > <select id="selectVO" resultType="com.entity.vo.HuodongtongzhiVO">
SELECT huodongtongzhi.* FROM huodongtongzhi huodongtongzhi SELECT huodongtongzhi.* FROM huodongtongzhi huodongtongzhi
<where> 1=1 ${ew.sqlSegment}</where> <!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectListView" <!-- 查询方法:返回 View 对象列表 -->
resultType="com.entity.view.HuodongtongzhiView" > <select id="selectListView" resultType="com.entity.view.HuodongtongzhiView">
SELECT huodongtongzhi.* FROM huodongtongzhi huodongtongzhi
SELECT huodongtongzhi.* FROM huodongtongzhi huodongtongzhi <!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where> <where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectView" <!-- 查询方法:返回 View 对象 -->
resultType="com.entity.view.HuodongtongzhiView" > <select id="selectView" resultType="com.entity.view.HuodongtongzhiView">
SELECT * FROM huodongtongzhi huodongtongzhi <where> 1=1 ${ew.sqlSegment}</where> SELECT * FROM huodongtongzhi huodongtongzhi
<!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
</mapper> </mapper>

@ -1,41 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 定义命名空间,与对应的 DAO 类关联 -->
<mapper namespace="com.dao.HuodongxindeDao"> <mapper namespace="com.dao.HuodongxindeDao">
<!-- 可根据自己的需求,是否要使用 --> <!-- 定义一个 resultMap用于将数据库查询结果映射到实体类 -->
<resultMap type="com.entity.HuodongxindeEntity" id="huodongxindeMap"> <resultMap type="com.entity.HuodongxindeEntity" id="huodongxindeMap">
<result property="huodongmingcheng" column="huodongmingcheng"/> <!-- 映射字段到实体类的属性 -->
<result property="huodongleixing" column="huodongleixing"/> <result property="huodongmingcheng" column="huodongmingcheng"/> <!-- 活动名称 -->
<result property="tupian" column="tupian"/> <result property="huodongleixing" column="huodongleixing"/> <!-- 活动类型 -->
<result property="xindefenxiang" column="xindefenxiang"/> <result property="tupian" column="tupian"/> <!-- 图片 -->
<result property="fabushijian" column="fabushijian"/> <result property="xindefenxiang" column="xindefenxiang"/> <!-- 新闻分享 -->
<result property="userid" column="userid"/> <result property="fabushijian" column="fabushijian"/> <!-- 发布时间 -->
</resultMap> <result property="userid" column="userid"/> <!-- 用户ID -->
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.HuodongxindeVO" > <!-- 查询方法:返回 VO 对象列表 -->
SELECT * FROM huodongxinde huodongxinde <select id="selectListVO" resultType="com.entity.vo.HuodongxindeVO">
<where> 1=1 ${ew.sqlSegment}</where> SELECT * FROM huodongxinde huodongxinde
<!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectVO" <!-- 查询方法:返回 VO 对象 -->
resultType="com.entity.vo.HuodongxindeVO" > <select id="selectVO" resultType="com.entity.vo.HuodongxindeVO">
SELECT huodongxinde.* FROM huodongxinde huodongxinde SELECT huodongxinde.* FROM huodongxinde huodongxinde
<where> 1=1 ${ew.sqlSegment}</where> <!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectListView" <!-- 查询方法:返回 View 对象列表 -->
resultType="com.entity.view.HuodongxindeView" > <select id="selectListView" resultType="com.entity.view.HuodongxindeView">
SELECT huodongxinde.* FROM huodongxinde huodongxinde
SELECT huodongxinde.* FROM huodongxinde huodongxinde <!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where> <where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectView" <!-- 查询方法:返回 View 对象 -->
resultType="com.entity.view.HuodongxindeView" > <select id="selectView" resultType="com.entity.view.HuodongxindeView">
SELECT * FROM huodongxinde huodongxinde <where> 1=1 ${ew.sqlSegment}</where> SELECT * FROM huodongxinde huodongxinde
<!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
</mapper> </mapper>

@ -1,44 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 定义命名空间,与对应的 DAO 类关联 -->
<mapper namespace="com.dao.HuodongxinxiDao"> <mapper namespace="com.dao.HuodongxinxiDao">
<!-- 可根据自己的需求,是否要使用 --> <!-- 定义一个 resultMap用于将数据库查询结果映射到实体类 -->
<resultMap type="com.entity.HuodongxinxiEntity" id="huodongxinxiMap"> <resultMap type="com.entity.HuodongxinxiEntity" id="huodongxinxiMap">
<result property="huodongmingcheng" column="huodongmingcheng"/> <!-- 映射字段到实体类的属性 -->
<result property="huodongleixing" column="huodongleixing"/> <result property="huodongmingcheng" column="huodongmingcheng"/> <!-- 活动名称 -->
<result property="tupian" column="tupian"/> <result property="huodongleixing" column="huodongleixing"/> <!-- 活动类型 -->
<result property="huodongshijian" column="huodongshijian"/> <result property="tupian" column="tupian"/> <!-- 图片 -->
<result property="renshu" column="renshu"/> <result property="huodongshijian" column="huodongshijian"/> <!-- 活动时间 -->
<result property="huodongchangdi" column="huodongchangdi"/> <result property="renshu" column="renshu"/> <!-- 参与人数 -->
<result property="huodongjieshao" column="huodongjieshao"/> <result property="huodongchangdi" column="huodongchangdi"/> <!-- 活动场地 -->
<result property="sfsh" column="sfsh"/> <result property="huodongjieshao" column="huodongjieshao"/> <!-- 活动介绍 -->
<result property="shhf" column="shhf"/> <result property="sfsh" column="sfsh"/> <!-- 是否审核 -->
</resultMap> <result property="shhf" column="shhf"/> <!-- 审核回复 -->
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.HuodongxinxiVO" > <!-- 查询方法:返回 VO 对象列表 -->
SELECT * FROM huodongxinxi huodongxinxi <select id="selectListVO" resultType="com.entity.vo.HuodongxinxiVO">
<where> 1=1 ${ew.sqlSegment}</where> SELECT * FROM huodongxinxi huodongxinxi
<!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectVO" <!-- 查询方法:返回 VO 对象 -->
resultType="com.entity.vo.HuodongxinxiVO" > <select id="selectVO" resultType="com.entity.vo.HuodongxinxiVO">
SELECT huodongxinxi.* FROM huodongxinxi huodongxinxi SELECT huodongxinxi.* FROM huodongxinxi huodongxinxi
<where> 1=1 ${ew.sqlSegment}</where> <!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectListView" <!-- 查询方法:返回 View 对象列表 -->
resultType="com.entity.view.HuodongxinxiView" > <select id="selectListView" resultType="com.entity.view.HuodongxinxiView">
SELECT huodongxinxi.* FROM huodongxinxi huodongxinxi
SELECT huodongxinxi.* FROM huodongxinxi huodongxinxi <!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where> <where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
<select id="selectView" <!-- 查询方法:返回 View 对象 -->
resultType="com.entity.view.HuodongxinxiView" > <select id="selectView" resultType="com.entity.view.HuodongxinxiView">
SELECT * FROM huodongxinxi huodongxinxi <where> 1=1 ${ew.sqlSegment}</where> SELECT * FROM huodongxinxi huodongxinxi
<!-- 动态 SQL 片段,用于拼接条件 -->
<where> 1=1 ${ew.sqlSegment}</where>
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save