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
bb9ec026
Commit
bb9ec026
authored
Nov 22, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
e066a57f
de5cd606
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
CrosstownTypeEnum.java
...c/platform/order/contant/enumerate/CrosstownTypeEnum.java
+1
-1
OrderVehicleCrosstownBiz.java
...com/xxfc/platform/order/biz/OrderVehicleCrosstownBiz.java
+1
-1
BranchCompanyVehicleCountBiz.java
...fc/platform/vehicle/biz/BranchCompanyVehicleCountBiz.java
+1
-1
BranchCompanyVehicleCountMapper.xml
...main/resources/mapper/BranchCompanyVehicleCountMapper.xml
+10
-3
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/contant/enumerate/CrosstownTypeEnum.java
View file @
bb9ec026
...
...
@@ -7,7 +7,7 @@ public enum CrosstownTypeEnum {
DEPARTURE
(
1
,
"交车"
),
ARRIVE
(
2
,
"还车"
),
FIXED_LOSS
(
3
,
"定损"
),
FIXED_LOSS_NOW
(
4
,
"定损"
),
FIXED_LOSS_NOW
(
4
,
"
立即
定损"
),
;
/**
* 编码
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderVehicleCrosstownBiz.java
View file @
bb9ec026
...
...
@@ -298,7 +298,7 @@ public class OrderVehicleCrosstownBiz extends BaseBiz<OrderVehicaleCrosstownMapp
}
catch
(
Exception
e
)
{
return
ObjectRestResponse
.
createFailedResult
(
1001
,
e
.
getMessage
());
}
}
else
if
(
orderVehicleCrosstownDto
.
getType
()
==
CrosstownTypeEnum
.
ARRIVE
.
getCode
()
||
orderVehicleCrosstownDto
.
getType
()
==
CrosstownTypeEnum
.
FIXED_LOSS
.
getCode
())
{
//还车
}
else
if
(
orderVehicleCrosstownDto
.
getType
()
==
CrosstownTypeEnum
.
ARRIVE
.
getCode
()
||
orderVehicleCrosstownDto
.
getType
()
==
CrosstownTypeEnum
.
FIXED_LOSS
.
getCode
()
||
orderVehicleCrosstownDto
.
getType
()
==
CrosstownTypeEnum
.
FIXED_LOSS_NOW
.
getCode
()
)
{
//还车
VehicleArrivalVo
vehicleArrivalVo
=
new
VehicleArrivalVo
();
vehicleArrivalVo
.
setVehicleId
(
orderRentVehicleDetail
.
getVehicleId
());
vehicleArrivalVo
.
setArrivalBranchCompanyId
(
userDTO
.
getCompanyId
());
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/BranchCompanyVehicleCountBiz.java
View file @
bb9ec026
...
...
@@ -86,7 +86,7 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
Integer
page
=
branchCompanyVehicleCountDTO
.
getPage
()
==
null
?
1
:
branchCompanyVehicleCountDTO
.
getPage
();
Integer
limit
=
branchCompanyVehicleCountDTO
.
getLimit
()
==
null
?
10
:
branchCompanyVehicleCountDTO
.
getLimit
();
Integer
type
=
branchCompanyVehicleCountDTO
.
getType
()
==
null
?
1
:
branchCompanyVehicleCountDTO
.
getType
();
branchCompanyVehicleCountDTO
.
setPage
(
--
page
);
branchCompanyVehicleCountDTO
.
setPage
(
page
);
branchCompanyVehicleCountDTO
.
setLimit
(
limit
);
Query
query
=
new
Query
(
branchCompanyVehicleCountDTO
);
if
(
type
==
1
)
{
//按天
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/BranchCompanyVehicleCountMapper.xml
View file @
bb9ec026
...
...
@@ -3,8 +3,14 @@
<mapper
namespace=
"com.xxfc.platform.vehicle.mapper.BranchCompanyVehicleCountMapper"
>
<select
id=
"getAllCountInfo"
parameterType=
"Map"
resultType=
"com.xxfc.platform.vehicle.pojo.BranchCompanyVehicleCountVo"
>
SELECT c.*, b.`name` as companyName from branch_company_vehicle_count c
LEFT JOIN branch_company b on b.id = c.company_id
SELECT
c.company_id as companyId,
c.count_date as countDate,
b.`name` AS companyName,
sum(c.vehicle_num) as vehicleNum
FROM
branch_company_vehicle_count c
LEFT JOIN branch_company b ON b.id = c.company_id
<where>
<if
test =
"companyId != null"
>
and c.company_id = #{companyId}
...
...
@@ -16,7 +22,8 @@
and c.count_date
<
= #{endTime}
</if>
</where>
order by c.count_date
GROUP BY c.id
ORDER BY c.company_id
</select>
<select
id=
"countByMonth"
resultType=
"com.xxfc.platform.vehicle.pojo.BranchCompanyVehicleCountVo"
parameterType=
"Map"
>
...
...
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