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
eb23ccaa
Commit
eb23ccaa
authored
Aug 14, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storeInfoId和storeId的修复
parent
92d56c02
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
34 additions
and
20 deletions
+34
-20
TabStoreInfoMapper.java
...ain/java/com/gic/store/dao/mapper/TabStoreInfoMapper.java
+2
-0
StoreService.java
...ice/src/main/java/com/gic/store/service/StoreService.java
+2
-0
StoreLogServiceImpl.java
.../java/com/gic/store/service/impl/StoreLogServiceImpl.java
+2
-1
StoreServiceImpl.java
...ain/java/com/gic/store/service/impl/StoreServiceImpl.java
+5
-0
StoreBrandUpdateStrategyImpl.java
...gic/store/strategy/impl/StoreBrandUpdateStrategyImpl.java
+1
-1
StoreBusinessTimeStrategyImpl.java
...ic/store/strategy/impl/StoreBusinessTimeStrategyImpl.java
+1
-1
StoreGroupStrategyImpl.java
...a/com/gic/store/strategy/impl/StoreGroupStrategyImpl.java
+5
-5
StorePhoneStategyImpl.java
...va/com/gic/store/strategy/impl/StorePhoneStategyImpl.java
+5
-5
StorePhotoAddStrategyImpl.java
...om/gic/store/strategy/impl/StorePhotoAddStrategyImpl.java
+1
-1
StorePhotoUpdateStrategyImpl.java
...gic/store/strategy/impl/StorePhotoUpdateStrategyImpl.java
+5
-5
StoreStatusStrategyImpl.java
.../com/gic/store/strategy/impl/StoreStatusStrategyImpl.java
+1
-1
TabStoreInfoMapper.xml
...-service/src/main/resources/mapper/TabStoreInfoMapper.xml
+4
-0
No files found.
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabStoreInfoMapper.java
View file @
eb23ccaa
...
...
@@ -85,6 +85,8 @@ public interface TabStoreInfoMapper {
List
<
Integer
>
listAllstoreInfoId
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
List
<
Integer
>
listAllstoreId
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
TabStoreInfo
getByStore
(
@Param
(
"store"
)
StoreDTO
store
);
StoreDTO
getDTOByStore
(
@Param
(
"store"
)
StoreDTO
store
);
...
...
gic-store-service/src/main/java/com/gic/store/service/StoreService.java
View file @
eb23ccaa
...
...
@@ -86,6 +86,8 @@ public interface StoreService {
List
<
Integer
>
listAllStoreId
(
Integer
enterpriseId
);
List
<
Integer
>
listAllStoreInfoId
(
Integer
enterpriseId
);
boolean
validateStoreCodeIsExist
(
Integer
enterpriseId
,
Integer
regionId
,
String
storeCode
,
Integer
storeId
);
/**
...
...
gic-store-service/src/main/java/com/gic/store/service/impl/StoreLogServiceImpl.java
View file @
eb23ccaa
...
...
@@ -92,7 +92,8 @@ public class StoreLogServiceImpl implements StoreLogService {
storeLog
.
setOperatorId
(
operatorId
);
storeLog
.
setOperatorName
(
operatorName
);
storeLog
.
setContent
(
content
);
for
(
Integer
storeId
:
storeInfoIdList
)
{
List
<
Integer
>
storeIdList
=
storeService
.
listStoredByStoreInfoList
(
storeInfoIdList
,
enterpriseId
);
for
(
Integer
storeId
:
storeIdList
)
{
storeLog
.
setStoreId
(
storeId
);
tabStoreLogMapper
.
insertSelective
(
storeLog
);
}
...
...
gic-store-service/src/main/java/com/gic/store/service/impl/StoreServiceImpl.java
View file @
eb23ccaa
...
...
@@ -388,6 +388,11 @@ public class StoreServiceImpl implements StoreService {
@Override
public
List
<
Integer
>
listAllStoreId
(
Integer
enterpriseId
)
{
return
this
.
tabStoreInfoMapper
.
listAllstoreId
(
enterpriseId
);
}
@Override
public
List
<
Integer
>
listAllStoreInfoId
(
Integer
enterpriseId
)
{
return
this
.
tabStoreInfoMapper
.
listAllstoreInfoId
(
enterpriseId
);
}
...
...
gic-store-service/src/main/java/com/gic/store/strategy/impl/StoreBrandUpdateStrategyImpl.java
View file @
eb23ccaa
...
...
@@ -35,7 +35,7 @@ public class StoreBrandUpdateStrategyImpl implements BulkUpdateStoreStrtegy {
StoreSearchDBDTO
storeSearchDBDTO
=
new
StoreSearchDBDTO
();
storeSearchDBDTO
.
setOverflowStatus
(
0
);
storeList
=
storeService
.
listStore
(
storeSearchDBDTO
,
1
,
Integer
.
MAX_VALUE
);
storeInfoIdList
=
storeService
.
listAllStoreId
(
enterpriseId
);
storeInfoIdList
=
storeService
.
listAllStoreI
nfoI
d
(
enterpriseId
);
}
else
{
storeInfoIdList
=
new
ArrayList
<>();
String
[]
storeIdArr
=
storeInfoIds
.
split
(
","
);
...
...
gic-store-service/src/main/java/com/gic/store/strategy/impl/StoreBusinessTimeStrategyImpl.java
View file @
eb23ccaa
...
...
@@ -28,7 +28,7 @@ public class StoreBusinessTimeStrategyImpl implements BulkUpdateStoreStrtegy {
if
(
i
>
0
)
{
List
<
Integer
>
storeInfoIdList
;
if
(
"all"
.
equals
(
storeInfoIds
))
{
storeInfoIdList
=
storeService
.
listAllStoreId
(
enterpriseId
);
storeInfoIdList
=
storeService
.
listAllStoreI
nfoI
d
(
enterpriseId
);
}
else
{
storeInfoIdList
=
new
ArrayList
<>();
String
[]
storeInfoIdArr
=
storeInfoIds
.
split
(
","
);
...
...
gic-store-service/src/main/java/com/gic/store/strategy/impl/StoreGroupStrategyImpl.java
View file @
eb23ccaa
...
...
@@ -23,18 +23,18 @@ public class StoreGroupStrategyImpl implements BulkUpdateStoreStrtegy {
public
int
bulkUpdateStore
(
String
storeInfoIds
,
Integer
enterpriseId
,
String
value
,
StoreService
storeService
,
Integer
operatorId
,
String
operatorName
)
{
int
i
=
storeService
.
bulkUpdateStoreGroup
(
storeInfoIds
,
enterpriseId
,
Integer
.
valueOf
(
value
));
if
(
i
>
0
)
{
List
<
Integer
>
storeIdList
;
List
<
Integer
>
storeI
nfoI
dList
;
if
(
"all"
.
equals
(
storeInfoIds
))
{
storeI
dList
=
storeService
.
listAllStore
Id
(
enterpriseId
);
storeI
nfoIdList
=
storeService
.
listAllStoreInfo
Id
(
enterpriseId
);
}
else
{
storeIdList
=
new
ArrayList
<>();
storeI
nfoI
dList
=
new
ArrayList
<>();
String
[]
storeIdArr
=
storeInfoIds
.
split
(
","
);
for
(
String
s
:
storeIdArr
)
{
storeIdList
.
add
(
Integer
.
valueOf
(
s
));
storeI
nfoI
dList
.
add
(
Integer
.
valueOf
(
s
));
}
}
TabStoreGroup
group
=
storeGroupService
.
getStoreGroupById
(
Integer
.
valueOf
(
value
));
storeLogService
.
saveBulkStoreGroupLog
(
storeIdList
,
enterpriseId
,
operatorId
,
operatorName
,
"门店分组变更为【"
+
group
.
getStoreGroupName
()
+
"】"
);
storeLogService
.
saveBulkStoreGroupLog
(
storeI
nfoI
dList
,
enterpriseId
,
operatorId
,
operatorName
,
"门店分组变更为【"
+
group
.
getStoreGroupName
()
+
"】"
);
}
return
i
;
}
...
...
gic-store-service/src/main/java/com/gic/store/strategy/impl/StorePhoneStategyImpl.java
View file @
eb23ccaa
...
...
@@ -19,17 +19,17 @@ public class StorePhoneStategyImpl implements BulkUpdateStoreStrtegy {
public
int
bulkUpdateStore
(
String
storeInfoIds
,
Integer
enterpriseId
,
String
value
,
StoreService
storeService
,
Integer
operatorId
,
String
operatorName
)
{
int
i
=
storeService
.
bulkUpdateStoreConactsPhone
(
storeInfoIds
,
enterpriseId
,
value
);
if
(
i
>
0
)
{
List
<
Integer
>
storeIdList
;
List
<
Integer
>
storeI
nfoI
dList
;
if
(
"all"
.
equals
(
storeInfoIds
))
{
storeI
dList
=
storeService
.
listAllStore
Id
(
enterpriseId
);
storeI
nfoIdList
=
storeService
.
listAllStoreInfo
Id
(
enterpriseId
);
}
else
{
storeIdList
=
new
ArrayList
<>();
storeI
nfoI
dList
=
new
ArrayList
<>();
String
[]
storeIdArr
=
storeInfoIds
.
split
(
","
);
for
(
String
s
:
storeIdArr
)
{
storeIdList
.
add
(
Integer
.
valueOf
(
s
));
storeI
nfoI
dList
.
add
(
Integer
.
valueOf
(
s
));
}
}
storeLogService
.
saveBulkStoreInfoLog
(
storeIdList
,
enterpriseId
,
operatorId
,
operatorName
,
"门店联系电话变更为【"
+
value
+
"】"
);
storeLogService
.
saveBulkStoreInfoLog
(
storeI
nfoI
dList
,
enterpriseId
,
operatorId
,
operatorName
,
"门店联系电话变更为【"
+
value
+
"】"
);
}
return
i
;
}
...
...
gic-store-service/src/main/java/com/gic/store/strategy/impl/StorePhotoAddStrategyImpl.java
View file @
eb23ccaa
...
...
@@ -21,7 +21,7 @@ public class StorePhotoAddStrategyImpl implements BulkUpdateStoreStrtegy {
if
(
i
>
0
)
{
List
<
Integer
>
storeInfoIdList
;
if
(
"all"
.
equals
(
storeInfoIds
))
{
storeInfoIdList
=
storeService
.
listAllStoreId
(
enterpriseId
);
storeInfoIdList
=
storeService
.
listAllStoreI
nfoI
d
(
enterpriseId
);
}
else
{
storeInfoIdList
=
new
ArrayList
<>();
String
[]
storeIdArr
=
storeInfoIds
.
split
(
","
);
...
...
gic-store-service/src/main/java/com/gic/store/strategy/impl/StorePhotoUpdateStrategyImpl.java
View file @
eb23ccaa
...
...
@@ -18,17 +18,17 @@ public class StorePhotoUpdateStrategyImpl implements BulkUpdateStoreStrtegy {
public
int
bulkUpdateStore
(
String
storeInfoIds
,
Integer
enterpriseId
,
String
value
,
StoreService
storeService
,
Integer
operatorId
,
String
operatorName
)
{
int
i
=
storeService
.
bulkUpdateStorePhoto
(
storeInfoIds
,
enterpriseId
,
value
);
if
(
i
>
0
)
{
List
<
Integer
>
storeIdList
;
List
<
Integer
>
storeI
nfoI
dList
;
if
(
"all"
.
equals
(
storeInfoIds
))
{
storeI
dList
=
storeService
.
listAllStore
Id
(
enterpriseId
);
storeI
nfoIdList
=
storeService
.
listAllStoreInfo
Id
(
enterpriseId
);
}
else
{
storeIdList
=
new
ArrayList
<>();
storeI
nfoI
dList
=
new
ArrayList
<>();
String
[]
storeIdArr
=
storeInfoIds
.
split
(
","
);
for
(
String
s
:
storeIdArr
)
{
storeIdList
.
add
(
Integer
.
valueOf
(
s
));
storeI
nfoI
dList
.
add
(
Integer
.
valueOf
(
s
));
}
}
storeLogService
.
saveBulkStoreInfoLog
(
storeIdList
,
enterpriseId
,
operatorId
,
operatorName
,
"门店照片变更"
);
storeLogService
.
saveBulkStoreInfoLog
(
storeI
nfoI
dList
,
enterpriseId
,
operatorId
,
operatorName
,
"门店照片变更"
);
}
return
i
;
}
...
...
gic-store-service/src/main/java/com/gic/store/strategy/impl/StoreStatusStrategyImpl.java
View file @
eb23ccaa
...
...
@@ -25,7 +25,7 @@ public class StoreStatusStrategyImpl implements BulkUpdateStoreStrtegy {
if
(
i
>
0
)
{
List
<
Integer
>
storeInfoIdList
;
if
(
"all"
.
equals
(
storeInfoIds
))
{
storeInfoIdList
=
storeService
.
listAllStoreId
(
enterpriseId
);
storeInfoIdList
=
storeService
.
listAllStoreI
nfoI
d
(
enterpriseId
);
}
else
{
storeInfoIdList
=
new
ArrayList
<>();
String
[]
storeIdArr
=
storeInfoIds
.
split
(
","
);
...
...
gic-store-service/src/main/resources/mapper/TabStoreInfoMapper.xml
View file @
eb23ccaa
...
...
@@ -484,6 +484,10 @@
select t1.store_info_id from tab_store_info t1,tab_store t2 where t2.enterprise_id=#{enterpriseId}
and t1.store_info_id=t2.store_info_id and t1.overflow_status=0
</select>
<select
id=
"listAllstoreId"
resultType=
"Integer"
>
select t2.store_id from tab_store_info t1,tab_store t2 where t2.enterprise_id=#{enterpriseId}
and t1.store_info_id=t2.store_info_id and t1.overflow_status=0
</select>
<select
id=
"getByStore"
resultMap=
"BaseResultMap"
parameterType=
"com.gic.store.dto.StoreDTO"
>
select
<include
refid=
"Base_Column_List"
>
...
...
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