Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
f987d199
提交
f987d199
authored
10月 26, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(装备申请模块): 解决了修改序列号,装备数据找不到,解决了选中试用数量,全部试用都改变了
解决了修改序列号,装备数据找不到,解决了选中试用数量,全部试用都改变了
上级
97d88e93
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
19 行删除
+7
-19
DeviceLibraryController.java
...ev/device/library/controller/DeviceLibraryController.java
+7
-0
StorageBillController.java
.../dev/device/storage/controller/StorageBillController.java
+0
-19
没有找到文件。
dev-library/src/main/java/com/tykj/dev/device/library/controller/DeviceLibraryController.java
浏览文件 @
f987d199
...
...
@@ -952,6 +952,13 @@ public class DeviceLibraryController {
return
ResponseEntity
.
ok
(
"更新成功"
);
}
@ApiOperation
(
"根据装备id查询接口"
)
@PostMapping
(
"findByIds"
)
public
ResponseEntity
findByIds
(
@RequestBody
List
<
Integer
>
ids
){
List
<
DeviceLibrary
>
byIds
=
deviceLibraryService
.
findByIds
(
ids
);
return
ResponseEntity
.
ok
(
byIds
);
}
@ApiOperation
(
value
=
"根据装备id查询装备详情"
,
notes
=
"根据装备id查询装备详情"
)
@PostMapping
(
"/selectByIds1"
)
public
List
<
DeviceNewVo
>
selectByIds1
(
@RequestBody
DeviceSelectIdsVo
deviceSelectIdsVo
){
...
...
dev-storage/src/main/java/com/tykj/dev/device/storage/controller/StorageBillController.java
浏览文件 @
f987d199
...
...
@@ -671,25 +671,6 @@ public class StorageBillController {
});
}
}
List
<
DeviceLibrarySaveVo
>
deviceLibrarySaveVoList
=
storageBillSaveVo
.
getDeviceLibrarySaveVoList
();
deviceLibrarySaveVoList
.
forEach
(
deviceLibrarySaveVo
->
{
List
<
DeviceLibrary
>
deviceLibraries
=
deviceLibraryService
.
findAllByPackingId
(
deviceLibrarySaveVo
.
getPackingId
());
deviceLibraries
=
deviceLibraries
.
stream
().
filter
(
deviceLibrary
->
deviceLibrary
.
getTryOutDevice
()
==
1
)
.
collect
(
Collectors
.
toList
());
if
(
deviceLibraries
.
size
()>
0
){
//将装备试用的改为正式的
deviceLibraryService
.
updateTry
(
deviceLibraries
);
List
<
DeviceLogDto
>
deviceLogDtoList
=
new
ArrayList
<>();
deviceLibraries
.
stream
().
map
(
DeviceLibrary:
:
getId
).
collect
(
Collectors
.
toList
()).
forEach
(
integer
->
{
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
integer
,
"试用装备改为正式装备"
,
null
);
deviceLogDtoList
.
add
(
deviceLogDto
);
});
executor
.
execute
(()->{
deviceLogService
.
addAllLog
(
deviceLogDtoList
);
});
}
});
}
// if(storageBillSaveVo.getTryOutDevice() == 0){
// List<DeviceLibrarySaveVo> deviceLibrarySaveVoList = storageBillSaveVo.getDeviceLibrarySaveVoList();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论