Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 53b2d650
authored
Jul 17, 2023
by
张晓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ext字段太大先不入库
1 parent
6d52d44f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
project-dispatch/src/main/java/com/dituhui/pea/dispatch/service/impl/SolveServiceImpl.java
project-dispatch/src/main/java/com/dituhui/pea/dispatch/service/impl/SolveServiceImpl.java
View file @
53b2d65
...
@@ -258,11 +258,13 @@ public class SolveServiceImpl implements SolveService {
...
@@ -258,11 +258,13 @@ public class SolveServiceImpl implements SolveService {
File
tempFile
=
new
File
(
fileName
);
File
tempFile
=
new
File
(
fileName
);
exporter
.
write
(
solution
,
tempFile
);
exporter
.
write
(
solution
,
tempFile
);
String
dispatchResultJson
=
"{}"
;
String
dispatchResultJson
=
"{}"
;
/*
try {
try {
dispatchResultJson = FileUtil.readAsString(tempFile);
dispatchResultJson = FileUtil.readAsString(tempFile);
} catch (IOException e) {
} catch (IOException e) {
log.error("json算法结果回写 error , groupId:{}, batchNo:{} ", groupId, batchNo, e);
log.error("json算法结果回写 error , groupId:{}, batchNo:{} ", groupId, batchNo, e);
}
}
*/
Object
[]
paramBatch
=
{
LocalDateTime
.
now
(),
dispatchResultJson
,
groupId
,
batchNo
};
Object
[]
paramBatch
=
{
LocalDateTime
.
now
(),
dispatchResultJson
,
groupId
,
batchNo
};
jdbcTemplate
.
update
(
" update dispatch_batch set status='DONE', end_time=? , ext=? where group_id=? and batch_no=? "
,
paramBatch
);
jdbcTemplate
.
update
(
" update dispatch_batch set status='DONE', end_time=? , ext=? where group_id=? and batch_no=? "
,
paramBatch
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment