Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lmp_server
Project
Project
Details
Activity
Releases
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
lmp
lmp_server
Commits
689e7fe2
Commit
689e7fe2
authored
Dec 11, 2023
by
linpeiqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进来就创建压缩任务
parent
3a33c233
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ModelCompressServiceImpl.java
...e/webadmin/app/service/impl/ModelCompressServiceImpl.java
+5
-5
No files found.
application-webadmin/src/main/java/com/yice/webadmin/app/service/impl/ModelCompressServiceImpl.java
View file @
689e7fe2
...
...
@@ -103,6 +103,11 @@ public class ModelCompressServiceImpl extends BaseService<ModelCompress, Long> i
String
targetModelVersionURl
;
Long
taskId
=
idGenerator
.
nextLongId
();
Long
userID
=
TokenData
.
takeFromRequest
().
getUserId
();
modelCompress
.
setCreateUserId
(
userID
);
modelCompress
.
setUpdateUserId
(
userID
);
modelCompress
.
setTaskStatus
(
3
);
saveNew
(
modelCompress
);
saveOrUpdateOneToOneRelationData
(
modelCompress
,
relationData
,
userID
);
modelCompress
.
setTaskId
(
taskId
);
ModelVersion
sourceModelVersion
=
this
.
modelVersionService
.
getById
(
modelCompress
.
getSourceVersionId
());
if
(
modelCompress
.
getCreateMethod
()
==
0
)
{
...
...
@@ -133,11 +138,6 @@ public class ModelCompressServiceImpl extends BaseService<ModelCompress, Long> i
sendJson
.
put
(
"session_hash"
,
String
.
valueOf
(
taskId
));
log
.
info
(
"发送服务端的消息:"
+
sendJson
.
toJSONString
());
this
.
send
(
sendJson
.
toJSONString
());
modelCompress
.
setCreateUserId
(
userID
);
modelCompress
.
setUpdateUserId
(
userID
);
modelCompress
.
setTaskStatus
(
3
);
saveNew
(
modelCompress
);
saveOrUpdateOneToOneRelationData
(
modelCompress
,
relationData
,
userID
);
}
else
if
(
receiveMsg
.
equals
(
"send_data"
))
{
JSONArray
array
=
new
JSONArray
();
array
.
add
(
"zh"
);
...
...
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