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
a01b9724
Commit
a01b9724
authored
Sep 11, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提前还车逻辑
parent
c19ead0a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
26 deletions
+11
-26
UserFeign.java
...va/com/github/wxiaoqi/security/admin/feign/UserFeign.java
+1
-1
AppUserDetailBiz.java
...m/github/wxiaoqi/security/admin/biz/AppUserDetailBiz.java
+2
-2
AppUserDetailMapper.java
...ub/wxiaoqi/security/admin/mapper/AppUserDetailMapper.java
+1
-1
AppUserController.java
...github/wxiaoqi/security/admin/rest/AppUserController.java
+2
-2
AppUserDetailMapper.xml
...e-admin/src/main/resources/mapper/AppUserDetailMapper.xml
+1
-8
BackStageOrderController.java
...om/xxfc/platform/order/rest/BackStageOrderController.java
+2
-8
BaseOrderController.java
...ava/com/xxfc/platform/order/rest/BaseOrderController.java
+2
-4
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/feign/UserFeign.java
View file @
a01b9724
...
...
@@ -53,7 +53,7 @@ public interface UserFeign {
@GetMapping
(
"/app/user/app/unauth/getUserIdByUsername"
)
public
List
<
Integer
>
getUserIdByUsername
(
@RequestParam
(
value
=
"
realName"
)
String
realName
,
@RequestParam
(
value
=
"username"
)
String
username
);
public
List
<
Integer
>
getUserIdByUsername
(
@RequestParam
(
value
=
"
keywords"
)
String
keywords
);
/**
*status:0-判断是否认证过,1-认证成功后修改用户认证状态
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserDetailBiz.java
View file @
a01b9724
...
...
@@ -145,8 +145,8 @@ public class AppUserDetailBiz extends BaseBiz<AppUserDetailMapper, AppUserDetail
return
appUserInfoVo
;
}
public
List
<
Integer
>
getUserIdByUsername
(
String
realName
,
String
username
)
{
return
mapper
.
getUserIdByUsername
(
realName
,
username
);
public
List
<
Integer
>
getUserIdByUsername
(
String
keywords
)
{
return
mapper
.
getUserIdByUsername
(
keywords
);
}
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/mapper/AppUserDetailMapper.java
View file @
a01b9724
...
...
@@ -20,5 +20,5 @@ public interface AppUserDetailMapper extends Mapper<AppUserDetail> {
void
updateUserPositionByUserId
(
@Param
(
"userId"
)
Integer
id
,
@Param
(
"positionId"
)
Integer
positionId
);
List
<
Integer
>
getUserIdByUsername
(
@Param
(
"
realName"
)
String
realName
,
@Param
(
"username"
)
String
username
);
List
<
Integer
>
getUserIdByUsername
(
@Param
(
"
keywords"
)
String
keywords
);
}
\ No newline at end of file
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppUserController.java
View file @
a01b9724
...
...
@@ -283,8 +283,8 @@ public class AppUserController extends CommonBaseController{
@GetMapping
(
"/app/unauth/getUserIdByUsername"
)
@IgnoreUserToken
@IgnoreClientToken
public
List
<
Integer
>
getUserIdByUsername
(
String
realName
,
String
username
){
List
<
Integer
>
userIds
=
userDetailBiz
.
getUserIdByUsername
(
realName
,
username
);
public
List
<
Integer
>
getUserIdByUsername
(
@RequestParam
(
"keywords"
)
String
keywords
){
List
<
Integer
>
userIds
=
userDetailBiz
.
getUserIdByUsername
(
keywords
);
return
userIds
;
}
...
...
ace-modules/ace-admin/src/main/resources/mapper/AppUserDetailMapper.xml
View file @
a01b9724
...
...
@@ -47,14 +47,7 @@
select d.userid from app_user_login l
left join app_user_detail d
on d.userid = l.id
<where>
<if
test=
"realName != null and realName != ''"
>
and d.realname like concat("%", '#{realName}', "%")
</if>
<if
test=
"username != null and username != ''"
>
and l.username like concat("%", '#{username}', "%")
</if>
</where>
where d.realname like concat("%", '#{keywords}', "%") or l.username like concat("%", '#{keywords}', "%")
</select>
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/BackStageOrderController.java
View file @
a01b9724
...
...
@@ -215,18 +215,12 @@ public class BackStageOrderController extends CommonBaseController implements Us
}
}
List
<
Integer
>
userIds
=
new
ArrayList
<>();
if
(
StringUtils
.
isNotBlank
(
dto
.
get
Username
()))
{
List
<
Integer
>
list
=
userFeign
.
getUserIdByUsername
(
""
,
dto
.
getUsername
());
if
(
StringUtils
.
isNotBlank
(
dto
.
get
Keywords
()))
{
List
<
Integer
>
list
=
userFeign
.
getUserIdByUsername
(
dto
.
getKeywords
());
if
(
list
!=
null
)
{
userIds
.
addAll
(
list
);
}
}
if
(
StringUtils
.
isNotBlank
(
dto
.
getRealName
()))
{
List
<
Integer
>
list
=
userFeign
.
getUserIdByUsername
(
dto
.
getRealName
(),
""
);
if
(
list
!=
null
)
{
userIds
.
addAll
(
list
);
}
}
dto
.
setUserIds
(
userIds
);
UserDTO
userDTO
=
getAdminUserInfo
();
if
(
userDTO
==
null
)
{
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/BaseOrderController.java
View file @
a01b9724
...
...
@@ -313,10 +313,8 @@ public class BaseOrderController extends CommonBaseController implements UserRes
//订单用户ID列表
private
List
<
Integer
>
userIds
;
//订单用户手机号
private
String
username
;
//订单用户真实姓名
private
String
realName
;
//订单用户手机号或订单用户真实姓名
private
String
keywords
;
/**
* 车牌号
...
...
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