Compare commits
3 Commits
web-aliyun
...
dev
Author | SHA1 | Date | |
---|---|---|---|
7ddc42f2c4 | |||
afed333294 | |||
423ae62e51 |
102
README.md
102
README.md
@@ -1,6 +1,7 @@
|
||||
# 小鹿超市项目
|
||||
|
||||

|
||||
|
||||
## 配置信息
|
||||
|
||||
### 服务器硬件配置
|
||||
@@ -24,21 +25,21 @@
|
||||
|-----|---------|----|---------|------|
|
||||
| 腾讯云 | 2c2g3m | | 2024-06 | 北京 |
|
||||
| 腾讯云 | 4c4g8m | | 2024-06 | 北京 |
|
||||
| 华为云 | 2c4g1m | | 2024-02 | 北京 |
|
||||
| 华为云 | 2c4g1m | | 2024-06 | 北京 |
|
||||
| 阿里云 | 2c2g2m | | 2024-06 | 乌兰察布 |
|
||||
| 雨云 | 8c8g80m | | 2024-03 | 洛杉矶 |
|
||||
| | | | | |
|
||||
|
||||
### 服务器参数
|
||||
|
||||
| 指标 | 参数 |
|
||||
|-----------|------|
|
||||
| 核心 | 24 |
|
||||
| 线程 | 48 |
|
||||
| 内存 | 64 |
|
||||
| 固态硬盘 | 512G |
|
||||
| 机械硬盘(未购买) | |
|
||||
| | |
|
||||
| 指标 | 参数 |
|
||||
|------|------|
|
||||
| 核心 | 24 |
|
||||
| 线程 | 48 |
|
||||
| 内存 | 128 |
|
||||
| 固态硬盘 | 512G |
|
||||
| 机械硬盘 | 4T |
|
||||
| | |
|
||||
|
||||
### 环境配置需求
|
||||
|
||||
@@ -46,7 +47,7 @@
|
||||
|-------|-----------------|
|
||||
| 底层虚拟化 | Debian12 PVE |
|
||||
| 集群系统 | CentOS 8 Stream |
|
||||
| | |
|
||||
| 虚拟化系统 | CentOS 7.9 |
|
||||
|
||||
### 集群分配设置
|
||||
|
||||
@@ -78,66 +79,62 @@
|
||||
| Elasticsearch | 7.17.7 | | | | | | |
|
||||
| Kinbana | 7.17.7 | | | | | | |
|
||||
| Nacos | 2.2.3 | | | | | | |
|
||||
| | | | | | | | |
|
||||
| OSS | 阿里云/Minio | | | | | | |
|
||||
| SkyWalking | 9.7.0 | | | | | | |
|
||||
| DevOps | | | | | | | |
|
||||
| DevOps | Gitea+Jenkins+Kubernetes | | | | | | |
|
||||
| Gitea | 1.21.3 | | | | | | |
|
||||
| Nexus3 | 2023-12-27T07:29 | | | | | | |
|
||||
| HarBor | 2.8.0 | | | | | | |
|
||||
|
||||
## 技术栈
|
||||
|
||||
### 后端技术栈
|
||||
|
||||
| 核心技术 |
|
||||
| :----------------------------------------------------------- |
|
||||
| SpringBoot:简化新Spring应用的初始搭建以及开发过程 |
|
||||
| 核心技术 |
|
||||
|:---------------------------------------------------------------------------------------------------------------------------------|
|
||||
| SpringBoot:简化新Spring应用的初始搭建以及开发过程 |
|
||||
| SpringCloud:基于Spring Boot实现的云原生应用开发工具,SpringCloud使用的技术:(Spring Cloud Gateway、Spring Cloud OpenFeign、Spring Cloud Alibaba Nacos等) |
|
||||
| MyBatis-Plus:持久层框架 |
|
||||
| Redis:缓存数据库 |
|
||||
| Redisson:基于redis的Java驻内存数据网格,实现分布式锁 |
|
||||
| RabbitMQ:消息中间件 |
|
||||
| ElasticSearch + Kibana: 全文检索服务器 +可视化数据监控 |
|
||||
| ThreadPoolExecutor:线程池来实现异步操作,提高效率 |
|
||||
| OSS/MinIO:文件存储服务 |
|
||||
| Knife4j(Swagger):Api接口文档工具 |
|
||||
| Nginx:负载均衡 |
|
||||
| MySQL:关系型数据库 |
|
||||
| 微信支付 |
|
||||
| 微信小程序 |
|
||||
| Docker:容器技术 |
|
||||
| DockerFile:管理Docker镜像命令文本 |
|
||||
| SkyWalking:链路追踪、日志、监控框架 |
|
||||
| |
|
||||
| |
|
||||
| MyBatis-Plus:持久层框架 |
|
||||
| Redis:缓存数据库 |
|
||||
| Redisson:基于redis的Java驻内存数据网格,实现分布式锁 |
|
||||
| RabbitMQ:消息中间件 |
|
||||
| ElasticSearch + Kibana: 全文检索服务器 +可视化数据监控 |
|
||||
| ThreadPoolExecutor:线程池来实现异步操作,提高效率 |
|
||||
| OSS/MinIO:文件存储服务 |
|
||||
| Knife4j(Swagger):Api接口文档工具 |
|
||||
| Nginx:负载均衡 |
|
||||
| MySQL:关系型数据库 |
|
||||
| 微信支付 |
|
||||
| 支付宝支付 |
|
||||
| Docker:容器技术 |
|
||||
| DockerFile:管理Docker镜像命令文本 |
|
||||
| SkyWalking:链路追踪、日志、监控框架 |
|
||||
|
||||
### 前端技术栈
|
||||
|
||||
| 核心技术 |
|
||||
| ------------------ |
|
||||
| UinApp |
|
||||
| vue-admin-template |
|
||||
| ElementUI |
|
||||
| Axios |
|
||||
| Node.js |
|
||||
| Npm |
|
||||
| |
|
||||
| |
|
||||
| |
|
||||
| 核心技术 | |
|
||||
|--------------------|------|
|
||||
| UinApp | |
|
||||
| vue-admin-template | |
|
||||
| ElementUI | |
|
||||
| Axios | |
|
||||
| Node.js | |
|
||||
| Npm | |
|
||||
|
||||
### 开发工具
|
||||
|
||||
| 开发工具 | 版本 |
|
||||
| ----------------------------- | -------------- |
|
||||
| Intellil IDEA Ultimate | 2023.3.2 |
|
||||
| DataGrip | 2023.3.2 |
|
||||
| WebStorm | 2023.3.2 |
|
||||
| 开发工具 | 版本 |
|
||||
|-------------------------------|----------------|
|
||||
| Intellil IDEA Ultimate | 2024.1.1 |
|
||||
| DataGrip | 2024.1.1 |
|
||||
| WebStorm | 2024.1.1 |
|
||||
| HBuilderx | 3.8.12 |
|
||||
| Google Chrome | 120.0.6099.216 |
|
||||
| Another Redis Desktop Manager | 1.6 |
|
||||
| Apifox | 2.3.19 |
|
||||
| Parallels Desktop | 18.1.1 |
|
||||
| Termius | 8.4.0 |
|
||||
| 微信开发者工具 | 1.06.2306020 |
|
||||
| 微信开发者工具 | 1.06.2306020 |
|
||||
|
||||
### 操作系统
|
||||
|
||||
@@ -338,10 +335,3 @@ services:
|
||||
start_period: 60s #⾸次检测延迟时间
|
||||
```
|
||||
|
||||
## 开发需求
|
||||
|
||||
| | | |
|
||||
|------|------|------|
|
||||
| | | |
|
||||
| | | |
|
||||
| | | |
|
||||
|
@@ -34,10 +34,10 @@ public class CodeGet {
|
||||
|
||||
// 3、数据源配置
|
||||
DataSourceConfig dsc = new DataSourceConfig();
|
||||
dsc.setUrl("jdbc:mysql://82.157.68.223:3306/shequ-user?serverTimezone=GMT%2B8&useSSL=false");
|
||||
dsc.setUrl("jdbc:mysql://82.157.68.223:3306/xlcs-user?serverTimezone=GMT%2B8&useSSL=false");
|
||||
dsc.setDriverName("com.mysql.cj.jdbc.Driver");
|
||||
dsc.setUsername("shequ-user");
|
||||
dsc.setPassword("shequ-user");
|
||||
dsc.setUsername("xlcs-user");
|
||||
dsc.setPassword("xlcs-user");
|
||||
dsc.setDbType(DbType.MYSQL);
|
||||
mpg.setDataSource(dsc);
|
||||
|
||||
|
@@ -8,4 +8,4 @@ spring:
|
||||
username: nacos
|
||||
password: nacos
|
||||
enabled: true
|
||||
file-extension: yml
|
||||
file-extension: yml
|
@@ -1,5 +1,10 @@
|
||||
package com.yovinchen.xlcs.activity.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.yovinchen.xlcs.activity.mapper.ActivityInfoMapper;
|
||||
import com.yovinchen.xlcs.activity.mapper.ActivityRuleMapper;
|
||||
import com.yovinchen.xlcs.activity.mapper.ActivitySkuMapper;
|
||||
@@ -16,11 +21,6 @@ import com.yovinchen.xlcs.model.product.SkuInfo;
|
||||
import com.yovinchen.xlcs.vo.activity.ActivityRuleVo;
|
||||
import com.yovinchen.xlcs.vo.order.CartInfoVo;
|
||||
import com.yovinchen.xlcs.vo.order.OrderConfirmVo;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -70,10 +70,10 @@ public class ActivityInfoServiceImpl extends ServiceImpl<ActivityInfoMapper, Act
|
||||
|
||||
IPage<ActivityInfo> page = activityInfoMapper.selectPage(pageParam, queryWrapper);
|
||||
page.getRecords()
|
||||
.forEach(item -> {
|
||||
item.setActivityTypeString(item.getActivityType()
|
||||
.getComment());
|
||||
});
|
||||
.forEach(item -> {
|
||||
item.setActivityTypeString(item.getActivityType()
|
||||
.getComment());
|
||||
});
|
||||
return page;
|
||||
}
|
||||
|
||||
@@ -96,8 +96,8 @@ public class ActivityInfoServiceImpl extends ServiceImpl<ActivityInfoMapper, Act
|
||||
activitySkuQueryWrapper.eq(ActivitySku::getActivityId, activityId);
|
||||
List<ActivitySku> activitySkuList = activitySkuMapper.selectList(activitySkuQueryWrapper);
|
||||
List<Long> skuIdList = activitySkuList.stream()
|
||||
.map(ActivitySku::getSkuId)
|
||||
.collect(Collectors.toList());
|
||||
.map(ActivitySku::getSkuId)
|
||||
.collect(Collectors.toList());
|
||||
|
||||
List<SkuInfo> skuInfoList = null;
|
||||
if (!skuIdList.isEmpty()) {
|
||||
@@ -159,8 +159,8 @@ public class ActivityInfoServiceImpl extends ServiceImpl<ActivityInfoMapper, Act
|
||||
|
||||
//从skuInfoList集合获取所有skuId
|
||||
List<Long> skuIdList = skuInfoList.stream()
|
||||
.map(SkuInfo::getId)
|
||||
.collect(Collectors.toList());
|
||||
.map(SkuInfo::getId)
|
||||
.collect(Collectors.toList());
|
||||
|
||||
//第二步 判断添加商品之前是否参加过活动,
|
||||
// 如果之前参加过,活动正在进行中,排除商品
|
||||
@@ -436,22 +436,10 @@ public class ActivityInfoServiceImpl extends ServiceImpl<ActivityInfoMapper, Act
|
||||
optimalActivityRule.setReduceAmount(new BigDecimal("0"));
|
||||
optimalActivityRule.setSelectType(1);
|
||||
|
||||
String ruleDesc = "满" +
|
||||
optimalActivityRule.getConditionNum() +
|
||||
"元打" +
|
||||
optimalActivityRule.getBenefitDiscount() +
|
||||
"折,还差" +
|
||||
(totalNum - optimalActivityRule.getConditionNum()) +
|
||||
"件";
|
||||
String ruleDesc = "满" + optimalActivityRule.getConditionNum() + "元打" + optimalActivityRule.getBenefitDiscount() + "折,还差" + (totalNum - optimalActivityRule.getConditionNum()) + "件";
|
||||
optimalActivityRule.setRuleDesc(ruleDesc);
|
||||
} else {
|
||||
String ruleDesc = "满" +
|
||||
optimalActivityRule.getConditionNum() +
|
||||
"元打" +
|
||||
optimalActivityRule.getBenefitDiscount() +
|
||||
"折,已减" +
|
||||
optimalActivityRule.getReduceAmount() +
|
||||
"元";
|
||||
String ruleDesc = "满" + optimalActivityRule.getConditionNum() + "元打" + optimalActivityRule.getBenefitDiscount() + "折,已减" + optimalActivityRule.getReduceAmount() + "元";
|
||||
optimalActivityRule.setRuleDesc(ruleDesc);
|
||||
optimalActivityRule.setSelectType(2);
|
||||
}
|
||||
@@ -483,22 +471,10 @@ public class ActivityInfoServiceImpl extends ServiceImpl<ActivityInfoMapper, Act
|
||||
optimalActivityRule.setReduceAmount(new BigDecimal("0"));
|
||||
optimalActivityRule.setSelectType(1);
|
||||
|
||||
String ruleDesc = "满" +
|
||||
optimalActivityRule.getConditionAmount() +
|
||||
"元减" +
|
||||
optimalActivityRule.getBenefitAmount() +
|
||||
"元,还差" +
|
||||
totalAmount.subtract(optimalActivityRule.getConditionAmount()) +
|
||||
"元";
|
||||
String ruleDesc = "满" + optimalActivityRule.getConditionAmount() + "元减" + optimalActivityRule.getBenefitAmount() + "元,还差" + totalAmount.subtract(optimalActivityRule.getConditionAmount()) + "元";
|
||||
optimalActivityRule.setRuleDesc(ruleDesc);
|
||||
} else {
|
||||
String ruleDesc = "满" +
|
||||
optimalActivityRule.getConditionAmount() +
|
||||
"元减" +
|
||||
optimalActivityRule.getBenefitAmount() +
|
||||
"元,已减" +
|
||||
optimalActivityRule.getReduceAmount() +
|
||||
"元";
|
||||
String ruleDesc = "满" + optimalActivityRule.getConditionAmount() + "元减" + optimalActivityRule.getBenefitAmount() + "元,已减" + optimalActivityRule.getReduceAmount() + "元";
|
||||
optimalActivityRule.setRuleDesc(ruleDesc);
|
||||
optimalActivityRule.setSelectType(2);
|
||||
}
|
||||
|
@@ -153,7 +153,8 @@ public class CartInfoServiceImpl implements CartInfoService {
|
||||
BoundHashOperations<String, String, CartInfo> hashOperations = redisTemplate.boundHashOps(cartKey);
|
||||
List<CartInfo> cartInfoList = hashOperations.values();
|
||||
for (CartInfo cartInfo : cartInfoList) {
|
||||
hashOperations.delete(cartInfo.getSkuId().toString());
|
||||
hashOperations.delete(cartInfo.getSkuId()
|
||||
.toString());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,7 +193,8 @@ public class CartInfoServiceImpl implements CartInfoService {
|
||||
cartInfoList = boundHashOperations.values();
|
||||
if (!CollectionUtils.isEmpty(cartInfoList)) {
|
||||
//根据商品添加时间,降序
|
||||
cartInfoList.sort((o1, o2) -> o1.getCreateTime().compareTo(o2.getCreateTime()));
|
||||
cartInfoList.sort((o1, o2) -> o1.getCreateTime()
|
||||
.compareTo(o2.getCreateTime()));
|
||||
}
|
||||
return cartInfoList;
|
||||
}
|
||||
@@ -234,7 +236,8 @@ public class CartInfoServiceImpl implements CartInfoService {
|
||||
List<CartInfo> cartInfoList = boundHashOperations.values();
|
||||
cartInfoList.forEach(cartInfo -> {
|
||||
cartInfo.setIsChecked(isChecked);
|
||||
boundHashOperations.put(cartInfo.getSkuId().toString(), cartInfo);
|
||||
boundHashOperations.put(cartInfo.getSkuId()
|
||||
.toString(), cartInfo);
|
||||
});
|
||||
this.setCartKeyExpire(cartKey);
|
||||
}
|
||||
@@ -253,7 +256,8 @@ public class CartInfoServiceImpl implements CartInfoService {
|
||||
skuIdList.forEach(skuId -> {
|
||||
CartInfo cartInfo = boundHashOperations.get(skuId.toString());
|
||||
cartInfo.setIsChecked(isChecked);
|
||||
boundHashOperations.put(cartInfo.getSkuId().toString(), cartInfo);
|
||||
boundHashOperations.put(cartInfo.getSkuId()
|
||||
.toString(), cartInfo);
|
||||
});
|
||||
this.setCartKeyExpire(cartKey);
|
||||
}
|
||||
@@ -270,9 +274,9 @@ public class CartInfoServiceImpl implements CartInfoService {
|
||||
BoundHashOperations<String, String, CartInfo> boundHashOperations = redisTemplate.boundHashOps(cartKey);
|
||||
List<CartInfo> cartInfoList = boundHashOperations.values();
|
||||
//isChecked = 1购物项选中
|
||||
return cartInfoList.stream().filter(cartInfo -> {
|
||||
return cartInfo.getIsChecked().intValue() == 1;
|
||||
}).collect(Collectors.toList());
|
||||
return cartInfoList != null ? cartInfoList.stream()
|
||||
.filter(cartInfo -> cartInfo.getIsChecked() == 1)
|
||||
.collect(Collectors.toList()) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -286,7 +290,9 @@ public class CartInfoServiceImpl implements CartInfoService {
|
||||
List<CartInfo> cartInfoList = this.getCartCheckedList(userId);
|
||||
|
||||
//查询list数据处理,得到skuId集合
|
||||
List<Long> skuIdList = cartInfoList.stream().map(item -> item.getSkuId()).collect(Collectors.toList());
|
||||
List<Long> skuIdList = cartInfoList.stream()
|
||||
.map(item -> item.getSkuId())
|
||||
.collect(Collectors.toList());
|
||||
|
||||
//构建redis的key值
|
||||
// hash类型 key filed-value
|
||||
|
@@ -101,6 +101,7 @@ public class WeXinServiceImpl implements WeixinService {
|
||||
result.put("signType", "MD5");
|
||||
result.put("paySign", sign);
|
||||
result.put("package", packages);
|
||||
result.put("out_trade_no", paymentInfo.getOrderNo());
|
||||
|
||||
//6 返回结果
|
||||
return result;
|
||||
|
@@ -4,9 +4,9 @@ package com.yovinchen.xlcs.user.controller;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.yovinchen.xlcs.common.result.Result;
|
||||
import com.yovinchen.xlcs.model.user.Leader;
|
||||
import com.yovinchen.xlcs.user.service.LeaderService;
|
||||
import com.yovinchen.xlcs.vo.user.LeaderQueryVo;
|
||||
import com.yovinchen.xlcs.vo.user.LeaderVo;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 团长表 前端控制器
|
||||
* 配送员 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author yovinchen
|
||||
@@ -34,12 +34,12 @@ public class LeaderController {
|
||||
// getPageCheckList
|
||||
@ApiOperation(value = "获取页面列表")
|
||||
@GetMapping("getPageCheckList/{page}/{limit}")
|
||||
public Result<IPage<LeaderVo>> getPageCheckList(@ApiParam(name = "page", value = "当前页码", required = true) @PathVariable Long page,
|
||||
public Result getPageCheckList(@ApiParam(name = "page", value = "当前页码", required = true) @PathVariable Long page,
|
||||
@ApiParam(name = "limit", value = "每页记录数", required = true) @PathVariable Long limit,
|
||||
@ApiParam(name = "LeaderQueryVo", value = "查询对象", required = false) LeaderQueryVo leaderQueryVo) {
|
||||
try {
|
||||
Page<LeaderVo> pageParam = new Page<>(page, limit);
|
||||
IPage<LeaderVo> pageModel = leaderService.selectPage(pageParam, leaderQueryVo);
|
||||
Page<Leader> pageParam = new Page<>(page, limit);
|
||||
IPage<Leader> pageModel = leaderService.selectPage(pageParam, leaderQueryVo);
|
||||
return Result.ok(pageModel);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("获取sku分页列表异常", e);
|
||||
|
@@ -5,11 +5,10 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.yovinchen.xlcs.model.user.Leader;
|
||||
import com.yovinchen.xlcs.vo.user.LeaderQueryVo;
|
||||
import com.yovinchen.xlcs.vo.user.LeaderVo;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 团长表 服务类
|
||||
* 配送员 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author yovinchen
|
||||
@@ -17,5 +16,5 @@ import com.yovinchen.xlcs.vo.user.LeaderVo;
|
||||
*/
|
||||
public interface LeaderService extends IService<Leader> {
|
||||
|
||||
IPage<LeaderVo> selectPage(Page<LeaderVo> pageParam, LeaderQueryVo leaderQueryVo);
|
||||
IPage<Leader> selectPage(Page<Leader> pageParam, LeaderQueryVo leaderQueryVo);
|
||||
}
|
||||
|
@@ -1,5 +1,6 @@
|
||||
package com.yovinchen.xlcs.user.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
@@ -7,22 +8,38 @@ import com.yovinchen.xlcs.model.user.Leader;
|
||||
import com.yovinchen.xlcs.user.mapper.LeaderMapper;
|
||||
import com.yovinchen.xlcs.user.service.LeaderService;
|
||||
import com.yovinchen.xlcs.vo.user.LeaderQueryVo;
|
||||
import com.yovinchen.xlcs.vo.user.LeaderVo;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 团长表 服务实现类
|
||||
* 配送员 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author yovinchen
|
||||
* @since 2024-01-30
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class LeaderServiceImpl extends ServiceImpl<LeaderMapper, Leader> implements LeaderService {
|
||||
|
||||
/**
|
||||
* 分页查询配送员
|
||||
*
|
||||
* @param pageParam
|
||||
* @param leaderQueryVo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public IPage<LeaderVo> selectPage(Page<LeaderVo> pageParam, LeaderQueryVo leaderQueryVo) {
|
||||
return null;
|
||||
public IPage<Leader> selectPage(Page<Leader> pageParam, LeaderQueryVo leaderQueryVo) {
|
||||
log.info("获取配送员分页列表入参{}", pageParam.toString() + leaderQueryVo.toString());
|
||||
LambdaQueryWrapper<Leader> wrapper = new LambdaQueryWrapper<>();
|
||||
String keyword = leaderQueryVo.getKeyword();
|
||||
if (!StringUtils.isEmpty(keyword)) {
|
||||
//封装条件
|
||||
wrapper.like(Leader::getName, keyword);
|
||||
}
|
||||
return baseMapper.selectPage(pageParam, wrapper);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user