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
32a01e87
Commit
32a01e87
authored
Nov 10, 2020
by
lpx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 商家端获取行程列表接口国际化需求
parent
5e339eca
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
13 deletions
+21
-13
api-merchant/src/main/java/com/jumeirah/api/merchant/controller/order/McStrokeController.java
+4
-2
common/src/main/java/com/jumeirah/common/mapper/StrokeMapper.java
+3
-2
common/src/main/java/com/jumeirah/common/service/StrokeService.java
+2
-1
common/src/main/java/com/jumeirah/common/service/impl/StrokeServiceImpl.java
+2
-2
common/src/main/resources/mapper/StrokeMapper.xml
+10
-6
No files found.
api-merchant/src/main/java/com/jumeirah/api/merchant/controller/order/McStrokeController.java
View file @
32a01e87
...
...
@@ -28,6 +28,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestHeader
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -71,6 +72,7 @@ public class McStrokeController extends BaseController {
/**
* 发送推送信息给APP端
*
* @param id
* @param pushType
* @param title
...
...
@@ -89,8 +91,8 @@ public class McStrokeController extends BaseController {
@OperationLog
(
name
=
"行程分页列表"
,
type
=
OperationLogType
.
PAGE
)
@ApiOperation
(
value
=
"行程分页列表"
)
@RequiresPermissions
(
"merchant:order:view"
)
public
ApiResult
<
Paging
<
McStrokeQueryVo
>>
getMyStrokePageList
(
@Validated
@RequestBody
McStrokePageParam
mcStrokePageParam
)
throws
Exception
{
Paging
<
McStrokeQueryVo
>
paging
=
strokeService
.
getMcStrokePageList
(
mcStrokePageParam
);
public
ApiResult
<
Paging
<
McStrokeQueryVo
>>
getMyStrokePageList
(
@Validated
@RequestBody
McStrokePageParam
mcStrokePageParam
,
@RequestHeader
(
required
=
false
)
String
language
)
throws
Exception
{
Paging
<
McStrokeQueryVo
>
paging
=
strokeService
.
getMcStrokePageList
(
mcStrokePageParam
,
language
);
return
ApiResult
.
ok
(
paging
);
}
...
...
common/src/main/java/com/jumeirah/common/mapper/StrokeMapper.java
View file @
32a01e87
...
...
@@ -65,11 +65,12 @@ public interface StrokeMapper extends BaseMapper<Stroke> {
* @param page
* @param mcStrokePageParam
* @param mcId
* @param language
* @return
*/
IPage
<
McStrokeQueryVo
>
getMcStrokePageList
(
@Param
(
"page"
)
Page
page
,
@Param
(
"mcStrokePageParam"
)
McStrokePageParam
mcStrokePageParam
,
@Param
(
"mcId"
)
long
mcId
);
@Param
(
"mcId"
)
long
mcId
,
@Param
(
"language"
)
String
language
);
/**
* 收款记录
...
...
@@ -90,6 +91,6 @@ public interface StrokeMapper extends BaseMapper<Stroke> {
* @param id
* @return
*/
McStrokeQueryVo
getStrokeInfo
(
@Param
(
"mcId"
)
Long
mcId
,
@Param
(
"id"
)
Long
id
);
McStrokeQueryVo
getStrokeInfo
(
@Param
(
"mcId"
)
Long
mcId
,
@Param
(
"id"
)
Long
id
);
}
common/src/main/java/com/jumeirah/common/service/StrokeService.java
View file @
32a01e87
...
...
@@ -73,9 +73,10 @@ public interface StrokeService extends BaseService<Stroke> {
* 商家端,分页获取行程接口
*
* @param mcStrokePageParam
* @param language
* @return
*/
Paging
<
McStrokeQueryVo
>
getMcStrokePageList
(
McStrokePageParam
mcStrokePageParam
);
Paging
<
McStrokeQueryVo
>
getMcStrokePageList
(
McStrokePageParam
mcStrokePageParam
,
String
language
);
/**
* 收款记录
...
...
common/src/main/java/com/jumeirah/common/service/impl/StrokeServiceImpl.java
View file @
32a01e87
...
...
@@ -111,10 +111,10 @@ public class StrokeServiceImpl extends BaseServiceImpl<StrokeMapper, Stroke> imp
}
@Override
public
Paging
<
McStrokeQueryVo
>
getMcStrokePageList
(
McStrokePageParam
mcStrokePageParam
)
{
public
Paging
<
McStrokeQueryVo
>
getMcStrokePageList
(
McStrokePageParam
mcStrokePageParam
,
String
language
)
{
Page
<
StrokeQueryVo
>
page
=
new
PageInfo
<>(
mcStrokePageParam
);
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
IPage
<
McStrokeQueryVo
>
mcStrokePageList
=
strokeMapper
.
getMcStrokePageList
(
page
,
mcStrokePageParam
,
jwtToken
.
getMcId
());
IPage
<
McStrokeQueryVo
>
mcStrokePageList
=
strokeMapper
.
getMcStrokePageList
(
page
,
mcStrokePageParam
,
jwtToken
.
getMcId
()
,
language
);
return
new
Paging
<
McStrokeQueryVo
>(
mcStrokePageList
);
}
...
...
common/src/main/resources/mapper/StrokeMapper.xml
View file @
32a01e87
...
...
@@ -18,8 +18,6 @@
user_id,
mu.username AS merchantName,
arrive_plain_type_id,
back_outset_airport_name,
back_arrive_airport_name,
payment_status,
audit_status,
user_recharge_bank,
...
...
@@ -56,8 +54,6 @@
outset_airport_name,
arrive_airport_name,
arrive_plain_type_id,
back_outset_airport_name,
back_arrive_airport_name,
payment_status,audit_status,
user_recharge_money,
user_recharge_bank,
...
...
@@ -164,8 +160,6 @@
s.money,
s.user_id,
s.arrive_plain_type_id,
s.back_outset_airport_name,
s.back_arrive_airport_name,
s.choose_plain_type,
s.payment_status,
s.audit_status,
...
...
@@ -177,10 +171,20 @@
s.user_recharge_time,
s.is_discount,
s.payment_channel,
<choose>
<when
test=
"language !='zh_CN'"
>
ctco.city_name_en as city_outset_name,
ctco.airport_name_en as outset_airport_name,
ctca.city_name_en as city_arrive_name,
ctca.airport_name_en as arrive_airport_name,
</when>
<otherwise>
ctco.city_name_cn as city_outset_name,
ctco.airport_name_cn as outset_airport_name,
ctca.city_name_cn as city_arrive_name,
ctca.airport_name_cn as arrive_airport_name,
</otherwise>
</choose>
CONCAT( au.surname, au.name) AS applicant,
pt.name AS plain_type_name,
au.phone AS phone_number
...
...
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