Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
9a05611d
Commit
9a05611d
authored
Jun 25, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/base-modify' into base-modify
parents
3bf5d9fd
69c44750
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
OrderTourVerificationMapper.xml
...src/main/resources/mapper/OrderTourVerificationMapper.xml
+1
-1
TourGoodOrderFindVo.java
...n/java/com/xxfc/platform/tour/vo/TourGoodOrderFindVo.java
+1
-1
TourGoodOrderVo.java
.../main/java/com/xxfc/platform/tour/vo/TourGoodOrderVo.java
+2
-2
TourGoodVerificationBiz.java
...a/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
+2
-2
TourGoodVerificationMapper.xml
.../src/main/resources/mapper/TourGoodVerificationMapper.xml
+2
-2
No files found.
xx-order/xx-order-server/src/main/resources/mapper/OrderTourVerificationMapper.xml
View file @
9a05611d
...
...
@@ -10,7 +10,7 @@
d.total_number as totalNumber,d.adult_num as adultNum,d.child_num as childNum
FROM base_order o LEFT JOIN
order_tour_detail d ON o.id=d.order_id
WHERE o.`type`=2 and o.`status`>
2
and d.verification_id=#{verificationId}
WHERE o.`type`=2 and o.`status`>
3
and d.verification_id=#{verificationId}
ORDER BY o.status
</select>
</mapper>
\ No newline at end of file
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/vo/TourGoodOrderFindVo.java
View file @
9a05611d
...
...
@@ -33,7 +33,7 @@ public class TourGoodOrderFindVo extends PageParam {
*/
@NotNull
(
message
=
"出发时间不断能空"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
tr
va
elTime
;
private
Date
tr
av
elTime
;
private
String
travelDate
;
...
...
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/vo/TourGoodOrderVo.java
View file @
9a05611d
...
...
@@ -54,7 +54,7 @@ public class TourGoodOrderVo implements Serializable {
* 总人数
*/
@ApiModelProperty
(
"总人数"
)
private
int
head
c
ount
;
private
int
head
C
ount
;
/**
* 已上车人数
...
...
@@ -66,7 +66,7 @@ public class TourGoodOrderVo implements Serializable {
* 未上车人数
*/
@ApiModelProperty
(
"未上车人数"
)
private
int
leaveOf
n
um
;
private
int
leaveOf
N
um
;
/**
* 是否出行 '状态:0-未出行;1-已出行'
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
View file @
9a05611d
...
...
@@ -42,13 +42,13 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper,
*/
public
PageDataVO
<
TourGoodOrderVo
>
findTourGoodOrdersPage
(
TourGoodOrderFindVo
tourGoodOrderFindVo
)
{
Date
trvaelTime
=
tourGoodOrderFindVo
.
getTr
va
elTime
();
Date
trvaelTime
=
tourGoodOrderFindVo
.
getTr
av
elTime
();
String
dateStr
=
DateUtil
.
format
(
trvaelTime
,
"YYYY-MM-dd"
);
tourGoodOrderFindVo
.
setTravelDate
(
dateStr
);
PageDataVO
<
TourGoodOrderVo
>
tourGoodOrderVoPageDataVO
=
PageDataVO
.
pageInfo
(
tourGoodOrderFindVo
.
getPage
(),
tourGoodOrderFindVo
.
getLimit
(),
()
->
mapper
.
findVerificationAll
(
tourGoodOrderFindVo
));
List
<
TourGoodOrderVo
>
tourGoodOrderVos
=
tourGoodOrderVoPageDataVO
.
getData
();
tourGoodOrderVos
.
stream
().
peek
(
tourGoodOrderVo
->
{
tourGoodOrderVo
.
setLeaveOf
num
(
tourGoodOrderVo
.
getHeadc
ount
()-
tourGoodOrderVo
.
getTripOfNum
());
tourGoodOrderVo
.
setLeaveOf
Num
(
tourGoodOrderVo
.
getHeadC
ount
()-
tourGoodOrderVo
.
getTripOfNum
());
String
startDateStr
=
DateUtil
.
format
(
tourGoodOrderVo
.
getStartDate
(),
"YYYY.MM.dd"
);
tourGoodOrderVo
.
setTravelTime
(
startDateStr
);
...
...
xx-tour/xx-tour-server/src/main/resources/mapper/TourGoodVerificationMapper.xml
View file @
9a05611d
...
...
@@ -31,11 +31,11 @@
</update>
<select
id=
"findVerificationAll"
resultType=
"com.xxfc.platform.tour.vo.TourGoodOrderVo"
>
select * from (SELECT v.id as `id`,v.total_person as `head
c
ount`,v.status as `travelStatus`,v.verification_person as `tripOfNum`,g.name as `name`,
select * from (SELECT v.id as `id`,v.total_person as `head
C
ount`,v.status as `travelStatus`,v.verification_person as `tripOfNum`,g.name as `name`,
g.cover as `coverUrl`,p.start_time as `startDate`,s.depart_time as `startTime`FROM tour_good_verification v
LEFT JOIN tour_good_site s ON v.site_id=s.id
LEFT JOIN tour_good g ON v.good_id=g.id
LEFT JOIN tour_good_spe_price p ON v.spe_id=p.id
WHERE s.company_id=#{companyId} and v.status=#{orderStatus} and p.start_time=#{travelDate} ) as `goodOrder`
WHERE s.company_id=#{companyId} and v.status=#{orderStatus} and p.start_time=#{travelDate}
ORDER BY s.depart_time
) as `goodOrder`
</select>
</mapper>
\ No newline at end of file
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