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
f0156e6d
Commit
f0156e6d
authored
Oct 22, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加根据预定记录ID获取出行记录接口
parent
5b7c75c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
VehicleActiveService.java
...a/com/xxfc/platform/vehicle/biz/VehicleActiveService.java
+1
-4
VehicleDepartureLogMapper.xml
...r/src/main/resources/mapper/VehicleDepartureLogMapper.xml
+3
-1
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleActiveService.java
View file @
f0156e6d
...
@@ -20,7 +20,6 @@ import org.springframework.beans.factory.annotation.Value;
...
@@ -20,7 +20,6 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
tk.mybatis.mapper.entity.Example
;
import
java.util.*
;
import
java.util.*
;
...
@@ -462,9 +461,7 @@ public class VehicleActiveService {
...
@@ -462,9 +461,7 @@ public class VehicleActiveService {
if
(
bookRecordId
==
null
)
{
if
(
bookRecordId
==
null
)
{
return
ObjectRestResponse
.
paramIsEmpty
();
return
ObjectRestResponse
.
paramIsEmpty
();
}
}
Example
example
=
new
Example
(
VehicleDepartureLog
.
class
);
VehicleDepartureLogVo
vehicleDepartureLog
=
vehicleDepartureLogMapper
.
selectByBookRecordId
(
bookRecordId
);
example
.
createCriteria
().
andEqualTo
(
"bookRecordId"
,
bookRecordId
);
VehicleDepartureLog
vehicleDepartureLog
=
vehicleDepartureLogMapper
.
selectOneByExample
(
example
);
if
(
vehicleDepartureLog
==
null
)
{
if
(
vehicleDepartureLog
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResCode
.
FIND_DATA_NOT_EXIST
.
getCode
(),
ResCode
.
FIND_DATA_NOT_EXIST
.
getDesc
());
return
ObjectRestResponse
.
createFailedResult
(
ResCode
.
FIND_DATA_NOT_EXIST
.
getCode
(),
ResCode
.
FIND_DATA_NOT_EXIST
.
getDesc
());
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleDepartureLogMapper.xml
View file @
f0156e6d
...
@@ -29,8 +29,10 @@
...
@@ -29,8 +29,10 @@
</select>
</select>
<select
id=
"selectByBookRecordId"
parameterType=
"java.lang.Long"
resultType=
"com.xxfc.platform.vehicle.pojo.VehicleDepartureLogVo"
>
<select
id=
"selectByBookRecordId"
parameterType=
"java.lang.Long"
resultType=
"com.xxfc.platform.vehicle.pojo.VehicleDepartureLogVo"
>
select vehicle_departure_log.*
select vehicle_departure_log.*
, bc.name as departureName,bc1.name as arrivalName,
from vehicle_departure_log
from vehicle_departure_log
LEFT JOIN branch_company bc ON vehicle_departure_log.departure_branch_company_id = bc.id
LEFT JOIN branch_company bc1 ON vehicle_departure_log.arrival_branch_company_id = bc1.id
where vehicle_departure_log.book_record_id = #{id}
where vehicle_departure_log.book_record_id = #{id}
order by create_time desc
order by create_time desc
</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