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
d852169f
Commit
d852169f
authored
Sep 20, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
9a370439
8f0b7221
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
49 deletions
+80
-49
OrderTourVerificationBiz.java
...com/xxfc/platform/order/biz/OrderTourVerificationBiz.java
+1
-1
TourGoodVerificationBiz.java
...a/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
+3
-0
TourGoodVerificationMapper.java
...xxfc/platform/tour/mapper/TourGoodVerificationMapper.java
+2
-0
TourGoodVerificationController.java
...fc/platform/tour/rest/TourGoodVerificationController.java
+6
-0
TourGoodVerificationMapper.xml
.../src/main/resources/mapper/TourGoodVerificationMapper.xml
+68
-48
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderTourVerificationBiz.java
View file @
d852169f
...
@@ -130,7 +130,7 @@ public class OrderTourVerificationBiz{
...
@@ -130,7 +130,7 @@ public class OrderTourVerificationBiz{
tourDetail
=
tourDetailBiz
.
updateSelectiveByIdReT
(
tourDetail
);
tourDetail
=
tourDetailBiz
.
updateSelectiveByIdReT
(
tourDetail
);
tourFeign
.
updateTourGoodPersonNum
(
verificationId
,
"verification_person"
,
total_number
);
tourFeign
.
updateTourGoodPersonNum
(
verificationId
,
"verification_person"
,
total_number
);
baseOrderBiz
.
sendOrderMq
(
null
,
tourDetail
,
null
,
baseOrder
,
OrderMQDTO
.
ORDER_FINISH
);
baseOrderBiz
.
sendOrderMq
(
null
,
tourDetail
,
null
,
baseOrder
,
OrderMQDTO
.
ORDER_FINISH
);
return
ObjectRestResponse
.
succ
(
tourDetail
.
get
Good
Id
());
return
ObjectRestResponse
.
succ
(
tourDetail
.
get
Verification
Id
());
}
}
//确定上车
//确定上车
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
View file @
d852169f
...
@@ -130,5 +130,8 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper,
...
@@ -130,5 +130,8 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper,
return
ObjectRestResponse
.
succ
(
mapper
.
getVerification
(
verificationId
));
return
ObjectRestResponse
.
succ
(
mapper
.
getVerification
(
verificationId
));
}
}
public
TourGoodOrderVo
findDetailById
(
Integer
id
){
return
mapper
.
findById
(
id
);
}
}
}
\ No newline at end of file
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/mapper/TourGoodVerificationMapper.java
View file @
d852169f
...
@@ -68,4 +68,6 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification>
...
@@ -68,4 +68,6 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification>
//获取核销路线信息
//获取核销路线信息
TourVerificationInfoVo
getVerification
(
@Param
(
"verificationId"
)
Integer
verificationId
);
TourVerificationInfoVo
getVerification
(
@Param
(
"verificationId"
)
Integer
verificationId
);
TourGoodOrderVo
findById
(
@Param
(
"id"
)
Integer
id
);
}
}
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/rest/TourGoodVerificationController.java
View file @
d852169f
...
@@ -70,4 +70,10 @@ public class TourGoodVerificationController extends BaseController<TourGoodVerif
...
@@ -70,4 +70,10 @@ public class TourGoodVerificationController extends BaseController<TourGoodVerif
return
baseBiz
.
selectDepartureStatusByVerificationId
(
verificationId
);
return
baseBiz
.
selectDepartureStatusByVerificationId
(
verificationId
);
}
}
@GetMapping
(
"/app/unauth/detail/{id}"
)
public
ObjectRestResponse
<
TourGoodOrderVo
>
findTourGoodOrderDetail
(
@PathVariable
(
value
=
"id"
)
Integer
id
){
TourGoodOrderVo
tourGoodOrderVo
=
baseBiz
.
findDetailById
(
id
);
return
ObjectRestResponse
.
succ
(
tourGoodOrderVo
);
}
}
}
\ No newline at end of file
xx-tour/xx-tour-server/src/main/resources/mapper/TourGoodVerificationMapper.xml
View file @
d852169f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<mapper
namespace=
"com.xxfc.platform.tour.mapper.TourGoodVerificationMapper"
>
<mapper
namespace=
"com.xxfc.platform.tour.mapper.TourGoodVerificationMapper"
>
<!-- 可根据自己的需求,是否要使用 -->
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"com.xxfc.platform.tour.entity.TourGoodVerification"
id=
"tourGoodVerificationMap"
>
<resultMap
type=
"com.xxfc.platform.tour.entity.TourGoodVerification"
id=
"tourGoodVerificationMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"id"
column=
"id"
/>
<result
property=
"speId"
column=
"spe_id"
/>
<result
property=
"speId"
column=
"spe_id"
/>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</resultMap>
</resultMap>
<update
id=
"delVerification"
>
<update
id=
"delVerification"
>
update
tour_good_verification set
is_del=1
update
tour_good_verification set
is_del=1
where total_person=0 and verification_person=0
where total_person=0 and verification_person=0
and good_id=#{goodId}
and good_id=#{goodId}
<if
test=
"list!=null "
>
<if
test=
"list!=null "
>
...
@@ -31,61 +31,63 @@
...
@@ -31,61 +31,63 @@
</update>
</update>
<select
id=
"findVerificationAll"
resultType=
"com.xxfc.platform.tour.vo.TourGoodOrderVo"
>
<select
id=
"findVerificationAll"
resultType=
"com.xxfc.platform.tour.vo.TourGoodOrderVo"
>
select * from (SELECT v.id as `id`,v.total_person as `headCount`,v.status as `travelStatus`,v.verification_person as `tripOfNum`,g.name as `name`,
select * from (SELECT v.id as `id`,v.total_person as `headCount`,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
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_site s ON v.site_id=s.id
LEFT JOIN tour_good g ON v.good_id=g.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
LEFT JOIN tour_good_spe_price p ON v.spe_id=p.id
WHERE
<![CDATA[`total_person`<>0]]>
WHERE
<![CDATA[`total_person`<>0]]>
<if
test=
'companyId !=null'
>
<if
test=
'companyId !=null'
>
and s.company_id=#{companyId}
and s.company_id=#{companyId}
</if>
</if>
<if
test=
"orderStatus!=null"
>
<if
test=
"orderStatus!=null"
>
and v.status=#{orderStatus}
and v.status=#{orderStatus}
</if>
</if>
<if
test=
"travelDate!=null"
>
<if
test=
"travelDate!=null"
>
and p.start_time=#{travelDate}
and p.start_time=#{travelDate}
</if>
ORDER BY p.start_time DESC ) as `goodOrder`
</if>
ORDER BY p.start_time DESC ) as `goodOrder`
</select>
</select>
<!-- 获取旅游路线id-->
<!-- 获取旅游路线id-->
<select
id=
"getGoodList"
resultType=
"com.xxfc.platform.tour.vo.TourVerificationInfoVo"
>
<select
id=
"getGoodList"
resultType=
"com.xxfc.platform.tour.vo.TourVerificationInfoVo"
>
SELECT
SELECT
v.good_id as goodId,
v.good_id as goodId,
g.`name` as goodName
g.`name` as goodName
FROM
FROM
tour_good_verification v
tour_good_verification v
LEFT JOIN tour_good g ON v.good_id = g.id
LEFT JOIN tour_good g ON v.good_id = g.id
WHERE
WHERE
v.is_del = 0
v.is_del = 0
<if
test=
"list!=null and list.size != 0"
>
<if
test=
"list!=null and list.size != 0"
>
and v.site_id
in (
and v.site_id
in (
<trim
suffixOverrides=
","
>
<trim
suffixOverrides=
","
>
<foreach
collection=
"list"
item=
"item"
>
<foreach
collection=
"list"
item=
"item"
>
#{item.siteId},
#{item.siteId},
</foreach>
</foreach>
</trim>
</trim>
)
)
</if>
</if>
GROUP BY
GROUP BY
v.good_id
v.good_id
</select>
</select>
<!--获取路线id-->
<!--获取路线id-->
<select
id=
"getSiteList"
resultType=
"com.xxfc.platform.tour.vo.TourVerificationInfoVo"
>
<select
id=
"getSiteList"
resultType=
"com.xxfc.platform.tour.vo.TourVerificationInfoVo"
>
SELECT
SELECT
id as siteId,
id as siteId,
name as siteName,
name as siteName,
company_id as companyId
company_id as companyId
FROM tour_good_site
FROM tour_good_site
WHERE
is_del=0
WHERE is_del=0
and type=0
and type=0
<if
test=
"goodId!=null and goodId!='' "
>
<if
test=
"goodId!=null and goodId!='' "
>
and good_id=#{goodId}
and good_id=#{goodId}
</if>
</if>
<if
test=
"companyId!=null and companyId!='' "
>
<if
test=
"companyId!=null and companyId!='' "
>
and company_id=#{companyId}
and company_id=#{companyId}
</if>
</if>
<if
test=
"companyList!=null and companyList.size != 0"
>
<if
test=
"companyList!=null and companyList.size != 0"
>
and company_id
in (
and company_id in (
<trim
suffixOverrides=
","
>
<trim
suffixOverrides=
","
>
<foreach
collection=
"companyList"
item=
"id"
>
<foreach
collection=
"companyList"
item=
"id"
>
#{id},
#{id},
...
@@ -93,33 +95,33 @@
...
@@ -93,33 +95,33 @@
</trim>
</trim>
)
)
</if>
</if>
order by
rank desc
order by rank desc
</select>
</select>
<!--获取时间-->
<!--获取时间-->
<select
id=
"getSpeList"
resultType=
"com.xxfc.platform.tour.vo.TourVerificationInfoVo"
>
<select
id=
"getSpeList"
resultType=
"com.xxfc.platform.tour.vo.TourVerificationInfoVo"
>
SELECT
SELECT
DISTINCT
DISTINCT
v.id as verificationId,
v.id as verificationId,
v.spe_id as speId,
v.spe_id as speId,
p.start_time as startTime,
p.start_time as startTime,
p.end_time as endTime,
p.end_time as endTime,
CONCAT(date_format(p.start_time,'%Y-%m-%d'), '~', date_format(p.end_time, '%Y-%m-%d')) as time
CONCAT(date_format(p.start_time,'%Y-%m-%d'), '~', date_format(p.end_time, '%Y-%m-%d')) as time
FROM
FROM
tour_good_verification v
tour_good_verification v
LEFT JOIN tour_good_site s
on v.site_id=s.id
LEFT JOIN tour_good_site s
on v.site_id=s.id
LEFT JOIN
tour_good_spe_price p ON v.spe_id=p.id
LEFT JOIN
tour_good_spe_price p ON v.spe_id=p.id
WHERE
WHERE
v.is_del = 0 and v.good_id=#{goodId}
<!--and DATEDIFF(p.start_time,NOW())>0-->
v.is_del = 0 and v.good_id=#{goodId}
<!--and DATEDIFF(p.start_time,NOW())>0-->
<if
test=
"siteId!=null and siteId!='' "
>
<if
test=
"siteId!=null and siteId!='' "
>
and v.site_id=#{siteId}
and v.site_id=#{siteId}
</if>
</if>
<if
test=
"companyId!=null and companyId!='' "
>
<if
test=
"companyId!=null and companyId!='' "
>
and s.company_id=#{companyId}
and s.company_id=#{companyId}
</if>
</if>
ORDER BY
ORDER BY
p.start_time
p.start_time
</select>
</select>
<!--获取核销信息-->
<!--获取核销信息-->
<select
id=
"getVerification"
resultType=
"com.xxfc.platform.tour.vo.TourVerificationInfoVo"
>
<select
id=
"getVerification"
resultType=
"com.xxfc.platform.tour.vo.TourVerificationInfoVo"
>
SELECT
SELECT
...
@@ -142,4 +144,22 @@
...
@@ -142,4 +144,22 @@
WHERE v.id=#{verificationId}
WHERE v.id=#{verificationId}
</select>
</select>
<select
id=
"findById"
resultType=
"com.xxfc.platform.tour.vo.TourGoodOrderVo"
>
SELECT
v.id AS `id`,
v.total_person AS `headCount`,
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
v.id = #{id}
</select>
</mapper>
</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