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
c1de3ab7
Commit
c1de3ab7
authored
Nov 05, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-chw' of
http://113.105.137.151:22280/youjj/cloud-platform
into dev-chw
parents
dd238ef7
c9c964e6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
20 deletions
+51
-20
UserFeign.java
...va/com/github/wxiaoqi/security/admin/feign/UserFeign.java
+7
-3
PublicController.java
.../github/wxiaoqi/security/admin/rest/PublicController.java
+40
-13
RentVehicleBO.java
...ava/com/xxfc/platform/order/pojo/order/RentVehicleBO.java
+1
-1
OrderVehicleCrosstownBiz.java
...com/xxfc/platform/order/biz/OrderVehicleCrosstownBiz.java
+3
-3
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/feign/UserFeign.java
View file @
c1de3ab7
...
@@ -37,6 +37,11 @@ public interface UserFeign {
...
@@ -37,6 +37,11 @@ public interface UserFeign {
@RequestMapping
(
value
=
"/public/userinfo-by-token"
)
@RequestMapping
(
value
=
"/public/userinfo-by-token"
)
public
ObjectRestResponse
<
UserDTO
>
userinfoByToken
(
@RequestParam
(
"token"
)
String
token
);
public
ObjectRestResponse
<
UserDTO
>
userinfoByToken
(
@RequestParam
(
"token"
)
String
token
);
@RequestMapping
(
value
=
"/public/userinfo-by-uid"
)
public
ObjectRestResponse
<
UserDTO
>
userinfoByUid
(
@RequestParam
(
"uid"
)
Integer
uid
);
/**************************************************潮惠玩新的*******************************************************/
@RequestMapping
(
value
=
"/public/v2/userinfo-by-token"
)
@RequestMapping
(
value
=
"/public/v2/userinfo-by-token"
)
ObjectRestResponse
<
UserDTO
>
userinfoByTokenV2
(
@RequestParam
(
"token"
)
String
token
,
@RequestParam
(
"flag"
)
boolean
flag
);
ObjectRestResponse
<
UserDTO
>
userinfoByTokenV2
(
@RequestParam
(
"token"
)
String
token
,
@RequestParam
(
"flag"
)
boolean
flag
);
...
@@ -47,9 +52,8 @@ public interface UserFeign {
...
@@ -47,9 +52,8 @@ public interface UserFeign {
@ResponseBody
@ResponseBody
public
ObjectRestResponse
<
UserDTO
>
businessUserinfoByMobilePhone
(
@RequestParam
(
"mobilePhone"
)
String
mobilePhone
);
public
ObjectRestResponse
<
UserDTO
>
businessUserinfoByMobilePhone
(
@RequestParam
(
"mobilePhone"
)
String
mobilePhone
);
@RequestMapping
(
value
=
"/public/userinfo-by-uid"
)
@RequestMapping
(
value
=
"/public/v2/userinfo-by-uid"
)
public
ObjectRestResponse
<
UserDTO
>
userinfoByUid
(
@RequestParam
(
"uid"
)
Integer
uid
);
public
ObjectRestResponse
<
UserDTO
>
userinfoByUidV2
(
@RequestParam
(
"uid"
)
Integer
uid
);
/**
/**
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/PublicController.java
View file @
c1de3ab7
...
@@ -108,6 +108,46 @@ public class PublicController {
...
@@ -108,6 +108,46 @@ public class PublicController {
}
}
@RequestMapping
(
value
=
"/userinfo-by-uid"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
ObjectRestResponse
<
User
>
userinfoByUid
(
Integer
uid
)
throws
Exception
{
if
(
uid
==
null
||
uid
==
0
)
{
return
ObjectRestResponse
.
paramIsEmpty
();
}
User
user
=
userBiz
.
getUserByUid
(
uid
);
if
(
user
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
USER_NOTEXIST_CODE
,
ResultCode
.
getMsg
(
ResultCode
.
USER_NOTEXIST_CODE
));
}
return
ObjectRestResponse
.
succ
(
user
);
}
@RequestMapping
(
value
=
"v2/userinfo-by-uid"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
ObjectRestResponse
userinfoByUidV2
(
Integer
uid
)
throws
Exception
{
User
user
=
userBiz
.
selectOne
(
new
User
(){{
setId
(
uid
);
setIsDel
(
SYS_FALSE
);
setStatus
(
SYS_TRUE
);
}});
if
(
user
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
USER_NOTEXIST_CODE
,
ResultCode
.
getMsg
(
ResultCode
.
USER_NOTEXIST_CODE
));
}
if
(
user
.
getDataCorporation
()
!=
null
){
com
.
github
.
wxiaoqi
.
security
.
admin
.
dto
.
CompanySearchDTO
companySearchDTO
=
new
com
.
github
.
wxiaoqi
.
security
.
admin
.
dto
.
CompanySearchDTO
();
companySearchDTO
.
setDataCorporationIds
(
Arrays
.
asList
(
user
.
getDataCorporation
().
split
(
","
)).
parallelStream
().
map
(
s
->
Integer
.
valueOf
(
s
)).
collect
(
Collectors
.
toList
()));
List
<
com
.
github
.
wxiaoqi
.
security
.
admin
.
vo
.
CompanySearchVO
>
companySearchVOList
=
branchCompanyBiz
.
getList
(
companySearchDTO
);
if
(
companySearchVOList
!=
null
&&
companySearchVOList
.
size
()
>
0
){
List
<
Integer
>
companyIds
=
companySearchVOList
.
stream
().
map
(
com
.
github
.
wxiaoqi
.
security
.
admin
.
vo
.
CompanySearchVO
::
getId
).
distinct
().
collect
(
Collectors
.
toList
());
user
.
setCompanyIds
(
companyIds
);
}
}
else
if
(
user
.
getDataCompany
()
!=
null
){
List
<
Integer
>
companyIds
=
Arrays
.
asList
(
user
.
getDataCompany
().
split
(
","
)).
parallelStream
().
map
(
s
->
Integer
.
valueOf
(
s
)).
collect
(
Collectors
.
toList
());
user
.
setCompanyIds
(
companyIds
);
}
return
new
ObjectRestResponse
<
User
>().
rel
(
true
).
data
(
user
);
}
@RequestMapping
(
value
=
"v2/userinfo-by-appUserId"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"v2/userinfo-by-appUserId"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
public
@ResponseBody
ObjectRestResponse
userinfoByAppUserIdV2
(
Integer
appUserId
){
ObjectRestResponse
userinfoByAppUserIdV2
(
Integer
appUserId
){
...
@@ -224,19 +264,6 @@ public class PublicController {
...
@@ -224,19 +264,6 @@ public class PublicController {
return
userDTO
;
return
userDTO
;
}
}
@RequestMapping
(
value
=
"/userinfo-by-uid"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
ObjectRestResponse
<
User
>
userinfoByUid
(
Integer
uid
)
throws
Exception
{
if
(
uid
==
null
||
uid
==
0
)
{
return
ObjectRestResponse
.
paramIsEmpty
();
}
User
user
=
userBiz
.
getUserByUid
(
uid
);
if
(
user
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
USER_NOTEXIST_CODE
,
ResultCode
.
getMsg
(
ResultCode
.
USER_NOTEXIST_CODE
));
}
return
ObjectRestResponse
.
succ
(
user
);
}
@GetMapping
(
"/getByUserIds"
)
@GetMapping
(
"/getByUserIds"
)
public
ObjectRestResponse
<
List
<
AppUserVo
>>
getByUserIds
(
@RequestParam
(
"ids"
)
List
<
Integer
>
ids
)
{
public
ObjectRestResponse
<
List
<
AppUserVo
>>
getByUserIds
(
@RequestParam
(
"ids"
)
List
<
Integer
>
ids
)
{
if
(
ids
==
null
)
{
if
(
ids
==
null
)
{
...
...
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/order/RentVehicleBO.java
View file @
c1de3ab7
...
@@ -27,7 +27,7 @@ public class RentVehicleBO extends OrderRentVehicleDetail implements OrderDetail
...
@@ -27,7 +27,7 @@ public class RentVehicleBO extends OrderRentVehicleDetail implements OrderDetail
/**
/**
* 订单标记 1--普通订单;2--需求预定申请订单;3--特惠租车订单
* 订单标记 1--普通订单;2--需求预定申请订单;3--特惠租车订单
*/
*/
private
Integer
orderSign
=
0
;
private
Integer
orderSign
=
1
;
public
Integer
getOrderSign
()
{
public
Integer
getOrderSign
()
{
return
orderSign
;
return
orderSign
;
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderVehicleCrosstownBiz.java
View file @
c1de3ab7
...
@@ -111,9 +111,9 @@ public class OrderVehicleCrosstownBiz extends BaseBiz<OrderVehicaleCrosstownMapp
...
@@ -111,9 +111,9 @@ public class OrderVehicleCrosstownBiz extends BaseBiz<OrderVehicaleCrosstownMapp
List
<
OrderVehicleCrosstownDto
>
list
=
mapper
.
selectByOrderId
(
orderVehicleCrosstownDto
);
List
<
OrderVehicleCrosstownDto
>
list
=
mapper
.
selectByOrderId
(
orderVehicleCrosstownDto
);
for
(
OrderVehicleCrosstownDto
value
:
list
)
{
for
(
OrderVehicleCrosstownDto
value
:
list
)
{
if
(
value
!=
null
&&
value
.
getOrperaterId
()
!=
null
&&
value
.
getType
()
!=
1
)
{
if
(
value
!=
null
&&
value
.
getOrperaterId
()
!=
null
&&
value
.
getType
()
!=
1
)
{
UserDTO
userDTO
=
userFeign
.
userinfoByUid
(
value
.
getOrperaterId
()).
getData
();
UserDTO
userDTO
=
userFeign
.
userinfoByUid
V2
(
value
.
getOrperaterId
()).
getData
();
if
(
userDTO
!=
null
)
{
if
(
userDTO
!=
null
&&
userDTO
.
getCompanyIds
()
!=
null
&&
userDTO
.
getCompanyIds
().
size
()
>
0
)
{
CompanyDetail
branchCompany
=
vehicleFeign
.
getCompanyDetail
(
userDTO
.
getCompanyId
(
)).
getData
();
CompanyDetail
branchCompany
=
vehicleFeign
.
getCompanyDetail
(
userDTO
.
getCompanyId
s
().
get
(
0
)).
getData
();
if
(
branchCompany
!=
null
)
{
if
(
branchCompany
!=
null
)
{
value
.
setCustomerPhone
(
branchCompany
.
getVehiceServicePhone
());
value
.
setCustomerPhone
(
branchCompany
.
getVehiceServicePhone
());
}
}
...
...
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