提交 94525471 authored 作者: zhoushaopan's avatar zhoushaopan

fix(读写机模块): 修改依赖

修改依赖
上级 f09151fe
......@@ -42,13 +42,6 @@
<artifactId>socket</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.zebra</groupId>-->
<!-- <artifactId>sdk1</artifactId>-->
<!-- <version>1.0.0</version>-->
<!-- <scope>system</scope>-->
<!-- <systemPath>${project.basedir}/src/main/resources/lib/ModuleAPI_Java_2.2.0.0.jar</systemPath>-->
<!-- </dependency>-->
<dependency>
<groupId>com.zebra</groupId>
......
......@@ -10,6 +10,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;
/**
* @author zsp
......@@ -44,4 +45,19 @@ public class DeviceLibraryPositionServiceImpl implements DeviceLibraryPositionSe
return deviceLibraryPositionDao.findAllByStorageLocationId(StorageLocationId);
}
@Override
public DeviceLibraryPosition findById(Integer id) {
DeviceLibraryPosition deviceLibraryPosition = new DeviceLibraryPosition();
Optional<DeviceLibraryPosition> positionDaoById = deviceLibraryPositionDao.findById(id);
if(positionDaoById.isPresent()){
deviceLibraryPosition = positionDaoById.get();
}
return deviceLibraryPosition;
}
@Override
public void deleteByPosition(Integer id) {
deviceLibraryPositionDao.deleteById(id);
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论