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
3cb7d75c
Commit
3cb7d75c
authored
Nov 21, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into master-modify-background-bug-hf
parents
91d9eb53
c47bfb9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
18 deletions
+17
-18
BackStageOrderController.java
...om/xxfc/platform/order/rest/BackStageOrderController.java
+17
-18
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/BackStageOrderController.java
View file @
3cb7d75c
...
@@ -108,17 +108,18 @@ public class BackStageOrderController extends CommonBaseController implements Us
...
@@ -108,17 +108,18 @@ public class BackStageOrderController extends CommonBaseController implements Us
@IgnoreClientToken
@IgnoreClientToken
@CrossOrigin
@CrossOrigin
public
ObjectRestResponse
<
PageDataVO
<
OrderListVo
>>
selectByUser
(
BaseOrderController
.
QueryOrderList
dto
)
{
public
ObjectRestResponse
<
PageDataVO
<
OrderListVo
>>
selectByUser
(
BaseOrderController
.
QueryOrderList
dto
)
{
if
(
dto
.
getStartTime
()
!=
null
)
{
UserDTO
userDTO
=
getAdminUserInfo
();
if
(
dto
.
getEndTime
()
==
null
)
{
if
(
userDTO
==
null
)
{
dto
.
setEndTime
(
new
Date
().
getTime
());
return
ObjectRestResponse
.
succ
(
new
PageDataVO
<>
());
}
}
}
//车辆排班表查询订单详情
//车辆排班表查询订单详情
if
(
dto
.
getOneNo
()!=
null
)
{
if
(
dto
.
getOneNo
()!=
null
)
{
dto
.
setPage
(
1
);
dto
.
setPage
(
1
);
dto
.
setLimit
(
1
);
dto
.
setLimit
(
1
);
dto
.
setType
(
1
);
dto
.
setType
(
1
);
}
}
if
(
StringUtils
.
isNotBlank
(
dto
.
getPhone
())
||
StringUtils
.
isNotBlank
(
dto
.
getRealName
()))
{
if
(
StringUtils
.
isNotBlank
(
dto
.
getPhone
())
||
StringUtils
.
isNotBlank
(
dto
.
getRealName
()))
{
List
<
AppUserLogin
>
appUserLoins
=
userFeign
.
getOne
(
dto
.
getPhone
(),
dto
.
getRealName
());
List
<
AppUserLogin
>
appUserLoins
=
userFeign
.
getOne
(
dto
.
getPhone
(),
dto
.
getRealName
());
if
(
CollectionUtil
.
isNotEmpty
(
appUserLoins
))
{
if
(
CollectionUtil
.
isNotEmpty
(
appUserLoins
))
{
...
@@ -128,19 +129,11 @@ public class BackStageOrderController extends CommonBaseController implements Us
...
@@ -128,19 +129,11 @@ public class BackStageOrderController extends CommonBaseController implements Us
return
ObjectRestResponse
.
succ
(
new
PageDataVO
<>());
return
ObjectRestResponse
.
succ
(
new
PageDataVO
<>());
}
}
}
}
//获取权限公司列表
List
<
BranchCompany
>
branchCompanies
=
vehicleFeign
.
companyAll
(
userDTO
.
getDataAll
(),
userDTO
.
getDataCompany
(),
userDTO
.
getDataZone
());
UserDTO
userDTO
=
getAdminUserInfo
();
List
<
Integer
>
companyId
=
branchCompanies
.
stream
().
map
(
BranchCompany:
:
getId
).
collect
(
Collectors
.
toList
());
if
(
userDTO
==
null
)
{
dto
.
setCompanyIds
(
companyId
);
return
ObjectRestResponse
.
succ
(
new
PageDataVO
<>());
//大区搜索
}
//权限
if
(
userDTO
.
getDataAll
()!=
1
&&
dto
.
getType
()
!=
null
&&
dto
.
getType
()
!=
3
)
{
List
<
BranchCompany
>
branchCompanies
=
vehicleFeign
.
companyAll
(
userDTO
.
getDataAll
(),
userDTO
.
getDataCompany
(),
userDTO
.
getDataZone
());
List
<
Integer
>
companyIds
=
branchCompanies
.
stream
().
map
(
BranchCompany:
:
getId
).
collect
(
Collectors
.
toList
());
dto
.
setCompanyIds
(
companyIds
);
}
//大区查询
if
(
dto
.
getZoneId
()
!=
null
)
{
if
(
dto
.
getZoneId
()
!=
null
)
{
if
(
userDTO
.
getDataAll
()
!=
1
&&
!
dto
.
getZoneId
().
equals
(
userDTO
.
getZoneId
()))
{
if
(
userDTO
.
getDataAll
()
!=
1
&&
!
dto
.
getZoneId
().
equals
(
userDTO
.
getZoneId
()))
{
return
ObjectRestResponse
.
succ
(
new
PageDataVO
<>());
return
ObjectRestResponse
.
succ
(
new
PageDataVO
<>());
...
@@ -451,6 +444,12 @@ public class BackStageOrderController extends CommonBaseController implements Us
...
@@ -451,6 +444,12 @@ public class BackStageOrderController extends CommonBaseController implements Us
return
baseOrderBiz
.
save
(
orderRentVehicleDetail
);
return
baseOrderBiz
.
save
(
orderRentVehicleDetail
);
}
}
@GetMapping
(
value
=
"/getAll"
)
@ResponseBody
public
ObjectRestResponse
getAllOrderList
(
BaseOrderController
.
QueryOrderList
dto
)
{
return
backgroundBaseOrderBiz
.
getAllOrderList
(
dto
);
}
@Data
@Data
public
static
class
ChangeVehicleDTO
{
public
static
class
ChangeVehicleDTO
{
String
no
;
String
no
;
...
...
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