Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppTag
Project
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
dataplatform
AppTag
Commits
a07bb6e6
Commit
a07bb6e6
authored
Apr 13, 2021
by
jinfeng.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
373a5a99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
TreeTagServiceImpl.java
.../com/mobvista/apptag/service/impl/TreeTagServiceImpl.java
+10
-4
No files found.
src/main/java/com/mobvista/apptag/service/impl/TreeTagServiceImpl.java
View file @
a07bb6e6
...
...
@@ -85,12 +85,12 @@ public class TreeTagServiceImpl implements TreeTagService {
treeTag
.
setUpdateTime
(
new
Date
());
set
.
add
(
treeTag
);
if
(
idIosPkgPtn
.
matcher
(
packageName
).
matches
())
{
treeTag
.
setPackageName
(
packageName
.
replace
(
"id"
,
""
));
set
.
add
(
t
reeTag
);
TreeTag
newTreeTag
=
update
(
treeTag
,
packageName
.
replace
(
"id"
,
""
));
set
.
add
(
newT
reeTag
);
}
if
(
iosPkgPtn
.
matcher
(
packageName
).
matches
())
{
treeTag
.
setPackageName
(
"id"
+
packageName
);
set
.
add
(
t
reeTag
);
TreeTag
newTreeTag
=
update
(
treeTag
,
"id"
+
packageName
);
set
.
add
(
newT
reeTag
);
}
}
bufferedReader
.
close
();
...
...
@@ -101,6 +101,12 @@ public class TreeTagServiceImpl implements TreeTagService {
return
false
;
}
private
TreeTag
update
(
TreeTag
oldTreeTag
,
String
packageName
)
{
TreeTag
treeTag
=
oldTreeTag
;
treeTag
.
setPackageName
(
packageName
);
return
treeTag
;
}
public
boolean
batchInsert
(
List
<
TreeTag
>
list
)
{
for
(
int
i
=
0
;
i
<=
list
.
size
()
/
1000
;
i
++)
{
int
startIndex
=
i
*
1000
;
...
...
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