Merge branch 'main' into branch3

# Conflicts:
#	springbootpt9c5/src/main/java/com/annotation/APPLoginUser.java
#	springbootpt9c5/src/main/java/com/entity/HuodongbaomingEntity.java
#	springbootpt9c5/src/main/java/com/entity/HuodongleixingEntity.java
#	springbootpt9c5/src/main/java/com/entity/HuodongtongzhiEntity.java
#	springbootpt9c5/src/main/java/com/entity/HuodongxindeEntity.java
#	springbootpt9c5/src/main/java/com/entity/model/HuodongbaomingModel.java
#	springbootpt9c5/src/main/java/com/entity/model/HuodongxindeModel.java
#	springbootpt9c5/src/main/java/com/entity/model/HuodongxinxiModel.java
#	springbootpt9c5/src/main/java/com/entity/model/ZhiyuanzheModel.java
#	springbootpt9c5/src/main/java/com/service/impl/CommonServiceImpl.java
#	springbootpt9c5/src/main/java/com/service/impl/HuodongbaomingServiceImpl.java
#	springbootpt9c5/src/main/java/com/service/impl/HuodongleixingServiceImpl.java
#	springbootpt9c5/src/main/java/com/service/impl/HuodongtongzhiServiceImpl.java
#	springbootpt9c5/src/main/java/com/service/impl/HuodongxindeServiceImpl.java
#	springbootpt9c5/src/main/java/com/service/impl/HuodongxinxiServiceImpl.java
branch3
admin 3 months ago
commit 46db3c7650

@ -7,15 +7,21 @@ import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
@SpringBootApplication
@MapperScan(basePackages = {"com.dao"})
public class SpringbootSchemaApplication extends SpringBootServletInitializer{
@MapperScan(basePackages = {"com.dao"}) // 扫描 Mapper 接口所在的包
public class SpringbootSchemaApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(SpringbootSchemaApplication.class, args);
}
/**
* Servlet WAR
*
* @param applicationBuilder SpringApplicationBuilder
* @return SpringApplicationBuilder
*/
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder) {
return applicationBuilder.sources(SpringbootSchemaApplication.class);
}
protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder) {
return applicationBuilder.sources(SpringbootSchemaApplication.class);
}
}

