Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tagManager
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
lanmw
tagManager
Commits
c1722b1c
Commit
c1722b1c
authored
Feb 11, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改导出标签类型和标签分析遇到id不存在的情况跳过
parent
f763d7ba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
Tag.java
src/main/java/com/keymobile/tagmanager/model/Tag.java
+1
-1
TagService.java
...ain/java/com/keymobile/tagmanager/service/TagService.java
+12
-2
No files found.
src/main/java/com/keymobile/tagmanager/model/Tag.java
View file @
c1722b1c
...
@@ -40,7 +40,7 @@ public class Tag implements Serializable, IExcelModel, IExcelDataModel{
...
@@ -40,7 +40,7 @@ public class Tag implements Serializable, IExcelModel, IExcelDataModel{
@Excel
(
name
=
"排序权重"
,
orderNum
=
"4"
,
width
=
30
)
@Excel
(
name
=
"排序权重"
,
orderNum
=
"4"
,
width
=
30
)
private
Integer
order
;
private
Integer
order
;
private
Integer
level
;
private
Integer
level
;
@Excel
(
name
=
"标签类型"
,
replace
=
{
"系统标签_0"
,
"
自定义
标签_1"
},
orderNum
=
"5"
,
width
=
30
)
@Excel
(
name
=
"标签类型"
,
replace
=
{
"系统标签_0"
,
"
维度
标签_1"
},
orderNum
=
"5"
,
width
=
30
)
private
String
tagType
;
//0, 系统标签, 1 ,自定义标签
private
String
tagType
;
//0, 系统标签, 1 ,自定义标签
private
String
idPath
;
private
String
idPath
;
...
...
src/main/java/com/keymobile/tagmanager/service/TagService.java
View file @
c1722b1c
...
@@ -362,7 +362,12 @@ public class TagService {
...
@@ -362,7 +362,12 @@ public class TagService {
//获取标签id
//获取标签id
String
tagId
=
map
.
get
(
"_id"
).
toString
();
String
tagId
=
map
.
get
(
"_id"
).
toString
();
//根据标签id获取标签
//根据标签id获取标签
Tag
tag
=
this
.
getTagById
(
tagId
);
Tag
tag
=
null
;
try
{
tag
=
this
.
getTagById
(
tagId
);
}
catch
(
Exception
e
)
{
tag
=
null
;
}
if
(
tag
!=
null
)
{
if
(
tag
!=
null
)
{
tagMap
.
put
(
"total"
,
map
.
get
(
"total"
));
tagMap
.
put
(
"total"
,
map
.
get
(
"total"
));
tagMap
.
put
(
"name"
,
tag
.
getName
());
tagMap
.
put
(
"name"
,
tag
.
getName
());
...
@@ -383,7 +388,12 @@ public class TagService {
...
@@ -383,7 +388,12 @@ public class TagService {
//获取标签id
//获取标签id
String
tagId
=
map
.
get
(
"_id"
).
toString
();
String
tagId
=
map
.
get
(
"_id"
).
toString
();
//根据标签id获取标签
//根据标签id获取标签
Tag
tag
=
this
.
getTagById
(
tagId
);
Tag
tag
=
null
;
try
{
tag
=
this
.
getTagById
(
tagId
);
}
catch
(
Exception
e
)
{
tag
=
null
;
}
if
(
tag
!=
null
)
{
if
(
tag
!=
null
)
{
tagMap
.
put
(
"total"
,
map
.
get
(
"total"
));
tagMap
.
put
(
"total"
,
map
.
get
(
"total"
));
tagMap
.
put
(
"name"
,
tag
.
getName
());
tagMap
.
put
(
"name"
,
tag
.
getName
());
...
...
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