提交 b47f3fe3 authored 作者: 133's avatar 133

[清退代码] 提交

上级 44470ddb
...@@ -86,7 +86,7 @@ public class RfidServiceImpl implements RfidService { ...@@ -86,7 +86,7 @@ public class RfidServiceImpl implements RfidService {
@Override @Override
public boolean printString(String makeNumber,String deviceNumber,String content) { public boolean printString(String makeNumber,String deviceNumber,String content) {
try { try {
Connection connection = new TcpConnection("192.168.0.222", 6101); Connection connection = new TcpConnection("10.153.4.16", 6101);
connection.open(); connection.open();
printer = ZebraPrinterFactory.getInstance(connection); printer = ZebraPrinterFactory.getInstance(connection);
String demoFile = createDemoFile(printer.getPrinterControlLanguage(),makeNumber,deviceNumber, content, 60, 55); String demoFile = createDemoFile(printer.getPrinterControlLanguage(),makeNumber,deviceNumber, content, 60, 55);
......
...@@ -157,21 +157,22 @@ public class RepelQueryServiceImpl implements RepelQueryService { ...@@ -157,21 +157,22 @@ public class RepelQueryServiceImpl implements RepelQueryService {
@Override @Override
public List<DevRepelVo> findRepelListModelNameGroup(ModelAndTypeVo modelAndTypeVo) { public List<DevRepelVo> findRepelListModelNameGroup(ModelAndTypeVo modelAndTypeVo) {
Units units= unitsService.findById(modelAndTypeVo.getUnitId()); Units units= unitsService.findById(modelAndTypeVo.getUnitId());
if (modelAndTypeVo.getModel()==null&&modelAndTypeVo.getType()==null){ // if (modelAndTypeVo.getModel()==null&&modelAndTypeVo.getType()==null){
return deviceLibraryDao.findAllByOwnUnitAndLocationUnitAndLifeStatus(units.getName(),units.getName(),15).stream().map(DeviceLibrary::setConfigName) // return deviceLibraryDao.findAllByOwnUnitAndLocationUnitAndLifeStatus(units.getName(),units.getName(),15).stream().map(DeviceLibrary::setConfigName)
.map(this::devRepelVo).collect(Collectors.toList()); // .map(this::devRepelVo).collect(Collectors.toList());
}else if (modelAndTypeVo.getModel()!=null&&modelAndTypeVo.getType()==null){ // }else if (modelAndTypeVo.getModel()!=null&&modelAndTypeVo.getType()==null){
return deviceLibraryDao.findAllByOwnUnitAndLocationUnitAndLifeStatus(units.getName(),units.getName(),15).stream().filter(deviceLibrary -> deviceLibrary.getModel().equals(modelAndTypeVo.getModel())).map(DeviceLibrary::setConfigName) // return deviceLibraryDao.findAllByOwnUnitAndLocationUnitAndLifeStatus(units.getName(),units.getName(),15).stream().filter(deviceLibrary -> deviceLibrary.getModel().equals(modelAndTypeVo.getModel())).map(DeviceLibrary::setConfigName)
.map(this::devRepelVo).collect(Collectors.toList()); // .map(this::devRepelVo).collect(Collectors.toList());
}else if (modelAndTypeVo.getModel()==null&&modelAndTypeVo.getType()!=null){ // }else if (modelAndTypeVo.getModel()==null&&modelAndTypeVo.getType()!=null){
return deviceLibraryDao.findAllByOwnUnitAndLocationUnitAndLifeStatus(units.getName(),units.getName(),15).stream().map(DeviceLibrary::setConfigName) return deviceLibraryDao.findAllByOwnUnitAndLocationUnitAndLifeStatus(units.getName(),units.getName(),15).stream().map(DeviceLibrary::setConfigName)
.filter(deviceLibrary -> deviceLibrary.getType().equals(modelAndTypeVo.getType())) .filter(deviceLibrary -> deviceLibrary.getType()==null ||deviceLibrary.getType().equals(modelAndTypeVo.getType()))
.filter(deviceLibrary -> deviceLibrary.getModel()==null|| deviceLibrary.getModel().equals(modelAndTypeVo.getModel()))
.map(this::devRepelVo).collect(Collectors.toList()); .map(this::devRepelVo).collect(Collectors.toList());
}else { // }else {
return deviceLibraryDao.findAllByOwnUnitAndLocationUnitAndLifeStatus(units.getName(),units.getName(),15).stream().filter(deviceLibrary -> deviceLibrary.getModel().equals(modelAndTypeVo.getModel())).map(DeviceLibrary::setConfigName) // return deviceLibraryDao.findAllByOwnUnitAndLocationUnitAndLifeStatus(units.getName(),units.getName(),15).stream().filter(deviceLibrary -> deviceLibrary.getModel().equals(modelAndTypeVo.getModel())).map(DeviceLibrary::setConfigName)
.filter(deviceLibrary -> deviceLibrary.getType().equals(modelAndTypeVo.getType())) // .filter(deviceLibrary -> deviceLibrary.getType().equals(modelAndTypeVo.getType()))
.map(this::devRepelVo).collect(Collectors.toList()); // .map(this::devRepelVo).collect(Collectors.toList());
} // }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论