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

fix(装备模块): 修复了一个bug

修复了一个bug
上级 03279cc1
......@@ -841,6 +841,7 @@ public class DeviceLibraryController {
deviceLogService.addLog(deviceLogDto);
deviceLibraryEntity.setTryOutDevice(libraryUpdateVo.getTryOutDevice());
}
if (libraryUpdateVo.getPackingVo() !=null){
if (libraryUpdateVo.getPackingVo().getPackingId() != null && !libraryUpdateVo.getPackingVo().getPackingId().equals(deviceLibraryEntity.getPackingId())) {
//添加装备日志
//修改型号就要修改列装id
......@@ -871,6 +872,7 @@ public class DeviceLibraryController {
deviceLogService.addLog(deviceLogDto);
}
}
deviceLibraryService.update(deviceLibraryEntity);
}
//添加绑定配件
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论