Commit d8edd4b1 by 赵剑炜

在上一个接口基础上调整

parent b524c769
......@@ -807,7 +807,9 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
// 判断是否存在相同编号的设备
Optional<InventorySummary> existingInventory = inventoryList.stream()
.filter(inventory -> inventory.getSizeId().equals(reqEq.getSizeId()) &&
inventory.getTypeId().equals(reqEq.getTypeId()))
inventory.getTypeId().equals(reqEq.getTypeId())&&inventory.getPrice().equals(
reqEq.getPrice()
))
.findFirst();//原有组织机构数据
List<InventorySummary> NowInventoryList = inventorySummaryService.list(
......@@ -816,7 +818,8 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
// 判断是否存在相同编号的设备
Optional<InventorySummary> NowExistingInventory = NowInventoryList.stream()
.filter(inventory -> inventory.getSizeId().equals(reqEq.getSizeId()) &&
inventory.getTypeId().equals(reqEq.getTypeId()))
inventory.getTypeId().equals(reqEq.getTypeId())&&inventory.getPrice().equals(
reqEq.getPrice()))
.findFirst();//现在组织机构数据
if (dbPolice.getOrgId() == null) {//如果为空则说明调岗中,则只需要为当前组织机构增加相应数据即可
if (existingInventory.isPresent()) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论