Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
A
Afrishop refactored project
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Whispa
Afrishop refactored project
Commits
1f90f7c6
提交
1f90f7c6
authored
11月 24, 2020
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Optimized
上级
c7abd262
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
4 行删除
+5
-4
AuthController.java
...a/com/example/afrishop_v3/controllers/AuthController.java
+1
-0
ItemController.java
...a/com/example/afrishop_v3/controllers/ItemController.java
+2
-2
TbCfStationItemRepository.java
...ple/afrishop_v3/repository/TbCfStationItemRepository.java
+2
-2
没有找到文件。
src/main/java/com/example/afrishop_v3/controllers/AuthController.java
浏览文件 @
1f90f7c6
...
...
@@ -508,6 +508,7 @@ public class AuthController extends Controller {
private
void
fillUserNecessayInfo
(
TbCfUserInfo
tbCfUserInfoVo
)
{
if
(
tbCfUserInfoVo
.
getAvatar
()
==
null
)
tbCfUserInfoVo
.
setAvatar
(
domainProperties
.
getProperty
(
"user.avatar"
));
tbCfUserInfoVo
.
setNick
(
tbCfUserInfoVo
.
getAccount
());
tbCfUserInfoVo
.
setUserNo
(
IdUtil
.
createIdByDate
());
tbCfUserInfoVo
.
setPhoneFlag
(
StateConstant
.
INVALID
);
tbCfUserInfoVo
.
setLoginCount
(
0
);
...
...
src/main/java/com/example/afrishop_v3/controllers/ItemController.java
浏览文件 @
1f90f7c6
...
...
@@ -56,7 +56,7 @@ public class ItemController {
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"6"
)
Integer
pageSize
,
@RequestParam
(
value
=
"order"
,
required
=
false
)
String
order
)
{
return
new
Result
<>(
repository
.
findAllByItemCategorytwo
(
typeTwoId
,
PageRequest
.
of
(
pageNum
,
pageSize
,
sort
(
order
))));
return
new
Result
<>(
repository
.
findAllByItemCategorytwo
OrderByCreateTimeDesc
(
typeTwoId
,
PageRequest
.
of
(
pageNum
,
pageSize
,
sort
(
order
))));
}
@GetMapping
(
"/queryCategoryTwoByCid/{categoryId}"
)
...
...
@@ -133,7 +133,7 @@ public class ItemController {
@RequestParam
(
value
=
"pageNum"
,
defaultValue
=
"0"
)
Integer
pageNum
,
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"6"
)
Integer
pageSize
,
@RequestParam
(
value
=
"order"
,
required
=
false
)
String
order
)
{
return
new
Result
<>(
repository
.
findAllByItemDescritionId
(
typeThreeId
,
PageRequest
.
of
(
pageNum
,
pageSize
,
sort
(
order
))));
return
new
Result
<>(
repository
.
findAllByItemDescritionId
OrderByCreateTimeDesc
(
typeThreeId
,
PageRequest
.
of
(
pageNum
,
pageSize
,
sort
(
order
))));
}
private
Sort
sort
(
String
order
){
...
...
src/main/java/com/example/afrishop_v3/repository/TbCfStationItemRepository.java
浏览文件 @
1f90f7c6
...
...
@@ -12,9 +12,9 @@ import org.springframework.data.repository.query.Param;
import
java.util.List
;
public
interface
TbCfStationItemRepository
extends
PagingAndSortingRepository
<
TbCfStationItem
,
String
>
{
Page
<
TbCfStationItem
>
findAllByItemCategorytwo
(
String
category
,
Pageable
pageable
);
Page
<
TbCfStationItem
>
findAllByItemCategorytwo
OrderByCreateTimeDesc
(
String
category
,
Pageable
pageable
);
Page
<
TbCfStationItem
>
findAllByItemDescritionId
(
String
description
,
Pageable
pageable
);
Page
<
TbCfStationItem
>
findAllByItemDescritionId
OrderByCreateTimeDesc
(
String
description
,
Pageable
pageable
);
Page
<
TbCfStationItem
>
findAllByItemLabelContaining
(
String
label
,
Pageable
pageable
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论