Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
store-system
Project
Project
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
luoyangfei
store-system
Commits
7f09aa37
Commit
7f09aa37
authored
Nov 25, 2018
by
扫地僧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改首页员工展示逻辑和后台普通管理员添加员工获取对应店铺集合的逻辑
parent
e7b31f0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
StoreController.java
.../main/java/cn/com/fqy/controller/mgt/StoreController.java
+7
-1
WorkerMapper.xml
...system/src/main/resources/mybatis/mapper/WorkerMapper.xml
+1
-0
No files found.
2code/server/store-system/src/main/java/cn/com/fqy/controller/mgt/StoreController.java
View file @
7f09aa37
...
...
@@ -113,10 +113,16 @@ public class StoreController extends BaseController {
*/
@RequestMapping
(
"getStores"
)
@ResponseBody
public
ResultInfo
<
List
<
Map
<
String
,
Object
>>>
getStores
(){
public
ResultInfo
<
List
<
Map
<
String
,
Object
>>>
getStores
(
String
userId
){
ResultInfo
<
List
<
Map
<
String
,
Object
>>>
result
=
new
ResultInfo
<>();
List
<
Map
<
String
,
Object
>>
listQuery
=
new
ArrayList
<>();
Store
store
=
new
Store
();
SysUser
user
=
sysUserService
.
detail
(
userId
);
if
(
user
!=
null
)
{
if
(!
"1"
.
equals
(
user
.
getFlag
()))
{
store
.
setUserId
(
userId
);
}
}
store
.
setIsDeleted
(
0
);
store
.
setIsAuditing
(
1
);
List
<
Store
>
storeList
=
storeService
.
getStoreList
(
new
Query
(
store
));
...
...
2code/server/store-system/src/main/resources/mybatis/mapper/WorkerMapper.xml
View file @
7f09aa37
...
...
@@ -266,6 +266,7 @@ UPDATE_TIME,OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,STORE_NAME,BRIEF
AND IS_AUDITING=1
AND IS_SHOPPING=1
</where>
ORDER BY SERIAL_NUMBER ASC,CLICKS DESC
</select>
<select
id=
"getByIds"
resultMap=
"Worker"
>
...
...
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