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
09ee91bd
Commit
09ee91bd
authored
Nov 05, 2020
by
lpx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 优惠行程机型名称改成关联获取
parent
550c8baf
Show 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 @
09ee91bd
...
@@ -40,7 +40,7 @@ public class StrokeDiscountController extends BaseController {
...
@@ -40,7 +40,7 @@ public class StrokeDiscountController extends BaseController {
@OperationLog
(
name
=
"优惠行程表分页列表"
,
type
=
OperationLogType
.
PAGE
)
@OperationLog
(
name
=
"优惠行程表分页列表"
,
type
=
OperationLogType
.
PAGE
)
@ApiOperation
(
value
=
"优惠行程表分页列表"
)
@ApiOperation
(
value
=
"优惠行程表分页列表"
)
public
ApiResult
<
Paging
<
StrokeDiscountQueryVo
>>
getStrokeDiscountPageList
(
@Validated
@RequestBody
StrokeDiscountPageParam
strokeDiscountPageParam
)
throws
Exception
{
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
);
return
ApiResult
.
ok
(
paging
);
}
}
...
...
common/src/main/java/com/jumeirah/common/mapper/StrokeDiscountMapper.java
View file @
09ee91bd
...
@@ -41,4 +41,14 @@ public interface StrokeDiscountMapper extends BaseMapper<StrokeDiscount> {
...
@@ -41,4 +41,14 @@ public interface StrokeDiscountMapper extends BaseMapper<StrokeDiscount> {
IPage
<
StrokeDiscountQueryVo
>
getStrokeDiscountPageList
(
IPage
<
StrokeDiscountQueryVo
>
getStrokeDiscountPageList
(
@Param
(
"page"
)
Page
page
,
@Param
(
"param"
)
StrokeDiscountPageParam
strokeDiscountPageParam
,
@Param
(
"mcId"
)
Long
mcId
);
@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 @
09ee91bd
...
@@ -59,4 +59,10 @@ public interface StrokeDiscountService extends BaseService<StrokeDiscount> {
...
@@ -59,4 +59,10 @@ public interface StrokeDiscountService extends BaseService<StrokeDiscount> {
*/
*/
Paging
<
StrokeDiscountQueryVo
>
getStrokeDiscountPageList
(
StrokeDiscountPageParam
strokeDiscountPageParam
)
throws
Exception
;
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 @
09ee91bd
...
@@ -66,4 +66,11 @@ public class StrokeDiscountServiceImpl extends BaseServiceImpl<StrokeDiscountMap
...
@@ -66,4 +66,11 @@ public class StrokeDiscountServiceImpl extends BaseServiceImpl<StrokeDiscountMap
return
new
Paging
<
StrokeDiscountQueryVo
>(
iPage
);
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 @
09ee91bd
...
@@ -47,4 +47,19 @@
...
@@ -47,4 +47,19 @@
where sd.mc_id = #{mcId}
where sd.mc_id = #{mcId}
</select>
</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>
</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