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
4ec960be
Commit
4ec960be
authored
Nov 06, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into base-modify
parents
7dff958c
6679062c
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
19 additions
and
19 deletions
+19
-19
DailyMembersOrderStatisticsBiz.java
...fc/platform/order/biz/DailyMembersOrderStatisticsBiz.java
+1
-1
DailyMembersOrderStatisticsMapper.java
...tform/order/mapper/DailyMembersOrderStatisticsMapper.java
+1
-1
DailyTravelOrderStatisticsMapper.java
...atform/order/mapper/DailyTravelOrderStatisticsMapper.java
+1
-1
DailyVehicleOrderStatisticsMapper.java
...tform/order/mapper/DailyVehicleOrderStatisticsMapper.java
+1
-1
OrderStatisticsController.java
...form/order/rest/background/OrderStatisticsController.java
+1
-1
DailyMembersOrderStatisticsMapper.xml
...in/resources/mapper/DailyMembersOrderStatisticsMapper.xml
+2
-2
DailyTravelOrderStatisticsMapper.xml
...ain/resources/mapper/DailyTravelOrderStatisticsMapper.xml
+2
-2
DailyVehicleOrderStatisticsMapper.xml
...in/resources/mapper/DailyVehicleOrderStatisticsMapper.xml
+2
-2
VehicleFeign.java
...in/java/com/xxfc/platform/vehicle/feign/VehicleFeign.java
+3
-2
BranchCompanyBiz.java
.../java/com/xxfc/platform/vehicle/biz/BranchCompanyBiz.java
+2
-3
BranchCompanyController.java
...m/xxfc/platform/vehicle/rest/BranchCompanyController.java
+3
-3
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/DailyMembersOrderStatisticsBiz.java
View file @
4ec960be
...
...
@@ -159,7 +159,7 @@ public class DailyMembersOrderStatisticsBiz extends BaseBiz<DailyMembersOrderSta
}
public
OrderStatistics
findAll
(
List
<
Integer
>
companyIds
)
{
return
mapper
.
monthOrderTotal
(
companyIds
);
return
mapper
.
monthOrderTotal
(
companyIds
);
}
/**
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/mapper/DailyMembersOrderStatisticsMapper.java
View file @
4ec960be
...
...
@@ -18,7 +18,7 @@ public interface DailyMembersOrderStatisticsMapper extends Mapper<DailyMembersOr
Map
<
String
,
Object
>
getTravelGmv
(
@Param
(
"day"
)
Integer
day
);
OrderStatistics
monthOrderTotal
(
List
<
Integer
>
companyIds
);
OrderStatistics
monthOrderTotal
(
List
<
Integer
>
list
);
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/mapper/DailyTravelOrderStatisticsMapper.java
View file @
4ec960be
...
...
@@ -19,5 +19,5 @@ public interface DailyTravelOrderStatisticsMapper extends Mapper<DailyTravelOrde
List
<
DailyTravelOrderStatistics
>
getTravelPenalSum
(
@Param
(
"day"
)
Integer
day
);
OrderStatistics
monthOrderTotal
(
List
<
Integer
>
companyIds
);
OrderStatistics
monthOrderTotal
(
List
<
Integer
>
list
);
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/mapper/DailyVehicleOrderStatisticsMapper.java
View file @
4ec960be
...
...
@@ -25,5 +25,5 @@ public interface DailyVehicleOrderStatisticsMapper extends Mapper<DailyVehicleOr
List
<
DailyVehicleOrderStatistics
>
getViolationMoney
(
@Param
(
"day"
)
Integer
day
);
OrderStatistics
monthOrderTotal
(
List
<
Integer
>
companyIds
);
OrderStatistics
monthOrderTotal
(
@Param
(
"list"
)
List
<
Integer
>
list
);
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/background/OrderStatisticsController.java
View file @
4ec960be
...
...
@@ -100,7 +100,7 @@ public class OrderStatisticsController extends BaseController<OrderStatisticsBiz
UserDTO
user
=
userDTOObjectRestResponse
.
getData
();
List
<
Integer
>
companyIds
=
null
;
if
(!
DATA_AUTHORITY
.
equals
(
user
.
getDataAll
()))
{
companyIds
=
vehicleFeign
.
getCompanyIds
().
getData
();
companyIds
=
vehicleFeign
.
getCompanyIds
(
user
.
getDataZone
(),
user
.
getDataCompany
()
).
getData
();
}
//只统计租车订单
if
(
TYPE_VEHICLE
.
equals
(
type
))
{
...
...
xx-order/xx-order-server/src/main/resources/mapper/DailyMembersOrderStatisticsMapper.xml
View file @
4ec960be
...
...
@@ -22,9 +22,9 @@
daily_members_order_statistics
WHERE
1=1
<if
test=
"
companyIds != null and companyIds
.size()!=0"
>
<if
test=
"
list != null and list
.size()!=0"
>
and branch_company_id in
<foreach
collection=
"
companyIds
"
index=
"index"
item=
"companyId"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"
list
"
index=
"index"
item=
"companyId"
open=
"("
separator=
","
close=
")"
>
#{companyId}
</foreach>
</if>
...
...
xx-order/xx-order-server/src/main/resources/mapper/DailyTravelOrderStatisticsMapper.xml
View file @
4ec960be
...
...
@@ -58,9 +58,9 @@
daily_travel_order_statistics
WHERE
1=1
<if
test=
"
companyIds != null and companyIds
.size()!=0"
>
<if
test=
"
list != null and list
.size()!=0"
>
and branch_company_id in
<foreach
collection=
"
companyIds
"
index=
"index"
item=
"companyId"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"
list
"
index=
"index"
item=
"companyId"
open=
"("
separator=
","
close=
")"
>
#{companyId}
</foreach>
</if>
...
...
xx-order/xx-order-server/src/main/resources/mapper/DailyVehicleOrderStatisticsMapper.xml
View file @
4ec960be
...
...
@@ -94,9 +94,9 @@
daily_vehicle_order_statistics
WHERE
1=1
<if
test=
"
companyIds != null and companyIds
.size()!=0"
>
<if
test=
"
list != null and list
.size()!=0"
>
and branch_company_id in
<foreach
collection=
"
companyIds
"
index=
"index"
item=
"companyId"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"
list
"
index=
"index"
item=
"companyId"
open=
"("
separator=
","
close=
")"
>
#{companyId}
</foreach>
</if>
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/feign/VehicleFeign.java
View file @
4ec960be
package
com
.
xxfc
.
platform
.
vehicle
.
feign
;
import
com.github.wxiaoqi.security.admin.feign.dto.UserDTO
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.vo.GoodDataVO
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
...
...
@@ -171,8 +172,8 @@ public interface VehicleFeign {
@RequestMapping
(
value
=
"/vehicleInfo/bookRecord/update"
,
method
=
RequestMethod
.
POST
)
public
ObjectRestResponse
update
(
@RequestBody
BookRecordUpdateLog
bookRecordUpdateLog
);
@
RequestMapping
(
value
=
"/branchCompany/app/unauth/getCompanyIds"
,
method
=
RequestMethod
.
GET
)
RestResponse
<
List
<
Integer
>>
getCompanyIds
();
@
GetMapping
(
value
=
"/branchCompany/getCompanyIds"
)
RestResponse
<
List
<
Integer
>>
getCompanyIds
(
@RequestParam
(
value
=
"dataZone"
)
String
dataZone
,
@RequestParam
(
value
=
"dataCompany"
)
String
dataCompany
);
@GetMapping
(
value
=
"/bookRecord/get"
)
public
ObjectRestResponse
<
List
<
BookRecordUpdateLog
>>
get
(
@RequestParam
(
value
=
"bookRecordId"
)
Long
bookRecordId
);
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/BranchCompanyBiz.java
View file @
4ec960be
...
...
@@ -413,8 +413,7 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
return
ObjectRestResponse
.
succ
(
list
);
}
public
List
<
Integer
>
getCompanyIds
()
{
UserDTO
userDTO
=
getAdminUserInfo
();
return
vehicleBiz
.
dataCompany
(
userDTO
.
getDataZone
(),
userDTO
.
getDataCompany
());
public
List
<
Integer
>
getCompanyIds
(
String
dataZone
,
String
dataCompany
)
{
return
vehicleBiz
.
dataCompany
(
dataZone
,
dataCompany
);
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/BranchCompanyController.java
View file @
4ec960be
...
...
@@ -221,10 +221,10 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> {
return
baseBiz
.
branchCompans
();
}
@RequestMapping
(
value
=
"/app/unauth/getCompanyIds"
,
method
=
RequestMethod
.
GET
)
public
RestResponse
<
List
<
Integer
>>
getCompanyIds
()
{
return
RestResponse
.
suc
(
baseBiz
.
getCompanyIds
());
@GetMapping
(
value
=
"/getCompanyIds"
)
public
RestResponse
<
List
<
Integer
>>
getCompanyIds
(
@RequestParam
(
value
=
"dataZone"
,
defaultValue
=
""
)
String
dataZone
,
@RequestParam
(
value
=
"dataCompany"
)
String
dataCompany
)
{
return
RestResponse
.
suc
(
baseBiz
.
getCompanyIds
(
dataZone
,
dataCompany
));
}
}
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