Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
a96297d7
提交
a96297d7
authored
8月 19, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(自查模块,装备管理): 修改部分bug
将taskId修改为userId,以及装备进行编辑
上级
0fbe2904
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
6 行增加
和
8 行删除
+6
-8
DeviceLibraryController.java
...ev/device/library/controller/DeviceLibraryController.java
+1
-2
SelfCheckController.java
.../dev/device/selfcheck/controller/SelfCheckController.java
+5
-6
没有找到文件。
dev-library/src/main/java/com/tykj/dev/device/library/controller/DeviceLibraryController.java
浏览文件 @
a96297d7
...
@@ -651,12 +651,11 @@ public class DeviceLibraryController {
...
@@ -651,12 +651,11 @@ public class DeviceLibraryController {
deviceLibraryEntity
.
setStorageLocation
(
libraryUpdateVo
.
getStorageLocation
());
deviceLibraryEntity
.
setStorageLocation
(
libraryUpdateVo
.
getStorageLocation
());
}
}
//add 备注
//add 备注
if
(
libraryUpdateVo
.
getRecord
()!=
null
){
if
(
libraryUpdateVo
.
getRecord
()!=
null
&&
!
libraryUpdateVo
.
getRecord
().
equals
(
deviceLibraryEntity
.
getRecord
())
){
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
deviceEditVo
.
getDeviceId
(),
"将备注改为"
+
libraryUpdateVo
.
getRecord
(),
null
,
null
,
null
);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
deviceEditVo
.
getDeviceId
(),
"将备注改为"
+
libraryUpdateVo
.
getRecord
(),
null
,
null
,
null
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLibraryEntity
.
setRecord
(
libraryUpdateVo
.
getRecord
());
deviceLibraryEntity
.
setRecord
(
libraryUpdateVo
.
getRecord
());
}
}
deviceLibraryService
.
update
(
deviceLibraryEntity
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
}
}
//添加绑定配件
//添加绑定配件
...
...
dev-selfcheck/src/main/java/com/tykj/dev/device/selfcheck/controller/SelfCheckController.java
浏览文件 @
a96297d7
...
@@ -415,19 +415,16 @@ public class SelfCheckController {
...
@@ -415,19 +415,16 @@ public class SelfCheckController {
if
(
s
.
length
()>=
2
)
{
if
(
s
.
length
()>=
2
)
{
Integer
id
=
Integer
.
parseInt
(
s
.
substring
(
0
,
s
.
length
()
-
1
));
Integer
id
=
Integer
.
parseInt
(
s
.
substring
(
0
,
s
.
length
()
-
1
));
// DeviceLogDto deviceLogDto = new DeviceLogDto(id,"发起自查",fileVoList,taskBto.getId(),null);
// DeviceLogDto deviceLogDto = new DeviceLogDto(id,"发起自查",fileVoList,taskBto.getId(),null);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"发起自查"
,
fileVoList
,
taskBto
.
getId
()
,
taskBto
.
getId
());
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"发起自查"
,
fileVoList
,
userId
,
taskBto
.
getId
());
deviceLogDtos
.
add
(
deviceLogDto
);
deviceLogDtos
.
add
(
deviceLogDto
);
// deviceLogService.addLog(deviceLogDto);
// deviceLogService.addLog(deviceLogDto);
}
}
}
}
long
l
=
System
.
currentTimeMillis
();
//进行日志的存储
executor
.
execute
(
executor
.
execute
(
()->{
()->{
deviceLogService
.
addAllLog
(
deviceLogDtos
);
deviceLogService
.
addAllLog
(
deviceLogDtos
);
}
}
);
);
log
.
info
(
"日志存储时间:{}"
,
System
.
currentTimeMillis
()-
l
);
log
.
info
(
"[自查模块]:发起自查"
);
log
.
info
(
"[自查模块]:发起自查"
);
myWebSocket
.
sendMessage1
();
myWebSocket
.
sendMessage1
();
return
ResultUtil
.
success
(
selfExaminationBillEntity1
);
return
ResultUtil
.
success
(
selfExaminationBillEntity1
);
...
@@ -438,6 +435,7 @@ public class SelfCheckController {
...
@@ -438,6 +435,7 @@ public class SelfCheckController {
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
selfExaminationConfirm
(
@RequestBody
@Validated
SelfCheckConfirmVo
selfCheckConfirmVo
)
{
public
ResponseEntity
selfExaminationConfirm
(
@RequestBody
@Validated
SelfCheckConfirmVo
selfCheckConfirmVo
)
{
TaskBto
taskBto
=
taskService
.
get
(
selfCheckConfirmVo
.
getTaskId
());
TaskBto
taskBto
=
taskService
.
get
(
selfCheckConfirmVo
.
getTaskId
());
Integer
userId
=
userUtils
.
getCurrentUserId
();
TaskDisposeUtil
.
isNotSubmit
(
taskBto
.
getBillStatus
(),
StatusEnum
.
SELF_CHECK_CONFIRM
);
TaskDisposeUtil
.
isNotSubmit
(
taskBto
.
getBillStatus
(),
StatusEnum
.
SELF_CHECK_CONFIRM
);
SelfCheckBill
selfExaminationBillEntity
=
selfExaminationBillService
.
getOne
(
taskBto
.
getBillId
());
SelfCheckBill
selfExaminationBillEntity
=
selfExaminationBillService
.
getOne
(
taskBto
.
getBillId
());
if
(
selfCheckConfirmVo
.
getCheckFiles
()!=
null
&&
selfCheckConfirmVo
.
getCheckFiles
().
size
()>
0
){
if
(
selfCheckConfirmVo
.
getCheckFiles
()!=
null
&&
selfCheckConfirmVo
.
getCheckFiles
().
size
()>
0
){
...
@@ -466,7 +464,8 @@ public class SelfCheckController {
...
@@ -466,7 +464,8 @@ public class SelfCheckController {
for
(
String
s:
strings
)
{
for
(
String
s:
strings
)
{
if
(
s
.
length
()>=
2
)
{
if
(
s
.
length
()>=
2
)
{
Integer
id
=
Integer
.
parseInt
(
s
.
substring
(
0
,
s
.
length
()
-
1
));
Integer
id
=
Integer
.
parseInt
(
s
.
substring
(
0
,
s
.
length
()
-
1
));
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"上传自查单"
,
null
,
taskBto
.
getId
(),
null
);
// DeviceLogDto deviceLogDto = new DeviceLogDto(id,"上传自查单",null,taskBto.getId(),null);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"上传自查单"
,
null
,
userId
,
taskBto
.
getId
());
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
}
}
}
}
...
@@ -482,7 +481,7 @@ public class SelfCheckController {
...
@@ -482,7 +481,7 @@ public class SelfCheckController {
for
(
String
s:
strings
)
{
for
(
String
s:
strings
)
{
if
(
s
.
length
()>=
2
)
{
if
(
s
.
length
()>=
2
)
{
Integer
id
=
Integer
.
parseInt
(
s
.
substring
(
0
,
s
.
length
()
-
1
));
Integer
id
=
Integer
.
parseInt
(
s
.
substring
(
0
,
s
.
length
()
-
1
));
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"自查审核失败"
,
null
,
taskBto
.
getId
(),
null
);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"自查审核失败"
,
null
,
userId
,
taskBto
.
getId
()
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论