提交 82c3406a authored 作者: zhoushaopan's avatar zhoushaopan

feat(装备模块): 修改装备接口进行修改试用类型

修改装备接口进行修改试用类型
上级 65ac8293
...@@ -764,8 +764,14 @@ public class DeviceLibraryController { ...@@ -764,8 +764,14 @@ public class DeviceLibraryController {
//add 装备是否试用 //add 装备是否试用
if (libraryUpdateVo.getTryOutDevice()!=null && !libraryUpdateVo.getTryOutDevice().equals(deviceLibraryEntity.getTryOutDevice())){ if (libraryUpdateVo.getTryOutDevice()!=null && !libraryUpdateVo.getTryOutDevice().equals(deviceLibraryEntity.getTryOutDevice())){
String tryOut;
if (libraryUpdateVo.getTryOutDevice() == 1){
tryOut = "试用";
}else {
tryOut = "正式";
}
DeviceLogDto deviceLogDto = new DeviceLogDto(deviceEditVo.getDeviceId(), DeviceLogDto deviceLogDto = new DeviceLogDto(deviceEditVo.getDeviceId(),
"将试用类型改为"+libraryUpdateVo.getTryOutDevice(), null,null,null); "将试用类型改为"+tryOut, null,null,null);
deviceLogService.addLog(deviceLogDto); deviceLogService.addLog(deviceLogDto);
deviceLibraryEntity.setTryOutDevice(libraryUpdateVo.getTryOutDevice()); deviceLibraryEntity.setTryOutDevice(libraryUpdateVo.getTryOutDevice());
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论