Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jyzb_platformV2
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
赵剑炜
jyzb_platformV2
Commits
d8edd4b1
Commit
d8edd4b1
authored
Jan 22, 2024
by
赵剑炜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在上一个接口基础上调整
parent
b524c769
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
5 行增加
和
2 行删除
+5
-2
PolicemanServiceImpl.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/PolicemanServiceImpl.java
+5
-2
没有找到文件。
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/PolicemanServiceImpl.java
View file @
d8edd4b1
...
@@ -807,7 +807,9 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
...
@@ -807,7 +807,9 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
// 判断是否存在相同编号的设备
// 判断是否存在相同编号的设备
Optional
<
InventorySummary
>
existingInventory
=
inventoryList
.
stream
()
Optional
<
InventorySummary
>
existingInventory
=
inventoryList
.
stream
()
.
filter
(
inventory
->
inventory
.
getSizeId
().
equals
(
reqEq
.
getSizeId
())
&&
.
filter
(
inventory
->
inventory
.
getSizeId
().
equals
(
reqEq
.
getSizeId
())
&&
inventory
.
getTypeId
().
equals
(
reqEq
.
getTypeId
()))
inventory
.
getTypeId
().
equals
(
reqEq
.
getTypeId
())&&
inventory
.
getPrice
().
equals
(
reqEq
.
getPrice
()
))
.
findFirst
();
//原有组织机构数据
.
findFirst
();
//原有组织机构数据
List
<
InventorySummary
>
NowInventoryList
=
inventorySummaryService
.
list
(
List
<
InventorySummary
>
NowInventoryList
=
inventorySummaryService
.
list
(
...
@@ -816,7 +818,8 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
...
@@ -816,7 +818,8 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
// 判断是否存在相同编号的设备
// 判断是否存在相同编号的设备
Optional
<
InventorySummary
>
NowExistingInventory
=
NowInventoryList
.
stream
()
Optional
<
InventorySummary
>
NowExistingInventory
=
NowInventoryList
.
stream
()
.
filter
(
inventory
->
inventory
.
getSizeId
().
equals
(
reqEq
.
getSizeId
())
&&
.
filter
(
inventory
->
inventory
.
getSizeId
().
equals
(
reqEq
.
getSizeId
())
&&
inventory
.
getTypeId
().
equals
(
reqEq
.
getTypeId
()))
inventory
.
getTypeId
().
equals
(
reqEq
.
getTypeId
())&&
inventory
.
getPrice
().
equals
(
reqEq
.
getPrice
()))
.
findFirst
();
//现在组织机构数据
.
findFirst
();
//现在组织机构数据
if
(
dbPolice
.
getOrgId
()
==
null
)
{
//如果为空则说明调岗中,则只需要为当前组织机构增加相应数据即可
if
(
dbPolice
.
getOrgId
()
==
null
)
{
//如果为空则说明调岗中,则只需要为当前组织机构增加相应数据即可
if
(
existingInventory
.
isPresent
())
{
if
(
existingInventory
.
isPresent
())
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论