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
08baac0c
Commit
08baac0c
authored
Dec 11, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户管理
parent
8d4043b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
AppStaffUserBiz.java
...om/github/wxiaoqi/security/admin/biz/AppStaffUserBiz.java
+7
-2
AppStaffUserController.java
...b/wxiaoqi/security/admin/rest/AppStaffUserController.java
+3
-3
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppStaffUserBiz.java
View file @
08baac0c
...
@@ -19,7 +19,7 @@ public class AppStaffUserBiz extends BaseBiz<AppStaffUserMapper, AppStaffUser> {
...
@@ -19,7 +19,7 @@ public class AppStaffUserBiz extends BaseBiz<AppStaffUserMapper, AppStaffUser> {
public
List
<
AppStaffUser
>
getAll
(
Integer
id
)
{
public
List
<
AppStaffUser
>
getAll
(
Integer
id
)
{
Example
example
=
new
Example
(
AppStaffUser
.
class
);
Example
example
=
new
Example
(
AppStaffUser
.
class
);
example
.
createCriteria
().
andEqualTo
(
"suId"
,
id
).
andEqualTo
(
"is
d
el"
,
0
);
example
.
createCriteria
().
andEqualTo
(
"suId"
,
id
).
andEqualTo
(
"is
D
el"
,
0
);
return
selectByExample
(
example
);
return
selectByExample
(
example
);
}
}
...
@@ -40,14 +40,19 @@ public class AppStaffUserBiz extends BaseBiz<AppStaffUserMapper, AppStaffUser> {
...
@@ -40,14 +40,19 @@ public class AppStaffUserBiz extends BaseBiz<AppStaffUserMapper, AppStaffUser> {
public
AppStaffUser
findOne
(
AppStaffUser
appStaffUser
)
{
public
AppStaffUser
findOne
(
AppStaffUser
appStaffUser
)
{
Example
example
=
new
Example
(
AppStaffUser
.
class
);
Example
example
=
new
Example
(
AppStaffUser
.
class
);
Example
.
Criteria
criteria
=
example
.
createCriteria
();
Example
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andEqualTo
(
"isDel"
,
0
);
if
(
appStaffUser
.
getId
()!=
null
)
{
if
(
appStaffUser
.
getId
()!=
null
)
{
criteria
.
andEqualTo
(
"id"
,
appStaffUser
.
getId
());
criteria
.
andEqualTo
(
"id"
,
appStaffUser
.
getId
());
return
mapper
.
selectOneByExample
(
example
);
}
}
if
(
appStaffUser
.
getPhone
()!=
null
){
if
(
appStaffUser
.
getPhone
()!=
null
){
criteria
.
andEqualTo
(
"phone"
,
appStaffUser
.
getPhone
());
criteria
.
andEqualTo
(
"phone"
,
appStaffUser
.
getPhone
());
return
mapper
.
selectOneByExample
(
example
);
}
}
return
mapper
.
selectOneByExample
(
example
);
return
null
;
}
}
}
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppStaffUserController.java
View file @
08baac0c
...
@@ -39,7 +39,7 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
...
@@ -39,7 +39,7 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
public
List
<
AppStaffUser
>
all
()
throws
Exception
{
public
List
<
AppStaffUser
>
all
()
throws
Exception
{
AppUserDTO
userDTO
=
(
AppUserDTO
)
publicController
.
userDetailByToken
(
authConfig
.
getToken
(
request
)).
getData
();
AppUserDTO
userDTO
=
(
AppUserDTO
)
publicController
.
userDetailByToken
(
authConfig
.
getToken
(
request
)).
getData
();
if
(
POSITION_NAME
.
equals
(
userDTO
.
getPositionName
()))
{
if
(
POSITION_NAME
.
equals
(
userDTO
.
getPositionName
()))
{
baseBiz
.
getAll
(
userDTO
.
getI
d
())
;
return
baseBiz
.
getAll
(
userDTO
.
getUseri
d
())
;
}
}
return
new
ArrayList
<>();
return
new
ArrayList
<>();
}
}
...
@@ -56,7 +56,7 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
...
@@ -56,7 +56,7 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
@ApiOperation
(
"查询一条"
)
@ApiOperation
(
"查询一条"
)
@PostMapping
(
value
=
"one"
)
@PostMapping
(
value
=
"one"
)
public
ObjectRestResponse
<
AppStaffUser
>
findOne
(
@RequestParam
AppStaffUser
appStaffUser
)
{
public
ObjectRestResponse
<
AppStaffUser
>
findOne
(
AppStaffUser
appStaffUser
)
{
AppStaffUser
staffUser
=
baseBiz
.
findOne
(
appStaffUser
);
AppStaffUser
staffUser
=
baseBiz
.
findOne
(
appStaffUser
);
if
(
staffUser
!=
null
)
{
if
(
staffUser
!=
null
)
{
return
ObjectRestResponse
.
succ
(
staffUser
);
return
ObjectRestResponse
.
succ
(
staffUser
);
...
@@ -70,7 +70,7 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
...
@@ -70,7 +70,7 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
AppStaffUser
staffUser
=
new
AppStaffUser
();
AppStaffUser
staffUser
=
new
AppStaffUser
();
staffUser
.
setId
(
id
);
staffUser
.
setId
(
id
);
staffUser
.
setIsDel
(
1
);
staffUser
.
setIsDel
(
1
);
baseBiz
.
updateById
(
staffUser
);
baseBiz
.
update
Selective
ById
(
staffUser
);
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