Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
spring-boot-starter-dsp
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
shenjiaqing
spring-boot-starter-dsp
Commits
df938cee
Commit
df938cee
authored
Mar 16, 2022
by
江洋洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsp
parent
85bf1ecb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ApolloPanGuConverter.java
...t/starter/dsp/sampler/converter/ApolloPanGuConverter.java
+5
-1
No files found.
spring-boot-starter-dsp-sampler/src/main/java/cn/com/duiba/spring/boot/starter/dsp/sampler/converter/ApolloPanGuConverter.java
View file @
df938cee
...
@@ -4,6 +4,8 @@ import cn.com.duiba.tuia.pangea.center.api.localservice.apollopangu.ApolloPanGuS
...
@@ -4,6 +4,8 @@ import cn.com.duiba.tuia.pangea.center.api.localservice.apollopangu.ApolloPanGuS
import
cn.hutool.core.map.MapUtil
;
import
cn.hutool.core.map.MapUtil
;
import
cn.hutool.core.util.NumberUtil
;
import
cn.hutool.core.util.NumberUtil
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
...
@@ -17,6 +19,8 @@ import java.util.Map;
...
@@ -17,6 +19,8 @@ import java.util.Map;
*/
*/
public
class
ApolloPanGuConverter
implements
SamplerLogConverter
{
public
class
ApolloPanGuConverter
implements
SamplerLogConverter
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ApolloPanGuConverter
.
class
);
@Resource
@Resource
private
ApolloPanGuService
apolloPanGuService
;
private
ApolloPanGuService
apolloPanGuService
;
...
@@ -38,7 +42,7 @@ public class ApolloPanGuConverter implements SamplerLogConverter {
...
@@ -38,7 +42,7 @@ public class ApolloPanGuConverter implements SamplerLogConverter {
try
{
try
{
samplingMap
=
apolloPanGuService
.
getIdMapByKeyStr
(
panGuKey
);
samplingMap
=
apolloPanGuService
.
getIdMapByKeyStr
(
panGuKey
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
logger
.
info
(
"盘古获取样本数异常"
);
}
}
if
(
MapUtil
.
isEmpty
(
samplingMap
))
{
if
(
MapUtil
.
isEmpty
(
samplingMap
))
{
return
null
;
return
null
;
...
...
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