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
23aaf997
Commit
23aaf997
authored
Nov 23, 2023
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
front store list bugfix
parent
a4ab803f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
SStoreServiceImpl.java
...ain/java/share/system/service/impl/SStoreServiceImpl.java
+12
-14
No files found.
share-system/src/main/java/share/system/service/impl/SStoreServiceImpl.java
View file @
23aaf997
...
...
@@ -42,8 +42,6 @@ import share.system.service.QPService;
@Service
public
class
SStoreServiceImpl
extends
ServiceImpl
<
SStoreMapper
,
SStore
>
implements
ISStoreService
{
@Autowired
private
SStoreMapper
sStoreMapper
;
@Autowired
private
SStoreConsumerMapper
storeConsumerMapper
;
@Autowired
private
ISRoomService
sRoomService
;
...
...
@@ -64,7 +62,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
*/
@Override
public
SStore
selectSStoreById
(
Long
id
)
{
return
sStor
eMapper
.
selectSStoreById
(
id
);
return
bas
eMapper
.
selectSStoreById
(
id
);
}
/**
...
...
@@ -75,7 +73,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
*/
@Override
public
List
<
SStore
>
selectSStoreList
(
SStore
sStore
)
{
return
sStor
eMapper
.
selectSStoreList
(
sStore
);
return
bas
eMapper
.
selectSStoreList
(
sStore
);
}
/**
...
...
@@ -87,7 +85,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
@Override
public
int
insertSStore
(
SStore
sStore
)
{
sStore
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
sStor
eMapper
.
insertSStore
(
sStore
);
return
bas
eMapper
.
insertSStore
(
sStore
);
}
/**
...
...
@@ -99,7 +97,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
@Override
public
int
updateSStore
(
SStore
sStore
)
{
sStore
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
sStor
eMapper
.
updateSStore
(
sStore
);
return
bas
eMapper
.
updateSStore
(
sStore
);
}
/**
...
...
@@ -110,7 +108,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
*/
@Override
public
int
deleteSStoreByIds
(
Long
[]
ids
)
{
return
sStor
eMapper
.
deleteSStoreByIds
(
ids
);
return
bas
eMapper
.
deleteSStoreByIds
(
ids
);
}
/**
...
...
@@ -121,18 +119,18 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
*/
@Override
public
int
deleteSStoreById
(
Long
id
)
{
return
sStor
eMapper
.
deleteSStoreById
(
id
);
return
bas
eMapper
.
deleteSStoreById
(
id
);
}
@Override
public
List
<
Map
>
optionList
(
SStore
sStore
)
{
List
<
SStore
>
storeList
=
sStor
eMapper
.
selectSStoreList
(
sStore
);
List
<
SStore
>
storeList
=
bas
eMapper
.
selectSStoreList
(
sStore
);
return
convertOptionList
(
storeList
);
}
@Override
public
List
<
Map
>
optionList
(
List
<
Long
>
ids
)
{
List
<
SStore
>
storeList
=
sStor
eMapper
.
selectBatchIds
(
ids
);
List
<
SStore
>
storeList
=
bas
eMapper
.
selectBatchIds
(
ids
);
return
convertOptionList
(
storeList
);
}
...
...
@@ -145,7 +143,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
listVoCheck
(
request
);
SStore
store
=
new
SStore
();
store
.
setStatus
(
request
.
getStatus
());
List
<
SStore
>
storeList
=
sStor
eMapper
.
selectSStoreList
(
store
);
List
<
SStore
>
storeList
=
bas
eMapper
.
selectSStoreList
(
store
);
List
<
SStoreVo
>
voList
=
new
ArrayList
<>();
if
(
StringUtils
.
isNotBlank
(
request
.
getNowLongitude
()))
{
voList
=
convertDosToVosSortByDst
(
storeList
,
request
);
...
...
@@ -179,7 +177,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
vo
.
setDistance
(
distance
+
""
);
voList
.
add
(
vo
);
});
voList
.
stream
().
sorted
(
Comparator
.
comparing
(
storeVo
->
Double
.
parseDouble
(
storeVo
.
getDistance
())));
return
(
List
<
SStoreVo
>)
voList
.
stream
().
sorted
(
Comparator
.
comparing
(
storeVo
->
Double
.
parseDouble
(
storeVo
.
getDistance
())));
}
return
voList
;
}
...
...
@@ -305,7 +303,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
// 查询门店信息
List
<
SStore
>
storeList
=
new
ArrayList
<>();
idList
.
forEach
(
item
->
{
storeList
.
add
(
sStor
eMapper
.
selectById
(
item
));
storeList
.
add
(
bas
eMapper
.
selectById
(
item
));
});
storeList
.
forEach
(
item
->
{
List
<
SRoom
>
sRooms
=
sRoomService
.
selectSroomListByStroeId
(
item
.
getId
());
...
...
@@ -329,7 +327,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
@Override
public
int
dataSync
()
{
List
<
SStore
>
sStores
=
sStor
eMapper
.
selectSStoreList
(
new
SStore
());
List
<
SStore
>
sStores
=
bas
eMapper
.
selectSStoreList
(
new
SStore
());
//查询美团接口查看改门店是否存在
List
<
CustomerKeyShopScopeResponseEntity
>
scope
=
qpService
.
scope
();
if
(
CollectionUtils
.
isEmpty
(
scope
))
{
...
...
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