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
99fb760d
Commit
99fb760d
authored
Dec 03, 2024
by
shentao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release' into 'master'
Release See merge request
!152
parents
a08e2a98
b8cf9012
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
109 deletions
+6
-109
middleware-automatic-center-client/src/main/java/com/zhiwei/middleware/automatic/server/pojo/CidRecordData.java
+0
-103
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/dao/CidRecordDao.java
+2
-2
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/dao/impl/CidRecordDaoImpl.java
+2
-2
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/service/TaskServiceCidRecord.java
+2
-2
No files found.
middleware-automatic-center-client/src/main/java/com/zhiwei/middleware/automatic/server/pojo/CidRecordData.java
deleted
100644 → 0
View file @
a08e2a98
package
com
.
zhiwei
.
middleware
.
automatic
.
server
.
pojo
;
public
class
CidRecordData
{
private
String
id
;
private
Long
c4
;
private
Long
c5
;
private
int
foreign
;
private
String
url
;
private
Long
time
;
private
Long
ctime
;
private
Long
stime
;
private
String
esId
;
private
Long
cid
;
public
Long
getC5
()
{
return
c5
;
}
public
void
setC5
(
Long
c5
)
{
this
.
c5
=
c5
;
}
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
Long
getC4
()
{
return
c4
;
}
public
void
setC4
(
Long
c4
)
{
this
.
c4
=
c4
;
}
public
int
getForeign
()
{
return
foreign
;
}
public
void
setForeign
(
int
foreign
)
{
this
.
foreign
=
foreign
;
}
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
public
Long
getTime
()
{
return
time
;
}
public
void
setTime
(
Long
time
)
{
this
.
time
=
time
;
}
public
Long
getCtime
()
{
return
ctime
;
}
public
void
setCtime
(
Long
ctime
)
{
this
.
ctime
=
ctime
;
}
public
Long
getStime
()
{
return
stime
;
}
public
void
setStime
(
Long
stime
)
{
this
.
stime
=
stime
;
}
public
String
getEsId
()
{
return
esId
;
}
public
void
setEsId
(
String
esId
)
{
this
.
esId
=
esId
;
}
public
Long
getCid
()
{
return
cid
;
}
public
void
setCid
(
Long
cid
)
{
this
.
cid
=
cid
;
}
}
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/dao/CidRecordDao.java
View file @
99fb760d
package
com
.
zhiwei
.
middleware
.
automatic
.
son
.
dao
;
import
com.zhiwei.middleware.automatic.server.pojo.CidRecord
Data
;
import
com.zhiwei.middleware.automatic.server.pojo.CidRecord
Info
;
public
interface
CidRecordDao
{
void
insert
(
CidRecord
Data
cidRecord
);
void
insert
(
CidRecord
Info
cidRecord
);
}
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/dao/impl/CidRecordDaoImpl.java
View file @
99fb760d
package
com
.
zhiwei
.
middleware
.
automatic
.
son
.
dao
.
impl
;
import
com.zhiwei.middleware.automatic.server.pojo.CidRecord
Data
;
import
com.zhiwei.middleware.automatic.server.pojo.CidRecord
Info
;
import
com.zhiwei.middleware.automatic.son.dao.CidRecordDao
;
import
com.zhiwei.middleware.automatic.son.util.Tools
;
import
org.springframework.beans.factory.annotation.Qualifier
;
...
...
@@ -19,7 +19,7 @@ public class CidRecordDaoImpl implements CidRecordDao {
}
@Override
public
void
insert
(
CidRecord
Data
cidRecord
)
{
public
void
insert
(
CidRecord
Info
cidRecord
)
{
mongoTemplate
.
insert
(
cidRecord
,
COLLECTION_NAME
+
Tools
.
TIME_FORMAT_COMMON
.
format
(
cidRecord
.
getStime
()));
}
}
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/service/TaskServiceCidRecord.java
View file @
99fb760d
...
...
@@ -3,7 +3,7 @@ package com.zhiwei.middleware.automatic.son.task.service;
import
com.alibaba.excel.util.CollectionUtils
;
import
com.alibaba.fastjson.JSONObject
;
import
com.zhiwei.middleware.automatic.server.pojo.AutoTask
;
import
com.zhiwei.middleware.automatic.server.pojo.CidRecord
Data
;
import
com.zhiwei.middleware.automatic.server.pojo.CidRecord
Info
;
import
com.zhiwei.middleware.automatic.server.pojo.enums.TaskType
;
import
com.zhiwei.middleware.automatic.server.util.RedissonUtil
;
import
com.zhiwei.middleware.automatic.son.dao.CidRecordDao
;
...
...
@@ -41,7 +41,7 @@ public class TaskServiceCidRecord extends AbstractTaskService {
}
for
(
String
s
:
data
)
{
try
{
CidRecord
Data
cidRecord
=
JSONObject
.
parseObject
(
s
,
CidRecordData
.
class
);
CidRecord
Info
cidRecord
=
JSONObject
.
parseObject
(
s
,
CidRecordInfo
.
class
);
if
(!
test
)
{
test
=
true
;
log
.
info
(
"日志打印,源数据:{},实体:{}"
,
s
,
JSONObject
.
toJSONString
(
cidRecord
));
...
...
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