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
968c862b
Commit
968c862b
authored
Nov 05, 2020
by
lpx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 优惠行程机型名称改成关联获取
parent
c8b94410
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
22 deletions
+25
-22
api-merchant/src/main/java/com/jumeirah/api/merchant/entity/param/McStrokeDiscountAddParam.java
+0
-3
common/src/main/resources/mapper/StrokeDiscountMapper.xml
+25
-19
No files found.
api-merchant/src/main/java/com/jumeirah/api/merchant/entity/param/McStrokeDiscountAddParam.java
View file @
968c862b
...
@@ -44,9 +44,6 @@ public class McStrokeDiscountAddParam extends BaseEntity {
...
@@ -44,9 +44,6 @@ public class McStrokeDiscountAddParam extends BaseEntity {
@ApiModelProperty
(
"飞机型号ID"
)
@ApiModelProperty
(
"飞机型号ID"
)
private
Long
plainTypeId
;
private
Long
plainTypeId
;
@ApiModelProperty
(
"飞机型号名称"
)
private
String
plainTypeName
;
@ApiModelProperty
(
"价格"
)
@ApiModelProperty
(
"价格"
)
private
BigDecimal
money
;
private
BigDecimal
money
;
...
...
common/src/main/resources/mapper/StrokeDiscountMapper.xml
View file @
968c862b
...
@@ -4,29 +4,33 @@
...
@@ -4,29 +4,33 @@
<!-- 通用查询结果列 -->
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id,
sd.id,
city_outset_id,
sd.city_outset_id,
city_outset_name,
sd.city_arrive_id,
city_arrive_id,
sd.seat_num,
city_arrive_name,
sd.plain_type_id,
seat_num,
sd.outset_time,
plain_type_id,
sd.return_time,
plain_type_name,
sd.status,
outset_time,
sd.create_time,
return_time,
sd.update_time,
status,
sd.remarks,
create_time,
sd.money,
update_time,
sd.mc_id,
remarks,
sd.type
money,
mc_id,
type
</sql>
</sql>
<select
id=
"getStrokeDiscountById"
resultType=
"com.jumeirah.common.vo.StrokeDiscountQueryVo"
>
<select
id=
"getStrokeDiscountById"
resultType=
"com.jumeirah.common.vo.StrokeDiscountQueryVo"
>
select
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"
/>
<include
refid=
"Base_Column_List"
/>
from stroke_discount where id = #{id}
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.id = #{id}
</select>
</select>
<select
id=
"getStrokeDiscountPageList"
parameterType=
"com.jumeirah.common.param.StrokeDiscountPageParam"
<select
id=
"getStrokeDiscountPageList"
parameterType=
"com.jumeirah.common.param.StrokeDiscountPageParam"
...
@@ -34,10 +38,12 @@
...
@@ -34,10 +38,12 @@
select
select
ctco.city_name_cn as city_outset_name,
ctco.city_name_cn as city_outset_name,
ctca.city_name_cn as city_arrive_name,
ctca.city_name_cn as city_arrive_name,
sd.*
pt.name as plain_type_name,
<include
refid=
"Base_Column_List"
/>
from stroke_discount sd
from stroke_discount sd
INNER JOIN city_three_code ctco ON ctco.id = sd.city_outset_id
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 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.mc_id = #{mcId}
where sd.mc_id = #{mcId}
</select>
</select>
...
...
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