Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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
base_platform_enterprise
gic-store
Commits
9eb767e8
Commit
9eb767e8
authored
Feb 07, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店品牌变更
parent
eb1c1023
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
StoreBrandServiceImpl.java
...ava/com/gic/store/service/impl/StoreBrandServiceImpl.java
+6
-3
No files found.
gic-store-service/src/main/java/com/gic/store/service/impl/StoreBrandServiceImpl.java
View file @
9eb767e8
package
com
.
gic
.
store
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.store.dao.mapper.TabStoreBrandMapper
;
import
com.gic.store.dao.mapper.TabStoreBrandRefMapper
;
...
...
@@ -11,6 +12,8 @@ import com.github.pagehelper.Page;
import
com.github.pagehelper.PageHelper
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -26,7 +29,7 @@ import java.util.stream.Collectors;
*/
@Service
public
class
StoreBrandServiceImpl
implements
StoreBrandService
{
private
static
final
Logger
log
=
LogManager
.
getLogger
(
StoreBrandServiceImpl
.
class
);
@Autowired
private
TabStoreBrandMapper
tabStoreBrandMapper
;
@Autowired
...
...
@@ -148,10 +151,10 @@ public class StoreBrandServiceImpl implements StoreBrandService {
}
private
void
swapSort
(
TabStoreBrandRef
tabStoreBrandRef
,
TabStoreBrand
prevStoreBrand
)
{
log
.
info
(
"品牌排序:{},{}"
,
JSON
.
toJSONString
(
tabStoreBrandRef
),
JSON
.
toJSONString
(
prevStoreBrand
));
if
(
prevStoreBrand
!=
null
)
{
Double
temp
=
tabStoreBrandRef
.
getSort
();
tabStoreBrandRefMapper
.
updateSort
(
tabStoreBrandRef
.
getEnterpriseId
(),
tabStoreBrandRef
.
getStoreBrandId
(),
prevStoreBrand
.
getSort
());
tabStoreBrandRefMapper
.
updateSort
(
prevStoreBrand
.
getEnterpriseId
(),
prevStoreBrand
.
getStoreBrandId
(),
t
emp
);
tabStoreBrandRefMapper
.
updateSort
(
prevStoreBrand
.
getEnterpriseId
(),
prevStoreBrand
.
getStoreBrandId
(),
t
abStoreBrandRef
.
getSort
()
);
}
}
...
...
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