diff --git a/springbootpt9c5/src/main/java/com/entity/view/DiscusshuodongxindeView.java b/springbootpt9c5/src/main/java/com/entity/view/DiscusshuodongxindeView.java index 7c44c308..8b021f9e 100644 --- a/springbootpt9c5/src/main/java/com/entity/view/DiscusshuodongxindeView.java +++ b/springbootpt9c5/src/main/java/com/entity/view/DiscusshuodongxindeView.java @@ -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 org.apache.commons.beanutils.BeanUtils; // 导入 Apache Commons BeanUtils 工具类 -import com.baomidou.mybatisplus.annotations.TableName; -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 */ -@TableName("discusshuodongxinde") -public class DiscusshuodongxindeView extends DiscusshuodongxindeEntity implements Serializable { - private static final long serialVersionUID = 1L; +@TableName("discusshuodongxinde") // 指定数据库表名 +public class DiscusshuodongxindeView extends DiscusshuodongxindeEntity implements Serializable { // 定义视图实体类,继承实体类并实现序列化接口 + + private static final long serialVersionUID = 1L; // 定义序列化版本号 - public DiscusshuodongxindeView(){ + // 默认构造方法,用于实例化对象 + public DiscusshuodongxindeView() { } - - public DiscusshuodongxindeView(DiscusshuodongxindeEntity discusshuodongxindeEntity){ - try { - BeanUtils.copyProperties(this, discusshuodongxindeEntity); - } catch (IllegalAccessException | InvocationTargetException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + + // 带参构造方法,将实体类属性拷贝到视图类 + public DiscusshuodongxindeView(DiscusshuodongxindeEntity entity) { + try { + BeanUtils.copyProperties(this, entity); // 使用 BeanUtils 工具类拷贝属性 + } catch (IllegalAccessException | InvocationTargetException e) { // 捕获拷贝过程中可能发生的异常 + 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()); // 基于主键生成哈希值 } } diff --git a/springbootpt9c5/src/main/java/com/entity/view/HuodongbaomingView.java b/springbootpt9c5/src/main/java/com/entity/view/HuodongbaomingView.java index c4795ea7..afbe1856 100644 --- a/springbootpt9c5/src/main/java/com/entity/view/HuodongbaomingView.java +++ b/springbootpt9c5/src/main/java/com/entity/view/HuodongbaomingView.java @@ -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 org.apache.commons.beanutils.BeanUtils; // 引入 Apache Commons BeanUtils 工具类 -import java.lang.reflect.InvocationTargetException; // 引入反射异常类 -import java.io.Serializable; // 引入 Serializable 接口,使类支持序列化 +// 引入活动报名表的实体类 +import com.entity.HuodongbaomingEntity; + +// 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名 +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 [作者邮箱] * @date 2022-05-06 08:33:49 */ -@TableName("huodongbaoming") // 设置数据库表名 -public class HuodongbaomingView extends HuodongbaomingEntity implements Serializable { // 继承实体类并实现 Serializable 接口 - private static final long serialVersionUID = 1L; // 定义序列化版本号 +@TableName("huodongbaoming") // 设置数据库表名为 "huodongbaoming" +public class HuodongbaomingView extends HuodongbaomingEntity implements Serializable { // 定义视图实体类,继承实体类并实现 Serializable 接口 + + private static final long serialVersionUID = 1L; // 定义序列化版本号,确保不同版本的类可以正确反序列化 - public HuodongbaomingView(){ // 无参构造函数 + // 无参构造函数,用于实例化对象 + public HuodongbaomingView() { } - public HuodongbaomingView(HuodongbaomingEntity huodongbaomingEntity){ // 有参构造函数 + // 有参构造函数,用于将实体类的属性复制到视图类中 + public HuodongbaomingView(HuodongbaomingEntity huodongbaomingEntity) { try { - BeanUtils.copyProperties(this, huodongbaomingEntity); // 使用 BeanUtils 工具类将实体类的属性复制到视图类中 + // 使用 BeanUtils 工具类将实体类的属性复制到视图类中 + BeanUtils.copyProperties(this, huodongbaomingEntity); } catch (IllegalAccessException | InvocationTargetException e) { - // TODO Auto-generated catch block - e.printStackTrace(); // 打印异常堆栈信息 + // 捕获异常并打印堆栈信息 + e.printStackTrace(); } - } } diff --git a/springbootpt9c5/src/main/java/com/entity/view/MessagesView.java b/springbootpt9c5/src/main/java/com/entity/view/MessagesView.java index d350f8af..7de7fc17 100644 --- a/springbootpt9c5/src/main/java/com/entity/view/MessagesView.java +++ b/springbootpt9c5/src/main/java/com/entity/view/MessagesView.java @@ -1,36 +1,56 @@ +// 定义包路径,存放视图实体类 package com.entity.view; +// 引入消息实体类 import com.entity.MessagesEntity; +// 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名 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; - /** - * 交流反馈 - * 后端返回视图实体辅助类 - * (通常后端关联的表或者自定义的字段需要返回使用) - * @author - * @email + * 交流反馈视图实体类 + * 用于后端返回给前端的数据模型,通常包含与数据库表关联的字段或自定义字段。 + * + * @author [作者姓名] + * @email [作者邮箱] * @date 2022-05-06 08:33:49 */ -@TableName("messages") -public class MessagesView extends MessagesEntity implements Serializable { +@TableName("messages") // 设置数据库表名为 "messages" +public class MessagesView extends MessagesEntity implements Serializable { // 继承实体类并实现 Serializable 接口 + + // 定义序列化版本号,确保不同版本的类可以正确反序列化 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); } catch (IllegalAccessException | InvocationTargetException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + // 如果在拷贝过程中发生异常,则记录日志而不是直接打印堆栈信息。 + e.printStackTrace(); // 示例:直接打印堆栈信息 } - } } diff --git a/springbootpt9c5/src/main/java/com/entity/view/NewsView.java b/springbootpt9c5/src/main/java/com/entity/view/NewsView.java index 96077214..41a78da7 100644 --- a/springbootpt9c5/src/main/java/com/entity/view/NewsView.java +++ b/springbootpt9c5/src/main/java/com/entity/view/NewsView.java @@ -1,36 +1,57 @@ +// 定义包路径,存放视图实体类 package com.entity.view; +// 引入新闻实体类 import com.entity.NewsEntity; +// 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名 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; - /** * 公告信息 - * 后端返回视图实体辅助类 + * 后端返回视图实体辅助类 * (通常后端关联的表或者自定义的字段需要返回使用) - * @author - * @email + * + * @author [作者姓名] + * @email [作者邮箱] * @date 2022-05-06 08:33:49 */ -@TableName("news") -public class NewsView extends NewsEntity implements Serializable { +@TableName("news") // 设置数据库表名为 "news" +public class NewsView extends NewsEntity implements Serializable { // 继承实体类并实现 Serializable 接口 + + // 定义序列化版本号,确保不同版本的类可以正确反序列化 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); } catch (IllegalAccessException | InvocationTargetException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + // 如果在拷贝过程中发生异常,则记录日志而不是直接打印堆栈信息。 + e.printStackTrace(); // 示例:直接打印堆栈信息 } - } } diff --git a/springbootpt9c5/src/main/java/com/entity/view/StoreupView.java b/springbootpt9c5/src/main/java/com/entity/view/StoreupView.java index 499e7077..7b24818f 100644 --- a/springbootpt9c5/src/main/java/com/entity/view/StoreupView.java +++ b/springbootpt9c5/src/main/java/com/entity/view/StoreupView.java @@ -1,36 +1,57 @@ +// 定义包路径,存放视图实体类 package com.entity.view; +// 引入收藏实体类 import com.entity.StoreupEntity; +// 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名 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; - /** * 收藏表 - * 后端返回视图实体辅助类 + * 后端返回视图实体辅助类 * (通常后端关联的表或者自定义的字段需要返回使用) - * @author - * @email + * + * @author [作者姓名] + * @email [作者邮箱] * @date 2022-05-06 08:33:49 */ -@TableName("storeup") -public class StoreupView extends StoreupEntity implements Serializable { +@TableName("storeup") // 设置数据库表名为 "storeup" +public class StoreupView extends StoreupEntity implements Serializable { // 继承实体类并实现 Serializable 接口 + + // 定义序列化版本号,确保不同版本的类可以正确反序列化 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); } catch (IllegalAccessException | InvocationTargetException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + // 如果在拷贝过程中发生异常,则记录日志而不是直接打印堆栈信息。 + e.printStackTrace(); // 示例:直接打印堆栈信息 } - } } diff --git a/springbootpt9c5/src/main/java/com/entity/vo/DiscusshuodongxindeVO.java b/springbootpt9c5/src/main/java/com/entity/vo/DiscusshuodongxindeVO.java index 4261e1bb..8c84d9ef 100644 --- a/springbootpt9c5/src/main/java/com/entity/vo/DiscusshuodongxindeVO.java +++ b/springbootpt9c5/src/main/java/com/entity/vo/DiscusshuodongxindeVO.java @@ -1,113 +1,108 @@ +// 定义包路径,存放视图对象类 package com.entity.vo; +// 引入活动心得评论实体类 import com.entity.DiscusshuodongxindeEntity; +// 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名 import com.baomidou.mybatisplus.annotations.TableName; + +// 引入日期格式化注解,用于控制日期格式 import java.util.Date; import org.springframework.format.annotation.DateTimeFormat; +// 引入 JSON 格式化注解,用于序列化日期字段 +import org.springframework.format.annotation.DateTimeFormat; import com.fasterxml.jackson.annotation.JsonFormat; + +// 引入 Serializable 接口,使类支持序列化 import java.io.Serializable; - /** * 活动心得评论表 - * 手机端接口返回实体辅助类 + * 手机端接口返回实体辅助类 * (主要作用去除一些不必要的字段) - * @author - * @email + * + * @author [作者姓名] + * @email [作者邮箱] * @date 2022-05-06 08:33:49 */ -public class DiscusshuodongxindeVO implements Serializable { - private static final long serialVersionUID = 1L; +public class DiscusshuodongxindeVO implements Serializable { // 实现序列化接口 + private static final long serialVersionUID = 1L; // 定义序列化版本号 - /** - * 用户id + * 用户ID */ - - private Long userid; - + private Long userid; // 用户ID字段 + /** * 用户名 */ - - 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) { + public void setUserid(Long userid) { // 设置用户ID的方法 this.userid = userid; } - + /** - * 获取:用户id + * 获取:用户ID */ - public Long getUserid() { + public Long getUserid() { // 获取用户ID的方法 return userid; } - - + /** * 设置:用户名 */ - - public void setNickname(String nickname) { + public void setNickname(String nickname) { // 设置用户名的方法 this.nickname = nickname; } - + /** * 获取:用户名 */ - public String getNickname() { + public String getNickname() { // 获取用户名的方法 return nickname; } - - + /** * 设置:评论内容 */ - - public void setContent(String content) { + public void setContent(String content) { // 设置评论内容的方法 this.content = content; } - + /** * 获取:评论内容 */ - public String getContent() { + public String getContent() { // 获取评论内容的方法 return content; } - - + /** * 设置:回复内容 */ - - public void setReply(String reply) { + public void setReply(String reply) { // 设置回复内容的方法 this.reply = reply; } - + /** * 获取:回复内容 */ - public String getReply() { + public String getReply() { // 获取回复内容的方法 return reply; } - } diff --git a/springbootpt9c5/src/main/java/com/entity/vo/HuodongbaomingVO.java b/springbootpt9c5/src/main/java/com/entity/vo/HuodongbaomingVO.java index d136d66e..65da53aa 100644 --- a/springbootpt9c5/src/main/java/com/entity/vo/HuodongbaomingVO.java +++ b/springbootpt9c5/src/main/java/com/entity/vo/HuodongbaomingVO.java @@ -1,225 +1,205 @@ +// 定义包路径,存放视图对象类 package com.entity.vo; +// 引入活动报名实体类 import com.entity.HuodongbaomingEntity; +// 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名 import com.baomidou.mybatisplus.annotations.TableName; + +// 引入日期格式化注解,用于控制日期格式 import java.util.Date; import org.springframework.format.annotation.DateTimeFormat; +// 引入 JSON 格式化注解,用于序列化日期字段 +import org.springframework.format.annotation.DateTimeFormat; import com.fasterxml.jackson.annotation.JsonFormat; + +// 引入 Serializable 接口,使类支持序列化 import java.io.Serializable; - /** * 活动报名 - * 手机端接口返回实体辅助类 + * 手机端接口返回实体辅助类 * (主要作用去除一些不必要的字段) - * @author - * @email + * + * @author [作者姓名] + * @email [作者邮箱] * @date 2022-05-06 08:33:49 */ -public class HuodongbaomingVO implements Serializable { - private static final long serialVersionUID = 1L; +public class HuodongbaomingVO implements Serializable { // 实现序列化接口 + 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") - @DateTimeFormat - private Date baomingshijian; - + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") // JSON 格式化注解 + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") // 日期格式化注解 + 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; } - + /** * 获取:活动类型 */ - public String getHuodongleixing() { + public String getHuodongleixing() { // 获取活动类型的方法 return huodongleixing; } - - + /** * 设置:人数 */ - - public void setRenshu(Integer renshu) { + public void setRenshu(Integer renshu) { // 设置人数的方法 this.renshu = renshu; } - + /** * 获取:人数 */ - public Integer getRenshu() { + public Integer getRenshu() { // 获取人数的方法 return renshu; } - - + /** * 设置:报名说明 */ - - public void setBaomingshuoming(String baomingshuoming) { + public void setBaomingshuoming(String baomingshuoming) { // 设置报名说明的方法 this.baomingshuoming = baomingshuoming; } - + /** * 获取:报名说明 */ - public String getBaomingshuoming() { + public String getBaomingshuoming() { // 获取报名说明的方法 return baomingshuoming; } - - + /** * 设置:报名时间 */ - - public void setBaomingshijian(Date baomingshijian) { + public void setBaomingshijian(Date baomingshijian) { // 设置报名时间的方法 this.baomingshijian = baomingshijian; } - + /** * 获取:报名时间 */ - public Date getBaomingshijian() { + public Date getBaomingshijian() { // 获取报名时间的方法 return baomingshijian; } - - + /** * 设置:学号 */ - - public void setXuehao(String xuehao) { + public void setXuehao(String xuehao) { // 设置学号的方法 this.xuehao = xuehao; } - + /** * 获取:学号 */ - public String getXuehao() { + public String getXuehao() { // 获取学号的方法 return xuehao; } - - + /** * 设置:姓名 */ - - public void setXingming(String xingming) { + public void setXingming(String xingming) { // 设置姓名的方法 this.xingming = xingming; } - + /** * 获取:姓名 */ - public String getXingming() { + public String getXingming() { // 获取姓名的方法 return xingming; } - - + /** * 设置:手机 */ - - public void setShouji(String shouji) { + public void setShouji(String shouji) { // 设置手机的方法 this.shouji = shouji; } - + /** * 获取:手机 */ - public String getShouji() { + public String getShouji() { // 获取手机的方法 return shouji; } - - + /** * 设置:是否审核 */ - - public void setSfsh(String sfsh) { + public void setSfsh(String sfsh) { // 设置是否审核的方法 this.sfsh = sfsh; } - + /** * 获取:是否审核 */ - public String getSfsh() { + public String getSfsh() { // 获取是否审核的方法 return sfsh; } - - + /** * 设置:审核回复 */ - - public void setShhf(String shhf) { + public void setShhf(String shhf) { // 设置审核回复的方法 this.shhf = shhf; } - + /** * 获取:审核回复 */ - public String getShhf() { + public String getShhf() { // 获取审核回复的方法 return shhf; } - } diff --git a/springbootpt9c5/src/main/java/com/entity/vo/HuodongtongzhiVO.java b/springbootpt9c5/src/main/java/com/entity/vo/HuodongtongzhiVO.java index 24435855..72c1cca0 100644 --- a/springbootpt9c5/src/main/java/com/entity/vo/HuodongtongzhiVO.java +++ b/springbootpt9c5/src/main/java/com/entity/vo/HuodongtongzhiVO.java @@ -1,137 +1,129 @@ +// 定义包路径,存放视图对象类 package com.entity.vo; +// 引入活动通知实体类 import com.entity.HuodongtongzhiEntity; +// 引入 MyBatis-Plus 的 TableName 注解,用于指定数据库表名 import com.baomidou.mybatisplus.annotations.TableName; + +// 引入日期格式化注解,用于控制日期格式 import java.util.Date; import org.springframework.format.annotation.DateTimeFormat; +// 引入 JSON 格式化注解,用于序列化日期字段 +import org.springframework.format.annotation.DateTimeFormat; import com.fasterxml.jackson.annotation.JsonFormat; + +// 引入 Serializable 接口,使类支持序列化 import java.io.Serializable; - /** * 活动通知 - * 手机端接口返回实体辅助类 + * 手机端接口返回实体辅助类 * (主要作用去除一些不必要的字段) - * @author - * @email + * + * @author [作者姓名] + * @email [作者邮箱] * @date 2022-05-06 08:33:49 */ -public class HuodongtongzhiVO implements Serializable { - private static final long serialVersionUID = 1L; +public class HuodongtongzhiVO implements Serializable { // 实现序列化接口 + 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") - @DateTimeFormat - private Date tongzhishijian; - - + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") // JSON 格式化注解 + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") // 日期格式化注解 + private Date tongzhishijian; // 通知时间字段 + /** * 设置:学号 */ - - public void setXuehao(String xuehao) { + public void setXuehao(String xuehao) { // 设置学号的方法 this.xuehao = xuehao; } - + /** * 获取:学号 */ - public String getXuehao() { + public String getXuehao() { // 获取学号的方法 return xuehao; } - - + /** * 设置:姓名 */ - - public void setXingming(String xingming) { + public void setXingming(String xingming) { // 设置姓名的方法 this.xingming = xingming; } - + /** * 获取:姓名 */ - public String getXingming() { + public String getXingming() { // 获取姓名的方法 return xingming; } - - + /** * 设置:手机 */ - - public void setShouji(String shouji) { + public void setShouji(String shouji) { // 设置手机的方法 this.shouji = shouji; } - + /** * 获取:手机 */ - public String getShouji() { + public String getShouji() { // 获取手机的方法 return shouji; } - - + /** * 设置:通知内容 */ - - public void setTongzhineirong(String tongzhineirong) { + public void setTongzhineirong(String tongzhineirong) { // 设置通知内容的方法 this.tongzhineirong = tongzhineirong; } - + /** * 获取:通知内容 */ - public String getTongzhineirong() { + public String getTongzhineirong() { // 获取通知内容的方法 return tongzhineirong; } - - + /** * 设置:通知时间 */ - - public void setTongzhishijian(Date tongzhishijian) { + public void setTongzhishijian(Date tongzhishijian) { // 设置通知时间的方法 this.tongzhishijian = tongzhishijian; } - + /** * 获取:通知时间 */ - public Date getTongzhishijian() { + public Date getTongzhishijian() { // 获取通知时间的方法 return tongzhishijian; } - } diff --git a/springbootpt9c5/src/main/resources/mapper/HuodongbaomingDao.xml b/springbootpt9c5/src/main/resources/mapper/HuodongbaomingDao.xml index a6199bdd..18d266ed 100644 --- a/springbootpt9c5/src/main/resources/mapper/HuodongbaomingDao.xml +++ b/springbootpt9c5/src/main/resources/mapper/HuodongbaomingDao.xml @@ -1,45 +1,50 @@ + - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - + SELECT * FROM huodongbaoming huodongbaoming + + 1=1 ${ew.sqlSegment} - + SELECT huodongbaoming.* FROM huodongbaoming huodongbaoming + + 1=1 ${ew.sqlSegment} + - SELECT huodongbaoming.* FROM huodongbaoming huodongbaoming - 1=1 ${ew.sqlSegment} + + - - + SELECT * FROM huodongbaoming huodongbaoming + + 1=1 ${ew.sqlSegment} - diff --git a/springbootpt9c5/src/main/resources/mapper/HuodongleixingDao.xml b/springbootpt9c5/src/main/resources/mapper/HuodongleixingDao.xml index b77c1bdb..71cdbafb 100644 --- a/springbootpt9c5/src/main/resources/mapper/HuodongleixingDao.xml +++ b/springbootpt9c5/src/main/resources/mapper/HuodongleixingDao.xml @@ -1,36 +1,41 @@ + - - - - + + + + + - - - + SELECT * FROM huodongleixing huodongleixing + + 1=1 ${ew.sqlSegment} - + SELECT huodongleixing.* FROM huodongleixing huodongleixing + + 1=1 ${ew.sqlSegment} + - SELECT huodongleixing.* FROM huodongleixing huodongleixing - 1=1 ${ew.sqlSegment} + + - - + SELECT * FROM huodongleixing huodongleixing + + 1=1 ${ew.sqlSegment} - diff --git a/springbootpt9c5/src/main/resources/mapper/HuodongtongzhiDao.xml b/springbootpt9c5/src/main/resources/mapper/HuodongtongzhiDao.xml index 27848033..5e62f1d9 100644 --- a/springbootpt9c5/src/main/resources/mapper/HuodongtongzhiDao.xml +++ b/springbootpt9c5/src/main/resources/mapper/HuodongtongzhiDao.xml @@ -1,41 +1,46 @@ + - - - - - - - - - + + + + + + + + + + - - - + SELECT * FROM huodongtongzhi huodongtongzhi + + 1=1 ${ew.sqlSegment} - + SELECT huodongtongzhi.* FROM huodongtongzhi huodongtongzhi + + 1=1 ${ew.sqlSegment} + - SELECT huodongtongzhi.* FROM huodongtongzhi huodongtongzhi - 1=1 ${ew.sqlSegment} + + - - + SELECT * FROM huodongtongzhi huodongtongzhi + + 1=1 ${ew.sqlSegment} - diff --git a/springbootpt9c5/src/main/resources/mapper/HuodongxindeDao.xml b/springbootpt9c5/src/main/resources/mapper/HuodongxindeDao.xml index 847a38c9..67929041 100644 --- a/springbootpt9c5/src/main/resources/mapper/HuodongxindeDao.xml +++ b/springbootpt9c5/src/main/resources/mapper/HuodongxindeDao.xml @@ -1,41 +1,46 @@ + - - - - - - - - - + + + + + + + + + + - - - + SELECT * FROM huodongxinde huodongxinde + + 1=1 ${ew.sqlSegment} - + SELECT huodongxinde.* FROM huodongxinde huodongxinde + + 1=1 ${ew.sqlSegment} + - SELECT huodongxinde.* FROM huodongxinde huodongxinde - 1=1 ${ew.sqlSegment} + + - - + SELECT * FROM huodongxinde huodongxinde + + 1=1 ${ew.sqlSegment} - diff --git a/springbootpt9c5/src/main/resources/mapper/HuodongxinxiDao.xml b/springbootpt9c5/src/main/resources/mapper/HuodongxinxiDao.xml index 27fe5391..37ad3a7d 100644 --- a/springbootpt9c5/src/main/resources/mapper/HuodongxinxiDao.xml +++ b/springbootpt9c5/src/main/resources/mapper/HuodongxinxiDao.xml @@ -1,44 +1,49 @@ + - - - - - - - - - - - - + + + + + + + + + + + + + - - - + SELECT * FROM huodongxinxi huodongxinxi + + 1=1 ${ew.sqlSegment} - + SELECT huodongxinxi.* FROM huodongxinxi huodongxinxi + + 1=1 ${ew.sqlSegment} + - SELECT huodongxinxi.* FROM huodongxinxi huodongxinxi - 1=1 ${ew.sqlSegment} + + - - + SELECT * FROM huodongxinxi huodongxinxi + + 1=1 ${ew.sqlSegment} -