Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-message
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-platform-message
Commits
00304f8f
Commit
00304f8f
authored
Jul 28, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tab_store&tab_store_field_rel&tab_store_region_rel&tab_store_brand_ref own_type改成owner_flag
parent
ed21f41a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
14 deletions
+8
-14
StoreCustomMessageHandler.java
...m/gic/message/service/impl/StoreCustomMessageHandler.java
+2
-2
StoreInfoMessageHandler.java
...com/gic/message/service/impl/StoreInfoMessageHandler.java
+2
-2
StoreMessageHandler.java
...ava/com/gic/message/service/impl/StoreMessageHandler.java
+4
-10
No files found.
src/main/java/com/gic/message/service/impl/StoreCustomMessageHandler.java
View file @
00304f8f
...
@@ -11,7 +11,7 @@ import com.gic.binlog.base.entity.enums.GicRecordType;
...
@@ -11,7 +11,7 @@ import com.gic.binlog.base.entity.enums.GicRecordType;
import
com.gic.message.service.MessageHandler
;
import
com.gic.message.service.MessageHandler
;
import
com.gic.message.utils.ListToMapUtil
;
import
com.gic.message.utils.ListToMapUtil
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.store.constant.StoreOwn
Type
Enum
;
import
com.gic.store.constant.StoreOwn
erFlag
Enum
;
import
com.gic.store.dto.StoreDTO
;
import
com.gic.store.dto.StoreDTO
;
import
com.gic.store.dto.StoreSearchDTO
;
import
com.gic.store.dto.StoreSearchDTO
;
import
com.gic.store.dto.StoreWidgetDTO
;
import
com.gic.store.dto.StoreWidgetDTO
;
...
@@ -78,7 +78,7 @@ public class StoreCustomMessageHandler implements MessageHandler {
...
@@ -78,7 +78,7 @@ public class StoreCustomMessageHandler implements MessageHandler {
ServiceResponse
<
List
<
StoreDTO
>>
listStoreResponse
=
this
.
storeApiService
.
listStoreByStoreInfoId
(
storeInfoId
);
ServiceResponse
<
List
<
StoreDTO
>>
listStoreResponse
=
this
.
storeApiService
.
listStoreByStoreInfoId
(
storeInfoId
);
List
<
StoreDTO
>
listStore
=
listStoreResponse
.
getResult
();
List
<
StoreDTO
>
listStore
=
listStoreResponse
.
getResult
();
for
(
StoreDTO
storeDTO
:
listStore
){
for
(
StoreDTO
storeDTO
:
listStore
){
if
(
StoreOwn
TypeEnum
.
OWNER
.
getCode
()
==
storeDTO
.
getOwnType
()){
if
(
StoreOwn
erFlagEnum
.
OWNER
.
getCode
()
==
storeDTO
.
getOwnerFlag
()){
this
.
storeIndexRefreshHandler
.
refreshStoreIndex
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreId
());
this
.
storeIndexRefreshHandler
.
refreshStoreIndex
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreId
());
}
}
}
}
...
...
src/main/java/com/gic/message/service/impl/StoreInfoMessageHandler.java
View file @
00304f8f
...
@@ -10,7 +10,7 @@ import com.gic.binlog.base.entity.GicRecord;
...
@@ -10,7 +10,7 @@ import com.gic.binlog.base.entity.GicRecord;
import
com.gic.binlog.base.entity.enums.GicRecordType
;
import
com.gic.binlog.base.entity.enums.GicRecordType
;
import
com.gic.message.service.MessageHandler
;
import
com.gic.message.service.MessageHandler
;
import
com.gic.message.utils.ListToMapUtil
;
import
com.gic.message.utils.ListToMapUtil
;
import
com.gic.store.constant.StoreOwn
Type
Enum
;
import
com.gic.store.constant.StoreOwn
erFlag
Enum
;
import
com.gic.store.dto.StoreDTO
;
import
com.gic.store.dto.StoreDTO
;
import
com.gic.store.dto.StoreSearchDTO
;
import
com.gic.store.dto.StoreSearchDTO
;
import
com.gic.store.dto.StoreWidgetDTO
;
import
com.gic.store.dto.StoreWidgetDTO
;
...
@@ -61,7 +61,7 @@ public class StoreInfoMessageHandler implements MessageHandler {
...
@@ -61,7 +61,7 @@ public class StoreInfoMessageHandler implements MessageHandler {
ServiceResponse
<
List
<
StoreDTO
>>
listStoreResponse
=
this
.
storeApiService
.
listStoreByStoreInfoId
(
storeInfoId
);
ServiceResponse
<
List
<
StoreDTO
>>
listStoreResponse
=
this
.
storeApiService
.
listStoreByStoreInfoId
(
storeInfoId
);
List
<
StoreDTO
>
listStore
=
listStoreResponse
.
getResult
();
List
<
StoreDTO
>
listStore
=
listStoreResponse
.
getResult
();
for
(
StoreDTO
storeDTO
:
listStore
){
for
(
StoreDTO
storeDTO
:
listStore
){
if
(
storeDTO
.
getOwn
Type
()
==
StoreOwnType
Enum
.
OWNER
.
getCode
()){
if
(
storeDTO
.
getOwn
erFlag
()
==
StoreOwnerFlag
Enum
.
OWNER
.
getCode
()){
if
(
Integer
.
valueOf
(
fieldMap
.
get
(
"new_status"
).
getValue
())
==
0
){
if
(
Integer
.
valueOf
(
fieldMap
.
get
(
"new_status"
).
getValue
())
==
0
){
this
.
storeApiService
.
deleteStoreFromEs
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreId
());
this
.
storeApiService
.
deleteStoreFromEs
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreId
());
}
else
{
}
else
{
...
...
src/main/java/com/gic/message/service/impl/StoreMessageHandler.java
View file @
00304f8f
package
com
.
gic
.
message
.
service
.
impl
;
package
com
.
gic
.
message
.
service
.
impl
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.constant.AuthModeEnum
;
import
com.gic.auth.constant.AuthModeEnum
;
import
com.gic.auth.dto.ResourceDTO
;
import
com.gic.auth.dto.ResourceGroupDTO
;
import
com.gic.auth.dto.ResourceGroupDTO
;
import
com.gic.auth.dto.UnionEnterpriseResourceDTO
;
import
com.gic.auth.service.ResourceApiService
;
import
com.gic.auth.service.ResourceGroupApiService
;
import
com.gic.auth.service.ResourceGroupApiService
;
import
com.gic.auth.service.UnionEnterpriseApiService
;
import
com.gic.auth.service.UnionEnterpriseApiService
;
import
com.gic.binlog.base.entity.GicField
;
import
com.gic.binlog.base.entity.GicField
;
import
com.gic.binlog.base.entity.GicRecord
;
import
com.gic.binlog.base.entity.GicRecord
;
import
com.gic.binlog.base.entity.enums.GicRecordType
;
import
com.gic.binlog.base.entity.enums.GicRecordType
;
import
com.gic.enterprise.dto.union.UnionEnterpriseAuthDTO
;
import
com.gic.enterprise.dto.union.UnionEnterpriseAuthDTO
;
import
com.gic.enterprise.dto.union.UnionEnterpriseAuthListDTO
;
import
com.gic.enterprise.service.UnionEnterpriseAuthApiService
;
import
com.gic.enterprise.service.UnionEnterpriseAuthApiService
;
import
com.gic.message.service.MessageHandler
;
import
com.gic.message.service.MessageHandler
;
import
com.gic.message.utils.ListToMapUtil
;
import
com.gic.message.utils.ListToMapUtil
;
import
com.gic.store.constant.StoreOwn
Type
Enum
;
import
com.gic.store.constant.StoreOwn
erFlag
Enum
;
import
com.gic.store.dto.StoreDTO
;
import
com.gic.store.dto.StoreDTO
;
import
com.gic.store.dto.StoreSearchDTO
;
import
com.gic.store.dto.StoreSearchDTO
;
import
com.gic.store.dto.StoreWidgetDTO
;
import
com.gic.store.dto.StoreWidgetDTO
;
...
@@ -80,7 +74,7 @@ public class StoreMessageHandler implements MessageHandler {
...
@@ -80,7 +74,7 @@ public class StoreMessageHandler implements MessageHandler {
storeId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"store_id"
).
getValue
());
storeId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"store_id"
).
getValue
());
storeInfoId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"store_info_id"
).
getValue
());
storeInfoId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"store_info_id"
).
getValue
());
this
.
storeIndexRefreshHandler
.
refreshStoreIndex
(
enterpriseId
,
storeId
);
this
.
storeIndexRefreshHandler
.
refreshStoreIndex
(
enterpriseId
,
storeId
);
Integer
own
Type
=
Integer
.
valueOf
(
fieldMap
.
get
(
"own_type
"
).
getValue
());
Integer
own
erFlag
=
Integer
.
valueOf
(
fieldMap
.
get
(
"owner_flag
"
).
getValue
());
this
.
dealStoreChange
(
enterpriseId
,
storeId
,
storeInfoId
,
GicRecordType
.
INSERT
.
value
());
this
.
dealStoreChange
(
enterpriseId
,
storeId
,
storeInfoId
,
GicRecordType
.
INSERT
.
value
());
}
}
if
(
GicRecordType
.
UPDATE
.
value
()
==
value
.
getRecordType
().
value
())
{
if
(
GicRecordType
.
UPDATE
.
value
()
==
value
.
getRecordType
().
value
())
{
...
@@ -100,7 +94,7 @@ public class StoreMessageHandler implements MessageHandler {
...
@@ -100,7 +94,7 @@ public class StoreMessageHandler implements MessageHandler {
storeId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"store_id"
).
getValue
());
storeId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"store_id"
).
getValue
());
storeInfoId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"store_info_id"
).
getValue
());
storeInfoId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"store_info_id"
).
getValue
());
this
.
storeApiService
.
deleteStoreFromEs
(
enterpriseId
,
storeId
);
this
.
storeApiService
.
deleteStoreFromEs
(
enterpriseId
,
storeId
);
Integer
own
Type
=
Integer
.
valueOf
(
fieldMap
.
get
(
"own_type
"
).
getValue
());
Integer
own
erFlag
=
Integer
.
valueOf
(
fieldMap
.
get
(
"owner_flag
"
).
getValue
());
this
.
dealStoreChange
(
enterpriseId
,
storeId
,
storeInfoId
,
GicRecordType
.
DELETE
.
value
());
this
.
dealStoreChange
(
enterpriseId
,
storeId
,
storeInfoId
,
GicRecordType
.
DELETE
.
value
());
}
}
}
}
...
@@ -130,7 +124,7 @@ public class StoreMessageHandler implements MessageHandler {
...
@@ -130,7 +124,7 @@ public class StoreMessageHandler implements MessageHandler {
storeSearchDTO
.
setStoreIds
(
String
.
valueOf
(
storeId
));
storeSearchDTO
.
setStoreIds
(
String
.
valueOf
(
storeId
));
storeSearchDTO
.
setSearchJson
(
storeWidgetDTO
.
getSearchParam
());
storeSearchDTO
.
setSearchJson
(
storeWidgetDTO
.
getSearchParam
());
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setOwn
Type
(
StoreOwnType
Enum
.
OWNER
.
getCode
());
storeSearchDTO
.
setOwn
erFlag
(
StoreOwnerFlag
Enum
.
OWNER
.
getCode
());
Long
count
=
this
.
storeApiService
.
queryStoreCountFromEs
(
storeSearchDTO
).
getResult
();
Long
count
=
this
.
storeApiService
.
queryStoreCountFromEs
(
storeSearchDTO
).
getResult
();
boolean
ownExist
=
count
>
0
?
true
:
false
;
boolean
ownExist
=
count
>
0
?
true
:
false
;
Integer
unionEnterpriseId
=
dto
.
getUnionEnterpriseId
();
Integer
unionEnterpriseId
=
dto
.
getUnionEnterpriseId
();
...
...
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