Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
91a9521d
提交
91a9521d
authored
4月 14, 2022
作者:
ljj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug 配套设备库:修改序列号
上级
2904737c
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
5 行删除
+9
-5
MatchingDeviceController.java
.../device/matching/controller/MatchingDeviceController.java
+1
-1
MatchingDeviceModelServiceImpl.java
...matching/service/impl/MatchingDeviceModelServiceImpl.java
+8
-4
没有找到文件。
dev-matching/src/main/java/com/tykj/dev/device/matching/controller/MatchingDeviceController.java
浏览文件 @
91a9521d
...
@@ -619,7 +619,7 @@ public class MatchingDeviceController {
...
@@ -619,7 +619,7 @@ public class MatchingDeviceController {
//查询该型号是否是第一次生成(需要保证后4位数唯一)
//查询该型号是否是第一次生成(需要保证后4位数唯一)
List
<
String
>
byModelForSeqNumber
=
matchingDeviceLibraryService
.
findByModelForSeqNumber
(
createSeqVo
.
getModel
());
List
<
String
>
byModelForSeqNumber
=
matchingDeviceLibraryService
.
findByModelForSeqNumber
(
createSeqVo
.
getModel
());
int
start
=
0
;
int
start
=
0
;
if
(!
CollectionUtils
.
isEmpty
(
byModelForSeqNumber
)){
if
(!
CollectionUtils
.
isEmpty
(
byModelForSeqNumber
)
&&
byModelForSeqNumber
.
size
()>
0
){
//说明数据库中存有该集合中的数字 取出最大的
//说明数据库中存有该集合中的数字 取出最大的
String
s
=
byModelForSeqNumber
.
get
(
0
);
String
s
=
byModelForSeqNumber
.
get
(
0
);
start
=
Integer
.
parseInt
(
s
);
start
=
Integer
.
parseInt
(
s
);
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/service/impl/MatchingDeviceModelServiceImpl.java
浏览文件 @
91a9521d
...
@@ -28,11 +28,15 @@ public class MatchingDeviceModelServiceImpl implements MatchingDeviceModelServic
...
@@ -28,11 +28,15 @@ public class MatchingDeviceModelServiceImpl implements MatchingDeviceModelServic
@Override
@Override
public
MatchingDeviceModel
findByModelAndName
(
String
model
,
String
name
)
{
public
MatchingDeviceModel
findByModelAndName
(
String
model
,
String
name
)
{
List
<
MatchingDeviceModel
>
byModelAndName
=
matchingDeviceModelDao
.
findByModelAndName
(
model
,
name
);
List
<
MatchingDeviceModel
>
byModelAndName
=
matchingDeviceModelDao
.
findByModelAndName
(
model
,
name
);
if
(
byModelAndName
.
size
()
==
1
){
if
(
byModelAndName
!=
null
&&
byModelAndName
.
size
()>
0
)
{
return
byModelAndName
.
get
(
0
);
if
(
byModelAndName
.
size
()
==
1
)
{
return
byModelAndName
.
get
(
0
);
}
else
{
return
byModelAndName
.
stream
().
filter
(
matchingDeviceModel
->
!
"0"
.
equals
(
matchingDeviceModel
.
getStyle
()))
.
collect
(
Collectors
.
toList
()).
get
(
0
);
}
}
else
{
}
else
{
return
byModelAndName
.
stream
().
filter
(
matchingDeviceModel
->
!
"0"
.
equals
(
matchingDeviceModel
.
getStyle
()))
return
null
;
.
collect
(
Collectors
.
toList
()).
get
(
0
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论