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
cf2a23dd
Commit
cf2a23dd
authored
Oct 19, 2023
by
liuyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023/10/19 模板搜索和更新时间bug修复
parent
16e2d7b7
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 @
cf2a23dd
...
...
@@ -88,7 +88,7 @@ public class TemplateTitleServiceImpl implements TemplateTitleService {
res
.
add
(
map
);
}
Tools
.
sortByField
(
res
,
orderField
,
isAsc
);
resultMap
.
put
(
"count"
,
templateTitleVoMap
.
size
());
resultMap
.
put
(
"count"
,
res
.
size
());
// 分页判断
limit
=
limit
>
res
.
size
()
?
0
:
limit
;
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 @
cf2a23dd
...
...
@@ -222,6 +222,7 @@ public class TemplateTitleServiceImpl implements TemplateTitleService {
if
(
Objects
.
nonNull
(
daySum
))
{
templateTitleVo
.
accSum
(
daySum
);
}
templateTitleVo
.
setUpdateTime
(
new
Date
());
redissonUtil
.
setMapValue
(
mapKey
,
title
,
JSONObject
.
toJSONString
(
templateTitleVo
));
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 @
cf2a23dd
...
...
@@ -264,8 +264,8 @@ public class TaskServiceCommon extends BaseTaskTypePair<TaskServiceCommon.TaskCo
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
]));
// 测试环境临时添加,用于对比
templateRecordDao
.
tempRecord
(
new
TemplateTempRecord
(
templateTitleVo
.
getId
(),
templateTitleVo
.
getTemplateTitle
(),
group
,
getUrl
(
markInfo
),
id
,
templateTitleVo
.
getMtag
()));
//
templateRecordDao.tempRecord(new TemplateTempRecord(templateTitleVo.getId(), templateTitleVo.getTemplateTitle(), group, getUrl(markInfo),
//
id, templateTitleVo.getMtag()));
return
true
;
}
catch
(
Exception
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