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 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()); // 基于主键生成哈希值
}
}

@ -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();
}
}
}

@ -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(); // 示例:直接打印堆栈信息
}
}
}

@ -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(); // 示例:直接打印堆栈信息
}
}
}

@ -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(); // 示例:直接打印堆栈信息
}
}
}

@ -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;
}
}

@ -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;
}
}

@ -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;
}
}

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

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

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

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

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

Loading…
Cancel
Save