@ -6,6 +6,12 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
<<<<<<< HEAD
<<<<<<< HEAD
=======
/**
*
*/
>>>>>>> main
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface APPLoginUser {

@ -2,8 +2,14 @@ package com.annotation;
import java.lang.annotation.*;
<<<<<<< HEAD
/**
* Token
*/
=======
// 定义一个自定义注解名为 IgnoreAuth
// 使用 @Target 注解指定该注解可以应用的目标元素类型为方法ElementType.METHOD
>>>>>>> main
@Target(ElementType.METHOD)
// 使用 @Retention 注解指定该注解在运行时是否可用

@ -4,8 +4,15 @@ import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
<<<<<<< HEAD
/**
*
*/
=======
// 定义一个自定义注解名为 LoginUser
// 使用 @Target 注解指定该注解可以应用的目标元素类型为参数ElementType.PARAMETER
>>>>>>> main
@Target(ElementType.PARAMETER)
// 使用 @Retention 注解指定该注解在运行时是否可用

@ -9,6 +9,25 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupp
import com.interceptor.AuthorizationInterceptor;
@Configuration
<<<<<<< HEAD
public class InterceptorConfig extends WebMvcConfigurationSupport{
@Bean
public AuthorizationInterceptor getAuthorizationInterceptor() {
return new AuthorizationInterceptor();
}
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(getAuthorizationInterceptor()).addPathPatterns("/**").excludePathPatterns("/static/**");
super.addInterceptors(registry);
}
/**
* springboot 2.0WebMvcConfigurationSupport访addResourceHandlers
*/
@Override
=======
public class InterceptorConfig extends WebMvcConfigurationSupport {
// 定义一个 Bean 方法,返回 AuthorizationInterceptor 的实例
@ -32,6 +51,7 @@ public class InterceptorConfig extends WebMvcConfigurationSupport {
* addResourceHandlers 访
*/
@Override
>>>>>>> main
public void addResourceHandlers(ResourceHandlerRegistry registry) {
// 添加资源处理器,处理所有路径的静态资源请求
registry.addResourceHandler("/**")

@ -34,13 +34,29 @@ import com.service.ConfigService;
import com.utils.BaiduUtil;
import com.utils.FileUtil;
import com.utils.R;
<<<<<<< HEAD
/**
*
=======
/**
*
>>>>>>> main
*/
@RestController
public class CommonController {
<<<<<<< HEAD
private static AipFace client = null;
@Autowired
private ConfigService configService;
/**
* tablecolumn()
* @param table
* @param column
* @return
=======
@Autowired
private CommonService commonService; // 注入通用服务
@ -56,6 +72,7 @@ public class CommonController {
* @param level
* @param parent
* @return
>>>>>>> main
*/
@IgnoreAuth
@RequestMapping("/option/{tableName}/{columnName}")
@ -73,6 +90,14 @@ public class CommonController {
List<String> data = commonService.getOption(params); // 调用服务获取数据
return R.ok().put("data", data); // 返回成功结果
}
<<<<<<< HEAD
/**
* tablecolumn
* @param table
* @param column
* @return
=======
/**
* tablecolumn
@ -80,6 +105,7 @@ public class CommonController {
* @param columnName
* @param columnValue
* @return
>>>>>>> main
*/
@IgnoreAuth
@RequestMapping("/follow/{tableName}/{columnName}")
@ -92,12 +118,21 @@ public class CommonController {
Map<String, Object> result = commonService.getFollowByOption(params); // 调用服务获取结果
return R.ok().put("data", result); // 返回成功结果
}
<<<<<<< HEAD
/**
* tablesfsh
* @param table
* @param map
* @return
=======
/**
* tablesfsh
* @param tableName
* @param map
* @return
>>>>>>> main
*/
@RequestMapping("/sh/{tableName}")
public R sh(@PathVariable("tableName") String tableName, @RequestBody Map<String, Object> map) {
@ -105,6 +140,16 @@ public class CommonController {
commonService.sh(map); // 调用服务修改状态
return R.ok(); // 返回成功结果
}
<<<<<<< HEAD
/**
*
* @param tableName
* @param columnName
* @param type 1: 2:
* @param map
* @return
=======
/**
*
@ -113,6 +158,7 @@ public class CommonController {
* @param type 1:, 2:
* @param map
* @return
>>>>>>> main
*/
@IgnoreAuth
@RequestMapping("/remind/{tableName}/{columnName}/{type}")

@ -27,6 +27,10 @@ import com.utils.ValidatorUtils;
@RestController
public class ConfigController {
<<<<<<< HEAD
/**
*
=======
@Autowired
private ConfigService configService; // 注入配置服务
@ -35,6 +39,7 @@ public class ConfigController {
* @param params
* @param config
* @return
>>>>>>> main
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params, ConfigEntity config) {
@ -42,12 +47,18 @@ public class ConfigController {
PageUtils page = configService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, config), params), params)); // 查询分页数据
return R.ok().put("data", page); // 返回成功结果
}
<<<<<<< HEAD
/**
*
=======
/**
*
* @param params
* @param config
* @return
>>>>>>> main
*/
@IgnoreAuth
@RequestMapping("/list")
@ -58,20 +69,30 @@ public class ConfigController {
}
/**
<<<<<<< HEAD
*
=======
* ID
* @param id ID
* @return
>>>>>>> main
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") String id) {
ConfigEntity config = configService.selectById(id); // 根据ID查询配置
return R.ok().put("data", config); // 返回成功结果
}
<<<<<<< HEAD
/**
*
=======
/**
* ID
* @param id ID
* @return
>>>>>>> main
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
@ -79,22 +100,34 @@ public class ConfigController {
ConfigEntity config = configService.selectById(id); // 根据ID查询配置
return R.ok().put("data", config); // 返回成功结果
}
<<<<<<< HEAD
/**
* name
=======
/**
*
* @param name
* @return
>>>>>>> main
*/
@RequestMapping("/info")
public R infoByName(@RequestParam String name) {
ConfigEntity config = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile")); // 根据名称查询配置
return R.ok().put("data", config); // 返回成功结果
}
<<<<<<< HEAD
/**
*
=======
/**
*
* @param config
* @return
>>>>>>> main
*/
@PostMapping("/save")
public R save(@RequestBody ConfigEntity config) {
@ -104,9 +137,13 @@ public class ConfigController {
}
/**
<<<<<<< HEAD
*
=======
*
* @param config
* @return
>>>>>>> main
*/
@RequestMapping("/update")
public R update(@RequestBody ConfigEntity config) {
@ -116,9 +153,13 @@ public class ConfigController {
}
/**
<<<<<<< HEAD
*
=======
*
* @param ids ID
* @return
>>>>>>> main
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids) {

@ -20,75 +20,84 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
* @author []
* @email []
* @date 2022-05-06 08:33:49
*/
@TableName("discusshuodongxinde")
public class DiscusshuodongxindeEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
@TableName("discusshuodongxinde") // 定义该实体类对应的数据库表名为 "discusshuodongxinde"
public class DiscusshuodongxindeEntity<T> implements Serializable { // 实现 Serializable 接口以便序列化
private static final long serialVersionUID = 1L; // 序列化版本号
/**
*
*
*
*/
public DiscusshuodongxindeEntity() {
}
/**
*
*
* DiscusshuodongxindeEntity `T` BeanUtils.copyProperties
*
* @param t DiscusshuodongxindeEntity
*/
public DiscusshuodongxindeEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
BeanUtils.copyProperties(this, t); // 使用 Apache Commons BeanUtils 将对象属性复制到当前对象
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
e.printStackTrace(); // 捕获异常并打印堆栈信息
}
}
/**
* id
*/
@TableId
@TableId // 使用 MyBatis-Plus 的 @TableId 注解标记为主键
private Long id;
/**
* id
*/
private Long refid;
/**
* id
*/
private Long userid;
/**
*
*/
private String nickname;
/**
*
*/
private String content;
/**
*
*/
private String reply;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
/**
*
*/
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date addtime;
// Getter 和 Setter 方法
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
@ -100,65 +109,74 @@ public class DiscusshuodongxindeEntity<T> implements Serializable {
public void setId(Long id) {
this.id = id;
}
/**
* id
*/
public void setRefid(Long refid) {
this.refid = refid;
}
/**
* id
*/
public Long getRefid() {
return refid;
}
/**
* id
*/
public void setUserid(Long userid) {
this.userid = userid;
}
/**
* id
*/
public Long getUserid() {
return userid;
}
/**
*
*/
public void setNickname(String nickname) {
this.nickname = nickname;
}
/**
*
*/
public String getNickname() {
return nickname;
}
/**
*
*/
public void setContent(String content) {
this.content = content;
}
/**
*
*/
public String getContent() {
return content;
}
/**
*
*/
public void setReply(String reply) {
this.reply = reply;
}
/**
*
*/
public String getReply() {
return reply;
}
}

@ -12,6 +12,7 @@ import java.io.Serializable; // 引入 Serializable 接口
import java.util.Date; // 引入日期类
import java.util.List; // 引入 List 泛型接口
<<<<<<< HEAD
import org.springframework.format.annotation.DateTimeFormat; // 引入 Spring 的日期格式注解
import com.fasterxml.jackson.annotation.JsonFormat; // 引入 Jackson 的日期格式注解
import org.apache.commons.beanutils.BeanUtils; // 引入 BeanUtils 工具类
@ -19,6 +20,8 @@ import com.baomidou.mybatisplus.annotations.TableField; // 引入 MyBatis-Plus
import com.baomidou.mybatisplus.enums.FieldFill; // 引入 MyBatis-Plus 的 FieldFill 枚举
import com.baomidou.mybatisplus.enums.IdType; // 引入 MyBatis-Plus 的 IdType 枚举
=======
>>>>>>> main
/**
*
*
@ -26,15 +29,28 @@ import com.baomidou.mybatisplus.enums.IdType; // 引入 MyBatis-Plus 的 IdType
* @email []
* @date 2022-05-06 08:33:49
*/
<<<<<<< HEAD
@TableName("huodongbaoming") // 定义数据库表名
public class HuodongbaomingEntity<T> implements Serializable { // 定义活动报名实体类
private static final long serialVersionUID = 1L; // 定义序列化版本号
// 默认构造函数
=======
@TableName("huodongbaoming") // 定义该实体类对应的数据库表名为 "huodongbaoming"
public class HuodongbaomingEntity<T> implements Serializable { // 实现 Serializable 接口以便序列化
private static final long serialVersionUID = 1L; // 序列化版本号
/**
*
*
*
*/
>>>>>>> main
public HuodongbaomingEntity() {
}
<<<<<<< HEAD
// 带参数的构造函数,用于将泛型对象转换为实体类对象
public HuodongbaomingEntity(T t) {
try {
@ -42,65 +58,123 @@ public class HuodongbaomingEntity<T> implements Serializable { // 定义活动
} catch (IllegalAccessException | InvocationTargetException e) {
// 捕获并打印异常
e.printStackTrace();
=======
/**
*
*
* HuodongbaomingEntity `T` BeanUtils.copyProperties
*
* @param t HuodongbaomingEntity
*/
public HuodongbaomingEntity(T t) {
try {
BeanUtils.copyProperties(this, t); // 使用 Apache Commons BeanUtils 将对象属性复制到当前对象
} catch (IllegalAccessException | InvocationTargetException e) {
e.printStackTrace(); // 捕获异常并打印堆栈信息
>>>>>>> main
}
}
/**
* id
*/
<<<<<<< HEAD
@TableId(type = IdType.AUTO) // 定义主键类型为自动增长
private Long id; // 定义主键字段
=======
@TableId // 使用 MyBatis-Plus 的 @TableId 注解标记为主键
private Long id;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String huodongmingcheng; // 定义活动名称字段
=======
private String huodongmingcheng;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String huodongleixing; // 定义活动类型字段
=======
private String huodongleixing;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private Integer renshu; // 定义人数字段
=======
private Integer renshu;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String baomingshuoming; // 定义报名说明字段
=======
private String baomingshuoming;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") // 定义日期格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 定义日期格式
private Date baomingshijian; // 定义报名时间字段
=======
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date baomingshijian;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String xuehao; // 定义学号字段
=======
private String xuehao;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String xingming; // 定义姓名字段
=======
private String xingming;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String shouji; // 定义手机号字段
=======
private String shouji;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String sfsh; // 定义是否审核字段
=======
private String sfsh;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String shhf; // 定义审核回复字段
/**
@ -115,6 +189,23 @@ public class HuodongbaomingEntity<T> implements Serializable { // 定义活动
return addtime;
}
public void setAddtime(Date addtime) { // 设置添加时间的方法
=======
private String shhf;
/**
*
*/
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date addtime;
// Getter 和 Setter 方法
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
>>>>>>> main
this.addtime = addtime;
}
@ -125,6 +216,7 @@ public class HuodongbaomingEntity<T> implements Serializable { // 定义活动
this.id = id;
}
<<<<<<< HEAD
public String getHuodongmingcheng() { // 获取活动名称的方法
return huodongmingcheng;
}
@ -194,4 +286,145 @@ public class HuodongbaomingEntity<T> implements Serializable { // 定义活动
public void setShhf(String shhf) { // 设置审核回复的方法
this.shhf = shhf;
}
=======
/**
*
*/
public void setHuodongmingcheng(String huodongmingcheng) {
this.huodongmingcheng = huodongmingcheng;
}
/**
*
*/
public String getHuodongmingcheng() {
return huodongmingcheng;
}
/**
*
*/
public void setHuodongleixing(String huodongleixing) {
this.huodongleixing = huodongleixing;
}
/**
*
*/
public String getHuodongleixing() {
return huodongleixing;
}
/**
*
*/
public void setRenshu(Integer renshu) {
this.renshu = renshu;
}
/**
*
*/
public Integer getRenshu() {
return renshu;
}
/**
*
*/
public void setBaomingshuoming(String baomingshuoming) {
this.baomingshuoming = baomingshuoming;
}
/**
*
*/
public String getBaomingshuoming() {
return baomingshuoming;
}
/**
*
*/
public void setBaomingshijian(Date baomingshijian) {
this.baomingshijian = baomingshijian;
}
/**
*
*/
public Date getBaomingshijian() {
return baomingshijian;
}
/**
*
*/
public void setXuehao(String xuehao) {
this.xuehao = xuehao;
}
/**
*
*/
public String getXuehao() {
return xuehao;
}
/**
*
*/
public void setXingming(String xingming) {
this.xingming = xingming;
}
/**
*
*/
public String getXingming() {
return xingming;
}
/**
*
*/
public void setShouji(String shouji) {
this.shouji = shouji;
}
/**
*
*/
public String getShouji() {
return shouji;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
>>>>>>> main
}

@ -33,6 +33,7 @@ import java.util.List;
// 引入 Spring 的 DateTimeFormat 注解,用于格式化日期
import org.springframework.format.annotation.DateTimeFormat;
<<<<<<< HEAD
// 引入 Jackson 的 JsonFormat 注解,用于格式化日期
import com.fasterxml.jackson.annotation.JsonFormat;
@ -48,6 +49,8 @@ import com.baomidou.mybatisplus.enums.FieldFill;
// 引入 MyBatis-Plus 的 IdType 枚举,用于标识主键生成策略
import com.baomidou.mybatisplus.enums.IdType;
=======
>>>>>>> main
/**
*
*
@ -55,16 +58,29 @@ import com.baomidou.mybatisplus.enums.IdType;
* @email []
* @date 2022-05-06 08:33:49
*/
<<<<<<< HEAD
@TableName("huodongleixing") // 定义数据库表名
public class HuodongleixingEntity<T> implements Serializable { // 定义活动类型实体类
private static final long serialVersionUID = 1L; // 定义序列化版本号
// 默认构造函数
=======
@TableName("huodongleixing") // 定义该实体类对应的数据库表名为 "huodongleixing"
public class HuodongleixingEntity<T> implements Serializable { // 实现 Serializable 接口以便序列化
private static final long serialVersionUID = 1L; // 序列化版本号
/**
*
*
*
*/
>>>>>>> main
public HuodongleixingEntity() {
}
<<<<<<< HEAD
// 带参数的构造函数,用于将泛型对象转换为实体类对象
public HuodongleixingEntity(T t) {
try {
@ -72,18 +88,38 @@ public class HuodongleixingEntity<T> implements Serializable { // 定义活动
} catch (IllegalAccessException | InvocationTargetException e) {
// 捕获并打印异常
e.printStackTrace();
=======
/**
*
*
* HuodongleixingEntity `T` BeanUtils.copyProperties
*
* @param t HuodongleixingEntity
*/
public HuodongleixingEntity(T t) {
try {
BeanUtils.copyProperties(this, t); // 使用 Apache Commons BeanUtils 将对象属性复制到当前对象
} catch (IllegalAccessException | InvocationTargetException e) {
e.printStackTrace(); // 捕获异常并打印堆栈信息
>>>>>>> main
}
}
/**
* id
*/
<<<<<<< HEAD
@TableId // 定义主键字段
private Long id; // 定义主键字段
=======
@TableId // 使用 MyBatis-Plus 的 @TableId 注解标记为主键
private Long id;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String huodongleixing; // 定义活动类型字段
/**
@ -94,11 +130,26 @@ public class HuodongleixingEntity<T> implements Serializable { // 定义活动
private Date addtime; // 定义添加时间字段
// Getter 方法:获取添加时间
=======
private String huodongleixing;
/**
*
*/
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date addtime;
// Getter 和 Setter 方法
>>>>>>> main
public Date getAddtime() {
return addtime;
}
<<<<<<< HEAD
// Setter 方法:设置添加时间
=======
>>>>>>> main
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
@ -113,12 +164,24 @@ public class HuodongleixingEntity<T> implements Serializable { // 定义活动
this.id = id;
}
<<<<<<< HEAD
// Setter 方法:设置活动类型
=======
/**
*
*/
>>>>>>> main
public void setHuodongleixing(String huodongleixing) {
this.huodongleixing = huodongleixing;
}
<<<<<<< HEAD
// Getter 方法:获取活动类型
=======
/**
*
*/
>>>>>>> main
public String getHuodongleixing() {
return huodongleixing;
}

@ -33,6 +33,7 @@ import java.util.List;
// 引入 Spring 的 DateTimeFormat 注解,用于格式化日期
import org.springframework.format.annotation.DateTimeFormat;
<<<<<<< HEAD
// 引入 Jackson 的 JsonFormat 注解,用于格式化日期
import com.fasterxml.jackson.annotation.JsonFormat;
@ -48,6 +49,8 @@ import com.baomidou.mybatisplus.enums.FieldFill;
// 引入 MyBatis-Plus 的 IdType 枚举,用于标识主键生成策略
import com.baomidou.mybatisplus.enums.IdType;
=======
>>>>>>> main
/**
*
*
@ -55,16 +58,29 @@ import com.baomidou.mybatisplus.enums.IdType;
* @email []
* @date 2022-05-06 08:33:49
*/
<<<<<<< HEAD
@TableName("huodongtongzhi") // 定义数据库表名
public class HuodongtongzhiEntity<T> implements Serializable { // 定义活动通知实体类
private static final long serialVersionUID = 1L; // 定义序列化版本号
// 默认构造函数
=======
@TableName("huodongtongzhi") // 定义该实体类对应的数据库表名为 "huodongtongzhi"
public class HuodongtongzhiEntity<T> implements Serializable { // 实现 Serializable 接口以便序列化
private static final long serialVersionUID = 1L; // 序列化版本号
/**
*
*
*
*/
>>>>>>> main
public HuodongtongzhiEntity() {
}
<<<<<<< HEAD
// 带参数的构造函数,用于将泛型对象转换为实体类对象
public HuodongtongzhiEntity(T t) {
try {
@ -72,43 +88,83 @@ public class HuodongtongzhiEntity<T> implements Serializable { // 定义活动
} catch (IllegalAccessException | InvocationTargetException e) {
// 捕获并打印异常
e.printStackTrace();
=======
/**
*
*
* HuodongtongzhiEntity `T` BeanUtils.copyProperties
*
* @param t HuodongtongzhiEntity
*/
public HuodongtongzhiEntity(T t) {
try {
BeanUtils.copyProperties(this, t); // 使用 Apache Commons BeanUtils 将对象属性复制到当前对象
} catch (IllegalAccessException | InvocationTargetException e) {
e.printStackTrace(); // 捕获异常并打印堆栈信息
>>>>>>> main
}
}
/**
* id
*/
<<<<<<< HEAD
@TableId // 定义主键字段
private Long id; // 定义主键字段
=======
@TableId // 使用 MyBatis-Plus 的 @TableId 注解标记为主键
private Long id;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String biaoti; // 定义标题字段
=======
private String biaoti;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String xuehao; // 定义学号字段
=======
private String xuehao;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String xingming; // 定义姓名字段
=======
private String xingming;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String shouji; // 定义手机号码字段
=======
private String shouji;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String tongzhineirong; // 定义通知内容字段
=======
private String tongzhineirong;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") // 定义日期格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 定义日期格式
private Date tongzhishijian; // 定义通知时间字段
@ -121,11 +177,28 @@ public class HuodongtongzhiEntity<T> implements Serializable { // 定义活动
private Date addtime; // 定义添加时间字段
// Getter 方法:获取添加时间
=======
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date tongzhishijian;
/**
*
*/
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date addtime;
// Getter 和 Setter 方法
>>>>>>> main
public Date getAddtime() {
return addtime;
}
<<<<<<< HEAD
// Setter 方法:设置添加时间
=======
>>>>>>> main
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
@ -140,62 +213,134 @@ public class HuodongtongzhiEntity<T> implements Serializable { // 定义活动
this.id = id;
}
<<<<<<< HEAD
// Setter 方法:设置标题
=======
/**
*
*/
>>>>>>> main
public void setBiaoti(String biaoti) {
this.biaoti = biaoti;
}
<<<<<<< HEAD
// Getter 方法:获取标题
=======
/**
*
*/
>>>>>>> main
public String getBiaoti() {
return biaoti;
}
<<<<<<< HEAD
// Setter 方法:设置学号
=======
/**
*
*/
>>>>>>> main
public void setXuehao(String xuehao) {
this.xuehao = xuehao;
}
<<<<<<< HEAD
// Getter 方法:获取学号
=======
/**
*
*/
>>>>>>> main
public String getXuehao() {
return xuehao;
}
<<<<<<< HEAD
// Setter 方法:设置姓名
=======
/**
*
*/
>>>>>>> main
public void setXingming(String xingming) {
this.xingming = xingming;
}
<<<<<<< HEAD
// Getter 方法:获取姓名
=======
/**
*
*/
>>>>>>> main
public String getXingming() {
return xingming;
}
<<<<<<< HEAD
// Setter 方法:设置手机号码
=======
/**
*
*/
>>>>>>> main
public void setShouji(String shouji) {
this.shouji = shouji;
}
<<<<<<< HEAD
// Getter 方法:获取手机号码
=======
/**
*
*/
>>>>>>> main
public String getShouji() {
return shouji;
}
<<<<<<< HEAD
// Setter 方法:设置通知内容
=======
/**
*
*/
>>>>>>> main
public void setTongzhineirong(String tongzhineirong) {
this.tongzhineirong = tongzhineirong;
}
<<<<<<< HEAD
// Getter 方法:获取通知内容
=======
/**
*
*/
>>>>>>> main
public String getTongzhineirong() {
return tongzhineirong;
}
<<<<<<< HEAD
// Setter 方法:设置通知时间
=======
/**
*
*/
>>>>>>> main
public void setTongzhishijian(Date tongzhishijian) {
this.tongzhishijian = tongzhishijian;
}
<<<<<<< HEAD
// Getter 方法:获取通知时间
=======
/**
*
*/
>>>>>>> main
public Date getTongzhishijian() {
return tongzhishijian;
}

@ -33,6 +33,7 @@ import java.util.List;
// 引入 Spring 的 DateTimeFormat 注解,用于格式化日期
import org.springframework.format.annotation.DateTimeFormat;
<<<<<<< HEAD
// 引入 Jackson 的 JsonFormat 注解,用于格式化日期
import com.fasterxml.jackson.annotation.JsonFormat;
@ -48,6 +49,8 @@ import com.baomidou.mybatisplus.enums.FieldFill;
// 引入 MyBatis-Plus 的 IdType 枚举,用于标识主键生成策略
import com.baomidou.mybatisplus.enums.IdType;
=======
>>>>>>> main
/**
*
*
@ -55,16 +58,29 @@ import com.baomidou.mybatisplus.enums.IdType;
* @email []
* @date 2022-05-06 08:33:49
*/
<<<<<<< HEAD
@TableName("huodongxinde") // 定义数据库表名
public class HuodongxindeEntity<T> implements Serializable { // 定义活动心得实体类
private static final long serialVersionUID = 1L; // 定义序列化版本号
// 默认构造函数
=======
@TableName("huodongxinde") // 定义该实体类对应的数据库表名为 "huodongxinde"
public class HuodongxindeEntity<T> implements Serializable { // 实现 Serializable 接口以便序列化
private static final long serialVersionUID = 1L; // 序列化版本号
/**
*
*
*
*/
>>>>>>> main
public HuodongxindeEntity() {
}
<<<<<<< HEAD
// 带参数的构造函数,用于将泛型对象转换为实体类对象
public HuodongxindeEntity(T t) {
try {
@ -72,45 +88,87 @@ public class HuodongxindeEntity<T> implements Serializable { // 定义活动心
} catch (IllegalAccessException | InvocationTargetException e) {
// 捕获并打印异常
e.printStackTrace();
=======
/**
*
*
* HuodongxindeEntity `T` BeanUtils.copyProperties
*
* @param t HuodongxindeEntity
*/
public HuodongxindeEntity(T t) {
try {
BeanUtils.copyProperties(this, t); // 使用 Apache Commons BeanUtils 将对象属性复制到当前对象
} catch (IllegalAccessException | InvocationTargetException e) {
e.printStackTrace(); // 捕获异常并打印堆栈信息
>>>>>>> main
}
}
/**
* id
*/
<<<<<<< HEAD
@TableId // 定义主键字段
private Long id; // 定义主键字段
=======
@TableId // 使用 MyBatis-Plus 的 @TableId 注解标记为主键
private Long id;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String huodongmingcheng; // 定义活动名称字段
=======
private String huodongmingcheng;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String huodongleixing; // 定义活动类型字段
=======
private String huodongleixing;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String tupian; // 定义图片字段
=======
private String tupian;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String xindefenxiang; // 定义心得分享字段
=======
private String xindefenxiang;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") // 定义日期格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 定义日期格式
private Date fabushijian; // 定义发布时间字段
=======
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date fabushijian;
>>>>>>> main
/**
* id
*/
<<<<<<< HEAD
private Long userid; // 定义用户ID字段
/**
@ -121,11 +179,26 @@ public class HuodongxindeEntity<T> implements Serializable { // 定义活动心
private Date addtime; // 定义添加时间字段
// Getter 方法:获取添加时间
=======
private Long userid;
/**
*
*/
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date addtime;
// Getter 和 Setter 方法
>>>>>>> main
public Date getAddtime() {
return addtime;
}
<<<<<<< HEAD
// Setter 方法:设置添加时间
=======
>>>>>>> main
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
@ -140,62 +213,134 @@ public class HuodongxindeEntity<T> implements Serializable { // 定义活动心
this.id = id;
}
<<<<<<< HEAD
// Setter 方法:设置活动名称
=======
/**
*
*/
>>>>>>> main
public void setHuodongmingcheng(String huodongmingcheng) {
this.huodongmingcheng = huodongmingcheng;
}
<<<<<<< HEAD
// Getter 方法:获取活动名称
=======
/**
*
*/
>>>>>>> main
public String getHuodongmingcheng() {
return huodongmingcheng;
}
<<<<<<< HEAD
// Setter 方法:设置活动类型
=======
/**
*
*/
>>>>>>> main
public void setHuodongleixing(String huodongleixing) {
this.huodongleixing = huodongleixing;
}
<<<<<<< HEAD
// Getter 方法:获取活动类型
=======
/**
*
*/
>>>>>>> main
public String getHuodongleixing() {
return huodongleixing;
}
<<<<<<< HEAD
// Setter 方法:设置图片
=======
/**
*
*/
>>>>>>> main
public void setTupian(String tupian) {
this.tupian = tupian;
}
<<<<<<< HEAD
// Getter 方法:获取图片
=======
/**
*
*/
>>>>>>> main
public String getTupian() {
return tupian;
}
<<<<<<< HEAD
// Setter 方法:设置心得分享
=======
/**
*
*/
>>>>>>> main
public void setXindefenxiang(String xindefenxiang) {
this.xindefenxiang = xindefenxiang;
}
<<<<<<< HEAD
// Getter 方法:获取心得分享
=======
/**
*
*/
>>>>>>> main
public String getXindefenxiang() {
return xindefenxiang;
}
<<<<<<< HEAD
// Setter 方法:设置发布时间
=======
/**
*
*/
>>>>>>> main
public void setFabushijian(Date fabushijian) {
this.fabushijian = fabushijian;
}
<<<<<<< HEAD
// Getter 方法:获取发布时间
=======
/**
*
*/
>>>>>>> main
public Date getFabushijian() {
return fabushijian;
}
<<<<<<< HEAD
// Setter 方法设置用户ID
=======
/**
* id
*/
>>>>>>> main
public void setUserid(Long userid) {
this.userid = userid;
}
<<<<<<< HEAD
// Getter 方法获取用户ID
=======
/**
* id
*/
>>>>>>> main
public Long getUserid() {
return userid;
}

@ -20,101 +20,106 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
* @author []
* @email []
* @date 2022-05-06 08:33:49
*/
@TableName("huodongxinxi")
public class HuodongxinxiEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
@TableName("huodongxinxi") // 定义该实体类对应的数据库表名为 "huodongxinxi"
public class HuodongxinxiEntity<T> implements Serializable { // 实现 Serializable 接口以便序列化
private static final long serialVersionUID = 1L; // 序列化版本号
/**
*
*
*
*/
public HuodongxinxiEntity() {
}
/**
*
*
* HuodongxinxiEntity `T` BeanUtils.copyProperties
*
* @param t HuodongxinxiEntity
*/
public HuodongxinxiEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
BeanUtils.copyProperties(this, t); // 使用 Apache Commons BeanUtils 将对象属性复制到当前对象
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
e.printStackTrace(); // 捕获异常并打印堆栈信息
}
}
/**
* id
*/
@TableId
@TableId // 使用 MyBatis-Plus 的 @TableId 注解标记为主键
private Long id;
/**
*
*/
private String huodongmingcheng;
/**
*
*/
private String huodongleixing;
/**
*
*/
private String tupian;
/**
*
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
@DateTimeFormat
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd") // Spring 的日期格式化注解
private Date huodongshijian;
/**
*
*/
private Integer renshu;
/**
*
*/
private String huodongchangdi;
/**
*
*/
private String huodongjieshao;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
/**
*
*/
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date addtime;
// Getter 和 Setter 方法
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
@ -126,113 +131,130 @@ public class HuodongxinxiEntity<T> implements Serializable {
public void setId(Long id) {
this.id = id;
}
/**
*
*/
public void setHuodongmingcheng(String huodongmingcheng) {
this.huodongmingcheng = huodongmingcheng;
}
/**
*
*/
public String getHuodongmingcheng() {
return huodongmingcheng;
}
/**
*
*/
public void setHuodongleixing(String huodongleixing) {
this.huodongleixing = huodongleixing;
}
/**
*
*/
public String getHuodongleixing() {
return huodongleixing;
}
/**
*
*/
public void setTupian(String tupian) {
this.tupian = tupian;
}
/**
*
*/
public String getTupian() {
return tupian;
}
/**
*
*/
public void setHuodongshijian(Date huodongshijian) {
this.huodongshijian = huodongshijian;
}
/**
*
*/
public Date getHuodongshijian() {
return huodongshijian;
}
/**
*
*/
public void setRenshu(Integer renshu) {
this.renshu = renshu;
}
/**
*
*/
public Integer getRenshu() {
return renshu;
}
/**
*
*/
public void setHuodongchangdi(String huodongchangdi) {
this.huodongchangdi = huodongchangdi;
}
/**
*
*/
public String getHuodongchangdi() {
return huodongchangdi;
}
/**
*
*/
public void setHuodongjieshao(String huodongjieshao) {
this.huodongjieshao = huodongjieshao;
}
/**
*
*/
public String getHuodongjieshao() {
return huodongjieshao;
}
/**
*
*/
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
/**
*
*/
public String getSfsh() {
return sfsh;
}
/**
*
*/
public void setShhf(String shhf) {
this.shhf = shhf;
}
/**
*
*/
public String getShhf() {
return shhf;
}
}

@ -20,81 +20,89 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
* @author []
* @email []
* @date 2022-05-06 08:33:49
*/
@TableName("messages")
public class MessagesEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
@TableName("messages") // 定义该实体类对应的数据库表名为 "messages"
public class MessagesEntity<T> implements Serializable { // 实现 Serializable 接口以便序列化
private static final long serialVersionUID = 1L; // 序列化版本号
/**
*
*
*
*/
public MessagesEntity() {
}
/**
*
*
* MessagesEntity `T` BeanUtils.copyProperties
*
* @param t MessagesEntity
*/
public MessagesEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
BeanUtils.copyProperties(this, t); // 使用 Apache Commons BeanUtils 将对象属性复制到当前对象
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
e.printStackTrace(); // 捕获异常并打印堆栈信息
}
}
/**
* id
*/
@TableId
@TableId // 使用 MyBatis-Plus 的 @TableId 注解标记为主键
private Long id;
/**
* id
*/
private Long userid;
/**
*
*/
private String username;
/**
*
*/
private String content;
/**
*
*/
private String cpicture;
/**
*
*/
private String reply;
/**
*
*/
private String rpicture;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
/**
*
*/
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date addtime;
// Getter 和 Setter 方法
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
@ -106,77 +114,88 @@ public class MessagesEntity<T> implements Serializable {
public void setId(Long id) {
this.id = id;
}
/**
* id
*/
public void setUserid(Long userid) {
this.userid = userid;
}
/**
* id
*/
public Long getUserid() {
return userid;
}
/**
*
*/
public void setUsername(String username) {
this.username = username;
}
/**
*
*/
public String getUsername() {
return username;
}
/**
*
*/
public void setContent(String content) {
this.content = content;
}
/**
*
*/
public String getContent() {
return content;
}
/**
*
*/
public void setCpicture(String cpicture) {
this.cpicture = cpicture;
}
/**
*
*/
public String getCpicture() {
return cpicture;
}
/**
*
*/
public void setReply(String reply) {
this.reply = reply;
}
/**
*
*/
public String getReply() {
return reply;
}
/**
*
*/
public void setRpicture(String rpicture) {
this.rpicture = rpicture;
}
/**
*
*/
public String getRpicture() {
return rpicture;
}
}

@ -20,87 +20,94 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
*
*
* @author
* @email
* @author []
* @email []
* @date 2022-05-06 08:33:49
*/
@TableName("storeup")
public class StoreupEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
@TableName("storeup") // 定义该实体类对应的数据库表名为 "storeup"
public class StoreupEntity<T> implements Serializable { // 实现 Serializable 接口以便序列化
private static final long serialVersionUID = 1L; // 序列化版本号
/**
*
*
*
*/
public StoreupEntity() {
}
/**
*
*
* StoreupEntity `T` BeanUtils.copyProperties
*
* @param t StoreupEntity
*/
public StoreupEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
BeanUtils.copyProperties(this, t); // 使用 Apache Commons BeanUtils 将对象属性复制到当前对象
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
e.printStackTrace(); // 捕获异常并打印堆栈信息
}
}
/**
* id
*/
@TableId
@TableId // 使用 MyBatis-Plus 的 @TableId 注解标记为主键
private Long id;
/**
* id
*/
private Long userid;
/**
* id
*/
private Long refid;
/**
*
*/
private String tablename;
/**
*
*/
private String name;
/**
*
*/
private String picture;
/**
* (1:,21:,22:)
*/
private String type;
/**
*
*/
private String inteltype;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
/**
*
*/
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date addtime;
// Getter 和 Setter 方法
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
@ -112,89 +119,102 @@ public class StoreupEntity<T> implements Serializable {
public void setId(Long id) {
this.id = id;
}
/**
* id
*/
public void setUserid(Long userid) {
this.userid = userid;
}
/**
* id
*/
public Long getUserid() {
return userid;
}
/**
* id
*/
public void setRefid(Long refid) {
this.refid = refid;
}
/**
* id
*/
public Long getRefid() {
return refid;
}
/**
*
*/
public void setTablename(String tablename) {
this.tablename = tablename;
}
/**
*
*/
public String getTablename() {
return tablename;
}
/**
*
*/
public void setName(String name) {
this.name = name;
}
/**
*
*/
public String getName() {
return name;
}
/**
*
*/
public void setPicture(String picture) {
this.picture = picture;
}
/**
*
*/
public String getPicture() {
return picture;
}
/**
* (1:,21:,22:)
*/
public void setType(String type) {
this.type = type;
}
/**
* (1:,21:,22:)
*/
public String getType() {
return type;
}
/**
*
*/
public void setInteltype(String inteltype) {
this.inteltype = inteltype;
}
/**
*
*/
public String getInteltype() {
return inteltype;
}
}

@ -7,51 +7,73 @@ import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
/**
* token
/**
* Token
*
* token token
*/
@TableName("token")
public class TokenEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableName("token") // 定义该实体类对应的数据库表名为 "token"
public class TokenEntity implements Serializable { // 实现 Serializable 接口以便序列化
private static final long serialVersionUID = 1L; // 序列化版本号
/**
*
*
* 使 MyBatis-Plus @TableId AUTO
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* id
* ID
*
*
*/
private Long userid;
/**
*
*
*
*/
private String username;
/**
*
*
*
*/
private String tablename;
/**
*
*
*
*/
private String role;
/**
* token
* Token
*
*
*/
private String token;
/**
*
*
* Token
*/
private Date expiratedtime;
/**
*
*
* Token
*/
private Date addtime;
// Getter 和 Setter 方法
public Long getId() {
return id;
}
@ -80,6 +102,10 @@ public class TokenEntity implements Serializable {
return token;
}
public void setToken(String token) {
this.token = token;
}
public String getTablename() {
return tablename;
}
@ -88,10 +114,6 @@ public class TokenEntity implements Serializable {
this.tablename = tablename;
}
public void setToken(String token) {
this.token = token;
}
public Date getExpiratedtime() {
return expiratedtime;
}
@ -116,8 +138,20 @@ public class TokenEntity implements Serializable {
this.username = username;
}
public TokenEntity(Long userid, String username, String tablename,String role, String token, Date expiratedtime) {
super();
/**
*
*
* TokenEntity
*
* @param userid ID
* @param username
* @param tablename
* @param role
* @param token Token
* @param expiratedtime
*/
public TokenEntity(Long userid, String username, String tablename, String role, String token, Date expiratedtime) {
super(); // 调用父类的无参构造函数
this.userid = userid;
this.username = username;
this.tablename = tablename;
@ -125,8 +159,13 @@ public class TokenEntity implements Serializable {
this.token = token;
this.expiratedtime = expiratedtime;
}
/**
*
*
*
*/
public TokenEntity() {
super(); // 调用父类的无参构造函数
}
}

@ -1,15 +1,28 @@
package com.entity.model; // 定义包路径,存放模型类
<<<<<<< HEAD
import com.entity.HuodongbaomingEntity; // 导入实体类,可能用于数据映射
import com.baomidou.mybatisplus.annotations.TableName; // 导入 MyBatis-Plus 表注解
import java.util.Date; // 导入日期类,用于处理时间字段
import org.springframework.format.annotation.DateTimeFormat; // 导入日期格式注解
import com.fasterxml.jackson.annotation.JsonFormat; // 导入 JSON 格式化注解
import java.io.Serializable; // 导入接口,支持对象序列化
=======
import com.entity.HuodongbaomingEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
>>>>>>> main
/**
*
*
<<<<<<< HEAD
* entity
* ModelAndView model
* @author [Your Name] // 作者信息
@ -18,59 +31,112 @@ import java.io.Serializable; // 导入接口,支持对象序列化
*/
public class HuodongbaomingModel implements Serializable { // 定义实体类,实现序列化接口
private static final long serialVersionUID = 1L; // 定义序列化版本号,确保反序列化时兼容性
=======
* entity
* ModelAndViewController model
* @author []
* @email []
* @date 2022-05-06 08:33:49
*/
public class HuodongbaomingModel implements Serializable {
private static final long serialVersionUID = 1L; // 序列化版本号
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String huodongleixing; // 活动类型的字段
=======
private String huodongleixing;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private Integer renshu; // 人数字段
=======
private Integer renshu;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String baomingshuoming; // 报名说明字段
=======
private String baomingshuoming;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") // 格式化日期时间
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") // 设置日期格式
private Date baomingshijian; // 报名时间字段
=======
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date baomingshijian;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String xuehao; // 学号字段
=======
private String xuehao;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String xingming; // 姓名字段
=======
private String xingming;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String shouji; // 手机号码字段
=======
private String shouji;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String sfsh; // 是否审核字段
=======
private String sfsh;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String shhf; // 审核回复字段
=======
private String shhf;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
public void setHuodongleixing(String huodongleixing) { // 设置活动类型的 setter 方法
this.huodongleixing = huodongleixing; // 将传入的值赋给字段
=======
public void setHuodongleixing(String huodongleixing) {
this.huodongleixing = huodongleixing;
>>>>>>> main
}
/**
@ -83,8 +149,13 @@ public class HuodongbaomingModel implements Serializable { // 定义实体类,
/**
*
*/
<<<<<<< HEAD
public void setRenshu(Integer renshu) { // 设置人数的 setter 方法
this.renshu = renshu; // 将传入的值赋给字段
=======
public void setRenshu(Integer renshu) {
this.renshu = renshu;
>>>>>>> main
}
/**
@ -97,8 +168,13 @@ public class HuodongbaomingModel implements Serializable { // 定义实体类,
/**
*
*/
<<<<<<< HEAD
public void setBaomingshuoming(String baomingshuoming) { // 设置报名说明的 setter 方法
this.baomingshuoming = baomingshuoming; // 将传入的值赋给字段
=======
public void setBaomingshuoming(String baomingshuoming) {
this.baomingshuoming = baomingshuoming;
>>>>>>> main
}
/**
@ -111,8 +187,13 @@ public class HuodongbaomingModel implements Serializable { // 定义实体类,
/**
*
*/
<<<<<<< HEAD
public void setBaomingshijian(Date baomingshijian) { // 设置报名时间的 setter 方法
this.baomingshijian = baomingshijian; // 将传入的值赋给字段
=======
public void setBaomingshijian(Date baomingshijian) {
this.baomingshijian = baomingshijian;
>>>>>>> main
}
/**
@ -125,8 +206,13 @@ public class HuodongbaomingModel implements Serializable { // 定义实体类,
/**
*
*/
<<<<<<< HEAD
public void setXuehao(String xuehao) { // 设置学号的 setter 方法
this.xuehao = xuehao; // 将传入的值赋给字段
=======
public void setXuehao(String xuehao) {
this.xuehao = xuehao;
>>>>>>> main
}
/**
@ -139,8 +225,13 @@ public class HuodongbaomingModel implements Serializable { // 定义实体类,
/**
*
*/
<<<<<<< HEAD
public void setXingming(String xingming) { // 设置姓名的 setter 方法
this.xingming = xingming; // 将传入的值赋给字段
=======
public void setXingming(String xingming) {
this.xingming = xingming;
>>>>>>> main
}
/**
@ -153,8 +244,13 @@ public class HuodongbaomingModel implements Serializable { // 定义实体类,
/**
*
*/
<<<<<<< HEAD
public void setShouji(String shouji) { // 设置手机号码的 setter 方法
this.shouji = shouji; // 将传入的值赋给字段
=======
public void setShouji(String shouji) {
this.shouji = shouji;
>>>>>>> main
}
/**
@ -167,8 +263,13 @@ public class HuodongbaomingModel implements Serializable { // 定义实体类,
/**
*
*/
<<<<<<< HEAD
public void setSfsh(String sfsh) { // 设置是否审核的 setter 方法
this.sfsh = sfsh; // 将传入的值赋给字段
=======
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
>>>>>>> main
}
/**
@ -181,8 +282,13 @@ public class HuodongbaomingModel implements Serializable { // 定义实体类,
/**
*
*/
<<<<<<< HEAD
public void setShhf(String shhf) { // 设置审核回复的 setter 方法
this.shhf = shhf; // 将传入的值赋给字段
=======
public void setShhf(String shhf) {
this.shhf = shhf;
>>>>>>> main
}
/**
@ -191,5 +297,8 @@ public class HuodongbaomingModel implements Serializable { // 定义实体类,
public String getShhf() { // 获取审核回复的 getter 方法
return shhf; // 返回审核回复字段的值
}
<<<<<<< HEAD
=======
>>>>>>> main
}

@ -1,15 +1,28 @@
package com.entity.model; // 定义包路径,存放模型类
<<<<<<< HEAD
import com.entity.HuodongxindeEntity; // 导入实体类,可能用于数据映射
import com.baomidou.mybatisplus.annotations.TableName; // 导入 MyBatis-Plus 表注解
import java.util.Date; // 导入日期类,用于处理时间字段
import org.springframework.format.annotation.DateTimeFormat; // 导入日期格式注解
import com.fasterxml.jackson.annotation.JsonFormat; // 导入 JSON 格式化注解
import java.io.Serializable; // 导入接口,支持对象序列化
=======
import com.entity.HuodongxindeEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
>>>>>>> main
/**
*
*
<<<<<<< HEAD
* entity
* ModelAndView model
* @author [Your Name] // 作者信息
@ -18,33 +31,65 @@ import java.io.Serializable; // 导入接口,支持对象序列化
*/
public class HuodongxindeModel implements Serializable { // 定义实体类,实现序列化接口
private static final long serialVersionUID = 1L; // 定义序列化版本号,确保反序列化时兼容性
=======
* entity
* ModelAndViewController model
* @author []
* @email []
* @date 2022-05-06 08:33:49
*/
public class HuodongxindeModel implements Serializable {
private static final long serialVersionUID = 1L; // 序列化版本号
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String huodongleixing; // 活动类型字段,用于存储活动的类型信息
=======
private String huodongleixing;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String tupian; // 图片字段,用于存储活动相关的图片链接或路径
=======
private String tupian;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String xindefenxiang; // 心得分享字段,用于存储用户的心得分享内容
=======
private String xindefenxiang;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为中文格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 设置日期格式为 yyyy-MM-dd HH:mm:ss
private Date fabushijian; // 发布时间字段,用于存储活动心得的发布时间
=======
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date fabushijian;
>>>>>>> main
/**
* id
*/
<<<<<<< HEAD
private Long userid; // 用户id字段用于存储发布活动心得的用户的唯一标识
=======
private Long userid;
>>>>>>> main
/**
*

@ -1,15 +1,28 @@
package com.entity.model; // 定义包路径,存放模型类
<<<<<<< HEAD
import com.entity.HuodongxinxiEntity; // 导入实体类,可能用于数据映射
import com.baomidou.mybatisplus.annotations.TableName; // 导入 MyBatis-Plus 表注解
import java.util.Date; // 导入日期类,用于处理时间字段
import org.springframework.format.annotation.DateTimeFormat; // 导入日期格式注解
import com.fasterxml.jackson.annotation.JsonFormat; // 导入 JSON 格式化注解
import java.io.Serializable; // 导入接口,支持对象序列化
=======
import com.entity.HuodongxinxiEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
>>>>>>> main
/**
*
*
<<<<<<< HEAD
* entity
* ModelAndView model
* @author [Your Name] // 作者信息
@ -18,48 +31,92 @@ import java.io.Serializable; // 导入接口,支持对象序列化
*/
public class HuodongxinxiModel implements Serializable { // 定义实体类,实现序列化接口
private static final long serialVersionUID = 1L; // 定义序列化版本号,确保反序列化时兼容性
=======
* entity
* ModelAndViewController model
* @author []
* @email []
* @date 2022-05-06 08:33:49
*/
public class HuodongxinxiModel implements Serializable {
private static final long serialVersionUID = 1L; // 序列化版本号
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String huodongleixing; // 活动类型字段,用于存储活动的类型信息
=======
private String huodongleixing;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String tupian; // 图片字段,用于存储活动相关的图片链接或路径
=======
private String tupian;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为中文格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 设置日期格式为 yyyy-MM-dd HH:mm:ss
private Date huodongshijian; // 活动时间字段,用于存储活动的时间信息
=======
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") // 格式化日期时间为指定格式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // Spring 的日期格式化注解
private Date huodongshijian;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private Integer renshu; // 人数字段,用于存储活动参与的人数
=======
private Integer renshu;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String huodongchangdi; // 活动场地字段,用于存储活动的场地信息
=======
private String huodongchangdi;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String huodongjieshao; // 活动介绍字段,用于存储活动的详细介绍
=======
private String huodongjieshao;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String sfsh; // 是否审核字段,用于标记活动是否已通过审核
=======
private String sfsh;
>>>>>>> main
/**
*
*/
<<<<<<< HEAD
private String shhf; // 审核回复字段,用于存储审核人员的回复内容
=======
private String shhf;
>>>>>>> main
/**
*

@ -1,21 +1,39 @@
package com.entity.model; // 定义包路径,存放模型类
<<<<<<< HEAD
import com.entity.ZhiyuanzheEntity; // 引入志愿者实体类
import com.baomidou.mybatisplus.annotations.TableName; // 引入 MyBatis-Plus 的 TableName 注解
import java.util.Date; // 引入 Date 类
import org.springframework.format.annotation.DateTimeFormat; // 引入日期格式化注解
import com.fasterxml.jackson.annotation.JsonFormat; // 引入 JSON 格式化注解
import java.io.Serializable; // 引入 Serializable 接口
=======
import com.entity.ZhiyuanzheEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
>>>>>>> main
/**
*
*
<<<<<<< HEAD
* entity
* ModelAndView model
=======
* entity
* ModelAndViewController model
>>>>>>> main
* @author []
* @email []
* @date 2022-05-06 08:33:49
*/
<<<<<<< HEAD
public class ZhiyuanzheModel implements Serializable { // 定义志愿者模型类并实现 Serializable 接口
private static final long serialVersionUID = 1L; // 定义序列化版本号
@ -50,103 +68,278 @@ public class ZhiyuanzheModel implements Serializable { // 定义志愿者模型
private String shhf;
// 设置密码的方法
=======
public class ZhiyuanzheModel implements Serializable {
private static final long serialVersionUID = 1L; // 序列化版本号
/**
*
*/
private String mima;
/**
*
*/
private String xingming;
/**
*
*/
private String xingbie;
/**
*
*/
private String touxiang;
/**
*
*/
private String nianling;
/**
*
*/
private String banji;
/**
*
*/
private String youxiang;
/**
*
*/
private String shouji;
/**
*
*/
private String sfsh;
/**
*
*/
private String shhf;
/**
*
*/
>>>>>>> main
public void setMima(String mima) {
this.mima = mima;
}
<<<<<<< HEAD
// 获取密码的方法
=======
/**
*
*/
>>>>>>> main
public String getMima() {
return mima;
}
<<<<<<< HEAD
// 设置姓名的方法
=======
/**
*
*/
>>>>>>> main
public void setXingming(String xingming) {
this.xingming = xingming;
}
<<<<<<< HEAD
// 获取姓名的方法
=======
/**
*
*/
>>>>>>> main
public String getXingming() {
return xingming;
}
<<<<<<< HEAD
// 设置性别的方法
=======
/**
*
*/
>>>>>>> main
public void setXingbie(String xingbie) {
this.xingbie = xingbie;
}
<<<<<<< HEAD
// 获取性别的方法
=======
/**
*
*/
>>>>>>> main
public String getXingbie() {
return xingbie;
}
<<<<<<< HEAD
// 设置头像的方法
=======
/**
*
*/
>>>>>>> main
public void setTouxiang(String touxiang) {
this.touxiang = touxiang;
}
<<<<<<< HEAD
// 获取头像的方法
=======
/**
*
*/
>>>>>>> main
public String getTouxiang() {
return touxiang;
}
<<<<<<< HEAD
// 设置年龄的方法
=======
/**
*
*/
>>>>>>> main
public void setNianling(String nianling) {
this.nianling = nianling;
}
<<<<<<< HEAD
// 获取年龄的方法
=======
/**
*
*/
>>>>>>> main
public String getNianling() {
return nianling;
}
<<<<<<< HEAD
// 设置班级的方法
=======
/**
*
*/
>>>>>>> main
public void setBanji(String banji) {
this.banji = banji;
}
<<<<<<< HEAD
// 获取班级的方法
=======
/**
*
*/
>>>>>>> main
public String getBanji() {
return banji;
}
<<<<<<< HEAD
// 设置邮箱的方法
=======
/**
*
*/
>>>>>>> main
public void setYouxiang(String youxiang) {
this.youxiang = youxiang;
}
<<<<<<< HEAD
// 获取邮箱的方法
=======
/**
*
*/
>>>>>>> main
public String getYouxiang() {
return youxiang;
}
<<<<<<< HEAD
// 设置手机的方法
=======
/**
*
*/
>>>>>>> main
public void setShouji(String shouji) {
this.shouji = shouji;
}
<<<<<<< HEAD
// 获取手机的方法
=======
/**
*
*/
>>>>>>> main
public String getShouji() {
return shouji;
}
<<<<<<< HEAD
// 设置是否审核的方法
=======
/**
*
*/
>>>>>>> main
public void setSfsh(String sfsh) {
this.sfsh = sfsh;
}
<<<<<<< HEAD
// 获取是否审核的方法
=======
/**
*
*/
>>>>>>> main
public String getSfsh() {
return sfsh;
}
<<<<<<< HEAD
// 设置审核回复的方法
=======
/**
*
*/
>>>>>>> main
public void setShhf(String shhf) {
this.shhf = shhf;
}
<<<<<<< HEAD
// 获取审核回复的方法
public String getShhf() {
return shhf;
}
=======
/**
*
*/
public String getShhf() {
return shhf;
}
>>>>>>> main
}

@ -3,20 +3,70 @@ package com.service;
import java.util.List;
import java.util.Map;
/**
*
*/
public interface CommonService {
/**
*
*
* @param params
* @return List<String>
*/
List<String> getOption(Map<String, Object> params);
/**
*
*
* @param params
* @return Map<String, Object>
*/
Map<String, Object> getFollowByOption(Map<String, Object> params);
/**
*
*
* @param params
*/
void sh(Map<String, Object> params);
/**
*
*
* @param params
* @return int
*/
int remindCount(Map<String, Object> params);
/**
*
*
* @param params
* @return Map<String, Object>
*/
Map<String, Object> selectCal(Map<String, Object> params);
/**
*
*
* @param params
* @return List<Map<String, Object>>
*/
List<Map<String, Object>> selectGroup(Map<String, Object> params);
/**
*
*
* @param params
* @return List<Map<String, Object>>
*/
List<Map<String, Object>> selectValue(Map<String, Object> params);
/**
*
*
* @param params
* @return List<Map<String, Object>>
*/
List<Map<String, Object>> selectTimeStatValue(Map<String, Object> params);
}

@ -1,4 +1,3 @@
package com.service;
import java.util.Map;
@ -8,10 +7,16 @@ import com.baomidou.mybatisplus.service.IService;
import com.entity.ConfigEntity;
import com.utils.PageUtils;
/**
*
*
*/
public interface ConfigService extends IService<ConfigEntity> {
PageUtils queryPage(Map<String, Object> params,Wrapper<ConfigEntity> wrapper);
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params, Wrapper<ConfigEntity> wrapper);
}

@ -10,28 +10,66 @@ import com.entity.vo.DiscusshuodongxindeVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.DiscusshuodongxindeView;
/**
*
*
* @author
* @email
* @author
* @email
* @date 2022-05-06 08:33:49
*/
//继承 IService<DiscusshuodongxindeEntity>DiscusshuodongxindeService 继承了 IService<DiscusshuodongxindeEntity> 接口,提供了基本的 CRUD 操作功能。
//分页查询queryPage 方法用于分页查询活动心得评论表,参数 params 包含分页信息和其他过滤条件。
//查询视图列表selectListVO 和 selectListView 方法分别用于查询活动心得评论视图列表,参数 wrapper 是一个条件包装器,用于动态查询条件。
//查询单个视图selectVO 和 selectView 方法分别用于查询单个活动心得评论视图,参数 wrapper 是一个条件包装器,用于动态查询条件。
//带条件的分页查询queryPage 方法扩展了带条件的分页查询功能,参数 wrapper 用于动态构建查询条件。
public interface DiscusshuodongxindeService extends IService<DiscusshuodongxindeEntity> {
/**
*
*
* @param params
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params);
PageUtils queryPage(Map<String, Object> params);
List<DiscusshuodongxindeVO> selectListVO(Wrapper<DiscusshuodongxindeEntity> wrapper);
DiscusshuodongxindeVO selectVO(@Param("ew") Wrapper<DiscusshuodongxindeEntity> wrapper);
List<DiscusshuodongxindeView> selectListView(Wrapper<DiscusshuodongxindeEntity> wrapper);
DiscusshuodongxindeView selectView(@Param("ew") Wrapper<DiscusshuodongxindeEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<DiscusshuodongxindeEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<DiscusshuodongxindeVO>
*/
List<DiscusshuodongxindeVO> selectListVO(Wrapper<DiscusshuodongxindeEntity> wrapper);
}
/**
*
*
* @param wrapper
* @return DiscusshuodongxindeVO
*/
DiscusshuodongxindeVO selectVO(@Param("ew") Wrapper<DiscusshuodongxindeEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<DiscusshuodongxindeView>
*/
List<DiscusshuodongxindeView> selectListView(Wrapper<DiscusshuodongxindeEntity> wrapper);
/**
*
*
* @param wrapper
* @return DiscusshuodongxindeView
*/
DiscusshuodongxindeView selectView(@Param("ew") Wrapper<DiscusshuodongxindeEntity> wrapper);
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params, Wrapper<DiscusshuodongxindeEntity> wrapper);
}

@ -10,28 +10,65 @@ import com.entity.vo.HuodongbaomingVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.HuodongbaomingView;
/**
*
*
* @author
* @email
* @author
* @email
* @date 2022-05-06 08:33:49
*/
//继承 IService<HuodongbaomingEntity>HuodongbaomingService 继承了 IService<HuodongbaomingEntity> 接口,提供了基本的 CRUD 操作功能。
//分页查询queryPage 方法用于分页查询活动报名,参数 params 包含分页信息和其他过滤条件。
//查询视图列表selectListVO 和 selectListView 方法分别用于查询活动报名视图列表,参数 wrapper 是一个条件包装器,用于动态查询条件。
//查询单个视图selectVO 和 selectView 方法分别用于查询单个活动报名视图,参数 wrapper 是一个条件包装器,用于动态查询条件。
//带条件的分页查询queryPage 方法扩展了带条件的分页查询功能,参数 wrapper 用于动态构建查询条件。
public interface HuodongbaomingService extends IService<HuodongbaomingEntity> {
/**
*
*
* @param params
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params);
PageUtils queryPage(Map<String, Object> params);
List<HuodongbaomingVO> selectListVO(Wrapper<HuodongbaomingEntity> wrapper);
HuodongbaomingVO selectVO(@Param("ew") Wrapper<HuodongbaomingEntity> wrapper);
List<HuodongbaomingView> selectListView(Wrapper<HuodongbaomingEntity> wrapper);
HuodongbaomingView selectView(@Param("ew") Wrapper<HuodongbaomingEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<HuodongbaomingEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<HuodongbaomingVO>
*/
List<HuodongbaomingVO> selectListVO(Wrapper<HuodongbaomingEntity> wrapper);
}
/**
*
*
* @param wrapper
* @return HuodongbaomingVO
*/
HuodongbaomingVO selectVO(@Param("ew") Wrapper<HuodongbaomingEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<HuodongbaomingView>
*/
List<HuodongbaomingView> selectListView(Wrapper<HuodongbaomingEntity> wrapper);
/**
*
*
* @param wrapper
* @return HuodongbaomingView
*/
HuodongbaomingView selectView(@Param("ew") Wrapper<HuodongbaomingEntity> wrapper);
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params, Wrapper<HuodongbaomingEntity> wrapper);
}

@ -10,28 +10,65 @@ import com.entity.vo.HuodongleixingVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.HuodongleixingView;
/**
*
*
* @author
* @email
* @author
* @email
* @date 2022-05-06 08:33:49
*/
//继承 IService<HuodongleixingEntity>HuodongleixingService 继承了 IService<HuodongleixingEntity> 接口,提供了基本的 CRUD 操作功能。
//分页查询queryPage 方法用于分页查询活动类型,参数 params 包含分页信息和其他过滤条件。
//查询视图列表selectListVO 和 selectListView 方法分别用于查询活动类型视图列表,参数 wrapper 是一个条件包装器,用于动态查询条件。
//查询单个视图selectVO 和 selectView 方法分别用于查询单个活动类型视图,参数 wrapper 是一个条件包装器,用于动态查询条件。
//带条件的分页查询queryPage 方法扩展了带条件的分页查询功能,参数 wrapper 用于动态构建查询条件。
public interface HuodongleixingService extends IService<HuodongleixingEntity> {
/**
*
*
* @param params
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params);
PageUtils queryPage(Map<String, Object> params);
List<HuodongleixingVO> selectListVO(Wrapper<HuodongleixingEntity> wrapper);
HuodongleixingVO selectVO(@Param("ew") Wrapper<HuodongleixingEntity> wrapper);
List<HuodongleixingView> selectListView(Wrapper<HuodongleixingEntity> wrapper);
HuodongleixingView selectView(@Param("ew") Wrapper<HuodongleixingEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<HuodongleixingEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<HuodongleixingVO>
*/
List<HuodongleixingVO> selectListVO(Wrapper<HuodongleixingEntity> wrapper);
}
/**
*
*
* @param wrapper
* @return HuodongleixingVO
*/
HuodongleixingVO selectVO(@Param("ew") Wrapper<HuodongleixingEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<HuodongleixingView>
*/
List<HuodongleixingView> selectListView(Wrapper<HuodongleixingEntity> wrapper);
/**
*
*
* @param wrapper
* @return HuodongleixingView
*/
HuodongleixingView selectView(@Param("ew") Wrapper<HuodongleixingEntity> wrapper);
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params, Wrapper<HuodongleixingEntity> wrapper);
}

@ -10,28 +10,65 @@ import com.entity.vo.HuodongtongzhiVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.HuodongtongzhiView;
/**
*
*
* @author
* @email
* @author
* @email
* @date 2022-05-06 08:33:49
*/
//继承 IService<HuodongtongzhiEntity>HuodongtongzhiService 继承了 IService<HuodongtongzhiEntity> 接口,提供了基本的 CRUD 操作功能。
//分页查询queryPage 方法用于分页查询活动通知,参数 params 包含分页信息和其他过滤条件。
//查询视图列表selectListVO 和 selectListView 方法分别用于查询活动通知视图列表,参数 wrapper 是一个条件包装器,用于动态查询条件。
//查询单个视图selectVO 和 selectView 方法分别用于查询单个活动通知视图,参数 wrapper 是一个条件包装器,用于动态查询条件。
//带条件的分页查询queryPage 方法扩展了带条件的分页查询功能,参数 wrapper 用于动态构建查询条件。
public interface HuodongtongzhiService extends IService<HuodongtongzhiEntity> {
/**
*
*
* @param params
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params);
PageUtils queryPage(Map<String, Object> params);
List<HuodongtongzhiVO> selectListVO(Wrapper<HuodongtongzhiEntity> wrapper);
HuodongtongzhiVO selectVO(@Param("ew") Wrapper<HuodongtongzhiEntity> wrapper);
List<HuodongtongzhiView> selectListView(Wrapper<HuodongtongzhiEntity> wrapper);
HuodongtongzhiView selectView(@Param("ew") Wrapper<HuodongtongzhiEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<HuodongtongzhiEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<HuodongtongzhiVO>
*/
List<HuodongtongzhiVO> selectListVO(Wrapper<HuodongtongzhiEntity> wrapper);
}
/**
*
*
* @param wrapper
* @return HuodongtongzhiVO
*/
HuodongtongzhiVO selectVO(@Param("ew") Wrapper<HuodongtongzhiEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<HuodongtongzhiView>
*/
List<HuodongtongzhiView> selectListView(Wrapper<HuodongtongzhiEntity> wrapper);
/**
*
*
* @param wrapper
* @return HuodongtongzhiView
*/
HuodongtongzhiView selectView(@Param("ew") Wrapper<HuodongtongzhiEntity> wrapper);
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params, Wrapper<HuodongtongzhiEntity> wrapper);
}

@ -10,28 +10,65 @@ import com.entity.vo.HuodongxindeVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.HuodongxindeView;
/**
*
*
* @author
* @email
* @author
* @email
* @date 2022-05-06 08:33:49
*/
//继承 IService<HuodongxindeEntity>HuodongxindeService 继承了 IService<HuodongxindeEntity> 接口,提供了基本的 CRUD 操作功能。
//分页查询queryPage 方法用于分页查询活动心得,参数 params 包含分页信息和其他过滤条件。
//查询视图列表selectListVO 和 selectListView 方法分别用于查询活动心得视图列表,参数 wrapper 是一个条件包装器,用于动态查询条件。
//查询单个视图selectVO 和 selectView 方法分别用于查询单个活动心得视图,参数 wrapper 是一个条件包装器,用于动态查询条件。
//带条件的分页查询queryPage 方法扩展了带条件的分页查询功能,参数 wrapper 用于动态构建查询条件。
public interface HuodongxindeService extends IService<HuodongxindeEntity> {
/**
*
*
* @param params
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params);
PageUtils queryPage(Map<String, Object> params);
List<HuodongxindeVO> selectListVO(Wrapper<HuodongxindeEntity> wrapper);
HuodongxindeVO selectVO(@Param("ew") Wrapper<HuodongxindeEntity> wrapper);
List<HuodongxindeView> selectListView(Wrapper<HuodongxindeEntity> wrapper);
HuodongxindeView selectView(@Param("ew") Wrapper<HuodongxindeEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<HuodongxindeEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<HuodongxindeVO>
*/
List<HuodongxindeVO> selectListVO(Wrapper<HuodongxindeEntity> wrapper);
}
/**
*
*
* @param wrapper
* @return HuodongxindeVO
*/
HuodongxindeVO selectVO(@Param("ew") Wrapper<HuodongxindeEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<HuodongxindeView>
*/
List<HuodongxindeView> selectListView(Wrapper<HuodongxindeEntity> wrapper);
/**
*
*
* @param wrapper
* @return HuodongxindeView
*/
HuodongxindeView selectView(@Param("ew") Wrapper<HuodongxindeEntity> wrapper);
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params, Wrapper<HuodongxindeEntity> wrapper);
}

@ -10,28 +10,65 @@ import com.entity.vo.HuodongxinxiVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.HuodongxinxiView;
/**
*
*
* @author
* @email
* @author
* @email
* @date 2022-05-06 08:33:49
*/
//继承 IService<HuodongxinxiEntity>HuodongxinxiService 继承了 IService<HuodongxinxiEntity> 接口,提供了基本的 CRUD 操作功能。
//分页查询queryPage 方法用于分页查询活动信息,参数 params 包含分页信息和其他过滤条件。
//查询视图列表selectListVO 和 selectListView 方法分别用于查询活动信息视图列表,参数 wrapper 是一个条件包装器,用于动态查询条件。
//查询单个视图selectVO 和 selectView 方法分别用于查询单个活动信息视图,参数 wrapper 是一个条件包装器,用于动态查询条件。
//带条件的分页查询queryPage 方法扩展了带条件的分页查询功能,参数 wrapper 用于动态构建查询条件。
public interface HuodongxinxiService extends IService<HuodongxinxiEntity> {
/**
*
*
* @param params
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params);
PageUtils queryPage(Map<String, Object> params);
List<HuodongxinxiVO> selectListVO(Wrapper<HuodongxinxiEntity> wrapper);
HuodongxinxiVO selectVO(@Param("ew") Wrapper<HuodongxinxiEntity> wrapper);
List<HuodongxinxiView> selectListView(Wrapper<HuodongxinxiEntity> wrapper);
HuodongxinxiView selectView(@Param("ew") Wrapper<HuodongxinxiEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<HuodongxinxiEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<HuodongxinxiVO>
*/
List<HuodongxinxiVO> selectListVO(Wrapper<HuodongxinxiEntity> wrapper);
}
/**
*
*
* @param wrapper
* @return HuodongxinxiVO
*/
HuodongxinxiVO selectVO(@Param("ew") Wrapper<HuodongxinxiEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<HuodongxinxiView>
*/
List<HuodongxinxiView> selectListView(Wrapper<HuodongxinxiEntity> wrapper);
/**
*
*
* @param wrapper
* @return HuodongxinxiView
*/
HuodongxinxiView selectView(@Param("ew") Wrapper<HuodongxinxiEntity> wrapper);
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params, Wrapper<HuodongxinxiEntity> wrapper);
}

@ -10,28 +10,65 @@ import com.entity.vo.MessagesVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.MessagesView;
/**
*
*
* @author
* @email
* @author
* @email
* @date 2022-05-06 08:33:49
*/
//继承 IService<MessagesEntity>MessagesService 继承了 IService<MessagesEntity> 接口,提供了基本的 CRUD 操作功能。
//分页查询queryPage 方法用于分页查询交流反馈信息,参数 params 包含分页信息和其他过滤条件。
//查询视图列表selectListVO 和 selectListView 方法分别用于查询交流反馈信息视图列表,参数 wrapper 是一个条件包装器,用于动态查询条件。
//查询单个视图selectVO 和 selectView 方法分别用于查询单个交流反馈信息视图,参数 wrapper 是一个条件包装器,用于动态查询条件。
//带条件的分页查询queryPage 方法扩展了带条件的分页查询功能,参数 wrapper 用于动态构建查询条件。
public interface MessagesService extends IService<MessagesEntity> {
/**
*
*
* @param params
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params);
PageUtils queryPage(Map<String, Object> params);
List<MessagesVO> selectListVO(Wrapper<MessagesEntity> wrapper);
MessagesVO selectVO(@Param("ew") Wrapper<MessagesEntity> wrapper);
List<MessagesView> selectListView(Wrapper<MessagesEntity> wrapper);
MessagesView selectView(@Param("ew") Wrapper<MessagesEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<MessagesEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<MessagesVO>
*/
List<MessagesVO> selectListVO(Wrapper<MessagesEntity> wrapper);
}
/**
*
*
* @param wrapper
* @return MessagesVO
*/
MessagesVO selectVO(@Param("ew") Wrapper<MessagesEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<MessagesView>
*/
List<MessagesView> selectListView(Wrapper<MessagesEntity> wrapper);
/**
*
*
* @param wrapper
* @return MessagesView
*/
MessagesView selectView(@Param("ew") Wrapper<MessagesEntity> wrapper);
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params, Wrapper<MessagesEntity> wrapper);
}

@ -10,28 +10,65 @@ import com.entity.vo.NewsVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.NewsView;
/**
*
*
* @author
* @email
* @author
* @email
* @date 2022-05-06 08:33:49
*/
//继承 IService<NewsEntity>NewsService 继承了 IService<NewsEntity> 接口,提供了基本的 CRUD 操作功能。
//分页查询queryPage 方法用于分页查询公告信息,参数 params 包含分页信息和其他过滤条件。
//查询视图列表selectListVO 和 selectListView 方法分别用于查询公告信息视图列表,参数 wrapper 是一个条件包装器,用于动态查询条件。
//查询单个视图selectVO 和 selectView 方法分别用于查询单个公告信息视图,参数 wrapper 是一个条件包装器,用于动态查询条件。
//带条件的分页查询queryPage 方法扩展了带条件的分页查询功能,参数 wrapper 用于动态构建查询条件。
public interface NewsService extends IService<NewsEntity> {
/**
*
*
* @param params
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params);
PageUtils queryPage(Map<String, Object> params);
List<NewsVO> selectListVO(Wrapper<NewsEntity> wrapper);
NewsVO selectVO(@Param("ew") Wrapper<NewsEntity> wrapper);
List<NewsView> selectListView(Wrapper<NewsEntity> wrapper);
NewsView selectView(@Param("ew") Wrapper<NewsEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<NewsEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<NewsVO>
*/
List<NewsVO> selectListVO(Wrapper<NewsEntity> wrapper);
}
/**
*
*
* @param wrapper
* @return NewsVO
*/
NewsVO selectVO(@Param("ew") Wrapper<NewsEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<NewsView>
*/
List<NewsView> selectListView(Wrapper<NewsEntity> wrapper);
/**
*
*
* @param wrapper
* @return NewsView
*/
NewsView selectView(@Param("ew") Wrapper<NewsEntity> wrapper);
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params, Wrapper<NewsEntity> wrapper);
}

@ -10,28 +10,65 @@ import com.entity.vo.StoreupVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.StoreupView;
/**
*
*
* @author
* @email
* @author
* @email
* @date 2022-05-06 08:33:49
*/
//继承 IService<StoreupEntity>StoreupService 继承了 IService<StoreupEntity> 接口,提供了基本的 CRUD 操作功能。
//分页查询queryPage 方法用于分页查询收藏表信息,参数 params 包含分页信息和其他过滤条件。
//查询视图列表selectListVO 和 selectListView 方法分别用于查询收藏表视图列表,参数 wrapper 是一个条件包装器,用于动态构建查询条件。
//查询单个视图selectVO 和 selectView 方法分别用于查询单个收藏表视图,参数 wrapper 是一个条件包装器,用于动态构建查询条件。
//带条件的分页查询queryPage 方法扩展了带条件的分页查询功能,参数 wrapper 用于动态构建查询条件。
public interface StoreupService extends IService<StoreupEntity> {
/**
*
*
* @param params
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params);
PageUtils queryPage(Map<String, Object> params);
List<StoreupVO> selectListVO(Wrapper<StoreupEntity> wrapper);
StoreupVO selectVO(@Param("ew") Wrapper<StoreupEntity> wrapper);
List<StoreupView> selectListView(Wrapper<StoreupEntity> wrapper);
StoreupView selectView(@Param("ew") Wrapper<StoreupEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<StoreupEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<StoreupVO>
*/
List<StoreupVO> selectListVO(Wrapper<StoreupEntity> wrapper);
}
/**
*
*
* @param wrapper
* @return StoreupVO
*/
StoreupVO selectVO(@Param("ew") Wrapper<StoreupEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<StoreupView>
*/
List<StoreupView> selectListView(Wrapper<StoreupEntity> wrapper);
/**
*
*
* @param wrapper
* @return StoreupView
*/
StoreupView selectView(@Param("ew") Wrapper<StoreupEntity> wrapper);
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params, Wrapper<StoreupEntity> wrapper);
}

@ -1,4 +1,3 @@
package com.service;
import java.util.List;
@ -9,18 +8,57 @@ import com.baomidou.mybatisplus.service.IService;
import com.entity.TokenEntity;
import com.utils.PageUtils;
/**
* token
*/
//继承 IService<TokenEntity>TokenService 继承了 IService<TokenEntity> 接口,提供了基本的 CRUD 操作功能。
//分页查询queryPage 方法用于分页查询 token 信息,参数 params 包含分页信息和其他过滤条件。
//查询 token 列表视图selectListView 方法用于查询 token 列表视图,参数 wrapper 是一个条件包装器,用于动态构建查询条件。
//带条件的分页查询queryPage 方法扩展了带条件的分页查询功能,参数 wrapper 用于动态构建查询条件。
//生成 tokengenerateToken 方法用于生成 token参数包括用户 ID、用户名、表名和角色。
//获取 token 实体getTokenEntity 方法用于根据 token 字符串获取对应的 token 实体对象。
public interface TokenService extends IService<TokenEntity> {
PageUtils queryPage(Map<String, Object> params);
List<TokenEntity> selectListView(Wrapper<TokenEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<TokenEntity> wrapper);
String generateToken(Long userid,String username,String tableName, String role);
TokenEntity getTokenEntity(String token);
/**
* token
*
* @param params
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params);
/**
* token
*
* @param wrapper
* @return List<TokenEntity> token
*/
List<TokenEntity> selectListView(Wrapper<TokenEntity> wrapper);
/**
* token
*
* @param params
* @param wrapper
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params, Wrapper<TokenEntity> wrapper);
/**
* token
*
* @param userid ID
* @param username
* @param tableName
* @param role
* @return String token
*/
String generateToken(Long userid, String username, String tableName, String role);
/**
* token
*
* @param token token
* @return TokenEntity token
*/
TokenEntity getTokenEntity(String token);
}

@ -1,4 +1,3 @@
package com.service;
import java.util.List;
@ -10,16 +9,63 @@ import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.entity.UserEntity;
import com.utils.PageUtils;
//功能概述:
//继承 IService<UserEntity>UserService 继承了 IService<UserEntity> 接口,提供了基本的 CRUD 操作功能。
//分页查询queryPage 方法用于分页查询用户信息,参数 params 包含分页信息和其他过滤条件。
//查询用户列表selectListView 方法用于查询所有用户列表,参数 wrapper 是一个条件包装器,用于动态构建查询条件。
//带条件的分页查询queryPage 方法扩展了带条件的分页查询功能,参数 wrapper 用于动态构建查询条件。
//方法说明:
//queryPage(Map<String, Object> params)
//
//功能:分页查询用户信息。
//参数:
//params查询参数通常包含分页信息和其他过滤条件。
//返回值:
//PageUtils分页结果封装对象。
//selectListView(Wrapper<UserEntity> wrapper)
//
//功能:查询所有用户列表。
//参数:
//wrapper条件包装器用于动态查询条件。
//返回值:
//List<UserEntity>:用户列表。
//queryPage(Map<String, Object> params, Wrapper<UserEntity> wrapper)
//
//功能:分页查询用户信息(带条件)。
//参数:
//params查询参数通常包含分页信息和其他过滤条件。
//wrapper条件包装器用于动态构建查询条件。
//返回值:
//PageUtils分页结果封装对象。
//依赖项:
//PageUtils分页结果封装对象通常用于返回分页查询的结果。
//Wrapper<UserEntity>MyBatis Plus 提供的条件包装器,用于动态构建查询条件
/**
*
*/
public interface UserService extends IService<UserEntity> {
PageUtils queryPage(Map<String, Object> params);
List<UserEntity> selectListView(Wrapper<UserEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<UserEntity> wrapper);
/**
*
*
* @param params
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params);
/**
*
*
* @param wrapper
* @return List<UserEntity>
*/
List<UserEntity> selectListView(Wrapper<UserEntity> wrapper);
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params, Wrapper<UserEntity> wrapper);
}

@ -9,29 +9,119 @@ import java.util.Map;
import com.entity.vo.ZhiyuanzheVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.ZhiyuanzheView;
//功能概述:
//继承 IService<ZhiyuanzheEntity>ZhiyuanzheService 继承了 IService<ZhiyuanzheEntity> 接口,提供了基本的 CRUD 操作功能。
//分页查询queryPage 方法用于分页查询志愿者信息,参数 params 包含分页信息和其他过滤条件。
//查询志愿者视图列表selectListVO 方法用于查询志愿者视图列表,参数 wrapper 是一个条件包装器,用于动态构建查询条件。
//查询单个志愿者视图selectVO 方法用于查询单个志愿者视图,参数 wrapper 是一个条件包装器,用于动态构建查询条件。
//查询志愿者列表视图selectListView 方法用于查询志愿者列表视图,参数 wrapper 是一个条件包装器,用于动态构建查询条件。
//查询单个志愿者视图视图对象selectView 方法用于查询单个志愿者视图(视图对象),参数 wrapper 是一个条件包装器,用于动态构建查询条件。
//带条件的分页查询queryPage 方法扩展了带条件的分页查询功能,参数 wrapper 用于动态构建查询条件。
//方法说明:
//queryPage(Map<String, Object> params)
//
//功能:分页查询志愿者信息。
//参数:
//params查询参数通常包含分页信息和其他过滤条件。
//返回值:
//PageUtils分页结果封装对象。
//selectListVO(Wrapper<ZhiyuanzheEntity> wrapper)
//
//功能:查询志愿者视图列表。
//参数:
//wrapper条件包装器用于动态查询条件。
//返回值:
//List<ZhiyuanzheVO>:志愿者视图列表。
//selectVO(@Param("ew") Wrapper<ZhiyuanzheEntity> wrapper)
//功能:查询单个志愿者视图。
//参数:
//wrapper条件包装器用于动态查询条件。
//返回值:
//ZhiyuanzheVO单个志愿者视图。
//selectListView(Wrapper<ZhiyuanzheEntity> wrapper)
//
//功能:查询志愿者列表视图。
//参数:
//wrapper条件包装器用于动态查询条件。
//返回值:
//List<ZhiyuanzheView>:志愿者列表视图。
//selectView(@Param("ew") Wrapper<ZhiyuanzheEntity> wrapper)
//
//功能:查询单个志愿者视图(视图对象)。
//参数:
//wrapper条件包装器用于动态查询条件。
//返回值:
//ZhiyuanzheView单个志愿者视图视图对象
//queryPage(Map<String, Object> params, Wrapper<ZhiyuanzheEntity> wrapper)
//
//功能:分页查询志愿者信息(带条件)。
//参数:
//params查询参数通常包含分页信息和其他过滤条件。
//wrapper条件包装器用于动态构建查询条件。
//返回值:
//PageUtils分页结果封装对象。
//依赖项:
//PageUtils分页结果封装对象通常用于返回分页查询的结果。
//Wrapper<ZhiyuanzheEntity>MyBatis Plus 提供的条件包装器,用于动态构建查询条件。
//ZhiyuanzheEntity表示志愿者的实体类。
//ZhiyuanzheVO表示志愿者的视图对象。
//ZhiyuanzheView表示志愿者的视图对象。
/**
*
*
* @author
* @email
* @author []
* @email []
* @date 2022-05-06 08:33:49
*/
public interface ZhiyuanzheService extends IService<ZhiyuanzheEntity> {
/**
*
*
* @param params
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params);
PageUtils queryPage(Map<String, Object> params);
List<ZhiyuanzheVO> selectListVO(Wrapper<ZhiyuanzheEntity> wrapper);
ZhiyuanzheVO selectVO(@Param("ew") Wrapper<ZhiyuanzheEntity> wrapper);
List<ZhiyuanzheView> selectListView(Wrapper<ZhiyuanzheEntity> wrapper);
ZhiyuanzheView selectView(@Param("ew") Wrapper<ZhiyuanzheEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<ZhiyuanzheEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<ZhiyuanzheVO>
*/
List<ZhiyuanzheVO> selectListVO(Wrapper<ZhiyuanzheEntity> wrapper);
}
/**
*
*
* @param wrapper
* @return ZhiyuanzheVO
*/
ZhiyuanzheVO selectVO(@Param("ew") Wrapper<ZhiyuanzheEntity> wrapper);
/**
*
*
* @param wrapper
* @return List<ZhiyuanzheView>
*/
List<ZhiyuanzheView> selectListView(Wrapper<ZhiyuanzheEntity> wrapper);
/**
*
*
* @param wrapper
* @return ZhiyuanzheView
*/
ZhiyuanzheView selectView(@Param("ew") Wrapper<ZhiyuanzheEntity> wrapper);
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
PageUtils queryPage(Map<String, Object> params, Wrapper<ZhiyuanzheEntity> wrapper);
}

@ -1,3 +1,4 @@
<<<<<<< HEAD
package com.service.impl; // 定义包路径,存放服务实现类
import java.util.List; // 导入 List 泛型接口,用于表示动态数组
@ -8,10 +9,23 @@ import org.springframework.stereotype.Service; // 导入 Spring 的 Service 注
import com.dao.CommonDao; // 导入 DAO 层接口,用于操作数据库
import com.service.CommonService; // 导入服务接口,定义服务层方法
=======
package com.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dao.CommonDao;
import com.service.CommonService;
>>>>>>> main
/**
*
*
*/
<<<<<<< HEAD
@Service("commonService") // 定义服务类,并通过名称 commonService 注册到 Spring 容器中
public class CommonServiceImpl implements CommonService { // 定义服务实现类
@ -20,6 +34,20 @@ public class CommonServiceImpl implements CommonService { // 定义服务实现
/**
*
=======
@Service("commonService")
public class CommonServiceImpl implements CommonService {
// 自动注入CommonDao实例用于操作数据库
@Autowired
private CommonDao commonDao;
/**
*
*
* @param params
* @return List<String>
>>>>>>> main
*/
@Override
public List<String> getOption(Map<String, Object> params) {
@ -27,7 +55,14 @@ public class CommonServiceImpl implements CommonService { // 定义服务实现
}
/**
<<<<<<< HEAD
*
=======
*
*
* @param params
* @return Map<String, Object>
>>>>>>> main
*/
@Override
public Map<String, Object> getFollowByOption(Map<String, Object> params) {
@ -35,6 +70,7 @@ public class CommonServiceImpl implements CommonService { // 定义服务实现
}
/**
<<<<<<< HEAD
*
*/
@Override
@ -44,6 +80,22 @@ public class CommonServiceImpl implements CommonService { // 定义服务实现
/**
*
=======
*
*
* @param params
*/
@Override
public void sh(Map<String, Object> params) {
commonDao.sh(params);
}
/**
*
*
* @param params
* @return int
>>>>>>> main
*/
@Override
public int remindCount(Map<String, Object> params) {
@ -51,7 +103,14 @@ public class CommonServiceImpl implements CommonService { // 定义服务实现
}
/**
<<<<<<< HEAD
*
=======
*
*
* @param params
* @return Map<String, Object>
>>>>>>> main
*/
@Override
public Map<String, Object> selectCal(Map<String, Object> params) {
@ -59,7 +118,14 @@ public class CommonServiceImpl implements CommonService { // 定义服务实现
}
/**
<<<<<<< HEAD
*
=======
*
*
* @param params
* @return List<Map<String, Object>>
>>>>>>> main
*/
@Override
public List<Map<String, Object>> selectGroup(Map<String, Object> params) {
@ -67,7 +133,14 @@ public class CommonServiceImpl implements CommonService { // 定义服务实现
}
/**
<<<<<<< HEAD
*
=======
*
*
* @param params
* @return List<Map<String, Object>>
>>>>>>> main
*/
@Override
public List<Map<String, Object>> selectValue(Map<String, Object> params) {
@ -75,7 +148,14 @@ public class CommonServiceImpl implements CommonService { // 定义服务实现
}
/**
<<<<<<< HEAD
*
=======
*
*
* @param params
* @return List<Map<String, Object>>
>>>>>>> main
*/
@Override
public List<Map<String, Object>> selectTimeStatValue(Map<String, Object> params) {

@ -1,7 +1,5 @@
package com.service.impl;
import java.util.Map;
import org.springframework.stereotype.Service;
@ -16,18 +14,28 @@ import com.service.ConfigService;
import com.utils.PageUtils;
import com.utils.Query;
/**
*
*
*/
@Service("configService")
public class ConfigServiceImpl extends ServiceImpl<ConfigDao, ConfigEntity> implements ConfigService {
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params, Wrapper<ConfigEntity> wrapper) {
// 创建分页对象
Page<ConfigEntity> page = this.selectPage(
new Query<ConfigEntity>(params).getPage(),
wrapper
);
return new PageUtils(page);
// 使用Query工具类生成分页对象并结合Wrapper进行条件查询
new Query<ConfigEntity>(params).getPage(),
wrapper // 查询条件构造器
);
// 将分页结果封装为PageUtils对象并返回
return new PageUtils(page);
}
}

@ -1,63 +1,105 @@
package com.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.utils.PageUtils;
import com.utils.Query;
import com.dao.DiscusshuodongxindeDao;
import com.entity.DiscusshuodongxindeEntity;
import com.service.DiscusshuodongxindeService;
import com.entity.vo.DiscusshuodongxindeVO;
import com.entity.view.DiscusshuodongxindeView;
import com.service.DiscusshuodongxindeService;
import com.utils.PageUtils;
import com.utils.Query;
@Service("discusshuodongxindeService")
public class DiscusshuodongxindeServiceImpl extends ServiceImpl<DiscusshuodongxindeDao, DiscusshuodongxindeEntity> implements DiscusshuodongxindeService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
Page<DiscusshuodongxindeEntity> page = this.selectPage(
new Query<DiscusshuodongxindeEntity>(params).getPage(),
new EntityWrapper<DiscusshuodongxindeEntity>()
);
return new PageUtils(page);
}
@Override
/**
* DiscusshuodongxindeEntity
*
* @param params
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params) {
// 创建分页对象
Page<DiscusshuodongxindeEntity> page = this.selectPage(
// 使用Query工具类生成分页对象并结合EntityWrapper进行条件查询
new Query<DiscusshuodongxindeEntity>(params).getPage(),
new EntityWrapper<DiscusshuodongxindeEntity>() // 条件构造器
);
// 将分页结果封装为PageUtils对象并返回
return new PageUtils(page);
}
/**
* DiscusshuodongxindeView
*
* @param params
* @param wrapper
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params, Wrapper<DiscusshuodongxindeEntity> wrapper) {
Page<DiscusshuodongxindeView> page =new Query<DiscusshuodongxindeView>(params).getPage();
page.setRecords(baseMapper.selectListView(page,wrapper));
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
@Override
// 创建分页对象
Page<DiscusshuodongxindeView> page = new Query<DiscusshuodongxindeView>(params).getPage();
// 设置分页记录调用自定义SQL查询
page.setRecords(baseMapper.selectListView(page, wrapper));
// 将分页结果封装为PageUtils对象并返回
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
/**
* DiscusshuodongxindeVO
*
* @param wrapper
* @return List<DiscusshuodongxindeVO> DiscusshuodongxindeVO
*/
@Override
public List<DiscusshuodongxindeVO> selectListVO(Wrapper<DiscusshuodongxindeEntity> wrapper) {
return baseMapper.selectListVO(wrapper);
// 调用基类的baseMapper执行查询操作
return baseMapper.selectListVO(wrapper);
}
/**
* DiscusshuodongxindeVO
*
* @param wrapper
* @return DiscusshuodongxindeVO DiscusshuodongxindeVO
*/
@Override
public DiscusshuodongxindeVO selectVO(Wrapper<DiscusshuodongxindeEntity> wrapper) {
return baseMapper.selectVO(wrapper);
// 调用基类的baseMapper执行查询操作
return baseMapper.selectVO(wrapper);
}
/**
* DiscusshuodongxindeView
*
* @param wrapper
* @return List<DiscusshuodongxindeView> DiscusshuodongxindeView
*/
@Override
public List<DiscusshuodongxindeView> selectListView(Wrapper<DiscusshuodongxindeEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
return baseMapper.selectListView(wrapper);
}
/**
* DiscusshuodongxindeView
*
* @param wrapper
* @return DiscusshuodongxindeView DiscusshuodongxindeView
*/
@Override
public DiscusshuodongxindeView selectView(Wrapper<DiscusshuodongxindeEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
return baseMapper.selectView(wrapper);
}
}

@ -1,5 +1,6 @@
package com.service.impl; // 定义包路径,存放服务实现类
<<<<<<< HEAD
import org.springframework.stereotype.Service; // 导入 Spring 的 Service 注解,用于标识服务层组件
import java.util.Map; // 导入 Map 接口,用于表示键值对集合
import java.util.List; // 导入 List 泛型接口,用于表示动态数组
@ -34,10 +35,47 @@ public class HuodongbaomingServiceImpl extends ServiceImpl<HuodongbaomingDao, Hu
new EntityWrapper<HuodongbaomingEntity>() // 构建默认条件
);
// 将分页结果包装为自定义的分页工具类
=======
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.dao.HuodongbaomingDao;
import com.entity.HuodongbaomingEntity;
import com.entity.vo.HuodongbaomingVO;
import com.entity.view.HuodongbaomingView;
import com.service.HuodongbaomingService;
import com.utils.PageUtils;
import com.utils.Query;
@Service("huodongbaomingService")
public class HuodongbaomingServiceImpl extends ServiceImpl<HuodongbaomingDao, HuodongbaomingEntity> implements HuodongbaomingService {
/**
* HuodongbaomingEntity
*
* @param params
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params) {
// 创建分页对象
Page<HuodongbaomingEntity> page = this.selectPage(
// 使用Query工具类生成分页对象并结合EntityWrapper进行条件查询
new Query<HuodongbaomingEntity>(params).getPage(),
new EntityWrapper<HuodongbaomingEntity>() // 条件构造器
);
// 将分页结果封装为PageUtils对象并返回
>>>>>>> main
return new PageUtils(page);
}
/**
<<<<<<< HEAD
*
*/
@Override
@ -47,43 +85,102 @@ public class HuodongbaomingServiceImpl extends ServiceImpl<HuodongbaomingDao, Hu
// 执行自定义查询,将结果填充到分页对象中
page.setRecords(baseMapper.selectListView(page, wrapper)); // 调用自定义 SQL 查询
// 将分页结果包装为自定义的分页工具类
=======
* HuodongbaomingView
*
* @param params
* @param wrapper
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params, Wrapper<HuodongbaomingEntity> wrapper) {
// 创建分页对象
Page<HuodongbaomingView> page = new Query<HuodongbaomingView>(params).getPage();
// 设置分页记录调用自定义SQL查询
page.setRecords(baseMapper.selectListView(page, wrapper));
// 将分页结果封装为PageUtils对象并返回
>>>>>>> main
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
/**
<<<<<<< HEAD
*
*/
@Override
public List<HuodongbaomingVO> selectListVO(Wrapper<HuodongbaomingEntity> wrapper) {
// 调用自定义 SQL 查询,返回 VO 对象列表
=======
* HuodongbaomingVO
*
* @param wrapper
* @return List<HuodongbaomingVO> HuodongbaomingVO
*/
@Override
public List<HuodongbaomingVO> selectListVO(Wrapper<HuodongbaomingEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectListVO(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public HuodongbaomingVO selectVO(Wrapper<HuodongbaomingEntity> wrapper) {
// 调用自定义 SQL 查询,返回单个 VO 对象
=======
* HuodongbaomingVO
*
* @param wrapper
* @return HuodongbaomingVO HuodongbaomingVO
*/
@Override
public HuodongbaomingVO selectVO(Wrapper<HuodongbaomingEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectVO(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public List<HuodongbaomingView> selectListView(Wrapper<HuodongbaomingEntity> wrapper) {
// 调用自定义 SQL 查询,返回 View 对象列表
=======
* HuodongbaomingView
*
* @param wrapper
* @return List<HuodongbaomingView> HuodongbaomingView
*/
@Override
public List<HuodongbaomingView> selectListView(Wrapper<HuodongbaomingEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectListView(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public HuodongbaomingView selectView(Wrapper<HuodongbaomingEntity> wrapper) {
// 调用自定义 SQL 查询,返回单个 View 对象
=======
* HuodongbaomingView
*
* @param wrapper
* @return HuodongbaomingView HuodongbaomingView
*/
@Override
public HuodongbaomingView selectView(Wrapper<HuodongbaomingEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectView(wrapper);
}
}

@ -1,5 +1,6 @@
package com.service.impl; // 定义包路径,存放服务实现类
<<<<<<< HEAD
import org.springframework.stereotype.Service; // 导入 Spring 的 Service 注解,用于标识服务层组件
import java.util.Map; // 导入 Map 接口,用于表示键值对集合
import java.util.List; // 导入 List 泛型接口,用于表示动态数组
@ -34,10 +35,47 @@ public class HuodongleixingServiceImpl extends ServiceImpl<HuodongleixingDao, Hu
new EntityWrapper<HuodongleixingEntity>() // 构建默认条件
);
// 将分页结果包装为自定义的分页工具类
=======
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.dao.HuodongleixingDao;
import com.entity.HuodongleixingEntity;
import com.entity.vo.HuodongleixingVO;
import com.entity.view.HuodongleixingView;
import com.service.HuodongleixingService;
import com.utils.PageUtils;
import com.utils.Query;
@Service("huodongleixingService")
public class HuodongleixingServiceImpl extends ServiceImpl<HuodongleixingDao, HuodongleixingEntity> implements HuodongleixingService {
/**
* HuodongleixingEntity
*
* @param params
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params) {
// 创建分页对象
Page<HuodongleixingEntity> page = this.selectPage(
// 使用Query工具类生成分页对象并结合EntityWrapper进行条件查询
new Query<HuodongleixingEntity>(params).getPage(),
new EntityWrapper<HuodongleixingEntity>() // 条件构造器
);
// 将分页结果封装为PageUtils对象并返回
>>>>>>> main
return new PageUtils(page);
}
/**
<<<<<<< HEAD
*
*/
@Override
@ -47,43 +85,102 @@ public class HuodongleixingServiceImpl extends ServiceImpl<HuodongleixingDao, Hu
// 执行自定义查询,将结果填充到分页对象中
page.setRecords(baseMapper.selectListView(page, wrapper)); // 调用自定义 SQL 查询
// 将分页结果包装为自定义的分页工具类
=======
* HuodongleixingView
*
* @param params
* @param wrapper
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params, Wrapper<HuodongleixingEntity> wrapper) {
// 创建分页对象
Page<HuodongleixingView> page = new Query<HuodongleixingView>(params).getPage();
// 设置分页记录调用自定义SQL查询
page.setRecords(baseMapper.selectListView(page, wrapper));
// 将分页结果封装为PageUtils对象并返回
>>>>>>> main
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
/**
<<<<<<< HEAD
*
*/
@Override
public List<HuodongleixingVO> selectListVO(Wrapper<HuodongleixingEntity> wrapper) {
// 调用自定义 SQL 查询,返回 VO 对象列表
=======
* HuodongleixingVO
*
* @param wrapper
* @return List<HuodongleixingVO> HuodongleixingVO
*/
@Override
public List<HuodongleixingVO> selectListVO(Wrapper<HuodongleixingEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectListVO(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public HuodongleixingVO selectVO(Wrapper<HuodongleixingEntity> wrapper) {
// 调用自定义 SQL 查询,返回单个 VO 对象
=======
* HuodongleixingVO
*
* @param wrapper
* @return HuodongleixingVO HuodongleixingVO
*/
@Override
public HuodongleixingVO selectVO(Wrapper<HuodongleixingEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectVO(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public List<HuodongleixingView> selectListView(Wrapper<HuodongleixingEntity> wrapper) {
// 调用自定义 SQL 查询,返回 View 对象列表
=======
* HuodongleixingView
*
* @param wrapper
* @return List<HuodongleixingView> HuodongleixingView
*/
@Override
public List<HuodongleixingView> selectListView(Wrapper<HuodongleixingEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectListView(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public HuodongleixingView selectView(Wrapper<HuodongleixingEntity> wrapper) {
// 调用自定义 SQL 查询,返回单个 View 对象
=======
* HuodongleixingView
*
* @param wrapper
* @return HuodongleixingView HuodongleixingView
*/
@Override
public HuodongleixingView selectView(Wrapper<HuodongleixingEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectView(wrapper);
}
}

@ -1,5 +1,6 @@
package com.service.impl; // 定义包路径,存放服务实现类
<<<<<<< HEAD
import org.springframework.stereotype.Service; // 导入 Spring 的 Service 注解,用于标识服务层组件
import java.util.Map; // 导入 Map 接口,用于表示键值对集合
import java.util.List; // 导入 List 泛型接口,用于表示动态数组
@ -34,10 +35,47 @@ public class HuodongtongzhiServiceImpl extends ServiceImpl<HuodongtongzhiDao, Hu
new EntityWrapper<HuodongtongzhiEntity>() // 构建默认条件
);
// 将分页结果包装为自定义的分页工具类
=======
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.dao.HuodongtongzhiDao;
import com.entity.HuodongtongzhiEntity;
import com.entity.vo.HuodongtongzhiVO;
import com.entity.view.HuodongtongzhiView;
import com.service.HuodongtongzhiService;
import com.utils.PageUtils;
import com.utils.Query;
@Service("huodongtongzhiService")
public class HuodongtongzhiServiceImpl extends ServiceImpl<HuodongtongzhiDao, HuodongtongzhiEntity> implements HuodongtongzhiService {
/**
* HuodongtongzhiEntity
*
* @param params
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params) {
// 创建分页对象
Page<HuodongtongzhiEntity> page = this.selectPage(
// 使用Query工具类生成分页对象并结合EntityWrapper进行条件查询
new Query<HuodongtongzhiEntity>(params).getPage(),
new EntityWrapper<HuodongtongzhiEntity>() // 条件构造器
);
// 将分页结果封装为PageUtils对象并返回
>>>>>>> main
return new PageUtils(page);
}
/**
<<<<<<< HEAD
*
*/
@Override
@ -47,43 +85,102 @@ public class HuodongtongzhiServiceImpl extends ServiceImpl<HuodongtongzhiDao, Hu
// 执行自定义查询,将结果填充到分页对象中
page.setRecords(baseMapper.selectListView(page, wrapper)); // 调用自定义 SQL 查询
// 将分页结果包装为自定义的分页工具类
=======
* HuodongtongzhiView
*
* @param params
* @param wrapper
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params, Wrapper<HuodongtongzhiEntity> wrapper) {
// 创建分页对象
Page<HuodongtongzhiView> page = new Query<HuodongtongzhiView>(params).getPage();
// 设置分页记录调用自定义SQL查询
page.setRecords(baseMapper.selectListView(page, wrapper));
// 将分页结果封装为PageUtils对象并返回
>>>>>>> main
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
/**
<<<<<<< HEAD
*
*/
@Override
public List<HuodongtongzhiVO> selectListVO(Wrapper<HuodongtongzhiEntity> wrapper) {
// 调用自定义 SQL 查询,返回 VO 对象列表
=======
* HuodongtongzhiVO
*
* @param wrapper
* @return List<HuodongtongzhiVO> HuodongtongzhiVO
*/
@Override
public List<HuodongtongzhiVO> selectListVO(Wrapper<HuodongtongzhiEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectListVO(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public HuodongtongzhiVO selectVO(Wrapper<HuodongtongzhiEntity> wrapper) {
// 调用自定义 SQL 查询,返回单个 VO 对象
=======
* HuodongtongzhiVO
*
* @param wrapper
* @return HuodongtongzhiVO HuodongtongzhiVO
*/
@Override
public HuodongtongzhiVO selectVO(Wrapper<HuodongtongzhiEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectVO(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public List<HuodongtongzhiView> selectListView(Wrapper<HuodongtongzhiEntity> wrapper) {
// 调用自定义 SQL 查询,返回 View 对象列表
=======
* HuodongtongzhiView
*
* @param wrapper
* @return List<HuodongtongzhiView> HuodongtongzhiView
*/
@Override
public List<HuodongtongzhiView> selectListView(Wrapper<HuodongtongzhiEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectListView(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public HuodongtongzhiView selectView(Wrapper<HuodongtongzhiEntity> wrapper) {
// 调用自定义 SQL 查询,返回单个 View 对象
=======
* HuodongtongzhiView
*
* @param wrapper
* @return HuodongtongzhiView HuodongtongzhiView
*/
@Override
public HuodongtongzhiView selectView(Wrapper<HuodongtongzhiEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectView(wrapper);
}
}

@ -1,5 +1,6 @@
package com.service.impl; // 定义包路径,存放服务实现类
<<<<<<< HEAD
import org.springframework.stereotype.Service; // 导入 Spring 的 Service 注解,用于标识服务层组件
import java.util.Map; // 导入 Map 接口,用于表示键值对集合
import java.util.List; // 导入 List 泛型接口,用于表示动态数组
@ -34,10 +35,47 @@ public class HuodongxindeServiceImpl extends ServiceImpl<HuodongxindeDao, Huodon
new EntityWrapper<HuodongxindeEntity>() // 构建默认条件
);
// 将分页结果包装为自定义的分页工具类
=======
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.dao.HuodongxindeDao;
import com.entity.HuodongxindeEntity;
import com.entity.vo.HuodongxindeVO;
import com.entity.view.HuodongxindeView;
import com.service.HuodongxindeService;
import com.utils.PageUtils;
import com.utils.Query;
@Service("huodongxindeService")
public class HuodongxindeServiceImpl extends ServiceImpl<HuodongxindeDao, HuodongxindeEntity> implements HuodongxindeService {
/**
* HuodongxindeEntity
*
* @param params
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params) {
// 创建分页对象
Page<HuodongxindeEntity> page = this.selectPage(
// 使用Query工具类生成分页对象并结合EntityWrapper进行条件查询
new Query<HuodongxindeEntity>(params).getPage(),
new EntityWrapper<HuodongxindeEntity>() // 条件构造器
);
// 将分页结果封装为PageUtils对象并返回
>>>>>>> main
return new PageUtils(page);
}
/**
<<<<<<< HEAD
*
*/
@Override
@ -47,43 +85,102 @@ public class HuodongxindeServiceImpl extends ServiceImpl<HuodongxindeDao, Huodon
// 执行自定义查询,将结果填充到分页对象中
page.setRecords(baseMapper.selectListView(page, wrapper)); // 调用自定义 SQL 查询
// 将分页结果包装为自定义的分页工具类
=======
* HuodongxindeView
*
* @param params
* @param wrapper
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params, Wrapper<HuodongxindeEntity> wrapper) {
// 创建分页对象
Page<HuodongxindeView> page = new Query<HuodongxindeView>(params).getPage();
// 设置分页记录调用自定义SQL查询
page.setRecords(baseMapper.selectListView(page, wrapper));
// 将分页结果封装为PageUtils对象并返回
>>>>>>> main
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
/**
<<<<<<< HEAD
*
*/
@Override
public List<HuodongxindeVO> selectListVO(Wrapper<HuodongxindeEntity> wrapper) {
// 调用自定义 SQL 查询,返回 VO 对象列表
=======
* HuodongxindeVO
*
* @param wrapper
* @return List<HuodongxindeVO> HuodongxindeVO
*/
@Override
public List<HuodongxindeVO> selectListVO(Wrapper<HuodongxindeEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectListVO(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public HuodongxindeVO selectVO(Wrapper<HuodongxindeEntity> wrapper) {
// 调用自定义 SQL 查询,返回单个 VO 对象
=======
* HuodongxindeVO
*
* @param wrapper
* @return HuodongxindeVO HuodongxindeVO
*/
@Override
public HuodongxindeVO selectVO(Wrapper<HuodongxindeEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectVO(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public List<HuodongxindeView> selectListView(Wrapper<HuodongxindeEntity> wrapper) {
// 调用自定义 SQL 查询,返回 View 对象列表
=======
* HuodongxindeView
*
* @param wrapper
* @return List<HuodongxindeView> HuodongxindeView
*/
@Override
public List<HuodongxindeView> selectListView(Wrapper<HuodongxindeEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectListView(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public HuodongxindeView selectView(Wrapper<HuodongxindeEntity> wrapper) {
// 调用自定义 SQL 查询,返回单个 View 对象
=======
* HuodongxindeView
*
* @param wrapper
* @return HuodongxindeView HuodongxindeView
*/
@Override
public HuodongxindeView selectView(Wrapper<HuodongxindeEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectView(wrapper);
}
}

@ -1,5 +1,6 @@
package com.service.impl; // 定义包路径,存放服务实现类
<<<<<<< HEAD
import org.springframework.stereotype.Service; // 导入 Spring 的 Service 注解,用于标识服务层组件
import java.util.Map; // 导入 Map 接口,用于表示键值对集合
import java.util.List; // 导入 List 泛型接口,用于表示动态数组
@ -34,10 +35,47 @@ public class HuodongxinxiServiceImpl extends ServiceImpl<HuodongxinxiDao, Huodon
new EntityWrapper<HuodongxinxiEntity>() // 构建默认条件
);
// 将分页结果包装为自定义的分页工具类
=======
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.dao.HuodongxinxiDao;
import com.entity.HuodongxinxiEntity;
import com.entity.vo.HuodongxinxiVO;
import com.entity.view.HuodongxinxiView;
import com.service.HuodongxinxiService;
import com.utils.PageUtils;
import com.utils.Query;
@Service("huodongxinxiService")
public class HuodongxinxiServiceImpl extends ServiceImpl<HuodongxinxiDao, HuodongxinxiEntity> implements HuodongxinxiService {
/**
* HuodongxinxiEntity
*
* @param params
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params) {
// 创建分页对象
Page<HuodongxinxiEntity> page = this.selectPage(
// 使用Query工具类生成分页对象并结合EntityWrapper进行条件查询
new Query<HuodongxinxiEntity>(params).getPage(),
new EntityWrapper<HuodongxinxiEntity>() // 条件构造器
);
// 将分页结果封装为PageUtils对象并返回
>>>>>>> main
return new PageUtils(page);
}
/**
<<<<<<< HEAD
*
*/
@Override
@ -47,43 +85,102 @@ public class HuodongxinxiServiceImpl extends ServiceImpl<HuodongxinxiDao, Huodon
// 执行自定义查询,将结果填充到分页对象中
page.setRecords(baseMapper.selectListView(page, wrapper)); // 调用自定义 SQL 查询
// 将分页结果包装为自定义的分页工具类
=======
* HuodongxinxiView
*
* @param params
* @param wrapper
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params, Wrapper<HuodongxinxiEntity> wrapper) {
// 创建分页对象
Page<HuodongxinxiView> page = new Query<HuodongxinxiView>(params).getPage();
// 设置分页记录调用自定义SQL查询
page.setRecords(baseMapper.selectListView(page, wrapper));
// 将分页结果封装为PageUtils对象并返回
>>>>>>> main
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
/**
<<<<<<< HEAD
*
*/
@Override
public List<HuodongxinxiVO> selectListVO(Wrapper<HuodongxinxiEntity> wrapper) {
// 调用自定义 SQL 查询,返回 VO 对象列表
=======
* HuodongxinxiVO
*
* @param wrapper
* @return List<HuodongxinxiVO> HuodongxinxiVO
*/
@Override
public List<HuodongxinxiVO> selectListVO(Wrapper<HuodongxinxiEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectListVO(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public HuodongxinxiVO selectVO(Wrapper<HuodongxinxiEntity> wrapper) {
// 调用自定义 SQL 查询,返回单个 VO 对象
=======
* HuodongxinxiVO
*
* @param wrapper
* @return HuodongxinxiVO HuodongxinxiVO
*/
@Override
public HuodongxinxiVO selectVO(Wrapper<HuodongxinxiEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectVO(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public List<HuodongxinxiView> selectListView(Wrapper<HuodongxinxiEntity> wrapper) {
// 调用自定义 SQL 查询,返回 View 对象列表
=======
* HuodongxinxiView
*
* @param wrapper
* @return List<HuodongxinxiView> HuodongxinxiView
*/
@Override
public List<HuodongxinxiView> selectListView(Wrapper<HuodongxinxiEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectListView(wrapper);
}
/**
<<<<<<< HEAD
*
*/
@Override
public HuodongxinxiView selectView(Wrapper<HuodongxinxiEntity> wrapper) {
// 调用自定义 SQL 查询,返回单个 View 对象
=======
* HuodongxinxiView
*
* @param wrapper
* @return HuodongxinxiView HuodongxinxiView
*/
@Override
public HuodongxinxiView selectView(Wrapper<HuodongxinxiEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
>>>>>>> main
return baseMapper.selectView(wrapper);
}
}

@ -1,63 +1,105 @@
package com.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.utils.PageUtils;
import com.utils.Query;
import com.dao.MessagesDao;
import com.entity.MessagesEntity;
import com.service.MessagesService;
import com.entity.vo.MessagesVO;
import com.entity.view.MessagesView;
import com.service.MessagesService;
import com.utils.PageUtils;
import com.utils.Query;
@Service("messagesService")
public class MessagesServiceImpl extends ServiceImpl<MessagesDao, MessagesEntity> implements MessagesService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
Page<MessagesEntity> page = this.selectPage(
new Query<MessagesEntity>(params).getPage(),
new EntityWrapper<MessagesEntity>()
);
return new PageUtils(page);
}
@Override
/**
* MessagesEntity
*
* @param params
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params) {
// 创建分页对象
Page<MessagesEntity> page = this.selectPage(
// 使用Query工具类生成分页对象并结合EntityWrapper进行条件查询
new Query<MessagesEntity>(params).getPage(),
new EntityWrapper<MessagesEntity>() // 条件构造器
);
// 将分页结果封装为PageUtils对象并返回
return new PageUtils(page);
}
/**
* MessagesView
*
* @param params
* @param wrapper
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params, Wrapper<MessagesEntity> wrapper) {
Page<MessagesView> page =new Query<MessagesView>(params).getPage();
page.setRecords(baseMapper.selectListView(page,wrapper));
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
@Override
// 创建分页对象
Page<MessagesView> page = new Query<MessagesView>(params).getPage();
// 设置分页记录调用自定义SQL查询
page.setRecords(baseMapper.selectListView(page, wrapper));
// 将分页结果封装为PageUtils对象并返回
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
/**
* MessagesVO
*
* @param wrapper
* @return List<MessagesVO> MessagesVO
*/
@Override
public List<MessagesVO> selectListVO(Wrapper<MessagesEntity> wrapper) {
return baseMapper.selectListVO(wrapper);
// 调用基类的baseMapper执行查询操作
return baseMapper.selectListVO(wrapper);
}
/**
* MessagesVO
*
* @param wrapper
* @return MessagesVO MessagesVO
*/
@Override
public MessagesVO selectVO(Wrapper<MessagesEntity> wrapper) {
return baseMapper.selectVO(wrapper);
// 调用基类的baseMapper执行查询操作
return baseMapper.selectVO(wrapper);
}
/**
* MessagesView
*
* @param wrapper
* @return List<MessagesView> MessagesView
*/
@Override
public List<MessagesView> selectListView(Wrapper<MessagesEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
return baseMapper.selectListView(wrapper);
}
/**
* MessagesView
*
* @param wrapper
* @return MessagesView MessagesView
*/
@Override
public MessagesView selectView(Wrapper<MessagesEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
return baseMapper.selectView(wrapper);
}
}

@ -1,63 +1,105 @@
package com.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.utils.PageUtils;
import com.utils.Query;
import com.dao.NewsDao;
import com.entity.NewsEntity;
import com.service.NewsService;
import com.entity.vo.NewsVO;
import com.entity.view.NewsView;
import com.service.NewsService;
import com.utils.PageUtils;
import com.utils.Query;
@Service("newsService")
public class NewsServiceImpl extends ServiceImpl<NewsDao, NewsEntity> implements NewsService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
Page<NewsEntity> page = this.selectPage(
new Query<NewsEntity>(params).getPage(),
new EntityWrapper<NewsEntity>()
);
return new PageUtils(page);
}
@Override
/**
* NewsEntity
*
* @param params
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params) {
// 创建分页对象
Page<NewsEntity> page = this.selectPage(
// 使用Query工具类生成分页对象并结合EntityWrapper进行条件查询
new Query<NewsEntity>(params).getPage(),
new EntityWrapper<NewsEntity>() // 条件构造器
);
// 将分页结果封装为PageUtils对象并返回
return new PageUtils(page);
}
/**
* NewsView
*
* @param params
* @param wrapper
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params, Wrapper<NewsEntity> wrapper) {
Page<NewsView> page =new Query<NewsView>(params).getPage();
page.setRecords(baseMapper.selectListView(page,wrapper));
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
@Override
// 创建分页对象
Page<NewsView> page = new Query<NewsView>(params).getPage();
// 设置分页记录调用自定义SQL查询
page.setRecords(baseMapper.selectListView(page, wrapper));
// 将分页结果封装为PageUtils对象并返回
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
/**
* NewsVO
*
* @param wrapper
* @return List<NewsVO> NewsVO
*/
@Override
public List<NewsVO> selectListVO(Wrapper<NewsEntity> wrapper) {
return baseMapper.selectListVO(wrapper);
// 调用基类的baseMapper执行查询操作
return baseMapper.selectListVO(wrapper);
}
/**
* NewsVO
*
* @param wrapper
* @return NewsVO NewsVO
*/
@Override
public NewsVO selectVO(Wrapper<NewsEntity> wrapper) {
return baseMapper.selectVO(wrapper);
// 调用基类的baseMapper执行查询操作
return baseMapper.selectVO(wrapper);
}
/**
* NewsView
*
* @param wrapper
* @return List<NewsView> NewsView
*/
@Override
public List<NewsView> selectListView(Wrapper<NewsEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
return baseMapper.selectListView(wrapper);
}
/**
* NewsView
*
* @param wrapper
* @return NewsView NewsView
*/
@Override
public NewsView selectView(Wrapper<NewsEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
return baseMapper.selectView(wrapper);
}
}

@ -1,63 +1,105 @@
package com.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.utils.PageUtils;
import com.utils.Query;
import com.dao.StoreupDao;
import com.entity.StoreupEntity;
import com.service.StoreupService;
import com.entity.vo.StoreupVO;
import com.entity.view.StoreupView;
import com.service.StoreupService;
import com.utils.PageUtils;
import com.utils.Query;
@Service("storeupService")
public class StoreupServiceImpl extends ServiceImpl<StoreupDao, StoreupEntity> implements StoreupService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
Page<StoreupEntity> page = this.selectPage(
new Query<StoreupEntity>(params).getPage(),
new EntityWrapper<StoreupEntity>()
);
return new PageUtils(page);
}
@Override
/**
* StoreupEntity
*
* @param params
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params) {
// 创建分页对象
Page<StoreupEntity> page = this.selectPage(
// 使用Query工具类生成分页对象并结合EntityWrapper进行条件查询
new Query<StoreupEntity>(params).getPage(),
new EntityWrapper<StoreupEntity>() // 条件构造器
);
// 将分页结果封装为PageUtils对象并返回
return new PageUtils(page);
}
/**
* StoreupView
*
* @param params
* @param wrapper
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params, Wrapper<StoreupEntity> wrapper) {
Page<StoreupView> page =new Query<StoreupView>(params).getPage();
page.setRecords(baseMapper.selectListView(page,wrapper));
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
@Override
// 创建分页对象
Page<StoreupView> page = new Query<StoreupView>(params).getPage();
// 设置分页记录调用自定义SQL查询
page.setRecords(baseMapper.selectListView(page, wrapper));
// 将分页结果封装为PageUtils对象并返回
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
/**
* StoreupVO
*
* @param wrapper
* @return List<StoreupVO> StoreupVO
*/
@Override
public List<StoreupVO> selectListVO(Wrapper<StoreupEntity> wrapper) {
return baseMapper.selectListVO(wrapper);
// 调用基类的baseMapper执行查询操作
return baseMapper.selectListVO(wrapper);
}
/**
* StoreupVO
*
* @param wrapper
* @return StoreupVO StoreupVO
*/
@Override
public StoreupVO selectVO(Wrapper<StoreupEntity> wrapper) {
return baseMapper.selectVO(wrapper);
// 调用基类的baseMapper执行查询操作
return baseMapper.selectVO(wrapper);
}
/**
* StoreupView
*
* @param wrapper
* @return List<StoreupView> StoreupView
*/
@Override
public List<StoreupView> selectListView(Wrapper<StoreupEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
return baseMapper.selectListView(wrapper);
}
/**
* StoreupView
*
* @param wrapper
* @return StoreupView StoreupView
*/
@Override
public StoreupView selectView(Wrapper<StoreupEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
return baseMapper.selectView(wrapper);
}
}

@ -1,7 +1,5 @@
package com.service.impl;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
@ -15,65 +13,114 @@ import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.dao.TokenDao;
import com.entity.TokenEntity;
import com.entity.TokenEntity;
import com.service.TokenService;
import com.utils.CommonUtil;
import com.utils.PageUtils;
import com.utils.Query;
/**
* token
* Token
*/
@Service("tokenService")
public class TokenServiceImpl extends ServiceImpl<TokenDao, TokenEntity> implements TokenService {
/**
* Token
*
* @param params
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params) {
// 创建分页对象
Page<TokenEntity> page = this.selectPage(
new Query<TokenEntity>(params).getPage(),
new EntityWrapper<TokenEntity>()
);
return new PageUtils(page);
// 使用Query工具类生成分页对象并结合EntityWrapper进行条件查询
new Query<TokenEntity>(params).getPage(),
new EntityWrapper<TokenEntity>() // 条件构造器
);
// 将分页结果封装为PageUtils对象并返回
return new PageUtils(page);
}
/**
* Token
*
* @param wrapper
* @return List<TokenEntity> Token
*/
@Override
public List<TokenEntity> selectListView(Wrapper<TokenEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
return baseMapper.selectListView(wrapper);
}
/**
* Token
*
* @param params
* @param wrapper
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params,
Wrapper<TokenEntity> wrapper) {
Page<TokenEntity> page =new Query<TokenEntity>(params).getPage();
page.setRecords(baseMapper.selectListView(page,wrapper));
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
public PageUtils queryPage(Map<String, Object> params, Wrapper<TokenEntity> wrapper) {
// 创建分页对象
Page<TokenEntity> page = new Query<TokenEntity>(params).getPage();
// 设置分页记录调用自定义SQL查询
page.setRecords(baseMapper.selectListView(page, wrapper));
// 将分页结果封装为PageUtils对象并返回
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
/**
* Token
*
* @param userid ID
* @param username
* @param tableName
* @param role
* @return String Token
*/
@Override
public String generateToken(Long userid,String username, String tableName, String role) {
public String generateToken(Long userid, String username, String tableName, String role) {
// 查询是否存在已有Token记录
TokenEntity tokenEntity = this.selectOne(new EntityWrapper<TokenEntity>().eq("userid", userid).eq("role", role));
// 生成32位随机字符串作为Token
String token = CommonUtil.getRandomString(32);
Calendar cal = Calendar.getInstance();
cal.setTime(new Date());
cal.add(Calendar.HOUR_OF_DAY, 1);
if(tokenEntity!=null) {
// 获取当前时间并设置1小时后的过期时间
Calendar cal = Calendar.getInstance();
cal.setTime(new Date());
cal.add(Calendar.HOUR_OF_DAY, 1);
if (tokenEntity != null) {
// 如果已存在Token记录则更新Token和过期时间
tokenEntity.setToken(token);
tokenEntity.setExpiratedtime(cal.getTime());
this.updateById(tokenEntity);
this.updateById(tokenEntity); // 更新数据库中Token记录
} else {
this.insert(new TokenEntity(userid,username, tableName, role, token, cal.getTime()));
// 如果不存在Token记录则插入新记录
this.insert(new TokenEntity(userid, username, tableName, role, token, cal.getTime()));
}
// 返回生成的Token
return token;
}
/**
* TokenTokenEntity
*
* @param token Token
* @return TokenEntity Token
*/
@Override
public TokenEntity getTokenEntity(String token) {
// 查询Token记录
TokenEntity tokenEntity = this.selectOne(new EntityWrapper<TokenEntity>().eq("token", token));
if(tokenEntity == null || tokenEntity.getExpiratedtime().getTime()<new Date().getTime()) {
// 判断Token是否为空或已过期
if (tokenEntity == null || tokenEntity.getExpiratedtime().getTime() < new Date().getTime()) {
// 如果Token为空或已过期返回null
return null;
}
// 返回有效的Token实体对象
return tokenEntity;
}
}

@ -1,7 +1,5 @@
package com.service.impl;
import java.util.List;
import java.util.Map;
@ -17,33 +15,57 @@ import com.service.UserService;
import com.utils.PageUtils;
import com.utils.Query;
/**
*
*
*/
@Service("userService")
public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements UserService {
/**
*
*
* @param params
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params) {
// 创建分页对象
Page<UserEntity> page = this.selectPage(
new Query<UserEntity>(params).getPage(),
new EntityWrapper<UserEntity>()
);
return new PageUtils(page);
// 使用Query工具类生成分页对象并结合EntityWrapper进行条件查询
new Query<UserEntity>(params).getPage(),
new EntityWrapper<UserEntity>() // 条件构造器
);
// 将分页结果封装为PageUtils对象并返回
return new PageUtils(page);
}
/**
*
*
* @param wrapper
* @return List<UserEntity>
*/
@Override
public List<UserEntity> selectListView(Wrapper<UserEntity> wrapper) {
// 调用基类的baseMapper执行查询操作
return baseMapper.selectListView(wrapper);
}
/**
*
*
* @param params
* @param wrapper
* @return PageUtils
*/
@Override
public PageUtils queryPage(Map<String, Object> params,
Wrapper<UserEntity> wrapper) {
Page<UserEntity> page =new Query<UserEntity>(params).getPage();
page.setRecords(baseMapper.selectListView(page,wrapper));
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
public PageUtils queryPage(Map<String, Object> params, Wrapper<UserEntity> wrapper) {
// 创建分页对象
Page<UserEntity> page = new Query<UserEntity>(params).getPage();
// 设置分页记录调用自定义SQL查询
page.setRecords(baseMapper.selectListView(page, wrapper));
// 将分页结果封装为PageUtils对象并返回
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
}

@ -19,7 +19,7 @@ import com.entity.vo.ZhiyuanzheVO;
import com.entity.view.ZhiyuanzheView;
@Service("zhiyuanzheService")
public class ZhiyuanzheServiceImpl extends ServiceImpl<ZhiyuanzheDao, ZhiyuanzheEntity> implements ZhiyuanzheService {
public class deZhiyuanzheServiceImpl extends ServiceImpl<ZhiyuanzheDao, ZhiyuanzheEntity> implements ZhiyuanzheService {
@Override

@ -10,46 +10,48 @@ import java.util.Map;
import org.json.JSONObject;
/**
* :
*/
* : API访Token
*/
public class BaiduUtil {
/**
*
* @param lon
* @param lat
* @param coordtype
* @return
*
*
* @param key APIAK
* @param lng
* @param lat
* @return Map<String, String> Map
*/
public static Map<String, String> getCityByLonLat(String key, String lng, String lat) {
String location = lat + "," + lng;
String location = lat + "," + lng; // 拼接经纬度字符串
try {
//拼装url
String url = "http://api.map.baidu.com/reverse_geocoding/v3/?ak="+key+"&output=json&coordtype=wgs84ll&location="+location;
String result = HttpClientUtils.doGet(url);
JSONObject o = new JSONObject(result);
// 拼装请求URL
String url = "http://api.map.baidu.com/reverse_geocoding/v3/?ak=" + key + "&output=json&coordtype=wgs84ll&location=" + location;
String result = HttpClientUtils.doGet(url); // 调用HttpClient工具类发送HTTP GET请求
JSONObject o = new JSONObject(result); // 将JSON字符串解析为JSONObject对象
// 提取所需信息并存入Map中
Map<String, String> area = new HashMap<>();
area.put("province", o.getJSONObject("result").getJSONObject("addressComponent").getString("province"));
area.put("city", o.getJSONObject("result").getJSONObject("addressComponent").getString("city"));
area.put("district", o.getJSONObject("result").getJSONObject("addressComponent").getString("district"));
area.put("street", o.getJSONObject("result").getJSONObject("addressComponent").getString("street"));
area.put("province", o.getJSONObject("result").getJSONObject("addressComponent").getString("province")); // 省份
area.put("city", o.getJSONObject("result").getJSONObject("addressComponent").getString("city")); // 城市
area.put("district", o.getJSONObject("result").getJSONObject("addressComponent").getString("district")); // 区县
area.put("street", o.getJSONObject("result").getJSONObject("addressComponent").getString("street")); // 街道
return area;
}catch (Exception e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace(); // 打印异常堆栈信息
}
return null;
return null; // 如果发生异常返回null
}
/**
* API访token
* token.
* @param ak - API Key
* @param sk - Securet Key
* @return assess_token
*/
* API访token
* token.
*
* @param ak API Key
* @param sk Securet Key
* @return String access_token
*/
public static String getAuth(String ak, String sk) {
// 获取token地址
String authHost = "https://aip.baidubce.com/oauth/2.0/token?";
@ -60,37 +62,39 @@ public class BaiduUtil {
+ "&client_id=" + ak
// 3. 官网获取的 Secret Key
+ "&client_secret=" + sk;
try {
URL realUrl = new URL(getAccessTokenUrl);
// 打开和URL之间的连接
HttpURLConnection connection = (HttpURLConnection) realUrl.openConnection();
connection.setRequestMethod("GET");
connection.connect();
URL realUrl = new URL(getAccessTokenUrl); // 创建URL对象
HttpURLConnection connection = (HttpURLConnection) realUrl.openConnection(); // 打开连接
connection.setRequestMethod("GET"); // 设置请求方法为GET
connection.connect(); // 建立连接
// 获取所有响应头字段
Map<String, List<String>> map = connection.getHeaderFields();
// 遍历所有的响应头字段
for (String key : map.keySet()) {
System.err.println(key + "--->" + map.get(key));
System.err.println(key + "--->" + map.get(key)); // 打印响应头字段
}
// 定义 BufferedReader输入流来读取URL的响应
BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String result = "";
String result = ""; // 初始化结果字符串
String line;
while ((line = in.readLine()) != null) {
result += line;
while ((line = in.readLine()) != null) { // 逐行读取响应内容
result += line; // 将每行内容累加到结果字符串中
}
/**
*
*/
System.err.println("result:" + result);
org.json.JSONObject jsonObject = new org.json.JSONObject(result);
String access_token = jsonObject.getString("access_token");
return access_token;
System.err.println("result:" + result); // 打印返回结果
org.json.JSONObject jsonObject = new org.json.JSONObject(result); // 将JSON字符串解析为JSONObject对象
String access_token = jsonObject.getString("access_token"); // 提取access_token字段
return access_token; // 返回access_token
} catch (Exception e) {
System.err.printf("获取token失败");
e.printStackTrace(System.err);
System.err.printf("获取token失败"); // 打印错误信息
e.printStackTrace(System.err); // 打印异常堆栈信息
}
return null;
return null; // 如果发生异常返回null
}
}

@ -7,21 +7,35 @@ import java.io.IOException;
import java.io.InputStream;
/**
* :
*/
* :
*/
public class FileUtil {
/**
*
*
* @param file
* @return
* @throws IOException I/O
*/
public static byte[] FileToByte(File file) throws IOException {
// 将数据转为流
// 将文件内容读取为输入
@SuppressWarnings("resource")
InputStream content = new FileInputStream(file);
// 创建一个ByteArrayOutputStream用于存储文件内容
ByteArrayOutputStream swapStream = new ByteArrayOutputStream();
// 定义缓冲区大小为100字节
byte[] buff = new byte[100];
int rc = 0;
while ((rc = content.read(buff, 0, 100)) > 0) {
swapStream.write(buff, 0, rc);
// 读取文件内容并写入缓冲区
int rc = 0; // 用于存储每次读取的字节数
while ((rc = content.read(buff, 0, 100)) > 0) { // 当读取的字节数大于0时继续读取
swapStream.write(buff, 0, rc); // 将读取的内容写入ByteArrayOutputStream
}
// 获得二进制数组
// 将ByteArrayOutputStream中的数据转换为字节数组
return swapStream.toByteArray();
}
}

@ -5,38 +5,42 @@ import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* HttpClient
* HttpClientHTTP GET
*/
public class HttpClientUtils {
/**
* @param uri
* @return String
* @description get
* HTTP GET
*
* @param uri URL
* @return null
* @description 使HttpURLConnectionGET
* @author: long.he01
*/
public static String doGet(String uri) {
StringBuilder result = new StringBuilder(); // 用于存储最终的响应结果
StringBuilder result = new StringBuilder();
try {
String res = "";
URL url = new URL(uri);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
String res = ""; // 临时变量,用于存储每行的响应内容
URL url = new URL(uri); // 创建URL对象
HttpURLConnection conn = (HttpURLConnection) url.openConnection(); // 打开连接
conn.setRequestMethod("GET"); // 设置请求方法为GET
conn.setConnectTimeout(5000); // 设置连接超时时间为5秒
conn.setReadTimeout(5000); // 设置读取超时时间为5秒
// 获取输入流并使用BufferedReader逐行读取响应内容
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream(), "UTF-8"));
String line;
while ((line = in.readLine()) != null) {
res += line+"\n";
while ((line = in.readLine()) != null) { // 循环读取每一行
res += line + "\\n"; // 将每行内容追加到res中并加上换行符
}
in.close();
return res;
}catch (Exception e) {
e.printStackTrace();
return null;
}
in.close(); // 关闭流
return res; // 返回完整的响应内容
} catch (Exception e) {
e.printStackTrace(); // 打印异常堆栈信息以便调试
return null; // 如果发生异常返回null
}
}
}

@ -1,54 +1,122 @@
package com.utils;
public class JQPageInfo{
/**
*
*/
public class JQPageInfo {
/**
* 1
*/
private Integer page;
/**
* 10
*/
private Integer limit;
/**
*
*/
private String sidx;
/**
* "asc""desc"
*/
private String order;
private Integer offset;
/**
* SQLLIMIT
*/
private Integer offset;
/**
*
*
* @return
*/
public Integer getPage() {
return page;
}
/**
*
*
* @param page
*/
public void setPage(Integer page) {
this.page = page;
}
/**
*
*
* @return
*/
public Integer getLimit() {
return limit;
}
/**
*
*
* @param limit
*/
public void setLimit(Integer limit) {
this.limit = limit;
}
/**
*
*
* @return
*/
public String getSidx() {
return sidx;
}
/**
*
*
* @param sidx
*/
public void setSidx(String sidx) {
this.sidx = sidx;
}
/**
*
*
* @return "asc""desc"
*/
public String getOrder() {
return order;
}
/**
*
*
* @param order
*/
public void setOrder(String order) {
this.order = order;
}
/**
*
*
* @return
*/
public Integer getOffset() {
return offset;
}
/**
*
*
* @param offset
*/
public void setOffset(Integer offset) {
this.offset = offset;
}
}

@ -5,8 +5,7 @@ import cn.hutool.crypto.digest.DigestUtil;
public class MD5Util {
/**
* @param text
* @param key
* @param text
* @return
*/
// 带秘钥加密

@ -12,133 +12,204 @@ import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.mapper.Wrapper;
/**
* Mybatis-Plus
* MyBatis-Plus
*/
public class MPUtil {
// 定义下划线字符常量
public static final char UNDERLINE = '_';
//mybatis plus allEQ 表达式转换
public static Map allEQMapPre(Object bean,String pre) {
Map<String, Object> map =BeanUtil.beanToMap(bean);
return camelToUnderlineMap(map,pre);
}
//mybatis plus allEQ 表达式转换
public static Map allEQMap(Object bean) {
Map<String, Object> map =BeanUtil.beanToMap(bean);
return camelToUnderlineMap(map,"");
}
public static Wrapper allLikePre(Wrapper wrapper,Object bean,String pre) {
Map<String, Object> map =BeanUtil.beanToMap(bean);
Map result = camelToUnderlineMap(map,pre);
return genLike(wrapper,result);
}
public static Wrapper allLike(Wrapper wrapper,Object bean) {
Map result = BeanUtil.beanToMap(bean, true, true);
return genLike(wrapper,result);
/**
* Map线
*
* @param bean
* @param pre
* @return Map
*/
public static Map<String, Object> allEQMapPre(Object bean, String pre) {
Map<String, Object> map = BeanUtil.beanToMap(bean);
return camelToUnderlineMap(map, pre);
}
/**
* Map线
*
* @param bean
* @return Map
*/
public static Map<String, Object> allEQMap(Object bean) {
Map<String, Object> map = BeanUtil.beanToMap(bean);
return camelToUnderlineMap(map, "");
}
/**
* Wrapper
*
* @param wrapper
* @param bean
* @param pre
* @return Wrapper
*/
public static Wrapper allLikePre(Wrapper wrapper, Object bean, String pre) {
Map<String, Object> map = BeanUtil.beanToMap(bean);
Map<String, Object> result = camelToUnderlineMap(map, pre);
return genLike(wrapper, result);
}
/**
* Wrapper
*
* @param wrapper
* @param bean
* @return Wrapper
*/
public static Wrapper allLike(Wrapper wrapper, Object bean) {
Map<String, Object> result = BeanUtil.beanToMap(bean, true, true);
return genLike(wrapper, result);
}
/**
* Map Wrapper
*
* @param wrapper
* @param param Map
* @return Wrapper
*/
public static Wrapper genLike(Wrapper wrapper, Map<String, Object> param) {
Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();
int i = 0;
while (it.hasNext()) {
if (i > 0) wrapper.and(); // 确保条件之间用 AND 连接
Map.Entry<String, Object> entry = it.next();
String key = entry.getKey();
String value = (String) entry.getValue();
wrapper.like(key, value);
i++;
}
public static Wrapper genLike( Wrapper wrapper,Map param) {
Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();
int i=0;
while (it.hasNext()) {
if(i>0) wrapper.and();
Map.Entry<String, Object> entry = it.next();
String key = entry.getKey();
String value = (String) entry.getValue();
wrapper.like(key, value);
i++;
return wrapper;
}
/**
* Wrapper
*
* @param wrapper
* @param bean
* @return Wrapper
*/
public static Wrapper likeOrEq(Wrapper wrapper, Object bean) {
Map<String, Object> result = BeanUtil.beanToMap(bean, true, true);
return genLikeOrEq(wrapper, result);
}
/**
* Map Wrapper
*
* @param wrapper
* @param param Map
* @return Wrapper
*/
public static Wrapper genLikeOrEq(Wrapper wrapper, Map<String, Object> param) {
Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();
int i = 0;
while (it.hasNext()) {
if (i > 0) wrapper.and(); // 确保条件之间用 AND 连接
Map.Entry<String, Object> entry = it.next();
String key = entry.getKey();
if (entry.getValue().toString().contains("%")) {
wrapper.like(key, entry.getValue().toString().replace("%", ""));
} else {
wrapper.eq(key, entry.getValue());
}
return wrapper;
i++;
}
public static Wrapper likeOrEq(Wrapper wrapper,Object bean) {
Map result = BeanUtil.beanToMap(bean, true, true);
return genLikeOrEq(wrapper,result);
return wrapper;
}
/**
* Wrapper
*
* @param wrapper
* @param bean
* @return Wrapper
*/
public static Wrapper allEq(Wrapper wrapper, Object bean) {
Map<String, Object> result = BeanUtil.beanToMap(bean, true, true);
return genEq(wrapper, result);
}
/**
* Map Wrapper
*
* @param wrapper
* @param param Map
* @return Wrapper
*/
public static Wrapper genEq(Wrapper wrapper, Map<String, Object> param) {
Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();
int i = 0;
while (it.hasNext()) {
if (i > 0) wrapper.and(); // 确保条件之间用 AND 连接
Map.Entry<String, Object> entry = it.next();
String key = entry.getKey();
wrapper.eq(key, entry.getValue());
i++;
}
public static Wrapper genLikeOrEq( Wrapper wrapper,Map param) {
Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();
int i=0;
while (it.hasNext()) {
if(i>0) wrapper.and();
Map.Entry<String, Object> entry = it.next();
String key = entry.getKey();
if(entry.getValue().toString().contains("%")) {
wrapper.like(key, entry.getValue().toString().replace("%", ""));
} else {
wrapper.eq(key, entry.getValue());
return wrapper;
}
/**
* Wrapper
*
* @param wrapper
* @param params Map
* @return Wrapper
*/
public static Wrapper between(Wrapper wrapper, Map<String, Object> params) {
for (String key : params.keySet()) {
String columnName = "";
if (key.endsWith("_start")) {
columnName = key.substring(0, key.indexOf("_start"));
if (StringUtils.isNotBlank(params.get(key).toString())) {
wrapper.ge(columnName, params.get(key));
}
i++;
}
return wrapper;
}
public static Wrapper allEq(Wrapper wrapper,Object bean) {
Map result = BeanUtil.beanToMap(bean, true, true);
return genEq(wrapper,result);
}
public static Wrapper genEq( Wrapper wrapper,Map param) {
Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();
int i=0;
while (it.hasNext()) {
if(i>0) wrapper.and();
Map.Entry<String, Object> entry = it.next();
String key = entry.getKey();
wrapper.eq(key, entry.getValue());
i++;
}
return wrapper;
}
public static Wrapper between(Wrapper wrapper,Map<String, Object> params) {
for(String key : params.keySet()) {
String columnName = "";
if(key.endsWith("_start")) {
columnName = key.substring(0, key.indexOf("_start"));
if(StringUtils.isNotBlank(params.get(key).toString())) {
wrapper.ge(columnName, params.get(key));
}
}
if(key.endsWith("_end")) {
columnName = key.substring(0, key.indexOf("_end"));
if(StringUtils.isNotBlank(params.get(key).toString())) {
wrapper.le(columnName, params.get(key));
}
if (key.endsWith("_end")) {
columnName = key.substring(0, key.indexOf("_end"));
if (StringUtils.isNotBlank(params.get(key).toString())) {
wrapper.le(columnName, params.get(key));
}
}
return wrapper;
}
public static Wrapper sort(Wrapper wrapper,Map<String, Object> params) {
String order = "";
if(params.get("order") != null && StringUtils.isNotBlank(params.get("order").toString())) {
order = params.get("order").toString();
}
if(params.get("sort") != null && StringUtils.isNotBlank(params.get("sort").toString())) {
if(order.equalsIgnoreCase("desc")) {
wrapper.orderDesc(Arrays.asList(params.get("sort")));
} else {
wrapper.orderAsc(Arrays.asList(params.get("sort")));
}
return wrapper;
}
/**
* Wrapper
*
* @param wrapper
* @param params Map
* @return Wrapper
*/
public static Wrapper sort(Wrapper wrapper, Map<String, Object> params) {
String order = "";
if (params.get("order") != null && StringUtils.isNotBlank(params.get("order").toString())) {
order = params.get("order").toString();
}
if (params.get("sort") != null && StringUtils.isNotBlank(params.get("sort").toString())) {
if (order.equalsIgnoreCase("desc")) {
wrapper.orderDesc(Arrays.asList(params.get("sort")));
} else {
wrapper.orderAsc(Arrays.asList(params.get("sort")));
}
return wrapper;
}
return wrapper;
}
/**
* 线
*
* @param param
* @return
* 线
*
* @param param
* @return 线
*/
public static String camelToUnderline(String param) {
if (param == null || "".equals(param.trim())) {
@ -158,13 +229,15 @@ public class MPUtil {
return sb.toString();
}
public static void main(String[] ages) {
System.out.println(camelToUnderline("ABCddfANM"));
}
public static Map camelToUnderlineMap(Map param, String pre) {
Map<String, Object> newMap = new HashMap<String, Object>();
/**
* Map 线
*
* @param param Map
* @param pre
* @return Map
*/
public static Map<String, Object> camelToUnderlineMap(Map<String, Object> param, String pre) {
Map<String, Object> newMap = new HashMap<>();
Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();
while (it.hasNext()) {
Map.Entry<String, Object> entry = it.next();
@ -175,10 +248,13 @@ public class MPUtil {
} else if (StringUtils.isEmpty(pre)) {
newMap.put(newKey, entry.getValue());
} else {
newMap.put(pre + "." + newKey, entry.getValue());
}
}
return newMap;
}
public static void main(String[] args) {
System.out.println(camelToUnderline("ABCddfANM"));
}
}

@ -4,48 +4,94 @@ import java.util.HashMap;
import java.util.Map;
/**
*
* API
*/
public class R extends HashMap<String, Object> {
private static final long serialVersionUID = 1L;
/**
*
*/
public R() {
put("code", 0);
put("code", 0); // 默认状态码为成功
}
/**
* 500
*
* @return R
*/
public static R error() {
return error(500, "未知异常,请联系管理员");
}
/**
*
*
* @param msg
* @return R
*/
public static R error(String msg) {
return error(500, msg);
}
/**
*
*
* @param code
* @param msg
* @return R
*/
public static R error(int code, String msg) {
R r = new R();
r.put("code", code);
r.put("msg", msg);
return r;
R r = new R(); // 创建新的 R 对象
r.put("code", code); // 设置状态码
r.put("msg", msg); // 设置错误消息
return r; // 返回 R 对象
}
/**
*
*
* @param msg
* @return R
*/
public static R ok(String msg) {
R r = new R();
r.put("msg", msg);
return r;
R r = new R(); // 创建新的 R 对象
r.put("msg", msg); // 设置成功消息
return r; // 返回 R 对象
}
/**
*
*
* @param map
* @return R
*/
public static R ok(Map<String, Object> map) {
R r = new R();
r.putAll(map);
return r;
R r = new R(); // 创建新的 R 对象
r.putAll(map); // 合并自定义数据
return r; // 返回 R 对象
}
/**
*
*
* @return R
*/
public static R ok() {
return new R();
return new R(); // 返回默认的成功结果
}
/**
*
*
* @param key
* @param value
* @return R
*/
@Override
public R put(String key, Object value) {
super.put(key, value);
return this;
super.put(key, value); // 调用父类的 put 方法
return this; // 返回当前对象
}
}

@ -1,39 +1,41 @@
package com.utils;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import com.entity.EIException;
/**
* hibernate-validator
* Hibernate Validator
*/
public class ValidatorUtils {
private static Validator validator;
// 单例模式下的静态 Validator 实例
private static final Validator VALIDATOR;
static {
validator = Validation.buildDefaultValidatorFactory().getValidator();
// 初始化 Hibernate Validator 工厂
VALIDATOR = Validation.buildDefaultValidatorFactory().getValidator();
}
/**
*
* @param object
* @param groups
* @throws EIException EIException
*
*
* @param object
* @param groups
* @throws EIException EIException
*/
public static void validateEntity(Object object, Class<?>... groups)
throws EIException {
Set<ConstraintViolation<Object>> constraintViolations = validator.validate(object, groups);
if (!constraintViolations.isEmpty()) {
ConstraintViolation<Object> constraint = (ConstraintViolation<Object>)constraintViolations.iterator().next();
throw new EIException(constraint.getMessage());
// 获取校验结果集
Set<ConstraintViolation<Object>> violations = VALIDATOR.validate(object, groups);
// 如果校验结果不为空,表示存在错误
if (!violations.isEmpty()) {
// 获取第一个校验错误信息
ConstraintViolation<Object> violation = violations.iterator().next();
// 抛出自定义异常并附带错误信息
throw new EIException(violation.getMessage());
}
}
}

Loading…
Cancel
Save