Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SiEn
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
SiEn
Commits
fe16d531
Commit
fe16d531
authored
Nov 05, 2020
by
lanpingxiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/lanpingxiong' into 'master'
Dev/lanpingxiong See merge request hewei/Jumeirah!69
parents
785db346
49b0cd8f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
1 deletions
+39
-1
api-app/src/main/java/com/jumeirah/api/app/controller/StrokeDiscountController.java
+1
-1
common/src/main/java/com/jumeirah/common/mapper/StrokeDiscountMapper.java
+10
-0
common/src/main/java/com/jumeirah/common/service/StrokeDiscountService.java
+6
-0
common/src/main/java/com/jumeirah/common/service/impl/StrokeDiscountServiceImpl.java
+7
-0
common/src/main/resources/mapper/StrokeDiscountMapper.xml
+15
-0
No files found.
api-app/src/main/java/com/jumeirah/api/app/controller/StrokeDiscountController.java
View file @
fe16d531
...
...
@@ -40,7 +40,7 @@ public class StrokeDiscountController extends BaseController {
@OperationLog
(
name
=
"优惠行程表分页列表"
,
type
=
OperationLogType
.
PAGE
)
@ApiOperation
(
value
=
"优惠行程表分页列表"
)
public
ApiResult
<
Paging
<
StrokeDiscountQueryVo
>>
getStrokeDiscountPageList
(
@Validated
@RequestBody
StrokeDiscountPageParam
strokeDiscountPageParam
)
throws
Exception
{
Paging
<
StrokeDiscountQueryVo
>
paging
=
strokeDiscountService
.
getStrokeDiscountPageList
(
strokeDiscountPageParam
);
Paging
<
StrokeDiscountQueryVo
>
paging
=
strokeDiscountService
.
get
App
StrokeDiscountPageList
(
strokeDiscountPageParam
);
return
ApiResult
.
ok
(
paging
);
}
...
...
common/src/main/java/com/jumeirah/common/mapper/StrokeDiscountMapper.java
View file @
fe16d531
...
...
@@ -41,4 +41,14 @@ public interface StrokeDiscountMapper extends BaseMapper<StrokeDiscount> {
IPage
<
StrokeDiscountQueryVo
>
getStrokeDiscountPageList
(
@Param
(
"page"
)
Page
page
,
@Param
(
"param"
)
StrokeDiscountPageParam
strokeDiscountPageParam
,
@Param
(
"mcId"
)
Long
mcId
);
/**
* 获取分页对象
*
* @param page
* @param strokeDiscountPageParam
* @return
*/
IPage
<
StrokeDiscountQueryVo
>
getAppStrokeDiscountPageList
(
@Param
(
"page"
)
Page
page
,
@Param
(
"param"
)
StrokeDiscountPageParam
strokeDiscountPageParam
);
}
common/src/main/java/com/jumeirah/common/service/StrokeDiscountService.java
View file @
fe16d531
...
...
@@ -59,4 +59,10 @@ public interface StrokeDiscountService extends BaseService<StrokeDiscount> {
*/
Paging
<
StrokeDiscountQueryVo
>
getStrokeDiscountPageList
(
StrokeDiscountPageParam
strokeDiscountPageParam
)
throws
Exception
;
/**
* APP端获取分页对象
* @param strokeDiscountPageParam
* @return
*/
Paging
<
StrokeDiscountQueryVo
>
getAppStrokeDiscountPageList
(
StrokeDiscountPageParam
strokeDiscountPageParam
);
}
common/src/main/java/com/jumeirah/common/service/impl/StrokeDiscountServiceImpl.java
View file @
fe16d531
...
...
@@ -66,4 +66,11 @@ public class StrokeDiscountServiceImpl extends BaseServiceImpl<StrokeDiscountMap
return
new
Paging
<
StrokeDiscountQueryVo
>(
iPage
);
}
@Override
public
Paging
<
StrokeDiscountQueryVo
>
getAppStrokeDiscountPageList
(
StrokeDiscountPageParam
strokeDiscountPageParam
)
{
Page
<
StrokeDiscountQueryVo
>
page
=
new
PageInfo
<>(
strokeDiscountPageParam
,
OrderItem
.
desc
(
getLambdaColumn
(
StrokeDiscount:
:
getCreateTime
)));
IPage
<
StrokeDiscountQueryVo
>
iPage
=
strokeDiscountMapper
.
getAppStrokeDiscountPageList
(
page
,
strokeDiscountPageParam
);
return
new
Paging
<
StrokeDiscountQueryVo
>(
iPage
);
}
}
common/src/main/resources/mapper/StrokeDiscountMapper.xml
View file @
fe16d531
...
...
@@ -47,4 +47,19 @@
where sd.mc_id = #{mcId}
</select>
<select
id=
"getAppStrokeDiscountPageList"
parameterType=
"com.jumeirah.common.param.StrokeDiscountPageParam"
resultType=
"com.jumeirah.common.vo.StrokeDiscountQueryVo"
>
select
ctco.city_name_cn as city_outset_name,
ctca.city_name_cn as city_arrive_name,
pt.name as plain_type_name,
<include
refid=
"Base_Column_List"
/>
from stroke_discount sd
INNER JOIN city_three_code ctco ON ctco.id = sd.city_outset_id
INNER JOIN city_three_code ctca ON ctca.id = sd.city_arrive_id
INNER JOIN plain_type pt ON pt.id = sd.plain_type_id
where sd.status = 0
and sd.seat_num
>
0
</select>
</mapper>
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