Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
middleware-automatic
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
shenjunjie
middleware-automatic
Commits
4378a626
Commit
4378a626
authored
Oct 19, 2023
by
shentao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release' into 'master'
Release See merge request
!87
parents
8235055f
c65e0577
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
middleware-automatic-center-server/src/main/java/com/zhiwei/middleware/automatic/server/service/impl/TemplateTitleServiceImpl.java
+1
-1
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/service/impl/TemplateTitleServiceImpl.java
+1
-0
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/service/TaskServiceCommon.java
+2
-2
No files found.
middleware-automatic-center-server/src/main/java/com/zhiwei/middleware/automatic/server/service/impl/TemplateTitleServiceImpl.java
View file @
4378a626
...
@@ -88,7 +88,7 @@ public class TemplateTitleServiceImpl implements TemplateTitleService {
...
@@ -88,7 +88,7 @@ public class TemplateTitleServiceImpl implements TemplateTitleService {
res
.
add
(
map
);
res
.
add
(
map
);
}
}
Tools
.
sortByField
(
res
,
orderField
,
isAsc
);
Tools
.
sortByField
(
res
,
orderField
,
isAsc
);
resultMap
.
put
(
"count"
,
templateTitleVoMap
.
size
());
resultMap
.
put
(
"count"
,
res
.
size
());
// 分页判断
// 分页判断
limit
=
limit
>
res
.
size
()
?
0
:
limit
;
limit
=
limit
>
res
.
size
()
?
0
:
limit
;
resultMap
.
put
(
"list"
,
res
.
subList
(
limit
,
Math
.
min
((
limit
+
size
),
res
.
size
())));
resultMap
.
put
(
"list"
,
res
.
subList
(
limit
,
Math
.
min
((
limit
+
size
),
res
.
size
())));
...
...
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/service/impl/TemplateTitleServiceImpl.java
View file @
4378a626
...
@@ -221,6 +221,7 @@ public class TemplateTitleServiceImpl implements TemplateTitleService {
...
@@ -221,6 +221,7 @@ public class TemplateTitleServiceImpl implements TemplateTitleService {
// 表示累计模板
// 表示累计模板
if
(
Objects
.
nonNull
(
daySum
))
{
if
(
Objects
.
nonNull
(
daySum
))
{
templateTitleVo
.
accSum
(
daySum
);
templateTitleVo
.
accSum
(
daySum
);
templateTitleVo
.
setUpdateTime
(
new
Date
());
}
}
redissonUtil
.
setMapValue
(
mapKey
,
title
,
JSONObject
.
toJSONString
(
templateTitleVo
));
redissonUtil
.
setMapValue
(
mapKey
,
title
,
JSONObject
.
toJSONString
(
templateTitleVo
));
log
.
info
(
"模板更新,id:{},标注总量:{},标注天级:{},标签:{}"
,
templateTitleVo
.
getId
(),
templateTitleVo
.
getMarkSum
(),
templateTitleVo
.
getDaySum
(),
templateTitleVo
.
getMtag
());
log
.
info
(
"模板更新,id:{},标注总量:{},标注天级:{},标签:{}"
,
templateTitleVo
.
getId
(),
templateTitleVo
.
getMarkSum
(),
templateTitleVo
.
getDaySum
(),
templateTitleVo
.
getMtag
());
...
...
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/service/TaskServiceCommon.java
View file @
4378a626
...
@@ -264,8 +264,8 @@ public class TaskServiceCommon extends BaseTaskTypePair<TaskServiceCommon.TaskCo
...
@@ -264,8 +264,8 @@ public class TaskServiceCommon extends BaseTaskTypePair<TaskServiceCommon.TaskCo
templateTitleService
.
insertTemplateRecord
(
new
TemplateRecord
(
templateTitleVo
.
getId
(),
title
,
id
,
getUrl
(
markInfo
),
getPlatform
(
markInfo
),
templateTitleService
.
insertTemplateRecord
(
new
TemplateRecord
(
templateTitleVo
.
getId
(),
title
,
id
,
getUrl
(
markInfo
),
getPlatform
(
markInfo
),
sourceObj
.
getString
(
"source"
),
sourceObj
.
getString
(
"real_source"
),
Tools
.
TIME_FORMAT
.
format
(
sourceObj
.
getLong
(
"time"
)),
updates
[
0
]));
sourceObj
.
getString
(
"source"
),
sourceObj
.
getString
(
"real_source"
),
Tools
.
TIME_FORMAT
.
format
(
sourceObj
.
getLong
(
"time"
)),
updates
[
0
]));
// 测试环境临时添加,用于对比
// 测试环境临时添加,用于对比
templateRecordDao
.
tempRecord
(
new
TemplateTempRecord
(
templateTitleVo
.
getId
(),
templateTitleVo
.
getTemplateTitle
(),
group
,
getUrl
(
markInfo
),
//
templateRecordDao.tempRecord(new TemplateTempRecord(templateTitleVo.getId(), templateTitleVo.getTemplateTitle(), group, getUrl(markInfo),
id
,
templateTitleVo
.
getMtag
()));
//
id, templateTitleVo.getMtag()));
return
true
;
return
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"记录事件采集-标注数据特征值失败"
,
e
);
log
.
error
(
"记录事件采集-标注数据特征值失败"
,
e
);
...
...
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