Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
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-webapp-plug
Commits
5bbbf3bd
Commit
5bbbf3bd
authored
Apr 07, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店标签回写
parent
73d4c5b9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletions
+27
-1
StoreTagBackImpl.java
...java/com/gic/plug/web/strategy/impl/StoreTagBackImpl.java
+25
-0
dubbo-gic-webapp-plug.xml
src/main/resources/dubbo-gic-webapp-plug.xml
+2
-1
No files found.
src/main/java/com/gic/plug/web/strategy/impl/StoreTagBackImpl.java
View file @
5bbbf3bd
package
com
.
gic
.
plug
.
web
.
strategy
.
impl
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.plug.web.strategy.ScreenBackStrategy
;
import
com.gic.plug.web.utils.ComputeBackUtil
;
import
com.gic.store.constant.StoreESFieldsEnum
;
import
com.gic.store.dto.StoreGroupDTO
;
import
com.gic.store.dto.StoreTagDTO
;
import
com.gic.store.service.StoreTagApiService
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
java.util.ArrayList
;
import
java.util.List
;
@Component
public
class
StoreTagBackImpl
implements
ScreenBackStrategy
{
@Autowired
private
StoreTagApiService
storeTagApiService
;
@Override
public
String
screenBack
(
String
compute
,
String
value
,
String
key
,
Integer
enterpriseId
)
{
if
(
StringUtils
.
isNotBlank
(
value
)){
StringBuilder
stringBuilder
=
new
StringBuilder
(
StoreESFieldsEnum
.
STORETAG
.
getDesc
()).
append
(
" "
);
stringBuilder
.
append
(
ComputeBackUtil
.
getComputeBack
(
compute
)).
append
(
" "
);
String
[]
valueArr
=
value
.
split
(
" "
);
for
(
String
s
:
valueArr
){
ServiceResponse
<
StoreTagDTO
>
response
=
this
.
storeTagApiService
.
getByStoreTagId
(
Integer
.
valueOf
(
s
));
if
(
response
.
isSuccess
()
&&
response
.
getResult
()!=
null
){
stringBuilder
.
append
(
"【"
).
append
(
response
.
getResult
().
getStoreTagName
()).
append
(
"】"
).
append
(
" "
);
}
}
return
stringBuilder
.
toString
();
}
return
null
;
}
}
src/main/resources/dubbo-gic-webapp-plug.xml
View file @
5bbbf3bd
...
...
@@ -59,5 +59,5 @@
<dubbo:reference
interface=
"com.gic.member.config.api.service.AppletsConfigApiService"
id=
"appletsConfigApiService"
timeout=
"10000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.auth.service.UserResourceApiService"
id=
"userResourceApiService"
timeout=
"10000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.auth.service.ResourceApiService"
id=
"resourceApiService"
timeout=
"10000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.store.service.StoreTagApiService"
id=
"storeTagApiService"
timeout=
"10000"
retries=
"0"
/>
</beans>
\ No newline at end of file
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