Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
a3b247a6
提交
a3b247a6
authored
6月 01, 2021
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新
上级
cd516725
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
3 行删除
+13
-3
RfidController.java
...ain/java/com/tykj/dev/rfid/controller/RfidController.java
+12
-2
StorageBillSaveVo.java
...tykj/dev/device/storage/subject/vo/StorageBillSaveVo.java
+1
-1
没有找到文件。
dev-rfid/src/main/java/com/tykj/dev/rfid/controller/RfidController.java
浏览文件 @
a3b247a6
...
@@ -113,16 +113,26 @@ public class RfidController {
...
@@ -113,16 +113,26 @@ public class RfidController {
@ApiOperation
(
value
=
"再次打印标签(已入库),未入库只能后台调打印"
,
notes
=
"可以通过这个接口打印RFID"
)
@ApiOperation
(
value
=
"再次打印标签(已入库),未入库只能后台调打印"
,
notes
=
"可以通过这个接口打印RFID"
)
@PostMapping
(
value
=
"/print"
)
@PostMapping
(
value
=
"/print"
)
@org
.
springframework
.
transaction
.
annotation
.
Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
printRfid
(
@RequestBody
List
<
RfidPrintVo
>
rfid
)
{
public
ResponseEntity
printRfid
(
@RequestBody
List
<
RfidPrintVo
>
rfid
)
{
Map
<
String
,
DeviceLibrary
>
map
=
deviceLibraryService
.
getAllDeviceSeqMap
();
Map
<
String
,
DeviceLibrary
>
map
=
deviceLibraryService
.
getAllDeviceSeqMap
();
List
<
DeviceLogDto
>
deviceLogDtos
=
new
ArrayList
<>();
List
<
DeviceLogDto
>
deviceLogDtos
=
new
ArrayList
<>();
List
<
PrintVo
>
printVos
=
new
ArrayList
<>();
//调用打印服务 批量打印
//调用打印服务 批量打印
for
(
RfidPrintVo
printVo
:
rfid
)
{
for
(
RfidPrintVo
printVo
:
rfid
)
{
DeviceLibrary
deviceLibrary
=
map
.
get
(
printVo
.
getDeviceNumber
());
DeviceLibrary
deviceLibrary
=
map
.
get
(
printVo
.
getDeviceNumber
());
PrintVo
printVo1
=
new
PrintVo
(
RfidServiceImpl
.
completeRfidStr
(
String
.
valueOf
(
deviceLibrary
.
getId
())),
deviceLibrary
.
getModel
(),
deviceLibrary
.
getName
(),
deviceLibrary
.
getSeqNumber
());
PrintVo
printVo1
=
new
PrintVo
(
RfidServiceImpl
.
completeRfidStr
(
String
.
valueOf
(
deviceLibrary
.
getId
())),
deviceLibrary
.
getModel
(),
deviceLibrary
.
getName
(),
deviceLibrary
.
getSeqNumber
());
rfidService
.
printString
(
Collections
.
singletonList
(
printVo1
));
printVos
.
add
(
printVo1
);
deviceLogDtos
.
add
(
new
DeviceLogDto
(
deviceLibrary
.
getId
(),
"打印标签"
,
null
));
if
(
""
.
equals
(
deviceLibrary
.
getRfidCardId
()))
{
deviceLibrary
.
setRfidCardId
(
RfidServiceImpl
.
completeRfidStr
(
String
.
valueOf
(
deviceLibrary
.
getId
())));
deviceLibraryService
.
update
(
deviceLibrary
);
deviceLogDtos
.
add
(
new
DeviceLogDto
(
deviceLibrary
.
getId
(),
"打印标签"
,
null
));
}
else
{
deviceLogDtos
.
add
(
new
DeviceLogDto
(
deviceLibrary
.
getId
(),
"更换标签"
,
null
));
}
}
}
rfidService
.
printString
(
printVos
.
stream
().
sorted
(
Comparator
.
comparing
(
PrintVo:
:
getRfidContent
)).
collect
(
Collectors
.
toList
()));
deviceLogService
.
addAllLog
(
deviceLogDtos
);
deviceLogService
.
addAllLog
(
deviceLogDtos
);
return
ResultUtil
.
success
(
"打印成功"
);
return
ResultUtil
.
success
(
"打印成功"
);
}
}
...
...
dev-storage/src/main/java/com/tykj/dev/device/storage/subject/vo/StorageBillSaveVo.java
浏览文件 @
a3b247a6
...
@@ -129,7 +129,7 @@ public class StorageBillSaveVo {
...
@@ -129,7 +129,7 @@ public class StorageBillSaveVo {
storageBillEntity
.
setApplyFiles
(
FilesUtil
.
stringFileToList
(
this
.
applyFiles
));
storageBillEntity
.
setApplyFiles
(
FilesUtil
.
stringFileToList
(
this
.
applyFiles
));
}
}
if
(
this
.
allotFiles
!=
null
&&
this
.
allotFiles
.
size
()>
0
){
if
(
this
.
allotFiles
!=
null
&&
this
.
allotFiles
.
size
()>
0
){
storageBillEntity
.
setAllotFiles
(
FilesUtil
.
stringFileToList
(
this
.
a
pply
Files
));
storageBillEntity
.
setAllotFiles
(
FilesUtil
.
stringFileToList
(
this
.
a
llot
Files
));
}
}
return
storageBillEntity
;
return
storageBillEntity
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论