Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
antai-sport-http-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
antai-sport
antai-sport-http-server
Commits
1b4ef4e7
Commit
1b4ef4e7
authored
Jul 14, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
俱乐部列表
parent
8ae4a80c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
ClubController.java
...r/server/api/business/club/controller/ClubController.java
+1
-1
ClubRespDTO.java
...http/server/server/api/business/club/dto/ClubRespDTO.java
+1
-1
ClubBusinessMapper.java
...r/server/api/business/club/mapper/ClubBusinessMapper.java
+2
-2
ClubService.java
.../server/server/api/business/club/service/ClubService.java
+2
-2
ClubBusinessMapper.xml
...api/src/main/resources/mapper/club/ClubBusinessMapper.xml
+1
-1
No files found.
server-api/src/main/java/com/antai/sport/http/server/server/api/business/club/controller/ClubController.java
View file @
1b4ef4e7
...
...
@@ -69,7 +69,7 @@ public class ClubController {
@ApiOperation
(
"俱乐部-列表"
)
@PostMapping
(
"/list"
)
public
ResponseEntity
<
Result
<
List
<
Club
List
RespDTO
>>>
getClubList
(
@RequestBody
ClubListReqDTO
dto
)
{
public
ResponseEntity
<
Result
<
List
<
ClubRespDTO
>>>
getClubList
(
@RequestBody
ClubListReqDTO
dto
)
{
return
success
(
clubService
.
getList
(
dto
));
}
...
...
server-api/src/main/java/com/antai/sport/http/server/server/api/business/club/dto/Club
List
RespDTO.java
→
server-api/src/main/java/com/antai/sport/http/server/server/api/business/club/dto/ClubRespDTO.java
View file @
1b4ef4e7
...
...
@@ -8,7 +8,7 @@ import java.math.BigDecimal;
@ApiModel
(
"俱乐部列表返回数据"
)
@Data
public
class
Club
List
RespDTO
{
public
class
ClubRespDTO
{
@ApiModelProperty
(
"俱乐部id"
)
private
Long
id
;
@ApiModelProperty
(
"俱乐部名称"
)
...
...
server-api/src/main/java/com/antai/sport/http/server/server/api/business/club/mapper/ClubBusinessMapper.java
View file @
1b4ef4e7
package
com
.
antai
.
sport
.
http
.
server
.
server
.
api
.
business
.
club
.
mapper
;
import
com.antai.sport.http.server.server.api.business.club.dto.ClubListReqDTO
;
import
com.antai.sport.http.server.server.api.business.club.dto.Club
List
RespDTO
;
import
com.antai.sport.http.server.server.api.business.club.dto.ClubRespDTO
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -30,6 +30,6 @@ public interface ClubBusinessMapper {
* @param param
* @return
*/
IPage
<
Club
ListRespDTO
>
getClubList
(
IPage
<
ClubList
RespDTO
>
page
,
@Param
(
"param"
)
ClubListReqDTO
param
);
IPage
<
Club
RespDTO
>
getClubList
(
IPage
<
Club
RespDTO
>
page
,
@Param
(
"param"
)
ClubListReqDTO
param
);
}
server-api/src/main/java/com/antai/sport/http/server/server/api/business/club/service/ClubService.java
View file @
1b4ef4e7
...
...
@@ -215,8 +215,8 @@ public class ClubService {
* @param dto
* @return
*/
public
List
<
Club
List
RespDTO
>
getList
(
ClubListReqDTO
dto
)
{
Page
<
Club
List
RespDTO
>
pageParam
=
new
Page
<>(
dto
.
getPageNo
(),
dto
.
getPageSize
());
public
List
<
ClubRespDTO
>
getList
(
ClubListReqDTO
dto
)
{
Page
<
ClubRespDTO
>
pageParam
=
new
Page
<>(
dto
.
getPageNo
(),
dto
.
getPageSize
());
return
clubBusinessMapper
.
getClubList
(
pageParam
,
dto
).
getRecords
();
}
...
...
server-api/src/main/resources/mapper/club/ClubBusinessMapper.xml
View file @
1b4ef4e7
...
...
@@ -17,7 +17,7 @@
where chairman_id = #{playerId}
</select>
<select
id=
"getClubList"
resultType=
"com.antai.sport.http.server.server.api.business.club.dto.Club
List
RespDTO"
>
<select
id=
"getClubList"
resultType=
"com.antai.sport.http.server.server.api.business.club.dto.ClubRespDTO"
>
select * from (
select t1.id,t1.name as club_name,logo as club_logo,
t2.name as province_name,t3.name as city_name,description,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment