Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
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
haoban3.0
haoban-manage3.0
Commits
56d1e5bc
Commit
56d1e5bc
authored
Jul 18, 2022
by
guojx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GIC用户接口:用于操作日志筛选
parent
13e6b825
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
139 additions
and
0 deletions
+139
-0
UserController.java
.../com/gic/haoban/manage/web/controller/UserController.java
+49
-0
ClerkListVO.java
...c/main/java/com/gic/haoban/manage/web/vo/ClerkListVO.java
+90
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/UserController.java
0 → 100644
View file @
56d1e5bc
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
com.gic.api.base.commons.Page
;
import
com.gic.clerk.api.dto.AuthorizedUser
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.haoban.manage.web.vo.ClerkListVO
;
import
com.gic.web.common.utils.SessionContextUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
java.util.List
;
@Controller
public
class
UserController
{
private
static
final
Logger
LOGGER
=
LogManager
.
getLogger
(
UserController
.
class
);
@Autowired
private
ClerkService
clerkService
;
@RequestMapping
(
"list-user-by-search-name"
)
@ResponseBody
public
RestResponse
listUserBySearchName
(
String
searchName
,
Integer
pageNum
,
Integer
pageSize
)
{
AuthorizedUser
user
=
SessionContextUtils
.
getLoginUser
();
if
(
pageNum
==
null
)
{
pageNum
=
1
;
}
if
(
pageSize
==
null
)
{
pageSize
=
20
;
}
Page
<
ClerkDTO
>
page
=
clerkService
.
pageUserBySearchName
(
user
.
getEnterpriseId
(),
searchName
,
pageNum
,
pageSize
);
Page
<
ClerkListVO
>
result
=
EntityUtil
.
changeEntityNew
(
Page
.
class
,
page
);
if
(
CollectionUtils
.
isNotEmpty
(
page
.
getResult
()))
{
List
<
ClerkListVO
>
resultList
=
EntityUtil
.
changeEntityListNew
(
ClerkListVO
.
class
,
page
.
getResult
());
result
.
setResult
(
resultList
);
}
return
RestResponse
.
successResult
(
result
);
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/vo/ClerkListVO.java
0 → 100644
View file @
56d1e5bc
package
com
.
gic
.
haoban
.
manage
.
web
.
vo
;
/**
* GIC用户
*/
public
class
ClerkListVO
{
private
String
clerkId
;
// 成员ID
private
int
clerkType
;
// 成员类型(0:店员,1:店长,2:管理员)
private
String
positionName
;
// 职位名称(仅作展现)
private
String
clerkName
;
// 成员名称
private
String
clerkCode
;
// 成员编码
private
String
clerkGender
;
// 性别(0:未知,1:男,2:女)
private
String
mobile
;
// 手机号(联系方式,不作登录账号)
private
String
phoneNumber
;
// 电话(作为登陆账号)
private
int
activationStatus
;
// 激活状态(0:未激活,1:已激活)
public
String
getClerkId
()
{
return
clerkId
;
}
public
void
setClerkId
(
String
clerkId
)
{
this
.
clerkId
=
clerkId
;
}
public
int
getClerkType
()
{
return
clerkType
;
}
public
void
setClerkType
(
int
clerkType
)
{
this
.
clerkType
=
clerkType
;
}
public
String
getPositionName
()
{
return
positionName
;
}
public
void
setPositionName
(
String
positionName
)
{
this
.
positionName
=
positionName
;
}
public
String
getClerkName
()
{
return
clerkName
;
}
public
void
setClerkName
(
String
clerkName
)
{
this
.
clerkName
=
clerkName
;
}
public
String
getClerkCode
()
{
return
clerkCode
;
}
public
void
setClerkCode
(
String
clerkCode
)
{
this
.
clerkCode
=
clerkCode
;
}
public
String
getClerkGender
()
{
return
clerkGender
;
}
public
void
setClerkGender
(
String
clerkGender
)
{
this
.
clerkGender
=
clerkGender
;
}
public
String
getMobile
()
{
return
mobile
;
}
public
void
setMobile
(
String
mobile
)
{
this
.
mobile
=
mobile
;
}
public
String
getPhoneNumber
()
{
return
phoneNumber
;
}
public
void
setPhoneNumber
(
String
phoneNumber
)
{
this
.
phoneNumber
=
phoneNumber
;
}
public
int
getActivationStatus
()
{
return
activationStatus
;
}
public
void
setActivationStatus
(
int
activationStatus
)
{
this
.
activationStatus
=
activationStatus
;
}
}
\ No newline at end of file
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