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
f746bcde
Commit
f746bcde
authored
Dec 17, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-customer-management' into dev
parents
2e7077ba
fc9239d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
AppStaffUserBiz.java
...om/github/wxiaoqi/security/admin/biz/AppStaffUserBiz.java
+3
-2
AppStaffUserController.java
...b/wxiaoqi/security/admin/rest/AppStaffUserController.java
+1
-1
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppStaffUserBiz.java
View file @
f746bcde
...
@@ -13,6 +13,7 @@ import org.springframework.beans.BeanUtils;
...
@@ -13,6 +13,7 @@ import org.springframework.beans.BeanUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
tk.mybatis.mapper.entity.Example
;
import
tk.mybatis.mapper.entity.Example
;
import
tk.mybatis.mapper.weekend.WeekendSqls
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -28,9 +29,9 @@ public class AppStaffUserBiz extends BaseBiz<AppStaffUserMapper, AppStaffUser> {
...
@@ -28,9 +29,9 @@ public class AppStaffUserBiz extends BaseBiz<AppStaffUserMapper, AppStaffUser> {
private
final
AppUserLoginBiz
appUserLoginBiz
;
private
final
AppUserLoginBiz
appUserLoginBiz
;
public
List
<
AppStaffUser
>
getAll
(
Integer
id
)
{
public
List
<
AppStaffUser
>
getAll
(
Integer
id
,
String
username
)
{
Example
example
=
new
Example
(
AppStaffUser
.
class
);
Example
example
=
new
Example
(
AppStaffUser
.
class
);
example
.
createCriteria
().
andEqualTo
(
"suId"
,
id
).
andEqualTo
(
"isDel"
,
0
);
example
.
createCriteria
().
andEqualTo
(
"suId"
,
id
).
orEqualTo
(
"phone"
,
username
).
andEqualTo
(
"isDel"
,
0
);
example
.
orderBy
(
"crtTime"
).
desc
();
example
.
orderBy
(
"crtTime"
).
desc
();
return
selectByExample
(
example
);
return
selectByExample
(
example
);
}
}
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppStaffUserController.java
View file @
f746bcde
...
@@ -48,7 +48,7 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
...
@@ -48,7 +48,7 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
public
ObjectRestResponse
<
List
<
AppStaffUser
>>
getAll
()
throws
Exception
{
public
ObjectRestResponse
<
List
<
AppStaffUser
>>
getAll
()
throws
Exception
{
AppUserDTO
userDTO
=
(
AppUserDTO
)
publicController
.
userDetailByToken
(
authConfig
.
getToken
(
request
)).
getData
();
AppUserDTO
userDTO
=
(
AppUserDTO
)
publicController
.
userDetailByToken
(
authConfig
.
getToken
(
request
)).
getData
();
if
(
POSITION_ID
.
equals
(
userDTO
.
getPositionId
()))
{
if
(
POSITION_ID
.
equals
(
userDTO
.
getPositionId
()))
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
getAll
(
userDTO
.
getUserid
()))
;
return
ObjectRestResponse
.
succ
(
baseBiz
.
getAll
(
userDTO
.
getUserid
()
,
userDTO
.
getUsername
()
))
;
}
}
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
...
...
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