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
70798399
Commit
70798399
authored
Aug 17, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消预定和出车的bug
parent
17448e2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
VehicleBookRecordBiz.java
...a/com/xxfc/platform/vehicle/biz/VehicleBookRecordBiz.java
+7
-14
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleBookRecordBiz.java
View file @
70798399
...
@@ -179,11 +179,15 @@ public class VehicleBookRecordBiz extends BaseBiz<VehicleBookRecordMapper, Vehic
...
@@ -179,11 +179,15 @@ public class VehicleBookRecordBiz extends BaseBiz<VehicleBookRecordMapper, Vehic
if
(
vehicleBookRecordQueryVo
.
getStatus
()
!=
null
&&
vehicleBookRecordQueryVo
.
getStatus
()
==
2
)
{
if
(
vehicleBookRecordQueryVo
.
getStatus
()
!=
null
&&
vehicleBookRecordQueryVo
.
getStatus
()
==
2
)
{
List
<
VehicleBookRecordVo
>
list
=
mapper
.
getBookRecordInfo
(
query
.
getSuper
());
List
<
VehicleBookRecordVo
>
list
=
mapper
.
getBookRecordInfo
(
query
.
getSuper
());
removeStatus2
(
list
);
removeStatus2
(
list
);
//PageHelper.startPage(vehicleBookRecordQueryVo.getPage().intValue(), vehicleBookRecordQueryVo.getLimit().intValue());
PageInfo
<
VehicleBookRecordVo
>
vehicleBookRecordVoPageInfo
=
new
PageInfo
<>(
list
);
PageInfo
<
VehicleBookRecordVo
>
vehicleBookRecordVoPageInfo
=
new
PageInfo
<>(
list
);
getupKeeps
(
vehicleBookRecordVoPageInfo
.
getList
());
getupKeeps
(
vehicleBookRecordVoPageInfo
.
getList
());
vehicleBookRecordVoPageInfo
.
setList
(
getData
(
vehicleBookRecordVoPageInfo
.
getList
(),
pageNo
,
pageSize
));
PageDataVO
<
VehicleBookRecordVo
>
vehicleBookRecordVoPageDataVO
=
PageDataVO
.
pageInfo
(
vehicleBookRecordVoPageInfo
);
return
RestResponse
.
suc
(
getVehicleBookRecordVoPageInfo
(
PageDataVO
.
pageInfo
(
vehicleBookRecordVoPageInfo
),
pageNo
,
pageSize
));
vehicleBookRecordVoPageDataVO
.
setPageNum
(
pageNo
);
vehicleBookRecordVoPageDataVO
.
setPageSize
(
pageSize
);
vehicleBookRecordVoPageDataVO
.
setTotalCount
((
long
)
vehicleBookRecordVoPageInfo
.
getList
().
size
());
vehicleBookRecordVoPageDataVO
.
setTotalPage
((
vehicleBookRecordVoPageInfo
.
getList
().
size
()
+
pageSize
-
1
)
/
pageSize
);
vehicleBookRecordVoPageDataVO
.
setData
(
getData
(
vehicleBookRecordVoPageInfo
.
getList
(),
pageNo
,
pageSize
));
return
RestResponse
.
suc
(
vehicleBookRecordVoPageDataVO
);
}
}
PageDataVO
<
VehicleBookRecordVo
>
pageDataVO
=
PageDataVO
.
pageInfo
(
query
,
()
->
mapper
.
getBookRecordInfo
(
query
.
getSuper
()));
PageDataVO
<
VehicleBookRecordVo
>
pageDataVO
=
PageDataVO
.
pageInfo
(
query
,
()
->
mapper
.
getBookRecordInfo
(
query
.
getSuper
()));
getupKeeps
(
pageDataVO
.
getData
());
getupKeeps
(
pageDataVO
.
getData
());
...
@@ -554,15 +558,4 @@ public class VehicleBookRecordBiz extends BaseBiz<VehicleBookRecordMapper, Vehic
...
@@ -554,15 +558,4 @@ public class VehicleBookRecordBiz extends BaseBiz<VehicleBookRecordMapper, Vehic
}
}
return
data
.
subList
(
fromIndex
,
toIndex
);
return
data
.
subList
(
fromIndex
,
toIndex
);
}
}
public
PageDataVO
<
VehicleBookRecordVo
>
getVehicleBookRecordVoPageInfo
(
PageDataVO
<
VehicleBookRecordVo
>
vehicleBookRecordVoPageInfo
,
Integer
currentPage
,
Integer
pageSize
)
{
if
(
vehicleBookRecordVoPageInfo
.
getData
()
==
null
)
{
return
vehicleBookRecordVoPageInfo
;
}
vehicleBookRecordVoPageInfo
.
setPageNum
(
currentPage
);
vehicleBookRecordVoPageInfo
.
setPageSize
(
pageSize
);
vehicleBookRecordVoPageInfo
.
setTotalCount
((
long
)
vehicleBookRecordVoPageInfo
.
getData
().
size
());
vehicleBookRecordVoPageInfo
.
setTotalPage
((
vehicleBookRecordVoPageInfo
.
getData
().
size
()
+
pageSize
-
1
)
/
pageSize
);
return
vehicleBookRecordVoPageInfo
;
}
}
}
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