Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yudao-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
hblj
yudao-cloud
Commits
e47029cf
提交
e47029cf
authored
5月 16, 2020
作者:
jwf1173
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品分类review 修改
上级
c34c501f
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
58 行增加
和
97 行删除
+58
-97
ProductCategoryConstants.java
.../product/biz/enums/category/ProductCategoryConstants.java
+0
-20
ProductCategoryNodeEnum.java
...l/product/biz/enums/category/ProductCategoryNodeEnum.java
+28
-0
ProductCategoryBO.java
...ocoder/mall/product/biz/bo/product/ProductCategoryBO.java
+0
-55
ProductCategoryMapper.java
.../mall/product/biz/dao/category/ProductCategoryMapper.java
+11
-1
ProductCategoryServiceImpl.java
...duct/biz/service/category/ProductCategoryServiceImpl.java
+7
-10
ProductSpuServiceImpl.java
...r/mall/product/biz/service/spu/ProductSpuServiceImpl.java
+2
-2
AdminsProductCategoryController.java
.../controller/category/AdminsProductCategoryController.java
+3
-3
UserMapper.java
.../java/cn/iocoder/mall/system/biz/dao/user/UserMapper.java
+6
-5
ErrorCodeServiceImpl.java
...ll/system/biz/service/errorcode/ErrorCodeServiceImpl.java
+1
-1
没有找到文件。
product/product-biz-api/src/main/java/cn/iocoder/mall/product/biz/enums/category/ProductCategoryConstants.java
deleted
100644 → 0
浏览文件 @
c34c501f
package
cn
.
iocoder
.
mall
.
product
.
biz
.
enums
.
category
;
// TODO FROM 芋艿 to sunderui:改到枚举类,我之前没弄对,哈哈哈
public
interface
ProductCategoryConstants
{
/**
* 状态 - 开启
*/
Integer
STATUS_ENABLE
=
1
;
/**
* 状态 - 关闭
*/
Integer
STATUS_DISABLE
=
2
;
/**
* 父分类编号 - 根节点
*/
Integer
PID_ROOT
=
0
;
}
product/product-biz-api/src/main/java/cn/iocoder/mall/product/biz/enums/category/ProductCategoryNodeEnum.java
0 → 100644
浏览文件 @
e47029cf
package
cn
.
iocoder
.
mall
.
product
.
biz
.
enums
.
category
;
import
cn.iocoder.common.framework.core.IntArrayValuable
;
import
java.util.Arrays
;
/**
* @Author: jiangweifan
* @Date: 2020/5/12
* @Description: 商品分类节点枚举
*/
public
enum
ProductCategoryNodeEnum
{
/**
* 根节点
*/
ROOT
(
0
);
private
final
Integer
id
;
ProductCategoryNodeEnum
(
Integer
id
)
{
this
.
id
=
id
;
}
public
Integer
getId
()
{
return
id
;
}
}
product/product-biz/src/main/java/cn/iocoder/mall/product/biz/bo/product/ProductCategoryBO.java
deleted
100644 → 0
浏览文件 @
c34c501f
package
cn
.
iocoder
.
mall
.
product
.
biz
.
bo
.
product
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 商品分类 BO
*/
@Data
@Accessors
(
chain
=
true
)
@Deprecated
// TODO jiangweifan 后面确认无使用后删除
public
class
ProductCategoryBO
implements
Serializable
{
/**
* 分类编号
*/
private
Integer
id
;
/**
* 父分类编号
*
* 如果不存在父级,则 pid = 0 。
*/
private
Integer
pid
;
/**
* 名称
*/
private
String
name
;
/**
* 描述
*/
private
String
description
;
/**
* 分类图片
*/
private
String
picUrl
;
/**
* 排序值
*/
private
Integer
sort
;
/**
* 状态
*
* 1-开启
* 2-关闭
*/
private
Integer
status
;
/**
* 创建时间
*/
private
Date
createTime
;
}
product/product-biz/src/main/java/cn/iocoder/mall/product/biz/dao/category/ProductCategoryMapper.java
浏览文件 @
e47029cf
...
@@ -2,6 +2,7 @@ package cn.iocoder.mall.product.biz.dao.category;
...
@@ -2,6 +2,7 @@ package cn.iocoder.mall.product.biz.dao.category;
import
cn.iocoder.mall.product.biz.dataobject.category.ProductCategoryDO
;
import
cn.iocoder.mall.product.biz.dataobject.category.ProductCategoryDO
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
/**
/**
...
@@ -11,5 +12,14 @@ import org.springframework.stereotype.Repository;
...
@@ -11,5 +12,14 @@ import org.springframework.stereotype.Repository;
*/
*/
@Repository
@Repository
public
interface
ProductCategoryMapper
extends
BaseMapper
<
ProductCategoryDO
>
{
public
interface
ProductCategoryMapper
extends
BaseMapper
<
ProductCategoryDO
>
{
/**
* 查询商品分类的下一级子分类数量
* @param productCategoryId
* @return
*/
default
Integer
selectChildCategoryCount
(
Integer
productCategoryId
)
{
return
this
.
selectCount
(
Wrappers
.<
ProductCategoryDO
>
lambdaQuery
().
eq
(
ProductCategoryDO:
:
getPid
,
productCategoryId
)
);
}
}
}
product/product-biz/src/main/java/cn/iocoder/mall/product/biz/service/category/ProductCategoryServiceImpl.java
浏览文件 @
e47029cf
...
@@ -11,9 +11,8 @@ import cn.iocoder.mall.product.biz.dto.category.ProductCategoryDeleteDTO;
...
@@ -11,9 +11,8 @@ import cn.iocoder.mall.product.biz.dto.category.ProductCategoryDeleteDTO;
import
cn.iocoder.mall.product.biz.dto.category.ProductCategoryUpdateDTO
;
import
cn.iocoder.mall.product.biz.dto.category.ProductCategoryUpdateDTO
;
import
cn.iocoder.mall.product.biz.dto.category.ProductCategoryUpdateStatusDTO
;
import
cn.iocoder.mall.product.biz.dto.category.ProductCategoryUpdateStatusDTO
;
import
cn.iocoder.mall.product.biz.enums.ProductErrorCodeEnum
;
import
cn.iocoder.mall.product.biz.enums.ProductErrorCodeEnum
;
import
cn.iocoder.mall.product.biz.enums.category.ProductCategory
Constants
;
import
cn.iocoder.mall.product.biz.enums.category.ProductCategory
NodeEnum
;
import
cn.iocoder.mall.product.biz.enums.category.ProductCategoryStatusEnum
;
import
cn.iocoder.mall.product.biz.enums.category.ProductCategoryStatusEnum
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -68,7 +67,7 @@ public class ProductCategoryServiceImpl implements ProductCategoryService {
...
@@ -68,7 +67,7 @@ public class ProductCategoryServiceImpl implements ProductCategoryService {
throw
ServiceExceptionUtil
.
exception
(
PRODUCT_CATEGORY_PARENT_NOT_SELF
);
throw
ServiceExceptionUtil
.
exception
(
PRODUCT_CATEGORY_PARENT_NOT_SELF
);
}
}
// 校验父分类是否存在
// 校验父分类是否存在
if
(!
ProductCategory
Constants
.
PID_ROOT
.
equals
(
productCategoryUpdateDTO
.
getPid
())
if
(!
ProductCategory
NodeEnum
.
ROOT
.
getId
()
.
equals
(
productCategoryUpdateDTO
.
getPid
())
&&
productCategoryMapper
.
selectById
(
productCategoryUpdateDTO
.
getPid
())
==
null
)
{
&&
productCategoryMapper
.
selectById
(
productCategoryUpdateDTO
.
getPid
())
==
null
)
{
throw
ServiceExceptionUtil
.
exception
(
PRODUCT_CATEGORY_PARENT_NOT_EXISTS
);
throw
ServiceExceptionUtil
.
exception
(
PRODUCT_CATEGORY_PARENT_NOT_EXISTS
);
}
}
...
@@ -114,10 +113,8 @@ public class ProductCategoryServiceImpl implements ProductCategoryService {
...
@@ -114,10 +113,8 @@ public class ProductCategoryServiceImpl implements ProductCategoryService {
throw
ServiceExceptionUtil
.
exception
(
PRODUCT_CATEGORY_DELETE_ONLY_DISABLE
);
throw
ServiceExceptionUtil
.
exception
(
PRODUCT_CATEGORY_DELETE_ONLY_DISABLE
);
}
}
// 只有不存在子分类才可以删除
// 只有不存在子分类才可以删除
// TODO FROM 芋艿 to jiangweifan:Wrappers 只用在 Mapper 层
// TODO FROM 芋艿 to jiangweifan:Wrappers 只用在 Mapper 层 [DONE]
Integer
childCount
=
productCategoryMapper
.
selectCount
(
Integer
childCount
=
productCategoryMapper
.
selectChildCategoryCount
(
productCategoryId
);
Wrappers
.<
ProductCategoryDO
>
lambdaQuery
().
eq
(
ProductCategoryDO:
:
getPid
,
productCategoryId
)
);
if
(
childCount
>
0
)
{
if
(
childCount
>
0
)
{
throw
ServiceExceptionUtil
.
exception
(
PRODUCT_CATEGORY_DELETE_ONLY_NO_CHILD
);
throw
ServiceExceptionUtil
.
exception
(
PRODUCT_CATEGORY_DELETE_ONLY_NO_CHILD
);
}
}
...
@@ -129,14 +126,14 @@ public class ProductCategoryServiceImpl implements ProductCategoryService {
...
@@ -129,14 +126,14 @@ public class ProductCategoryServiceImpl implements ProductCategoryService {
}
}
private
void
validParent
(
Integer
pid
)
{
private
void
validParent
(
Integer
pid
)
{
if
(!
ProductCategory
Constants
.
PID_ROOT
.
equals
(
pid
))
{
if
(!
ProductCategory
NodeEnum
.
ROOT
.
getId
()
.
equals
(
pid
))
{
ProductCategoryDO
parentCategory
=
productCategoryMapper
.
selectById
(
pid
);
ProductCategoryDO
parentCategory
=
productCategoryMapper
.
selectById
(
pid
);
// 校验父分类是否存在
// 校验父分类是否存在
if
(
parentCategory
==
null
)
{
if
(
parentCategory
==
null
)
{
throw
ServiceExceptionUtil
.
exception
(
PRODUCT_CATEGORY_PARENT_NOT_EXISTS
);
throw
ServiceExceptionUtil
.
exception
(
PRODUCT_CATEGORY_PARENT_NOT_EXISTS
);
}
}
// 父分类必须是一级分类
// 父分类必须是一级分类
if
(!
ProductCategory
Constants
.
PID_ROOT
.
equals
(
parentCategory
.
getPid
()))
{
if
(!
ProductCategory
NodeEnum
.
ROOT
.
getId
()
.
equals
(
parentCategory
.
getPid
()))
{
throw
ServiceExceptionUtil
.
exception
(
PRODUCT_CATEGORY_PARENT_CAN_NOT_BE_LEVEL2
);
throw
ServiceExceptionUtil
.
exception
(
PRODUCT_CATEGORY_PARENT_CAN_NOT_BE_LEVEL2
);
}
}
}
}
...
@@ -150,7 +147,7 @@ public class ProductCategoryServiceImpl implements ProductCategoryService {
...
@@ -150,7 +147,7 @@ public class ProductCategoryServiceImpl implements ProductCategoryService {
throw
ServiceExceptionUtil
.
exception
(
ProductErrorCodeEnum
.
PRODUCT_CATEGORY_NOT_EXISTS
.
getCode
());
throw
ServiceExceptionUtil
.
exception
(
ProductErrorCodeEnum
.
PRODUCT_CATEGORY_NOT_EXISTS
.
getCode
());
}
}
// 只有禁用的商品分类才可以删除
// 只有禁用的商品分类才可以删除
if
(
ProductCategory
Constants
.
STATUS_DISABLE
.
equals
(
productCategory
.
getStatus
()))
{
if
(
ProductCategory
StatusEnum
.
DISABLED
.
getStatus
()
.
equals
(
productCategory
.
getStatus
()))
{
throw
ServiceExceptionUtil
.
exception
(
ProductErrorCodeEnum
.
PRODUCT_CATEGORY_MUST_ENABLE
.
getCode
());
throw
ServiceExceptionUtil
.
exception
(
ProductErrorCodeEnum
.
PRODUCT_CATEGORY_MUST_ENABLE
.
getCode
());
}
}
// 返回结果
// 返回结果
...
...
product/product-biz/src/main/java/cn/iocoder/mall/product/biz/service/spu/ProductSpuServiceImpl.java
浏览文件 @
e47029cf
...
@@ -15,7 +15,7 @@ import cn.iocoder.mall.product.biz.dataobject.spu.ProductSpuDO;
...
@@ -15,7 +15,7 @@ import cn.iocoder.mall.product.biz.dataobject.spu.ProductSpuDO;
import
cn.iocoder.mall.product.biz.dto.sku.ProductSkuAddOrUpdateDTO
;
import
cn.iocoder.mall.product.biz.dto.sku.ProductSkuAddOrUpdateDTO
;
import
cn.iocoder.mall.product.biz.dto.sku.ProductSpuAddDTO
;
import
cn.iocoder.mall.product.biz.dto.sku.ProductSpuAddDTO
;
import
cn.iocoder.mall.product.biz.enums.ProductErrorCodeEnum
;
import
cn.iocoder.mall.product.biz.enums.ProductErrorCodeEnum
;
import
cn.iocoder.mall.product.biz.enums.category.ProductCategory
Constants
;
import
cn.iocoder.mall.product.biz.enums.category.ProductCategory
NodeEnum
;
import
cn.iocoder.mall.product.biz.enums.spu.ProductSpuConstants
;
import
cn.iocoder.mall.product.biz.enums.spu.ProductSpuConstants
;
import
cn.iocoder.mall.product.biz.service.attr.ProductAttrService
;
import
cn.iocoder.mall.product.biz.service.attr.ProductAttrService
;
import
cn.iocoder.mall.product.biz.service.category.ProductCategoryService
;
import
cn.iocoder.mall.product.biz.service.category.ProductCategoryService
;
...
@@ -76,7 +76,7 @@ public class ProductSpuServiceImpl implements ProductSpuService {
...
@@ -76,7 +76,7 @@ public class ProductSpuServiceImpl implements ProductSpuService {
public
ProductSpuDetailBO
addProductSpu0
(
Integer
adminId
,
ProductSpuAddDTO
productSpuAddDTO
)
{
public
ProductSpuDetailBO
addProductSpu0
(
Integer
adminId
,
ProductSpuAddDTO
productSpuAddDTO
)
{
// 校验商品分类分类存在
// 校验商品分类分类存在
ProductCategoryDO
category
=
productCategoryService
.
validProductCategory
(
productSpuAddDTO
.
getCid
());
ProductCategoryDO
category
=
productCategoryService
.
validProductCategory
(
productSpuAddDTO
.
getCid
());
if
(
ProductCategory
Constants
.
PID_ROOT
.
equals
(
category
.
getPid
()))
{
if
(
ProductCategory
NodeEnum
.
ROOT
.
getId
()
.
equals
(
category
.
getPid
()))
{
// 商品只能添加到二级分类下
// 商品只能添加到二级分类下
throw
ServiceExceptionUtil
.
exception
(
ProductErrorCodeEnum
.
PRODUCT_SPU_CATEGORY_MUST_BE_LEVEL2
.
getCode
());
throw
ServiceExceptionUtil
.
exception
(
ProductErrorCodeEnum
.
PRODUCT_SPU_CATEGORY_MUST_BE_LEVEL2
.
getCode
());
}
}
...
...
product/product-rest/src/main/java/cn/iocoder/mall/product/rest/controller/category/AdminsProductCategoryController.java
浏览文件 @
e47029cf
...
@@ -7,7 +7,7 @@ import cn.iocoder.mall.product.biz.dto.category.ProductCategoryAddDTO;
...
@@ -7,7 +7,7 @@ import cn.iocoder.mall.product.biz.dto.category.ProductCategoryAddDTO;
import
cn.iocoder.mall.product.biz.dto.category.ProductCategoryDeleteDTO
;
import
cn.iocoder.mall.product.biz.dto.category.ProductCategoryDeleteDTO
;
import
cn.iocoder.mall.product.biz.dto.category.ProductCategoryUpdateDTO
;
import
cn.iocoder.mall.product.biz.dto.category.ProductCategoryUpdateDTO
;
import
cn.iocoder.mall.product.biz.dto.category.ProductCategoryUpdateStatusDTO
;
import
cn.iocoder.mall.product.biz.dto.category.ProductCategoryUpdateStatusDTO
;
import
cn.iocoder.mall.product.biz.enums.category.ProductCategory
Constants
;
import
cn.iocoder.mall.product.biz.enums.category.ProductCategory
NodeEnum
;
import
cn.iocoder.mall.product.biz.service.category.ProductCategoryService
;
import
cn.iocoder.mall.product.biz.service.category.ProductCategoryService
;
import
cn.iocoder.mall.product.rest.convert.category.AdminsProductCategoryConvert
;
import
cn.iocoder.mall.product.rest.convert.category.AdminsProductCategoryConvert
;
import
cn.iocoder.mall.product.rest.request.category.AdminsProductCategoryAddRequest
;
import
cn.iocoder.mall.product.rest.request.category.AdminsProductCategoryAddRequest
;
...
@@ -49,7 +49,7 @@ public class AdminsProductCategoryController {
...
@@ -49,7 +49,7 @@ public class AdminsProductCategoryController {
Map
<
Integer
,
AdminsProductCategoryTreeNodeResponse
>
treeNodeMap
=
productCategories
.
stream
().
collect
(
Collectors
.
toMap
(
ProductCategoryBO:
:
getId
,
AdminsProductCategoryConvert
.
INSTANCE
::
convertToTreeNodeResponse
));
Map
<
Integer
,
AdminsProductCategoryTreeNodeResponse
>
treeNodeMap
=
productCategories
.
stream
().
collect
(
Collectors
.
toMap
(
ProductCategoryBO:
:
getId
,
AdminsProductCategoryConvert
.
INSTANCE
::
convertToTreeNodeResponse
));
// 处理父子关系
// 处理父子关系
treeNodeMap
.
values
().
stream
()
treeNodeMap
.
values
().
stream
()
.
filter
(
node
->
!
node
.
getPid
().
equals
(
ProductCategory
Constants
.
PID_ROOT
))
.
filter
(
node
->
!
node
.
getPid
().
equals
(
ProductCategory
NodeEnum
.
ROOT
.
getId
()
))
.
forEach
((
childNode
)
->
{
.
forEach
((
childNode
)
->
{
// 获得父节点
// 获得父节点
AdminsProductCategoryTreeNodeResponse
parentNode
=
treeNodeMap
.
get
(
childNode
.
getPid
());
AdminsProductCategoryTreeNodeResponse
parentNode
=
treeNodeMap
.
get
(
childNode
.
getPid
());
...
@@ -61,7 +61,7 @@ public class AdminsProductCategoryController {
...
@@ -61,7 +61,7 @@ public class AdminsProductCategoryController {
});
});
// 获得到所有的根节点
// 获得到所有的根节点
List
<
AdminsProductCategoryTreeNodeResponse
>
rootNodes
=
treeNodeMap
.
values
().
stream
()
List
<
AdminsProductCategoryTreeNodeResponse
>
rootNodes
=
treeNodeMap
.
values
().
stream
()
.
filter
(
node
->
node
.
getPid
().
equals
(
ProductCategory
Constants
.
PID_ROOT
))
.
filter
(
node
->
node
.
getPid
().
equals
(
ProductCategory
NodeEnum
.
ROOT
.
getId
()
))
.
sorted
(
Comparator
.
comparing
(
AdminsProductCategoryTreeNodeResponse:
:
getSort
))
.
sorted
(
Comparator
.
comparing
(
AdminsProductCategoryTreeNodeResponse:
:
getSort
))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
return
success
(
rootNodes
);
return
success
(
rootNodes
);
...
...
system/system-biz/src/main/java/cn/iocoder/mall/system/biz/dao/user/UserMapper.java
浏览文件 @
e47029cf
package
cn
.
iocoder
.
mall
.
system
.
biz
.
dao
.
user
;
package
cn
.
iocoder
.
mall
.
system
.
biz
.
dao
.
user
;
import
cn.iocoder.mall.mybatis.query.QueryWrapperX
;
import
cn.iocoder.mall.system.biz.dataobject.authorization.RoleDO
;
import
cn.iocoder.mall.system.biz.dataobject.user.UserDO
;
import
cn.iocoder.mall.system.biz.dataobject.user.UserDO
;
import
cn.iocoder.mall.system.biz.dto.user.UserPageDTO
;
import
cn.iocoder.mall.system.biz.dto.user.UserPageDTO
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
...
@@ -25,12 +27,11 @@ public interface UserMapper extends BaseMapper<UserDO> {
...
@@ -25,12 +27,11 @@ public interface UserMapper extends BaseMapper<UserDO> {
* @return
* @return
*/
*/
default
IPage
<
UserDO
>
selectUserPage
(
UserPageDTO
userPageDTO
)
{
default
IPage
<
UserDO
>
selectUserPage
(
UserPageDTO
userPageDTO
)
{
// TODO FROM 芋艿 to jwf1173:看下 QueryWrapperX 噢,已经提供判空啦
// TODO FROM 芋艿 to jwf1173:看下 QueryWrapperX 噢,已经提供判空啦 [DONE]
// TODO FROM 伟帆 to 芋艿: 这里是使用MP原生的判空,支持lambda好,还是使用QueryWrapperX,使用字段名字符串的好呢;reply:没特别想好,现在建议还是 QueryWrapperX
return
this
.
selectPage
(
new
Page
<>(
userPageDTO
.
getPageNo
(),
userPageDTO
.
getPageSize
()),
return
this
.
selectPage
(
new
Page
<>(
userPageDTO
.
getPageNo
(),
userPageDTO
.
getPageSize
()),
Wrappers
.<
UserDO
>
query
().
lambda
()
new
QueryWrapperX
<
UserDO
>
()
.
eq
(
StringUtils
.
isNotBlank
(
userPageDTO
.
getNickname
()),
UserDO:
:
getNickname
,
userPageDTO
.
getNickname
())
.
eq
(
StringUtils
.
isNotBlank
(
userPageDTO
.
getNickname
()),
"nickname"
,
userPageDTO
.
getNickname
())
.
eq
(
null
!=
userPageDTO
.
getStatus
(),
UserDO:
:
getStatus
,
userPageDTO
.
getStatus
())
.
eq
(
null
!=
userPageDTO
.
getStatus
(),
"status"
,
userPageDTO
.
getStatus
())
);
);
}
}
...
...
system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/errorcode/ErrorCodeServiceImpl.java
浏览文件 @
e47029cf
...
@@ -137,6 +137,6 @@ public class ErrorCodeServiceImpl implements ErrorCodeService {
...
@@ -137,6 +137,6 @@ public class ErrorCodeServiceImpl implements ErrorCodeService {
list
=
list
.
subList
(
currentPage
,
currentPage
+
rows
);
list
=
list
.
subList
(
currentPage
,
currentPage
+
rows
);
}
}
// TODO FROM 芋艿 to 鱿鱼丝:泛型噢
// TODO FROM 芋艿 to 鱿鱼丝:泛型噢
return
new
PageResult
().
setList
(
list
).
setTotal
(
sum
);
return
new
PageResult
().
setList
(
list
).
setTotal
(
new
Long
(
sum
)
);
}
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论