Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
871d9f4a
Commit
871d9f4a
authored
Nov 24, 2023
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
store service bugfix;
parent
cea9aa4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
SStoreServiceImpl.java
...ain/java/share/system/service/impl/SStoreServiceImpl.java
+6
-4
No files found.
share-system/src/main/java/share/system/service/impl/SStoreServiceImpl.java
View file @
871d9f4a
...
...
@@ -39,6 +39,8 @@ import share.system.service.*;
@Service
public
class
SStoreServiceImpl
extends
ServiceImpl
<
SStoreMapper
,
SStore
>
implements
ISStoreService
{
@Autowired
private
SStoreConsumerMapper
storeConsumerMapper
;
@Autowired
private
ISRoomService
sRoomService
;
@Autowired
private
IPackService
packService
;
...
...
@@ -247,12 +249,12 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
@Override
public
int
deleteStoreConsumer
(
SStoreConsumer
storeConsumer
)
{
return
base
Mapper
.
deleteInfo
(
storeConsumer
);
return
storeConsumer
Mapper
.
deleteInfo
(
storeConsumer
);
}
@Override
public
int
deleteStoreConsumers
(
Long
storeId
,
Long
[]
consumerIds
)
{
return
base
Mapper
.
deleteInfos
(
storeId
,
consumerIds
);
return
storeConsumer
Mapper
.
deleteInfos
(
storeId
,
consumerIds
);
}
@Override
...
...
@@ -265,7 +267,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
sc
.
setConsumerId
(
consumerId
);
list
.
add
(
sc
);
}
return
base
Mapper
.
batchSStoreConsumer
(
list
);
return
storeConsumer
Mapper
.
batchSStoreConsumer
(
list
);
}
@Override
...
...
@@ -275,7 +277,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
throw
new
BaseException
(
"当前用户不是保洁人员!"
);
}
//查询保洁人员所属门店
List
<
String
>
storeIdList
=
base
Mapper
.
selectByConsumerId
(
user
.
getId
());
List
<
String
>
storeIdList
=
storeConsumer
Mapper
.
selectByConsumerId
(
user
.
getId
());
//List<String> 转 List<Long>
List
<
Long
>
idList
=
storeIdList
.
stream
().
map
(
Long:
:
parseLong
).
collect
(
Collectors
.
toList
());
// 查询门店信息
...
...
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