Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
7a3ced7a
提交
7a3ced7a
authored
7月 04, 2022
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(自查模块): 修改了发起自查业务
修改了发起自查业务
上级
56a42d37
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
19 行增加
和
12 行删除
+19
-12
SelfCheckController.java
.../dev/device/selfcheck/controller/SelfCheckController.java
+19
-12
没有找到文件。
dev-selfcheck/src/main/java/com/tykj/dev/device/selfcheck/controller/SelfCheckController.java
浏览文件 @
7a3ced7a
...
@@ -54,11 +54,15 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -54,11 +54,15 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.jdbc.core.BatchPreparedStatementSetter
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.sql.PreparedStatement
;
import
java.sql.SQLException
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.Executor
;
import
java.util.concurrent.Executor
;
...
@@ -127,6 +131,9 @@ public class SelfCheckController {
...
@@ -127,6 +131,9 @@ public class SelfCheckController {
@Resource
@Resource
private
HistoryDeviceBillService
historyDeviceBillService
;
private
HistoryDeviceBillService
historyDeviceBillService
;
@Resource
private
JdbcTemplate
jdbcTemplate
;
/**
/**
* 月度
* 月度
*/
*/
...
@@ -401,10 +408,10 @@ public class SelfCheckController {
...
@@ -401,10 +408,10 @@ public class SelfCheckController {
historyDeviceBillList
.
add
(
historyDeviceBill
);
historyDeviceBillList
.
add
(
historyDeviceBill
);
});
});
//保存
//保存
executor
.
execute
(()->{
//
executor.execute(()->{
historyDeviceBillService
.
batchSave
(
historyDeviceBillList
);
//
historyDeviceBillService.batchSave(historyDeviceBillList);
});
//
});
//
historyDeviceBillService.batchSave(historyDeviceBillList);
historyDeviceBillService
.
batchSave
(
historyDeviceBillList
);
}
}
}
else
{
}
else
{
// 是0 和1
// 是0 和1
...
@@ -426,10 +433,10 @@ public class SelfCheckController {
...
@@ -426,10 +433,10 @@ public class SelfCheckController {
historyDeviceBillList
.
add
(
historyDeviceBill
);
historyDeviceBillList
.
add
(
historyDeviceBill
);
});
});
//保存
//保存
//
historyDeviceBillService.batchSave(historyDeviceBillList);
historyDeviceBillService
.
batchSave
(
historyDeviceBillList
);
executor
.
execute
(()->{
//
executor.execute(()->{
historyDeviceBillService
.
batchSave
(
historyDeviceBillList
);
//
historyDeviceBillService.batchSave(historyDeviceBillList);
});
//
});
}
}
List
<
DeviceLibrary
>
checkDeviceList0
=
selfCheckSaveVo
.
getCheckDeviceList0
();
List
<
DeviceLibrary
>
checkDeviceList0
=
selfCheckSaveVo
.
getCheckDeviceList0
();
if
(
checkDeviceList0
.
size
()
>
0
){
if
(
checkDeviceList0
.
size
()
>
0
){
...
@@ -449,10 +456,10 @@ public class SelfCheckController {
...
@@ -449,10 +456,10 @@ public class SelfCheckController {
historyDeviceBillList
.
add
(
historyDeviceBill
);
historyDeviceBillList
.
add
(
historyDeviceBill
);
});
});
//保存
//保存
//
historyDeviceBillService.batchSave(historyDeviceBillList);
historyDeviceBillService
.
batchSave
(
historyDeviceBillList
);
executor
.
execute
(()->{
//
executor.execute(()->{
historyDeviceBillService
.
batchSave
(
historyDeviceBillList
);
//
historyDeviceBillService.batchSave(historyDeviceBillList);
});
//
});
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论